agentleFS
Galileo-Agent-LabsGalileo-Agent-Labs/eval-engineer/AGENTS.md

eval-engineer

AGENTS.md42 starsChanged 6 months agoMITView on GitHub

This file is repo-local guidance for Codex, Claude Code, and other coding agents working on Eval Engineer. Keep it short and update it whenever the repo workflow, source-of-truth files, or recurring operating rules change. Eval Engineer is a general Galileo evidence workflow for improving AI agents, RAG apps, and future AI systems. Do not shape the product around the first support-agent fixture. The support-agent cases are validation fixtures, not the skill's scope. The near-term product goal is to reduce time-to-RCA…

  • Reads credentials
  • 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,736 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 repository8 other files it gives its agents.

The file

Show its rules and text

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

27 rules. About 1 is common, 12 are distinctive, and 14 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 14

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Prefer RCA workflows that query log streams, inspect traces/sessions/spans, identify failure patterns, compare behavior over time, and …

    line 16
  2. Distinctive:

    run the AI app

    line 22
  3. Distinctive:

    verify with local and Galileo evidence

    line 27
  4. Distinctive:

    keep only changes that improve measured behavior

    line 28
  5. Distinctive:

    Keep skill distribution skill-first.

    line 46
  6. Very specific:

    Keep SKILL.md general across agents, RAG, workflows, metrics, and providers.

    line 48
  7. Distinctive:

    Keep RCA outputs grounded in trace, span, session, metric, dataset, and experiment evidence.

    line 49
  8. Very specific:

    When logging test-suite cases to Galileo, include the full expected-output contract in dataset_output: expected decision, …

    line 57
  9. Very specific:

    Use skills/eval-engineer/references/rca-recipe.md for generalized diagnose-fix-verify work and update it when a reusable Galileo RCA …

    line 61
  10. Very specific:

    When improving command skills, keep frontmatter descriptions trigger-focused, keep eval-engineer as a narrow router, load references …

    line 64
  11. Very specific:

    Keep detailed Galileo mechanics in skills/eval-engineer/references/.

    line 68
  12. Very specific:

    Keep deterministic helpers in skills/eval-engineer/scripts/.

    line 69
  13. Very specific:

    Do not hardcode TC-1, the Nexus support agent, Brazil, one model, or one metric into the general skill.

    line 70
  14. Distinctive:

    Treat skill frontmatter as routing surface, not documentation.

    line 75
  15. Very specific:

    Keep the router and command skills non-overlapping.

    line 80
  16. Distinctive:

    Before merging, renaming, deleting, or splitting skills, verify the kept copy is present in the canonical source, the Codex and Claude …

    line 89
  17. Distinctive:

    Do not delete ignored or untracked skill directories unless the replacement path is named or the user confirms they are disposable.

    line 94
  18. Very specific:

    Read .galileo/current/ by default.

    line 106
  19. Distinctive:

    After skill changes, run:

    line 111
  20. Common:

    Use live model or Galileo calls only when the task explicitly requires runtime verification.

    line 140
  21. Very specific:

    After installer changes, test the Python CLI and a real uvx install into a throwaway project:

    line 143
  22. Distinctive:

    Keep Linear up to date manually after response completion when task status changes.

    line 155
  23. Distinctive:

    Create Linear issues for new meaningful work.

    line 158
  24. Very specific:

    Keep docs/tasks.md issue IDs aligned with Linear.

    line 161
  25. Very specific:

    Never print .env values. It is okay to list variable names.

    line 173
  26. Very specific:

    Keep generated runs, raw traces, temporary logs, and .omc/ out of git.

    line 174
  27. Distinctive:

    If you discover a new durable workflow rule, repeated mistake, packaging decision, or verification command, update this AGENTS.md in the …

    line 179

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

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

Agent Instructions

This file is repo-local guidance for Codex, Claude Code, and other coding agents working on Eval Engineer. Keep it short and update it whenever the repo workflow, source-of-truth files, or recurring operating rules change.

