mirror of
https://github.com/garrytan/gstack.git
synced 2026-08-31 02:10:51 +02:00
feat(hosts): instruction-only tier — a 2KB committed rules digest any agent host can read
New agents-digest/gstack-AGENTS.md (1,765 bytes, hard 2,048-byte budget): gstack's ethos one-liners, the reuse ladder, and voice rules for hosts with no install arm — Zed, Amp, Jules, or any AGENTS.md-reading agent. Generated by scripts/gen-agents-digest.ts, auto-refreshed by gen:skill-docs, committed like llms.txt so setup's explainer arms can point at it before any toolchain exists. First line carries the gstack version as its own staleness nudge. Delivery is print-path + user-performed copy ONLY: setup never writes or overwrites a user's AGENTS.md (a test pins this — no cp/ln/mv/redirect into AGENTS.md anywhere in setup). openclaw and hermes explainer arms print the path; slate keeps routing to the full Claude install and gbrain ships from its own repo. HostConfig gains the optional install.instructionTier slot, declared by both instruction-tier hosts. README host table now matches what setup actually does. Inspired by dietrichgebert/ponytail's instruction-tier AGENTS.md fallback — one generated source, never per-host hand copies. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
cf0b39ddeb
commit
3263fffea9
@@ -111,16 +111,22 @@ cd ~/gstack && ./setup
|
||||
|
||||
Or target a specific agent with `./setup --host <name>`:
|
||||
|
||||
| Agent | Flag | Skills install to |
|
||||
|-------|------|-------------------|
|
||||
| OpenAI Codex CLI | `--host codex` | `${CODEX_HOME:-~/.codex}/skills/gstack-*/` |
|
||||
| OpenCode | `--host opencode` | `~/.config/opencode/skills/gstack-*/` |
|
||||
| Cursor | `--host cursor` | `~/.cursor/skills/gstack-*/` |
|
||||
| Factory Droid | `--host factory` | `~/.factory/skills/gstack-*/` |
|
||||
| Slate | `--host slate` | `~/.slate/skills/gstack-*/` |
|
||||
| Kiro | `--host kiro` | `~/.kiro/skills/gstack-*/` |
|
||||
| Hermes | `--host hermes` | `~/.hermes/skills/gstack-*/` |
|
||||
| GBrain (mod) | `--host gbrain` | `~/.gbrain/skills/gstack-*/` |
|
||||
| Agent | Flag | What you get |
|
||||
|-------|------|--------------|
|
||||
| OpenAI Codex CLI | `--host codex` | Full install → `${CODEX_HOME:-~/.codex}/skills/gstack-*/` |
|
||||
| OpenCode | `--host opencode` | Full install → `~/.config/opencode/skills/gstack-*/` |
|
||||
| Cursor | `--host cursor` | Full install → `~/.cursor/skills/gstack-*/` |
|
||||
| Factory Droid | `--host factory` | Full install → `~/.factory/skills/gstack-*/` |
|
||||
| Kiro | `--host kiro` | Full install → `~/.kiro/skills/gstack-*/` |
|
||||
| Slate | `--host slate` | Pointer to the Claude install (Slate reads `.claude/skills` as a fallback) |
|
||||
| Hermes | `--host hermes` | Methodology artifacts via `gen:skill-docs --host hermes` + the instruction-only digest below |
|
||||
| GBrain (mod) | `--host gbrain` | Brain-aware skill variants, shipped from the GBrain repo |
|
||||
|
||||
**Instruction-only tier (any rules-reading agent — Zed, Amp, Jules, side projects):**
|
||||
copy the 2KB digest at [`agents-digest/gstack-AGENTS.md`](agents-digest/gstack-AGENTS.md)
|
||||
into a location your agent reads (for example, append it to your project's `AGENTS.md`).
|
||||
It carries gstack's ethos, reuse ladder, and voice rules — no install required. The
|
||||
digest's first line shows its gstack version; re-copy it after upgrading.
|
||||
|
||||
For Codex, setup reads the top-level `model` from
|
||||
`${CODEX_HOME:-~/.codex}/config.toml` and generates the matching behavioral
|
||||
|
||||
Reference in New Issue
Block a user