industry-research
AGENTS.md19 starsChanged 6 months agoMITView on GitHub
This file guides Codex work in this repository. This repository contains a Codex skill and a Go CLI for industry research. The system takes a fuzzy industry, sector, company, or business-opportunity question and turns it into a structured research workspace and report. The core quality standard is evidence discipline: search results and model answers are only leads until they are verified against sources, operating traces, or cross-source checks. The specialized restaurant, retail, supply-chain, and chain-brand path uses operating-trace verification instead…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 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 repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- industry-researchSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 1 is common, 7 are distinctive, and 3 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 49
Every researcher run workspace must contain:
- Distinctive: line 102
Every release must complete all of the following before publishing:
- Distinctive: line 107
Keep the wording clear for humans and suitable for GitHub SEO/GEO discovery.
- Very specific: line 109
Update CHANGELOG.md for the release.
- Distinctive: line 116
Create a version tag only after documentation, changelog, tests, and binary build checks pass.
- Distinctive: line 121
Do not publish a release from an unverified working tree.
- Distinctive: line 123
Do not treat GitHub Releases as a manual upload step only.
- Very specific: line 127
Do not use ~/.researcher/config.yaml.
- Common: line 135
Use environment variables for secrets:
- Distinctive: line 152
When evidence is thin or an agent/tool fails:
- Distinctive: line 157
Keep unresolved questions visible in the final report.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
This file guides Codex work in this repository.
What This Is
This repository contains a Codex skill and a Go CLI for industry research.
The system takes a fuzzy industry, sector, company, or business-opportunity question and turns it into a structured research workspace and report. The core quality standard is evidence discipline: search results and model answers are only leads until they are verified against sources, operating traces, or cross-source checks.
The specialized restaurant, retail, supply-chain, and chain-brand path uses operating-trace verification instead of narrative-only market analysis.
Current Architecture
The current execution center is researcher, a Go CLI in researcher/.
SKILL.md is still the Codex entry point. It routes the request, chooses depth and domain, calls researcher, then uses the four agent role files as review and challenge layers.
The older pure prompt-only pipeline remains useful as a fallback and review model, but it is no longer the primary architecture.
Main Components
| Component | Path | Role |
| Skill entry | SKILL.md | Codex-facing orchestration contract |
| CLI | researcher/ | Builds workspaces, provider calls, trace planning, evidence ledger, confidence, validation |
| Engagement Manager | agents/engagement-manager.md | Reviews claim graph and trace plan |
| Blue Team | agents/blue-team.md | Reviews support evidence and upside thesis |
| Red Team | agents/red-team.md | Searches for missing traces, conflicts, and over-claimed evidence |
| Chief Arbitrator | agents/chief-arbitrator.md | Checks consistency among confidence, evidence, and final report |
| Validator | scripts/validate_report.py | Validates report shape and researcher workspace artifacts |
Primary Flow
- User asks for
/industry-researchor an equivalent industry research task. SKILL.mddetermines language, depth, and domain.- The skill calls:
researcher run "<question>" --domain <domain> --depth <brief|standard|comprehensive> --workspace-root <workspace_root>researchercreates a workspace and writes required artifacts.- Agents review the artifacts and challenge weak conclusions.
- The final answer reports confidence limits, unsupported claims, and next verification steps.
Required Workspace Artifacts
Every researcher run workspace must contain:
question.jsonresearch_plan.jsonclaim_graph.jsontrace_plan.jsonretrieval_log.jsonevidence_ledger.jsondisconfirmation_log.jsonconfidence_report.jsonfinal_report.mdreport_metadata.json
For restaurant, retail, supply-chain, and chain-brand research, the most important quality files are trace_plan.json, evidence_ledger.json, disconfirmation_log.json, and confidence_report.json.
Report Depths
| Depth | Target length | Use case |
brief | ~3,000 chars | Quick decisions, internal alignment |
standard | ~8,000 chars | Investment decisions, strategy work |
comprehensive | ~15,000 chars | Due diligence, board materials |
Validation & Testing
CLI checks:
cd researcher
make fmt
make vet
make test
make buildWorkspace validation:
researcher validate <workspace_dir>
python3 scripts/validate_report.py --researcher-workspace <workspace_dir>Report validation:
python3 scripts/validate_report.py <workspace_dir>/final_report.md --depth standard
python3 scripts/validate_report.py <workspace_dir>/final_report.md --depth standard --vertical restaurant-retail-supply-chainThe validator checks required sections, citations, confidence mentions, weak synthesis patterns, length ranges, operating-footprint evidence, and required researcher artifacts.
Release Protocol
Every release must complete all of the following before publishing:
- Documentation check and calibration:
- Review root
README.mdandresearcher/README.md. - Confirm installation, usage, release notes, and command examples match the current code.
- Keep the wording clear for humans and suitable for GitHub SEO/GEO discovery.
- Review root
- Changelog update:
- Update
CHANGELOG.mdfor the release. - The changelog entry must include the release version, date, user-facing changes, and any breaking changes or migration notes.
- Update
- Binary build:
- Compile
researcherrelease binaries before creating the release. - At minimum cover macOS, Linux, and Windows for amd64; include arm64 where supported.
- Generate checksums for release artifacts.
- Compile
- Git tag:
- Create a version tag only after documentation, changelog, tests, and binary build checks pass.
- The tag must match the
researcher/VERSIONvalue.
- GitHub release:
- Publish the release from the tag.
- Attach compiled binaries and checksum files.
- Do not publish a release from an unverified working tree.
Do not treat GitHub Releases as a manual upload step only. The preferred path is a GitHub Actions workflow that runs documentation checks, Go checks, binary compilation, checksum generation, and release publishing from a version tag.
Provider Configuration
Do not use ~/.researcher/config.yaml.
Config lookup order:
--config <path>RESEARCHER_CONFIG~/.config/researcher/config.yaml
Use environment variables for secrets:
BOCHA_API_KEYARK_API_KEY
Key References
references/industry-taxonomy.md: industry classification codes.references/analytical-frameworks.md: MECE, PESTLE, Porter's Five Forces, pre-mortem, MAMV.references/restaurant-retail-supply-chain-physics.md: operating physics for restaurant, retail, and supply-chain questions.references/evidence-triangulation-playbook.md: evidence families, triangulation, anomaly attribution.references/evidence-ledger-schema.md: evidence ledger schema and confidence constraints.references/chain-brand-trace-reasoning.md: trace reasoning for chain brands.references/report-template.md: final report structure template.
Degradation Protocol
When evidence is thin or an agent/tool fails:
- Mark
execution_mode = degradedin metadata. - Append a specific
degradation_tagsvalue. - Downgrade unsupported claims instead of writing them as facts.
- Keep unresolved questions visible in the final report.
Language Handling
Output language follows user input language. Chinese input produces Chinese reports; English input produces English reports. All agents should work in the same language as the final report.
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.

