Dana-Afazeli/agentic-swe-kit
A maintained template for the agentic-SWE harness: proven gates, Claude Code hooks, CI, a headless review loop, and the workflow docs behind them. Use this template, run kit.py init, take updates with kit.py update.
stack: Python
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
GUARDRAILS
4/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · Sandbox or ask-first rules · details
Quality 63/100 Guardrails v2
Copy this rig
# review before running: this installs third-party code
$ npx degit Dana-Afazeli/agentic-swe-kit/.claude ./rig-agentic-swe-kit # inspect, then merge into .claude/ MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ npx degit Dana-Afazeli/agentic-swe-kit/.claude/skills/brief-writer .claude/skills/brief-writer $ npx degit Dana-Afazeli/agentic-swe-kit/.claude/skills/implementer .claude/skills/implementer $ npx degit Dana-Afazeli/agentic-swe-kit/.claude/skills/review-loop .claude/skills/review-loop $ npx degit Dana-Afazeli/agentic-swe-kit/.claude/skills/reviewer .claude/skills/reviewer
Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"permissions": {
"deny": [
"Bash(git push --force:*)",
"Bash(git push -f:*)",
"Bash(git push origin main)",
"Bash(git push -u origin main)",
"Bash(git push origin HEAD:main)",
"Bash(git reset --hard:*)",
"Bash(rm -rf ~:*)",
"Bash(git commit --no-verify:*)",
"Bash(git switch:*)",
"Bash(git checkout:*)",
"Bash(gh label:*)",
"Bash(gh pr edit --add-label:*)",
"Bash(gh pr edit --remove-label:*)"
],
"ask": [
"Bash(gh pr merge:*)",
"Edit(/.claude/**)",
"Edit(/.github/**)",
"Edit(/scripts/**)",
"Edit(/kit.py)",
"Edit(/Makefile)",
"Edit(/pyproject.toml)",
"Edit(/uv.lock)",
"Edit(/.pre-commit-config.yaml)",
"Edit(/.python-version)",
"Edit(/.gitignore)",
"Edit(/.gitattributes)",
"Edit(/.betterleaks.toml)",
"Edit(/.betterleaksignore)",
"Edit(/GNUmakefile)",
"Edit(/makefile)",
"Edit(/pytest.toml)",
"Edit(/.pytest.toml)",
"Edit(/pytest.ini)",
"Edit(/.pytest.ini)",
"Edit(/ruff.toml)",
"Edit(/.ruff.toml)",
"Edit(/pyrightconfig.json)",
"Edit(/.coveragerc)",
"Edit(/.coveragerc.toml)",
"Edit(/.importlinter)",
"Edit(/setup.cfg)",
"Edit(/tox.ini)",
"Edit(/uv.toml)"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "uv run --project \"$CLAUDE_PROJECT_DIR\" python \"$CLAUDE_PROJECT_DIR/scripts/guard_bash.py\""
}
]
},
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "uv run --project \"$CLAUDE_PROJECT_DIR\" python \"$CLAUDE_PROJECT_DIR/scripts/session_lock.py\""
}
]
}
]
}
} Skills (4)
Hooks (5)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Bash | uv run --project "$CLAUDE_PROJECT_DIR" python "$CLAUDE_PROJECT_DIR/scripts/guard_bash.py" |
| PreToolUse | * | uv run --project "$CLAUDE_PROJECT_DIR" python "$CLAUDE_PROJECT_DIR/scripts/session_lock.py" |
| SessionStart | * | uv run --project "$CLAUDE_PROJECT_DIR" python "$CLAUDE_PROJECT_DIR/scripts/session_lock.py" |
| PostToolUse | Edit|Write | uv run --project "$CLAUDE_PROJECT_DIR" python "$CLAUDE_PROJECT_DIR/scripts/fmt_hook.py" |
| Stop | * | uv run --project "$CLAUDE_PROJECT_DIR" python "$CLAUDE_PROJECT_DIR/scripts/stop_gate.py" |
Permissions
deny (13)
Bash(git push --force:*)
Bash(git push -f:*)
Bash(git push origin main)
Bash(git push -u origin main)
Bash(git push origin HEAD:main)
Bash(git reset --hard:*)
Bash(rm -rf ~:*)
Bash(git commit --no-verify:*)
Bash(git switch:*)
Bash(git checkout:*)
Bash(gh label:*)
Bash(gh pr edit --add-label:*)
Bash(gh pr edit --remove-label:*)
ask (29)
Bash(gh pr merge:*)
Edit(/.claude/**)
Edit(/.github/**)
Edit(/scripts/**)
Edit(/kit.py)
Edit(/Makefile)
Edit(/pyproject.toml)
Edit(/uv.lock)
Edit(/.pre-commit-config.yaml)
Edit(/.python-version)
Edit(/.gitignore)
Edit(/.gitattributes)
Edit(/.betterleaks.toml)
Edit(/.betterleaksignore)
Edit(/GNUmakefile)
Edit(/makefile)
Edit(/pytest.toml)
Edit(/.pytest.toml)
Edit(/pytest.ini)
Edit(/.pytest.ini)
Edit(/ruff.toml)
Edit(/.ruff.toml)
Edit(/pyrightconfig.json)
Edit(/.coveragerc)
Edit(/.coveragerc.toml)
Edit(/.importlinter)
Edit(/setup.cfg)
Edit(/tox.ini)
Edit(/uv.toml)
allow (23)
Bash(make:*)
Bash(uv run:*)
Bash(uv sync:*)
Bash(uv add:*)
Bash(uv lock:*)
Bash(uv python:*)
Bash(git status:*)
Bash(git diff:*)
Bash(git log:*)
Bash(git show:*)
Bash(git branch --show-current)
Bash(git fetch:*)
Bash(git pull)
Bash(git add:*)
Bash(git commit:*)
Bash(git push -u origin main-:*)
Bash(git push origin main-:*)
Bash(gh pr create --base main:*)
Bash(gh pr view:*)
Bash(gh pr checks:*)
Bash(gh pr ready:*)
Bash(gh pr diff:*)
Bash(gh run view:*)
Similar rigs
spxrogers/agentsync
Sync AI coding-agent configs (Claude Code, OpenCode, Codex, and more) from one canonical, committable source.
Pragmatist 12.8k tok · · Q5
brrichards/claude-codespace-setup
—
YOLO Cowboy 94 tok · · Q9
keli-wen/agy-staff
Hire Google's Antigravity CLI (agy) as a fast Gemini staffer for Claude Code and OpenAI Codex.
Pragmatist 552 tok · · Q0
saucam/anyagent
Write your agent setup once, run it in any agent. Bridge Claude Code skills, agents & workspace guidance into Codex, Cursor, Gemini, Hermes and Windsurf
Minimalist 109 tok · · Q15