agentleFS
geekjourneyxgeekjourneyx/industry-research/AGENTS.md

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.

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
  1. Very specific:

    Every researcher run workspace must contain:

    line 49
  2. Distinctive:

    Every release must complete all of the following before publishing:

    line 102
  3. Distinctive:

    Keep the wording clear for humans and suitable for GitHub SEO/GEO discovery.

    line 107
  4. Very specific:

    Update CHANGELOG.md for the release.

    line 109
  5. Distinctive:

    Create a version tag only after documentation, changelog, tests, and binary build checks pass.

    line 116
  6. Distinctive:

    Do not publish a release from an unverified working tree.

    line 121
  7. Distinctive:

    Do not treat GitHub Releases as a manual upload step only.

    line 123
  8. Very specific:

    Do not use ~/.researcher/config.yaml.

    line 127
  9. Common:

    Use environment variables for secrets:

    line 135
  10. Distinctive:

    When evidence is thin or an agent/tool fails:

    line 152
  11. Distinctive:

    Keep unresolved questions visible in the final report.

    line 157

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

ComponentPathRole
Skill entrySKILL.mdCodex-facing orchestration contract
CLIresearcher/Builds workspaces, provider calls, trace planning, evidence ledger, confidence, validation
Engagement Manageragents/engagement-manager.mdReviews claim graph and trace plan
Blue Teamagents/blue-team.mdReviews support evidence and upside thesis
Red Teamagents/red-team.mdSearches for missing traces, conflicts, and over-claimed evidence
Chief Arbitratoragents/chief-arbitrator.mdChecks consistency among confidence, evidence, and final report
Validatorscripts/validate_report.pyValidates report shape and researcher workspace artifacts

Primary Flow

  1. User asks for /industry-research or an equivalent industry research task.
  2. SKILL.md determines language, depth, and domain.
  3. The skill calls:
researcher run "<question>" --domain <domain> --depth <brief|standard|comprehensive> --workspace-root <workspace_root>
  1. researcher creates a workspace and writes required artifacts.
  2. Agents review the artifacts and challenge weak conclusions.
  3. The final answer reports confidence limits, unsupported claims, and next verification steps.

Required Workspace Artifacts

Every researcher run workspace must contain:

  • question.json
  • research_plan.json
  • claim_graph.json
  • trace_plan.json
  • retrieval_log.json
  • evidence_ledger.json
  • disconfirmation_log.json
  • confidence_report.json
  • final_report.md
  • report_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

DepthTarget lengthUse case
brief~3,000 charsQuick decisions, internal alignment
standard~8,000 charsInvestment decisions, strategy work
comprehensive~15,000 charsDue diligence, board materials

Validation & Testing

CLI checks:

cd researcher
make fmt
make vet
make test
make build

Workspace 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-chain

The 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:

  1. Documentation check and calibration:
    • Review root README.md and researcher/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.
  2. Changelog update:
    • Update CHANGELOG.md for the release.
    • The changelog entry must include the release version, date, user-facing changes, and any breaking changes or migration notes.
  3. Binary build:
    • Compile researcher release binaries before creating the release.
    • At minimum cover macOS, Linux, and Windows for amd64; include arm64 where supported.
    • Generate checksums for release artifacts.
  4. Git tag:
    • Create a version tag only after documentation, changelog, tests, and binary build checks pass.
    • The tag must match the researcher/VERSION value.
  5. 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:

  1. --config <path>
  2. RESEARCHER_CONFIG
  3. ~/.config/researcher/config.yaml

Use environment variables for secrets:

  • BOCHA_API_KEY
  • ARK_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 = degraded in metadata.
  • Append a specific degradation_tags value.
  • 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.