stellar-raven
AGENTS.md9 starsChanged 2 months agoApache-2.0View on GitHub
Canonical repository instructions for Codex, Claude Code, and other coding agents. Keep this file short, current, and operational. Put architecture, research, history, and task runbooks in the linked docs and skills instead of accumulating them here. Human contributors start with CONTRIBUTING.md. This is a Cloudflare Workers MCP server exposing search and execute over Lumenloop, Stellar Light/Scout, Stellar Docs (Algolia), and selected ecosystem skills. Model-authored JavaScript runs in a networkless Dynamic Worker; host adapters own all service traffic, policy, and secrets.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,638 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- audit-reviewabilitySkill
- cloudflare-observability-reviewSkill
- golden-truthSkill
- improvements-pipelineSkill
- live-drift-resolutionSkill
- retrieval-system-auditSkill
- run-evalsSkill
- truth-maintenanceSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 14
Read PLAN.md for current product scope and status, then ARCHITECTURE.md for the implemented request, catalog, scoring, sandbox, and auth …
- Very specific: line 16
Use README.md for connection and local setup, and docs/operations.md for operator procedures.
- Very specific: line 18
Use research/ for dated evidence and design context.
- Very specific: line 22
Use .agents/skills/<name>/SKILL.md for repeatable task workflows.
- Very specific: line 24
Use .agents/TODO.md for the own-repo work queue, priorities, and open owner decisions, and .agents/rounds/ for round ledgers.
- Distinctive: line 43
Run the narrowest relevant eval or maintenance command in addition to the baseline.
- Very specific: line 46
Do not start a second Wrangler process.
- Distinctive: line 101
Effort: Run the gate at high. Escalate to xhigh only for a subtle change, or after a high pass missed a real finding.
- Distinctive: line 111
Forward-only: prefer the best current design.
- Distinctive: line 119
Keep exact-match resolution for skill/tool IDs.
- Very specific: line 121
Secrets stay host-side: never print, commit, or expose credentials to the sandbox.
- Distinctive: line 143
Use the matching skill when the task triggers it.
- Distinctive: line 149
Add durable repo-wide rules here only after recurring friction.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — stellar-raven-codemode
Canonical repository instructions for Codex, Claude Code, and other coding agents. Keep this file
short, current, and operational. Put architecture, research, history, and task runbooks in the
linked docs and skills instead of accumulating them here. Human contributors start with
CONTRIBUTING.md.
Project and source-of-truth map
This is a Cloudflare Workers MCP server exposing search and execute over Lumenloop, Stellar
Light/Scout, Stellar Docs (Algolia), and selected ecosystem skills. Model-authored JavaScript runs
in a networkless Dynamic Worker; host adapters own all service traffic, policy, and secrets.
- Read
PLAN.mdfor current product scope and status, thenARCHITECTURE.mdfor the implemented request, catalog, scoring, sandbox, and auth design. - Use
README.mdfor connection and local setup, anddocs/operations.mdfor operator procedures. - Use
research/for dated evidence and design context; it is not an instruction layer. - This repo is self-contained, including usage collection and reporting under
usage/. Owner-only private folders exist outside the repository;usage/README.mdnames them and their roles. Never depend on them, and never commit production counts here. - Use
.agents/skills/<name>/SKILL.mdfor repeatable task workflows..claude/skillsis the committed symlink to the same canonical directory. - Use
.agents/TODO.mdfor the own-repo work queue, priorities, and open owner decisions, and.agents/rounds/for round ledgers..agents/README.mdsays which note belongs where. CLAUDE.mdimports this file. Do not duplicate shared rules there.
Commands and verification
- Install reproducibly:
npm ci. Thepreparescript installs a pre-commit hook that scans staged files for secrets. - Fresh clone: follow "Run locally" in
README.md.npm run typegenneeds the placeholder.dev.varsfirst; without it,Envhas no secret members andnpm run typecheckfails. - Baseline validation for code changes:
npm run typecheck,npm test, andnpm run build.npm testexcludestest/smoke/**; addnpm run test:smokewhen touchingsrc/executororsrc/demo— it is the only lane exercising those paths against the assembled worker (unit tests import the modules directly; CI always runs both). - CI (
.github/workflows/ci.yml) also runsnpm run eval:selftest,npm run eval:qa:lint -- --stale --enforce-floors,npm run eval:qa:register -- --check,npm run improvements:lint,node scripts/check-pin-review.mjs --base <ref>,npm run eval:routing -- --gate, and a generated-artifact sync check. Run the matching command when you toucheval/,improvements/,catalog/, orecosystem-skills/. - Run the narrowest relevant eval or maintenance command in addition to the baseline; the selected skill defines the exact gate for eval, drift, golden-truth, improvements, and observability work.
- Scan before committing:
npm run secrets:scan -- --tree. - Do not start a second Wrangler process. Reuse the pane that already runs
npm run dev(manual testing) ornpm run dev:eval(eval lanes; seerun-evals), and read its bound URL from that pane's output. - Generated outputs are rebuilt by their
package.jsonscripts, never edited by hand.
Coordination
The owner runs agents under Herdr, and the rules in this section and the next describe that setup. Without Herdr, work in one session. State in the pull request that the independent review is outstanding; the owner runs it.
- Agents, panes, and worktrees run under Herdr. Use the global
herdrskill for the CLI contract; it is the authority on command syntax, lifecycle states, and ID handling. ConfirmHERDR_ENV=1before any control command, and read IDs out of JSON responses rather than predicting them. - Spawn a reviewer or a parallel lane by splitting a pane from your own —
herdr pane split --current --direction <right|down> --cwd "$PWD" --no-focus;--directionis required — thenherdr agent start <name> --kind <codex|grok|claude> --pane <id> -- <cli args>. Name the model and effort explicitly after--. Wait withherdr agent wait <name>orherdr agent prompt … --wait; do not poll. - Pane and agent ownership is recursive: control only the pane you occupy and panes you split yourself. Never close, interrupt, restart, send input to, rename, move, focus, resize, or take over a parent, a sibling, an unrelated pane, or another agent's descendants. Apply the same rule to every sub-agent. Idleness, staleness, a completed handoff, or a request to clean up does not transfer ownership: leave a pane you do not own alone and ask its owning agent to reconcile it. Record the pane IDs you create; unknown provenance means not owned. If the owner is unknown or unavailable, ask the user for an explicit exception naming the exact target; never adopt it.
herdr agent readcannot recover output that scrolled off an alternate screen. For any reviewer whose findings matter, have the agent write them to a Markdown file and reply with only the path.- Durable working state lives in the repository, never in an external tracker. Own-repo work goes
to
.agents/TODO.md; a multi-lane round keeps its ledger at.agents/rounds/<YYYY-MM-DD>-<slug>.md. See.agents/README.mdfor the routing table. - Independent adversarial review is a completion gate when requested: reviewer must differ from author, run to completion, and have every finding reconciled before finalization.
Model routing for repo-work fan-out
Launch fan-out through Herdr panes, one agent per lane. State model and effort explicitly on the
herdr agent start command line. Route by role tier:
- Codex frontier at high — hard implementation, dense analysis, and security review.
- Codex workhorse at high — routine implementation and bounded verification.
- Claude Fable at high — product, API, documentation, and taste.
- Claude Opus at high — the stable Claude fallback.
- Grok at high — vendor-diverse assumption attack.
Reserve max for frontier work or a failed high-effort pass; treat ultra as a separate delegated
topology. .agents/model-roster.md maps each tier to an exact model ID
and launch line. When a CLI catalog changes, update the roster only. Eval answering and judge
models remain separate measurement contracts controlled by run-evals.
Choose the independent reviewer under "Coordination" by tier, not by a fixed model:
- Eligibility. The reviewer differs from the author and from the orchestrator. An orchestrator that is also a candidate reviewer drops out of the pool for that gate.
- Effort. Run the gate at high. Escalate to xhigh only for a subtle change, or after a high pass missed a real finding. Never make xhigh the standing default.
- Selection and fallback. Match the tier to the change: Claude Fable for product, API, and taste; Codex frontier for dense implementation or analysis; Grok for vendor-diverse assumption attack. When that tier is the author, the orchestrator, or unavailable, take the next best match, then Claude Opus at high as the last resort. Record the tier, model, and effort used, and why the matched tier was skipped.
Hard rules
- Forward-only: prefer the best current design; do not add compatibility shims, dual formats, or deprecation paths merely to preserve deployed behavior. Deviations still need evidence.
- The manifest is the exposed surface (ADR-0003). Model code never owns endpoints, arguments,
auth, or exposure. Never emit references to non-exposed operations or retired skills. Two guards
enforce this:
assertNoNonExposedRefsInTextruns inprebuild(viabuild-micro-map.mjs) over emitted text, andassertNoNonExposedRefschecks manifest entries when the catalog is rebuilt (build-catalog.mjs) and on everynpm test.npm run buildalone does NOT rebuild the catalog, so a hand-edited manifest is caught bynpm test/CI rather than by the build. - Keep exact-match resolution for skill/tool IDs. Preserve service distinctions among soft-empty, error, and data responses.
- Secrets stay host-side: never print, commit, or expose credentials to the sandbox;
globalOutboundremainsnull. - The paid Lumenloop research trigger and its account-scoped read operations remain unexposed. Enabling them requires the exposure change, partner-detail persistence, budget gate, and dedup in one reviewed change.
- Partner-tier Lumenloop details are never committed. Inventory keeps name-only stubs and skill sync remains keyless.
- Any paid or side-effecting model operation requires host-side request-context approval, elicitation, and budget enforcement before it can ship.
- Algolia operator credentials are maintenance-only and never a runtime/sandbox surface. Any write
needs a read-only A/B win, a general mechanism rather than per-query hacks, and the guardrails in
docs/stellar-docs.md. - Evals produce evidence-backed upstream findings in
improvements/; scores are instruments, not the final product. - Solo, a retired task tracker, is not a live path. Never add a
solo://reference, a Solo todo, or a Solo scratchpad. Leave existing Solo references in dated records unchanged. - Retired sibling repos must not be referenced as live paths. Retained prior art is read-only under
eval/corpus/; it is also the routing eval's committed label source. The QA battery is owned undereval/qa/corpus/and does not read it.
Task runbooks
Use the matching skill when the task triggers it. Each skill's frontmatter says when.
Repository skills: truth-maintenance, live-drift-resolution, run-evals,
improvements-pipeline, golden-truth, retrieval-system-audit,
cloudflare-observability-review, and audit-reviewability. The global herdr skill owns pane,
agent, and worktree control.
Add durable repo-wide rules here only after recurring friction. Put specialized instructions in the
closest relevant skill or directory-level AGENTS.md.
Definition of done
- The diff is scoped and preserves unrelated work in the dirty tree.
- Proportionate tests and required skill gates pass; failures are reported, not hidden.
- Generated artifacts came from scripts and secrets scanning passed where required.
- Requested independent reviews completed and every finding was reconciled.
- Documentation describes current behavior and links dated research instead of embedding history.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

