A portable, versioned configuration template for AI coding agents — Claude Code, Codex, and Gemini — from a single source of truth.
AGENTS.md holds one set of agent-neutral guidance. bootstrap.sh symlinks it (and your curated memory, commands, and settings) into ~/.claude, ~/.codex, and ~/.gemini, so every agent reads the same rules and edits to this repo update your live config in place. Raw transcripts, caches, credentials, and machine-specific state are intentionally excluded.
Fork it, delete the example content, and drop in your own.
AGENTS.md(source of truth) withCLAUDE.mdandGEMINI.mdas symlinks to itMEMORY.md,PROJECTS.md,PERSONA.md,SESSION_SUMMARY.md- Cross-agent slash commands in
commands/(claude/,codex/,gemini/), linked in bybootstrap.sh - Curated durable-memory notes in
memory/ - Human-readable policy in
config/ settings.jsonfor portable user-level Claude Code settingstool-template/— bundled copier template for/new-repo(installed to~/.claude/tool-templatebybootstrap.sh)- Bootstrap and audit scripts
~/.claude.json~/.claude/projects/*.jsonl(raw session transcripts)~/.claude/sessions/raw/,~/.claude/backups/,~/.claude/shell-snapshots/,~/.claude/session-env/,~/.claude/local/- Any credentials, tokens, keys,
.envfiles, or host-specific paths - Machine-specific provider/auth settings →
settings.local.json(seeconfig/sync.md)
Clone this repo, then run:
./setup-new-machine.shThe setup script validates settings.json, runs the local secret audit, and then calls bootstrap.sh. It works from any clone path.
Or bootstrap directly:
./bootstrap.shbootstrap.sh backs up ~/.claude, moves existing managed paths aside into ~/.claude/local/pre-bootstrap-*, and symlinks the selected files and directories from this repo into ~/.claude (and the shared AGENTS.md into ~/.codex and ~/.gemini when those dirs exist). Override the repo location with CLAUDE_CONFIG_REPO=/path/to/clone.
./audit-secrets.shUses betterleaks if installed, otherwise a conservative pattern grep. Review every hit before committing — this repo syncs into your live agent config.
- Replace the placeholder content in
PROJECTS.md,SESSION_SUMMARY.md, andmemory/*.mdwith your own (or empty them). - Edit
AGENTS.mdto match how you want your agents to behave. - Adjust
settings.jsonpermissions andconfig/permissions.mdpolicy to taste. /new-reposcaffolds new repos from the bundledtool-template/— no setup needed. Customize that template, or point/new-repoat a different one viaTOOL_TEMPLATE_URL.
MIT — see LICENSE.