agentleFS
pleaseaipleaseai/shunt/src/AGENTS.md

shunt / src

AGENTS.md226 starsChanged 2 months agoApache-2.0View on GitHub

The file

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

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Run from repository root: cargo run -- run

    line 6
  2. Distinctive:

    Keep files focused and preferably under 500 lines.

    line 29
  3. Distinctive:

    Keep protocol-specific behavior inside adapters and model translation modules.

    line 31
  4. Distinctive:

    Use typed config and explicit enums for externally visible modes.

    line 32
  5. Very specific:

    Keep implementation PRs aligned with docs under docs/ when behavior changes.

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

src Agent Instructions

Build & Run Commands

  • Build from repository root: cargo build
  • Run from repository root: cargo run -- run
  • Validate config from repository root: cargo run -- check

Testing

  • Full suite from repository root: cargo test --all-features --workspace
  • Source-focused checks: cargo clippy --all-targets --all-features -- -D warnings
  • Format check: cargo fmt --all --check

Project Structure

  • main.rs: CLI entry point and process lifecycle.
  • shutdown.rs: graceful-shutdown signal handling (SIGTERM/ctrl-c drain, force-exit escape hatch).
  • server.rs: Axum router and shared state.
  • proxy.rs: request buffering, route resolution, adapter dispatch.
  • config.rs: configuration schema, defaults, loading, validation.
  • routing.rs: model-to-provider route selection.
  • adapters/: provider protocol boundaries.
  • model/: Anthropic Messages ↔ OpenAI Responses translation.
  • auth/: credential lookup and token refresh.

Code Style

  • Keep files focused and preferably under 500 lines.
  • Preserve streaming behavior for upstream responses.
  • Keep protocol-specific behavior inside adapters and model translation modules.
  • Use typed config and explicit enums for externally visible modes.

Git Workflow

  • Pair code behavior changes with tests.
  • Keep implementation PRs aligned with docs under docs/ when behavior changes.
  • Use conventional commits.

Boundaries

  • ✅ Add focused unit tests near changed modules.
  • ✅ Preserve Anthropic error envelope for gateway-owned errors.
  • ⚠️ Ask before changing credential refresh/writeback semantics.
  • ⚠️ Ask before changing public config keys.
  • 🚫 Never remove streaming tests or weaken protocol assertions.

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.