Project Intent

Eval Engineer is a general Galileo evidence workflow for improving AI agents, RAG apps, and future AI systems. Do not shape the product around the first support-agent fixture. The support-agent cases are validation fixtures, not the skill's scope.

The near-term product goal is to reduce time-to-RCA for agent builders and owners while increasing Galileo discoverability for non-developer personas. Prefer RCA workflows that query log streams, inspect traces/sessions/spans, identify failure patterns, compare behavior over time, and return grounded answers with links or stable IDs back to Galileo data.

The north-star loop is:

  1. run the AI app
  2. log traces and metrics to Galileo
  3. fetch compact evidence
  4. diagnose failure
  5. propose a bounded fix
  6. verify with local and Galileo evidence
  7. keep only changes that improve measured behavior

Read First

  • docs/plan.md: product direction and architecture.
  • docs/tasks.md: current task checklist and Linear issue mapping.
  • docs/progress.md: latest work completed and next move.
  • .galileo/learnings.md: repo-specific durable learnings.
  • blogs/: product thinking; useful for design intent, but do not treat as runtime instructions.

Skill Rules

  • Canonical skill source: skills/eval-engineer/.
  • Codex install link: .agents/skills/eval-engineer.
  • Claude install link: .claude/skills/eval-engineer.
  • Public installer CLI: eval-engineer from pyproject.toml. Keep it runnable through uvx --from git+https://github.com/Galileo-Agent-Labs/eval-engineer.git.
  • Keep skill distribution skill-first. Future Codex and Claude plugins should package the canonical skill source instead of maintaining separate copies.
  • Keep SKILL.md general across agents, RAG, workflows, metrics, and providers.
  • Keep RCA outputs grounded in trace, span, session, metric, dataset, and experiment evidence.
  • For reference fixtures, give each case a risk profile, quality dimensions, and case-specific Galileo metric profile. Do not rely on one global metric list to prove safety, quality, performance, and cost across all cases.
  • Use skills/eval-engineer/references/metric-profile-checklist.md and skills/eval-engineer/assets/metric-profile-template.md before optimizing cost or adding broad fixture coverage.
  • When logging test-suite cases to Galileo, include the full expected-output contract in dataset_output: expected decision, required/forbidden citations, required tools, answer constraints, abstention/permission requirements, risk profile, quality dimensions, and intended metrics.
  • Use skills/eval-engineer/references/rca-recipe.md for generalized diagnose-fix-verify work and update it when a reusable Galileo RCA pattern is discovered.
  • When improving command skills, keep frontmatter descriptions trigger-focused, keep eval-engineer as a narrow router, load references conditionally, and promote recurring Galileo mistakes into focused skill gotchas and validation loops.
  • Keep detailed Galileo mechanics in skills/eval-engineer/references/.
  • Keep deterministic helpers in skills/eval-engineer/scripts/.
  • Do not hardcode TC-1, the Nexus support agent, Brazil, one model, or one metric into the general skill.

Skill Package Hygiene

  • Treat skill frontmatter as routing surface, not documentation. Descriptions should name the user job and evidence objects that should trigger the skill: Galileo URLs, traces, sessions, log streams, metrics, datasets, experiments, tokenomics, RCA, audit, setup, and measurement. Compact wording is good only when these trigger nouns survive.
  • Keep the router and command skills non-overlapping. eval-engineer routes and reports workspace status; eval-fetch retrieves evidence; eval-diagnose performs RCA; eval-measure defines metric contracts; eval-dataset turns failures into cases; eval-cost handles tokenomics; eval-audit reviews risk and launch readiness; and so on.
  • Budget SKILL.md for the workflow an agent must follow after the skill triggers. Move Galileo API mechanics, schemas, long examples, and edge-case notes to references/; move repeatable parsing, summarizing, and comparison work to scripts/.
  • Before merging, renaming, deleting, or splitting skills, verify the kept copy is present in the canonical source, the Codex and Claude install links, and the installer bundle. Check current usage evidence such as skill mentions, SKILL.md reads, local install roots, and test coverage before deciding a skill is unused.
  • Do not delete ignored or untracked skill directories unless the replacement path is named or the user confirms they are disposable.

