Harness-for-claude
Health Gecti
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 29 GitHub stars
Code Gecti
- Code scan — Scanned 3 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
A minimal, language-agnostic harness for Claude Code and AGENTS.md-compatible coding agents. | Claude Code와 AGENTS.md 호환 에이전트를 위한 미니멀·언어 무관 하네스.
Harness for Claude Code — a minimal AGENTS.md + CLAUDE.md starter
A tiny, language-agnostic harness for Claude Code (and Codex, Cursor, Aider — any agent that
reads the AGENTS.md spec). Drop it into a new repo and every coding agent
gets the same predictable starting point: one agent guide, one bootstrap, one check, one test.
Use this if you want a reliable baseline for AI-agent-driven development without committing
to a stack, framework, or vendor lock-in. Extend it as your project grows.
Why this exists
Most "Claude Code starter" repos are full-stack templates that force a language choice. This one
isn't. It ships only the conventions every project needs:
- A single canonical agent guide (
AGENTS.md, mirrored asCLAUDE.mdvia symlink) - Stable script entrypoints (
bootstrap,check,test) that auto-detect Node, Python, Rust - Safe Claude Code defaults: narrow
Bashallowlist, command-substitution deny rules, Stop-hook
self-verification, SessionStart context loader - Lightweight places for decisions and task briefs
If you've ever opened a fresh repo and asked an agent "where do I even start?" — this answers that.
Using this as a template
GitHub's "Use this template" button (or a plain clone) copies every file
in this repo — including LICENSE, README.md, SECURITY.md, and the
social preview image, which describe the harness itself, not your project.
After adopting, replace those artifacts. See the
Adopting this harness checklist inAGENTS.md for the exact list.
Quick start
git clone https://github.com/ganimjeong/Harness-for-claude
cd Harness-for-claude
scripts/bootstrap # installs deps if a known stack is detected
scripts/check # lint + typecheck + test, whatever applies
Then point Claude Code at the directory — it auto-loads CLAUDE.md (→ AGENTS.md).
Features
- Cross-tool agent guide — one
AGENTS.mdworks with Claude Code, Codex, Cursor, Aider, and
any tool that follows the AGENTS.md cross-tool spec. - Self-verifying Stop hook —
.claude/hooks/stop-checkrunsscripts/checkbefore the
session ends and blocks on failure, so regressions don't slip past. - SessionStart context loader — injects branch, uncommitted state, and open task notes only
when interesting; output capped so it never bloats the context window. - Hardened permissions — narrow
Bash(...)allowlist plus explicit denies for.env*,secrets/, force-push, and command-substitution patterns (mitigates
CVE-2026-35021). - Stack-agnostic scripts —
scripts/bootstrap,scripts/check, andscripts/testdetect
Node, Python, and Rust automatically. - Decision log + task briefs —
docs/decisions.mdandtasks/TEMPLATE.mdgive agents a
durable place to record what matters and what's next.
Workflow
- Drop a task brief into
tasks/(copytasks/TEMPLATE.md) when context is non-trivial. - Implement changes in the relevant project files.
- Record durable decisions in
docs/decisions.md. - Run
scripts/check— the Stop hook will run it anyway.
Agent configuration
AGENTS.md is the canonical agent guide. CLAUDE.md is a symlink to it so Claude Code reads the
same content. Edit AGENTS.md only.
Windows note: git stores the symlink with mode
120000. On Windows checkouts it works only
withgit config --global core.symlinks trueand Developer Mode (or admin) enabled — otherwiseCLAUDE.mdappears as a plain text file containing the stringAGENTS.md. Replace the symlink
with a copy + pre-commit sync hook if that's a problem for your team.
Claude Code integration
AGENTS.md/CLAUDE.mdload automatically as project context for every Claude Code session.CLAUDE.local.md/AGENTS.local.md(git-ignored) hold personal overrides..claude/settings.json— project-shared settings (permissions, hooks), checked in..claude/settings.local.json— personal overrides, git-ignored. See the.examplefile..claude/commands/— project-scoped slash commands..claude/hooks/— lifecycle scripts (session-start-context,stop-check)..claude/agents/— project-scoped sub-agents (none ship by default; built-inExploreandPlancover most cases)..github/pull_request_template.md— aligns PR descriptions with the verification checklist
Claude follows.
See docs/references.md for upstream Claude Code documentation and the
patterns this harness deliberately adopts or rejects.
Related
- Anthropic — Claude Code docs
- AGENTS.md cross-tool spec
- Trail of Bits — sandboxed Claude Code devcontainer
(heavier alternative if you need Docker isolation)
Contributing
Issues and PRs are welcome — see CONTRIBUTING.md. For security reports,
see SECURITY.md.
License
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi