Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add Redtropig/harness-anchor/plugin install harness-anchorWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/redtropig/harness-anchor/index-project)<a href="https://agentmods.dev/commands/redtropig/harness-anchor/index-project"><img src="https://agentmods.dev/badge/commands/redtropig/harness-anchor/index-project/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/redtropig/harness-anchor/index-project"><img src="https://agentmods.dev/badge/commands/redtropig/harness-anchor/index-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00027 | $0.00552 |
| Opus 5 | $0.00014 | $0.00276 |
| Sonnet 5 | $0.00005 | $0.00110 |
| Haiku 4.5 | $0.00003 | $0.00055 |
Grade A, and why
index-project scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
/index-project
Rebuild the project's PROJECT-TOC.md index by scanning git-tracked files and extracting a one-line summary per file.
Steps
-
Verify git repo. If not in a git working tree, error out: "PROJECT-TOC.md requires a git repository. Run
git initfirst." -
Run index-builder.
node ${CLAUDE_PLUGIN_ROOT}/scripts/index-builder.mjs --target "$(pwd)"The script:
- Reads
git ls-filesfor tracked text files - Skips binaries (magic-byte heuristic) and files >100KB
- Skips
PROJECT-TOC.mditself,.harness-anchor/, common build dirs - Extracts a one-line summary per file (first non-empty comment/docstring/first line of content, truncated to 80 chars)
- Emits a
## Directory map(one line per directory — direct-file + subdir counts) above## Files: the "forest" view the SessionStart hook injects for large repos - Preserves the existing
## Decisionssection (human-edited) - Writes header
<!-- generated-at-commit: <current HEAD SHA> -->
- Reads
-
Report diff. Run
git diff PROJECT-TOC.mdand summarize: N files added / M removed / K summaries updated. -
Suggest commit. Tell the user: "Run
git add PROJECT-TOC.md && git commit -m 'chore: refresh project index'when ready." Do not auto-commit.
When PROJECT-TOC.md doesn't exist yet
If the file is missing, the script bootstraps it from templates/PROJECT-TOC.md.tpl. The user can run /anchor first for a cleaner scaffold; /index-project will work either way.
Performance
For a 10k-file repo, expect ~2-3 seconds. If it exceeds 10 seconds, the script will warn — likely indicating bloat (auto-generated files committed) that should be .gitignored.
When NOT to run
- Mid-feature, when you've only changed 1-2 files (the SessionStart hook will surface the stale-TOC warning; you can ignore it for short sessions and regenerate at
/session-end). - In CI (use a dedicated CI workflow if needed).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 45 lines · 27 tokens per session scan A 9a785062ac35
index-project is a command published in the GitHub repository Redtropig/harness-anchor (13 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 552 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
create-pr
Creates GitHub pull requests with pre-flight validation, conventional title formatting, and structured summary generation. Runs parallel checks (tests, lint, type-check, security) before opening. Supports feature, bugfix, refactor, and hotfix PR types with milestone assignment via gh CLI. Invoke only if the operator…
fix-issue
Fixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to…
swarm-migrate
Cross-repo migration swarm — one coordinator + N parallel subagents (one per target repo) that apply the same transformation, open PRs, wait for CI, and report back to a shared JSON ledger. Coordinator handles topology, conflict auto-rebase, and stop-on-novel-failure. Use when bumping a shared dependency, rolling out…
commit
Run when user calls /commit or asks to generate a commit message. Analyzes staged changes and writes a structured commit message.
commit
Creates commits with Conventional Commits format (feat/fix/docs/refactor/test/chore), automatic scope detection, co-author attribution, and pre-commit hook compliance. Validates staged changes, generates descriptive messages focusing on the 'why', and prevents secrets or generated-only files from being committed.…
design-ship
One-shot pipeline turning a claude.ai/design link into a pull request: scaffold via /ork:design-import, stories and specs via /ork:cover, browser verification via /ork:expect, then open the PR. Use when a design link should come back as a PR with no intermediate steps; if all you need is the components written to…