codex-autoresearch
AGENTS.md832 starsChanged 6 months agoApache-2.0View on GitHub
Read the smallest relevant owner before changing a contract: Do not maintain a second command list, module inventory, operator runbook, or release procedure here. A disagreement between code, tests, workflows, skill, docs, terminal output, and dashboard is drift to resolve, not permission to choose the convenient version.
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,773 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.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
28 rules. About 1 is common, 19 are distinctive, and 8 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
8
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 8
Before running Git, installs, builds, tests, release work, or Autoresearch commands, identify the owning repository, package root, and …
- Distinctive: line 9
Start mutation work with git status --short --branch.
- Distinctive: line 11
Use the repository checkout when changing Autoresearch itself.
- Distinctive: line 15
Read the smallest relevant owner before changing a contract:
- Distinctive: line 30
Do not maintain a second command list, module inventory, operator runbook, or release procedure here.
- Distinctive: line 51
If the same bug class occurs twice, add a narrow regression test or product gate instead of another cautionary paragraph.
- Distinctive: line 68
Use live help for advanced and maintainer commands instead of copying their inventory into documentation.
- Distinctive: line 72
Keep the root README.md and ordinary topic docs written for people using the plugin.
- Distinctive: line 73
Update the skill when Codex operator behavior changes.
- Distinctive: line 74
Update the nearest topic doc when workflow, trust, architecture, dashboard, finalization, packaging, or release behavior changes.
- Very specific: line 75
Update root CHANGELOG.md for user-facing behavior, documentation, skill, command-surface, dashboard, migration, or version changes.
- Very specific: line 77
Update plugins/codex-autoresearch/scripts/operator-task-benchmark.ts and its tests when a bounded externally observed operator contract …
- Distinctive: line 78
Do not add tests that pin editorial prose.
- Distinctive: line 79
Prefer replacing stale guidance over appending a second version.
- Distinctive: line 83
After dashboard source, view-model, copy, layout, or visual changes, rebuild and inspect a served or exported dashboard.
- Very specific: line 84
Keep review exports, screenshots, and generated bundles under ignored tmp/ paths.
- Very specific: line 85
Update plugins/codex-autoresearch/assets/showcase/dashboard-demo.png only when the maintained public showcase should intentionally reflect …
- Very specific: line 86
Do not reintroduce tracked demo HTML or plugins/codex-autoresearch/assets/dashboard-build/.
- Distinctive: line 87
Verify that dashboard and terminal surfaces agree on the canonical decision, blocker, command, runtime provenance, and finalization state.
- Very specific: line 93
Use focused package scripts while iterating.
- Very specific: line 103
Run npm run test:dashboard:cross-browser for release-critical layout, interaction, accessibility, or browser-compatibility changes.
- Distinctive: line 107
If a required check cannot run, report exactly what was skipped and why.
- Distinctive: line 111
Keep diffs focused. Avoid drive-by cleanup, unrelated renames, and style churn.
- Distinctive: line 112
Never overwrite, revert, or clean user changes unless explicitly asked.
- Distinctive: line 113
Do not use destructive Git commands without explicit authorization.
- Distinctive: line 117
Do not push release tags manually.
- Distinctive: line 119
Before claiming a release is live, inspect the workflow result, GitHub release and tag, packaged artifact, provenance evidence, and …
- Common: line 120
Do not commit secrets, credentials, generated caches, private logs, or unrelated experiment artifacts.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Purpose And Scope
- Optimize for evidence, resumability, and small reviewable diffs.
- This file is the repository-maintainer contract. It is not the Autoresearch operator manual, a command inventory, or a detailed architecture index.
- The repository root is a wrapper. The product package is
plugins/codex-autoresearch. - Before running Git, installs, builds, tests, release work, or Autoresearch commands, identify the owning repository, package root, and target
--cwd. - Start mutation work with
git status --short --branch. Preserve unrelated changes and do not broaden cleanup to make the tree convenient. - Package scripts live in
plugins/codex-autoresearch/package.json; root npm commands are not product evidence unless root scripts are added later. - Use the repository checkout when changing Autoresearch itself. Treat source behavior and installed-plugin behavior as different until their version and built-entrypoint fingerprint agree.
Canonical Sources
Read the smallest relevant owner before changing a contract:
| Question | Canonical source |
| Public promise, installation, and first run | root README.md |
| Codex operator behavior | plugins/codex-autoresearch/skills/codex-autoresearch/SKILL.md and its relevant reference |
| Documentation audiences and invariant product facts | plugins/codex-autoresearch/docs/STYLE.md |
| Implementation ownership and package shape | plugins/codex-autoresearch/docs/architecture.md |
| Shared CLI, report, and dashboard decisions | plugins/codex-autoresearch/docs/control-plane.md |
| Development, checks, packaging, and release | plugins/codex-autoresearch/docs/maintainers.md |
| Command names, arguments, policies, help, handlers, and compatibility | plugins/codex-autoresearch/lib/command-table.ts |
| User-facing release history | root CHANGELOG.md |
| Executable package commands | plugins/codex-autoresearch/package.json |
| Release and branch behavior | .github/workflows/ |
Do not maintain a second command list, module inventory, operator runbook, or release procedure here. A disagreement between code, tests, workflows, skill, docs, terminal output, and dashboard is drift to resolve, not permission to choose the convenient version.
Stable Product Boundaries
- The product is a private Codex marketplace plugin with a CLI and one Codex skill. Do not restore retired subskills, slash-command documentation, MCP launchers, or a default MCP server without an explicit product-direction change and corresponding migration work.
- The dashboard is a read-only projection. Setup, packet execution, logging, gap mutation, export, and finalization remain CLI-owned.
- State, doctor, terminal reports,
recommend-next, dashboard, and finalization must project one validatedresolvedDecision. Consumers must not independently rederive the blocker or next action. plugins/codex-autoresearch/lib/command-table.tsis the one-edit authority for public command identity and policy. Do not add commands independently to help, schemas, handlers, compatibility facades, or dashboard safety.- Preserve the evidence invariants named in
plugins/codex-autoresearch/docs/STYLE.md: finite metric rules, no invented sentinel metrics,measureis not a keep,quality_gap=0is round-local, and ordinary finalization uses accepted current keeps. finalize-current-treeis an exceptional recovery contract. Use it only when canonical state routes there; review the exact clean non-session branch diff and plan before mutation.- Malformed, stale, missing, or unproven evidence remains unknown or blocking. Do not coerce it into success.
- Respect session locks, pending transaction receipts, process-lifecycle blockers, protected paths, and configured Git scope. Do not bypass them because the intended result appears obvious.
- Benchmark and checks commands are not sandboxed. Packet environments remain minimal by default, working directories stay within
--cwdunless explicitly authorized, and secrets must stay out of command lines and output.
Source And Package Boundaries
- Authored runtime behavior lives in TypeScript under
plugins/codex-autoresearch/lib/andplugins/codex-autoresearch/scripts/. Keep public.mjslaunchers small; edit standalone.mjsutilities only when they intentionally have no TypeScript owner. plugins/codex-autoresearch/dashboard/src/is the dashboard UI source.plugins/codex-autoresearch/dist/andplugins/codex-autoresearch/assets/dashboard-build/are generated and ignored in source but required in release artifacts. Do not hand-edit or commit them.- A source launcher may rebuild local source when dependencies are present or hydrate the matching released runtime when they are not. A successful launcher probe alone is not evidence that unbuilt source edits are active.
- Changes to package
files, public launchers, built entrypoints, or dashboard runtime assets must keep package contents, bootstrap archive validation, hydration behavior, and pack-and-extract smoke synchronized. - If the same bug class occurs twice, add a narrow regression test or product gate instead of another cautionary paragraph.
Local Routing
From the wrapper root:
node plugins/codex-autoresearch/scripts/autoresearch.mjs --helpFrom the package root:
node scripts/autoresearch.mjs --help
node scripts/autoresearch.mjs --help --allUse live help for advanced and maintainer commands instead of copying their inventory into documentation. When testing authored source, ensure dependencies are installed and build the relevant runtime before treating launcher output as source evidence.
Change Synchronization
- Keep the root
README.mdand ordinary topic docs written for people using the plugin. Do not put Codex self-instructions or contributor checklists there. - Update the skill when Codex operator behavior changes.
- Update the nearest topic doc when workflow, trust, architecture, dashboard, finalization, packaging, or release behavior changes.
- Update root
CHANGELOG.mdfor user-facing behavior, documentation, skill, command-surface, dashboard, migration, or version changes. Removed invocation surfaces need migration guidance. - For command changes, edit
plugins/codex-autoresearch/lib/command-table.ts, the focused implementation, and schema-driven parity tests. Compatibility commands require an exact migration error, replacement, and removal date. - Update
plugins/codex-autoresearch/scripts/operator-task-benchmark.tsand its tests when a bounded externally observed operator contract changes; its.mjscounterpart remains a launcher. - Do not add tests that pin editorial prose. Test stable identifiers, structure, links, package contents, schemas, and behavior.
- Prefer replacing stale guidance over appending a second version.
Dashboard Work
- After dashboard source, view-model, copy, layout, or visual changes, rebuild and inspect a served or exported dashboard.
- Keep review exports, screenshots, and generated bundles under ignored
tmp/paths. - Update
plugins/codex-autoresearch/assets/showcase/dashboard-demo.pngonly when the maintained public showcase should intentionally reflect the change. - Do not reintroduce tracked demo HTML or
plugins/codex-autoresearch/assets/dashboard-build/. - Verify that dashboard and terminal surfaces agree on the canonical decision, blocker, command, runtime provenance, and finalization state.
Verification
Node.js 24 or newer is the supported development floor.
Use focused package scripts while iterating. Before claiming product, skill, README, or package-documentation work complete, run from plugins/codex-autoresearch:
npm run check
git diff --checkAdditional evidence requirements:
- Dashboard-visible changes require served or exported visual inspection and
npm run test:dashboard:browser. - Run
npm run test:dashboard:cross-browserfor release-critical layout, interaction, accessibility, or browser-compatibility changes. These real-browser gates are separate fromnpm run check. - Packaging and release changes require packed-artifact inspection, extracted-launcher smoke, and source-shaped hydration coverage when affected.
- Workflow changes require
node .github/scripts/check-workflow-policy.mjs; external actions remain pinned to full commit SHAs. - An
AGENTS.md-only change requires rendered Markdown inspection andgit diff --check. - If a required check cannot run, report exactly what was skipped and why.
Git And Release Work
- Keep diffs focused. Avoid drive-by cleanup, unrelated renames, and style churn.
- Never overwrite, revert, or clean user changes unless explicitly asked.
- Do not use destructive Git commands without explicit authorization.
- Inspect the active branch and remotes before finalization, push, PR, or release claims.
- Repository policy permits PRs into
mainonly from the same repository'sdevbranch. - Synchronize version changes across
plugins/codex-autoresearch/package.json, bothplugins/codex-autoresearch/package-lock.jsonversion fields,plugins/codex-autoresearch/.codex-plugin/plugin.json, rootCHANGELOG.md, and intentional version assertions. - Do not push release tags manually.
- A synchronized stable version bump landing on
maintriggers Auto Release. Manual release dispatch is a recovery path. - Before claiming a release is live, inspect the workflow result, GitHub release and tag, packaged artifact, provenance evidence, and installed runtime when relevant.
- Do not commit secrets, credentials, generated caches, private logs, or unrelated experiment artifacts.
Handoff
Final reports after changes must state:
- what changed and where
- what evidence or behavior motivated it
- what was verified
- what was skipped
- any remaining risk, runtime drift, or release-state assumption
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.

