agentleFS
Arnie016Arnie016/codex-prompt-templates/skills/agent-observability/SKILL.md

agent-observability

Skill3 starsChanged 6 months agoMITView on GitHub

Add lightweight local observability to Codex/agent workflows. Use when tracking local runs, traces, evals, cost, token usage, cache efficiency, model comparisons, failure rates, or claudetop-style monitoring. Skip when designing production gateway policy, staged guardrails, shadow traffic, model budgets, or trace-to-regression loops; use `$auto-skill-build-agent-reliability-loop`.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use lightweight local observability before adopting a full platform.

    line 14
  2. Distinctive:

    Run the same task across workflow variants.

    line 46
  3. Distinctive:

    Keep the cheaper path only if quality is comparable.

    line 48
  4. Very specific:

    When observability needs gateway policy, staged guardrails, shadow traffic, trace-to-regression feedback, or model budgets, switch to …

    line 52
  5. Distinctive:

    Use full platforms like Future AGI when you need hosted traces, simulations, gateway routing, or production guardrails.

    line 57

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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
SKILL.md

Agent Observability

Use lightweight local observability before adopting a full platform.

Minimal Run Ledger

Create:

.agent-runs/
  runs.jsonl
  evals.md
  costs.md

Each runs.jsonl entry should include:

{"ts":"","task":"","model":"","inputs":"","commands":[],"result":"","tokens_est":"","cost_est":"","status":""}

What To Track

  • task type and outcome
  • commands run
  • tests passed/failed
  • estimated tokens and cost
  • repeated failure causes
  • user corrections
  • guardrail or safety decisions

Eval Loop

  1. Define 3-10 realistic tasks.
  2. Run the same task across workflow variants.
  3. Score correctness, time, tokens, and human intervention.
  4. Keep the cheaper path only if quality is comparable.

Skip Or Escalate

When observability needs gateway policy, staged guardrails, shadow traffic, trace-to-regression feedback, or model budgets, switch to $auto-skill-build-agent-reliability-loop. Keep this skill for local ledgers and lightweight eval/cost tracking.

Use full platforms like Future AGI when you need hosted traces, simulations, gateway routing, or production guardrails. Use local ledgers for personal workflows.

For appending or summarizing .agent-runs/runs.jsonl, use $auto-skill-build-agent-run-ledger-dashboard.

For Codex Supercharge artifact grades and subagent/automation handoff status, use $auto-skill-build-supercharge-feedback-loop; it writes a separate local feedback stream under plugins/codex-supercharge/.agent-runs/.

Validation

  • Each tracked run has a task, status, commands/tests, and outcome.
  • Cost/token notes are marked as estimates unless measured.
  • Repeated failures are summarized into a follow-up or eval case.

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.