Working Set

  • .galileo/config.yml: agent type, metrics, editable files, verification commands.
  • .galileo/current/: current evidence and working artifacts.
  • .galileo/sessions/: historical evidence.
  • .galileo/eval-dataset/: candidate, accepted, and rejected eval cases.
  • .galileo/learnings.md: durable patterns discovered while working.

Read .galileo/current/ by default. Do not scan historical raw sessions unless the user asks for history or comparison.

Verification

After skill changes, run:

PYTHONPYCACHEPREFIX=/private/tmp/eval-engineer-pycache python3 -m unittest tests.skills.test_eval_engineer_skill
for skill in skills/eval-*; do python3 /Users/pratik/.codex/skills/.system/skill-creator/scripts/quick_validate.py "$skill"; done

For the generic packet summarizer:

python3 skills/eval-engineer/scripts/summarize_debug_packet.py tests/skills/fixtures/generic-rag-debug-packet.json

For tokenomics before/after packet comparison:

python3 skills/eval-engineer/scripts/compare_tokenomics_packets.py .galileo/current/debug-packet.json .galileo/current/verification-debug-packet.json --quality-metrics average_tool_selection_quality,tool_error_rate,average_completeness_gpt,average_groundedness --lower-is-better-quality-metrics tool_error_rate

For tokenomics work, compare cost, latency, and token movement against Galileo quality metrics. Do not keep a cost reduction on local scoring alone, and do not treat lower traffic volume as a per-trace efficiency improvement. Check segment metrics when available before accepting an aggregate cost win. For RAG retrieval pruning, include at least one hard multi-source or multi-hop case so top-1 retrieval shortcuts cannot pass on easy single-document questions alone. For agentic workflows, also compare agent steps, planner spans, rerank passes, self-check spans, and tool calls so an adaptive optimization shows which part of the loop got cheaper.

Use live model or Galileo calls only when the task explicitly requires runtime verification. Do not print secret values.

After installer changes, test the Python CLI and a real uvx install into a throwaway project:

PYTHONPYCACHEPREFIX=/private/tmp/eval-engineer-pycache python3 -m unittest tests.installer.test_install_cli
mkdir -p /tmp/eval-engineer-install-test
uvx --from /Users/pratik/Documents/github/eval-engineer eval-engineer install --target both --scope project --project-dir /tmp/eval-engineer-install-test
uvx --from /Users/pratik/Documents/github/eval-engineer eval-engineer check --target both --scope project --project-dir /tmp/eval-engineer-install-test

Linear Hygiene

Keep Linear up to date manually after response completion when task status changes. There are no repo hooks for this.

  • Create Linear issues for new meaningful work.
  • Move completed Linear issues to Done.
  • Move obsolete issues to Canceled or Backlog with an explanatory comment.
  • Keep docs/tasks.md issue IDs aligned with Linear.
  • Mention the relevant Linear IDs in docs/progress.md.

Current active planning issues:

  • GAL-87: answer-quality check for policy explanation correctness.
  • GAL-93: Eval Engineer launch blog.
  • GAL-94: Eval Engineer launch graphics.
  • GAL-108: evaluate separate Codex and Claude plugin packaging.

Secrets And Generated Files

  • Never print .env values. It is okay to list variable names.
  • Keep generated runs, raw traces, temporary logs, and .omc/ out of git.
  • Preserve user changes. Do not revert unrelated edits.

Maintenance Rule

If you discover a new durable workflow rule, repeated mistake, packaging decision, or verification command, update this AGENTS.md in the same change.

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.