Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/t-rav/hydraflow/claude-mdgit clone --depth 1 https://github.com/T-rav/hydraflowWrote 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/instructions/t-rav/hydraflow/claude-md)<a href="https://agentmods.dev/instructions/t-rav/hydraflow/claude-md"><img src="https://agentmods.dev/badge/instructions/t-rav/hydraflow/claude-md.svg" alt="Measured on agentmods" 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 | $0.03108 | $0.03108 |
| Opus 5 | $0.01554 | $0.01554 |
| Sonnet 5 | $0.00622 | $0.00622 |
| Haiku 4.5 | $0.00311 | $0.00311 |
Grade A, and why
hydraflow CLAUDE.md 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
HydraFlow — Intent in. Software out. A multi-agent orchestration system that automates the full GitHub issue lifecycle via git issues and labels.
This file is a table of contents. Operational knowledge lives in the wiki at docs/wiki/; architectural decisions live at docs/adr/. Look up the relevant entry — do not try to hold all of it in context.
Quick rules (always apply)
- Never commit to
main. The branch is protected; all changes go through a worktree branch and a pull request. No exceptions, not even for one-line fixes. Look up "Worktree" indocs/wiki/gotchas.md. Create worktrees withscripts/hf_worktree.sh<name> <branch>(ormake worktree DIR=<name> BRANCH=<branch>) — never a baregit worktree add. A bare<name>is created under the agent worktree root (HYDRAFLOW_AGENT_WORKTREE_ROOT, default<repo>/.claude/worktrees) soWorkspaceGCLoopcan reap it; a value containing/is honoured verbatim. The script echoes the resolved absolute path as its final stdout line —cdto that, not to the name you passed:wt="$(scripts/hf_worktree.sh mywork my/branch | tail -1)" && cd "$wt". Before #11729 the creator took<dir>verbatim while the collector swept a hardcoded list, and 47 of 100 worktrees (37 GB) were unreachable. Reason for the helper: when the directory already exists,addfails but a chainedcd/mergestill runs against the stale branch (#11501). - PRs target
staging, notmain(per ADR-0042, active whenHYDRAFLOW_STAGING_ENABLED=true).mainonly advances via auto-promotedrc/YYYY-MM-DD-HHMMPRs cut byStagingPromotionLoopeveryrc_cadence_hours(default 4h). Default for new PRs:gh pr create --base staging. Only RC promotion PRs use--base main. Check the active default:python -c "from config import HydraFlowConfig; print(HydraFlowConfig().base_branch())". - Never use
git commit --no-verifyor--no-hooks. Fix code issues first. - Always run
make qualitybefore declaring work complete. Look up "Quality" indocs/wiki/patterns.md. - Always write unit tests before committing. See
docs/wiki/testing.md. - Load-bearing features ship the full test pyramid: unit + MockWorld scenario + sandbox e2e. Skipping a layer is a procedural failure, not a judgment call — see
docs/standards/testing/README.md. Unit tests are blind to real-API behavior; MockWorld scenarios catch loop integration; sandbox e2e catches docker/UI/wiring. Don't ship a feature where any layer is "too small to need it." - Always read
docs/wiki/gotchas.mdbefore editing Pydantic models, test imports, or mocks — recurring mistakes live there. - Look at the System Map before exploring code blind. The Functional Area Map shows what every loop and Port belongs to; click through to ADRs from there.
- Always verify subagent DONE claims with
git status --porcelainandgit log -1 --stat. Subagents sometimes report DONE with edits applied but not committed. - Always verify branch identity after creating a worktree — run
git rev-parse --abbrev-ref HEADinside it before editing or merging. Same class as verifying subagent DONE claims: never trust that a step did what it said. A reused worktree directory name silently lands you on the wrong branch (#11501). - Subprocess-spawning runners MUST call
reraise_on_credit_or_bug(exc)in their broadexceptblock. Without it,CreditExhaustedErroris silently eaten and the loop burns attempt budget against an exhausted billing signal. Seedocs/wiki/dark-factory.md§2.2. - For substantial features, plan for 2–3 fresh-eyes review iterations before merge. Convergence = next pass finds nothing material. See
docs/wiki/dark-factory.md§3. - Run a code review after every PR you create, not only substantial features. Standard workflow: build → quality → PR → review → merge. After
gh pr create, run a fresh-eyes pass (feature-dev:code-reviewer,code-quality-enforcer, or the/code-reviewskill) on the branch diff and fix findings before enabling auto-merge./code-review ultrais user-triggered and billed — use an inline review agent instead. Seedocs/wiki/memory-feedback/feedback-code-review-after-each-pr.md. - Act on tractable + reversible fixes; ask only on high-blast-radius work. Running
make arch-regenand pushing on a stale-artifacts CI fail, retargeting a PR's base branch when a ruleset change broke the merge target, addingSkip-ADR:for implementation-level touchpoints, filinghydraflow-findissues for recurring patterns — these are factory work, not permission gates. Bottlenecking on the human is the bottleneck the factory exists to remove. Force-push tomain, deletion, data drops, repo permissions still need explicit consent. Full directive + classification table indocs/standards/factory_autonomy/README.md. - Code-cleanup PRs (defensive-guard removal, dead-code drops) MUST be verified with full
make quality, not file-targeted test subsets. PR #8460 over-prunedgetattr(self, "_X", None)checks where_Xwas set conditionally in subclasses or__new__-bypassed test scaffolding; the implementer ran 211 tests in three targeted files (all green) and shipped — buttests/test_audit_prompts.pyandtests/test_repo_wiki_loop_pr.pyhad 7 failures the subset missed. Hotfix PR #8463 followed. Cleanup work has higher blast radius than its diff suggests. - A finding whose needle is a pattern (regex/AST shape recurring at multiple sites) sweeps all sites and files ONE class issue, folding later siblings into it — never one issue per site. Run
python scripts/find_class_check.py --check --source ... --needle ... --title ...before filing (see.claude/commands/hf.issue.mdPhase 3); the matching engine issrc/find_class_key.py. Board-growth analysis found three defect families each spawning 3-4 sibling issues for one class (#11292) before this existed.
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.
- 4d ago First seen · 76 lines · 3,108 tokens per session scan A 4482e6514f23
hydraflow CLAUDE.md is an instructions file published in the GitHub repository T-rav/hydraflow (5 stars, last pushed today), licensed Apache-2.0. It adds 3,108 tokens to every session, about $0.0155 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-31.
Other instructions, from other repositories
skills CLAUDE.md
Instructions for jsmastery-pro/skills, covering project: engineering workflow skills, conventions every skill follows, layout and skills.
lead-dev-os CLAUDE.md
Instructions for CaptainMe-AI/lead-dev-os, covering claude.md, project, terminology, plugin architecture and repository structure.
shanraisshan CLAUDE.md
Claude Code instructions for shanraisshan/shanraisshan, covering claude.md, what this repo is, key files, badge formatting rules and reddit views (badges at >= 50k).
jrag CLAUDE.md
Claude Code instructions for HumanBean17/jrag, covering jrag, python environment, tests, docs and shipped artifacts.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.