agentleFS
NomaDamasNomaDamas/AutoRAG-Research/.codex/AGENTS.md

AutoRAG-Research

AGENTS.md149 starsChanged 8 months agoApache-2.0View on GitHub

This document defines how the main Codex agent orchestrates specialized sub-agents for multi-step workflows. Each workflow has mandatory human checkpoints where the user must approve before proceeding. When asked to implement a new RAG pipeline from a research paper: When asked to ingest a new dataset into AutoRAG-Research:

The file

We split this AGENTS.md into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When asked to implement a new RAG pipeline from a research paper:

    line 7
  2. Distinctive:

    If the user requests changes, re-invoke the agent with feedback.

    line 20
  3. Very specific:

    Write a config YAML in configs/ for the new pipeline.

    line 40
  4. Very specific:

    When asked to ingest a new dataset into AutoRAG-Research:

    line 57
  5. Very specific:

    Output: Test file in tests/autorag_research/data/

    line 75
  6. Distinctive:

    Human checkpoints are mandatory: - Never skip approval steps.

    line 95
  7. Very specific:

    Intermediate files are local only: - Never commit Pipeline_Analysis.json, Pipeline_Design.md, Source_Data_Profile.json, or …

    line 97
  8. Distinctive:

    Loop on changes: - Keep revising until the user approves.

    line 98

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

AutoRAG-Research Agent Workflows

This document defines how the main Codex agent orchestrates specialized sub-agents for multi-step workflows. Each workflow has mandatory human checkpoints where the user must approve before proceeding.

Pipeline Implementation Workflow

When asked to implement a new RAG pipeline from a research paper:

Phase 1: Paper Analysis

Spawn pipeline-paper-analyst agent with the paper URL/path.

  • Input: Research paper (arxiv link, PDF path, or URL)
  • Output: Pipeline_Analysis.json in project root
  • Present a summary of the extracted algorithm to the user.

Phase 2: Architecture Design (HUMAN CHECKPOINT)

Spawn pipeline-architecture-mapper agent.

  • Input: Pipeline_Analysis.json
  • Output: Pipeline_Design.md in project root
  • Present the design to the user. Wait for explicit approval before proceeding.
  • If the user requests changes, re-invoke the agent with feedback.

Phase 3: Test Writing - TDD (HUMAN CHECKPOINT)

Spawn pipeline-test-writer agent.

  • Input: Approved Pipeline_Design.md
  • Output: tests/autorag_research/pipelines/[type]/test_[name]_pipeline.py
  • Present the tests to the user. Wait for explicit approval before proceeding.

Phase 4: Implementation

Spawn pipeline-implementer agent.

  • Input: Approved test file + Pipeline_Design.md
  • Output: Pipeline class, config dataclass, __init__.py exports

Phase 5: Validation (HUMAN CHECKPOINT)

Spawn pipeline-validator agent.

  • Verify against: ai_instructions/pipeline_checklist.md (all sections must pass)
  • Output: Validation report (test results + make check results + checklist status)
  • Present results to the user. Wait for approval before committing.

Phase 6: Wrap Up

  • Write a config YAML in configs/ for the new pipeline.
  • Remind user to delete intermediate files (Pipeline_Analysis.json, Pipeline_Design.md).

Quick Reference

PhaseAgentOutputHuman Checkpoint
1pipeline-paper-analystPipeline_Analysis.jsonNo (summary shown)
2pipeline-architecture-mapperPipeline_Design.mdYES
3pipeline-test-writertest_[name]_pipeline.pyYES
4pipeline-implementer[name].py + configNo
5pipeline-validatorValidation reportYES

Data Ingestor Workflow

When asked to ingest a new dataset into AutoRAG-Research:

Phase 1: Dataset Inspection

Spawn dataset-inspector agent with the dataset name/URL.

  • Input: HuggingFace dataset identifier or URL
  • Output: Source_Data_Profile.json in project root
  • Present a summary of the dataset structure to the user.

Phase 2: Schema Design (HUMAN CHECKPOINT)

Spawn schema-architect agent.

  • Input: Source_Data_Profile.json + ai_instructions/db_schema.md
  • Output: Mapping_Strategy.md in project root
  • Present the mapping strategy to the user. Wait for explicit approval.
  • If the user requests changes, re-invoke the agent with feedback.

Phase 3: Test Writing

Spawn test-writer agent.

  • Input: Approved Mapping_Strategy.md
  • Output: Test file in tests/autorag_research/data/

Phase 4: Implementation

Spawn implementation-specialist agent.

  • Input: Mapping_Strategy.md + test file
  • Output: Ingestor class in autorag_research/data/

Quick Reference

PhaseAgentOutputHuman Checkpoint
1dataset-inspectorSource_Data_Profile.jsonNo (summary shown)
2schema-architectMapping_Strategy.mdYES
3test-writertest fileNo
4implementation-specialistingestor classNo

Critical Rules

  1. Human checkpoints are mandatory - Never skip approval steps.
  2. TDD approach - Tests are always written BEFORE implementation.
  3. Intermediate files are local only - Never commit Pipeline_Analysis.json, Pipeline_Design.md, Source_Data_Profile.json, or Mapping_Strategy.md.
  4. Loop on changes - Keep revising until the user approves.
  5. Sequential phases - Each phase depends on the previous one completing successfully.

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.