claude-code-stack
My personal coding agent configuration, built around Claude Code and shared with every agent that reads AGENTS.md or .agents/, with a cross-platform installer (macOS, Linux, Windows).
Install
Requires Node.js 22.18+ (the guard hooks also run with node).
npx github:sowahq/claude-code-stack # interactive
npx github:sowahq/claude-code-stack --dry-run # show the plan, change nothing
From a clone: node dist/cli.mjs [command] [options].
| Command | Effect |
|---|
install (default) | Install or update. Re-running only applies what changed. |
uninstall | Remove what the stack installed and restore your settings. |
doctor | Check Node, the Claude CLI, installed files, settings and rules. |
| Option | Effect |
|---|
-g, --global | Target CLAUDE_CONFIG_DIR or ~/.claude. |
-p, --project [dir] | Target a project (<dir>/.claude and <dir>/CLAUDE.md). |
-a, --agent <list> | Other agents to configure: comma-separated, all or none. Defaults to the previous choice, else the agents found on this machine. |
-y, --yes | Non-interactive. Reuses the previous selection, or installs everything. |
-n, --dry-run | Print the plan only. |
-f, --force | Also overwrite or remove files you edited (a backup is kept). |
What it installs
| Component | Destination | Notes |
|---|
stack/CLAUDE.md, stack/AGENTS.md | claude-code-stack.md, claude-code-stack-agents.md | Claude-only additions and the shared instructions, pulled into your CLAUDE.md with a managed @ import block. Your content is untouched. |
stack/rules/ | rules/ | Language rules use paths: frontmatter and load only when matching files are touched. clean-code and security load every session. |
stack/agents/ | agents/ | go-reviewer, rust-reviewer, svelte-builder, db-guardian, devops-docker, security-auditor, investigator. |
stack/skills/ | skills/ | atomic-commit, todoist, writing-style (loaded only when drafting text, to save context), and project-context and learn, which you run yourself and which cost no context until then. |
src/hooks/ (compiled to dist/hooks/) | hooks/claude-code-stack/ | One PreToolUse guard for Bash and PowerShell, written in Node with no jq or bash dependency. |
stack/settings.json | settings.json | Merged. Keys you already set are never overridden. |
| MCP servers | claude mcp add | Svelte, Ark UI, Figma (figma-mcp-go), Todoist. Wrapped in cmd /c on Windows. |
| Plugins | claude plugin install | gopls-lsp, rust-analyzer-lsp and frontend-design from the official marketplace, tsgo-lsp from this repo, i-have-adhd with its always-on flag. Plugins you already had are never reinstalled or removed. |
Other agents
stack/ is the single source. For each selected agent the installer writes what that agent can read:
Agent (--agent id) | Global instructions | Subagents | Guard hook |
|---|
codex | ~/.codex/AGENTS.md | yes | yes, after you trust it with /hooks; "ask" becomes "deny" |
opencode | ~/.config/opencode/AGENTS.md | yes | no |
copilot | ~/.copilot/copilot-instructions.md | yes | yes |
cursor | none (UI only) | reads Claude's | not verified |
antigravity | ~/.gemini/GEMINI.md, rules, skills in ~/.gemini/config/ | yes | yes |
gemini | ~/.gemini/GEMINI.md | yes | no |
amp, zed, kilo, devin | ~/.config/<id>/AGENTS.md | no | no |
goose | ~/.config/goose/.goosehints | no | no |
junie | ~/.junie/AGENTS.md | no | no |
droid | ~/.agents/AGENTS.md | no | no |
warp | none (UI only) | no | no |