Generated repo rating page

AI agent harness rating

Paste any public GitHub or GitLab repository to generate a shareable harn.app score page for Control, Agency, and Runtime readiness.

Add ?repo=owner/name to this URL, or paste a repo above.

20-step protection plan

Turn this score into an owner-visible backlog. These are the concrete guardrails that make a repo safer for AI coding agents.

01Install harn

Run /harn:init to add the control file, security guard, quality gate, and settings wiring.

02Keep AGENTS.md lean

Write the north star, stack, boundaries, and stop rules in under 60 lines.

03Block destructive shell

Deny rm -rf, pipe-to-shell, reckless chmod, disk writes, and obvious footguns.

04Protect main

Require branches, PR review, and status checks before code can land.

05Run a Stop gate

The agent cannot finish until the real project health command passes.

06Break recovery loops

Stop hooks check stop_hook_active before trying to recover again.

07Add real tests

Use deterministic tests that catch regressions outside the chat transcript.

08Require CI

Rerun the same gates after the agent leaves the local session.

09Scan secrets

Block credential-file access locally and enable provider push protection.

10Add CODEOWNERS

Route auth, billing, infra, migrations, and release code to humans.

11Persist traces

Write agent tool payloads to an inspectable trace log.

12Checkpoint long runs

Require handoff state before compaction or risky continuation.

13Limit write scope

Declare writable directories for each task; unknown areas stay read-only.

14Document seams

Spell out architecture boundaries and invariants agents must not cross.

15Fence tools

Declare MCP servers and tool permissions instead of relying on local drift.

16Use sub-agents

Keep research noise out of the actor context; return only condensed answers.

17Block dependency jumps

Require approval for lockfile rewrites, major upgrades, and new services.

18Observe deploys

Use /loop for active polling and durable schedulers for unattended checks.

19Write rollback notes

Every risky PR gets revert, migration, and feature-flag instructions.

20Re-score after PRs

Protection is a habit: run the score again and turn warnings into issues.

Copy the protection issue

repo-protection-issue.md
## Make this repo agent-proof

- [ ] Install harn and run /harn:init
- [ ] Add or tighten AGENTS.md / CLAUDE.md
- [ ] Block destructive shell and pipe-to-shell commands
- [ ] Protect main/master with branch rules and required checks
- [ ] Add Stop-hook quality gate for the real project health command
- [ ] Ensure Stop hooks check stop_hook_active
- [ ] Add or strengthen tests
- [ ] Require CI to run the same checks
- [ ] Enable secret scanning / push protection
- [ ] Add CODEOWNERS for sensitive paths
- [ ] Persist agent trace logs
- [ ] Add checkpoint/handoff policy for long sessions
- [ ] Define writable directories per task
- [ ] Document architecture boundaries
- [ ] Declare MCP/tool permissions explicitly
- [ ] Use sub-agents for research-heavy work
- [ ] Require approval for dependency and lockfile jumps
- [ ] Monitor deploys with /loop or durable scheduled checks
- [ ] Add rollback notes to risky PRs
- [ ] Re-score with harn after changes

Generated content for pSEO

Each repo page has stable, crawlable copy about the repository's agent-readiness profile, common failure modes, and a concrete hardening backlog.

Control

Does the repo tell an AI coding agent what good work means? We look for AGENTS.md, CLAUDE.md, static sensors, tests, and architecture constraints.

Agency

Does the repo bound what the model can do? We look for Claude settings, MCP/tool declarations, delegation patterns, and explicit permission boundaries.

Runtime

Does the repo mechanically catch broken behavior? We look for lifecycle hooks, CI, trace/checkpoint state, and Stop-hook loop prevention.