fava-trails AGENTS.md

fava-trails AGENTS.md is an instructions file for Codex, OpenCode from MachineWisdomAI/fava-trails. It costs 3,616 tokens per session, scanned A, original, Apache-2.0.

An AGENTS.md instruction file for the FAVA Trails project. It tells coding agents how to choose the project scope, use worktrees, and follow the repository's workflow.

In plain words
What is it for?
Starting a session, checking branches and worktrees, resolving the trail name, and following the project's rules for development and MCP tool calls.
Why use it?
It prevents agents from working in the wrong copy of the project or using FAVA Trails tools without the required scope.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/machinewisdomai/fava-trails/agents-md
Clone the repo
git clone --depth 1 https://github.com/MachineWisdomAI/fava-trails

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fava-trails AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/machinewisdomai/fava-trails/agents-md.svg)](https://agentmods.dev/instructions/machinewisdomai/fava-trails/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/machinewisdomai/fava-trails/agents-md"><img src="https://agentmods.dev/badge/instructions/machinewisdomai/fava-trails/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,616 This file is loaded in full into every session.
When invoked 3,616 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.03616 $0.03616
Opus 5 $0.01808 $0.01808
Sonnet 5 $0.00723 $0.00723
Haiku 4.5 $0.00362 $0.00362

Measured 5d ago against content hash 7e7e7a877d9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fava-trails AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 326 lines

How it starts

The opening of the file, as written. The whole thing — 326 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FAVA Trails — Agent Reference 🫛👣

Agent-facing reference for FAVA Trails MCP tools. For project setup and configuration, see README.md. For the full session protocol with examples, see AGENTS_USAGE_INSTRUCTIONS.md.

Repository Workflow

  • Development: ~/git/MachineWisdomAI/fava-trails/ (this repo)
  • Never modify: ~/git/vendor/fava-trails/ (read-only, pinned for running MCP servers)
  • Feature branches use worktrees: ~/git/MachineWisdomAI/fava-trails-{slug}/
  • Never commit directly to main — always use a feature branch and PR
  • Pre-flight before starting work:
    git worktree list && git branch -r
    
  • If another agent or branch is active on this repo, coordinate or use a separate worktree.

Scope Discovery

Every tool call requires trail_name — a slash-separated scope path (e.g. mw/eng/fava-trails). Resolve in priority order:

Priority Source Set where
1 FAVA_TRAILS_SCOPE env var .env (gitignored) — per-worktree override
2 .fava-trails.yaml scope Project root (committed) — default for all clones
3 FAVA_TRAILS_SCOPE_HINT MCP server env block — broad fallback

If FAVA_TRAILS_SCOPE is not set but .fava-trails.yaml exists, read the scope field and write it to .env as FAVA_TRAILS_SCOPE=<scope>. If neither exists, use the scope hint from tool descriptions and prompt the user to create a .fava-trails.yaml.

See AGENTS_USAGE_INSTRUCTIONS.md for full scope discovery protocol with examples.

Session Start Protocol

Before starting work, recall existing context:

recall(trail_name="<scope>", query="status")
recall(trail_name="<scope>", query="decisions")
recall(trail_name="<scope>", query="gotcha", scope={"tags": ["gotcha"]})

Use trail_names with globs for broader context: recall(trail_name="<scope>", query="architecture", trail_names=["mw/eng/*"])

Scope Lookup Discipline

Read the full file on GitHub · 326 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 326 lines · 3,616 tokens per session scan A 7e7e7a877d9b

Subscribe to this mod's changes

fava-trails AGENTS.md is an instructions file published in the GitHub repository MachineWisdomAI/fava-trails (25 stars, last pushed today), licensed Apache-2.0. It adds 3,616 tokens to every session, about $0.0181 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.