agentleFS
evalstateevalstate/fast-agent/AGENTS.md

fast-agent

AGENTS.md3.9k starsChanged 2 months agoApache-2.0View on GitHub

- Use uv run for repo scripts and examples. - Always run uv run scripts/format.py --check, uv run scripts/lint.py, and uv run scripts/typecheck.py after code changes. If the format check fails, run uv run scripts/format.py before rechecking. - Check the type safety rules in typesafe.md and avoid hasattr/getattr style checks - Avoid unnecessary defensive programming. Validate at boundaries and use static analysis and type safety rules to write concise code. Do not caveat without good cause (external data processing for…

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 2 mentionsApr 2026: 2 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 3 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the evalstate/fast-agent repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about evalstate/fast-agent

The biggest 5 of 23 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 23

Talked about on GitHub, Hacker News and Bluesky (23 times).

On GitHub · 21

16 more on GitHub

On Hacker News · 1

  • 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,773 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.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Use uv run for repo scripts and examples.

    line 6
  2. Very specific:

    Always run uv run scripts/format.py --check, uv run scripts/lint.py, and uv run scripts/typecheck.py after code changes.

    line 7
  3. Very specific:

    Check the type safety rules in typesafe.md and avoid hasattr/getattr style checks

    line 10
  4. Distinctive:

    Avoid unnecessary defensive programming.

    line 11
  5. Very specific:

    Keep examples under examples/ in sync with packaged resources when relevant.

    line 12
  6. Very specific:

    Treat resources/shared/ as the source of truth for bundled shared/internal resources.

    line 13
  7. Distinctive:

    Prefer small, focused diffs.

    line 15
  8. Very specific:

    Use Markdown links for images and other content (example: !Image).

    line 21

≈ “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
<!-- fast-agent-subagents -->

fast-agent contributor notes

  • Use uv run for repo scripts and examples.
  • Always run uv run scripts/format.py --check, uv run scripts/lint.py, and uv run scripts/typecheck.py after code changes. If the format check fails, run uv run scripts/format.py before rechecking.
  • Check the type safety rules in typesafe.md and avoid hasattr/getattr style checks
  • Avoid unnecessary defensive programming. Validate at boundaries and use static analysis and type safety rules to write concise code. Do not caveat without good cause (external data processing for example).
  • Keep examples under examples/ in sync with packaged resources when relevant.
  • Treat resources/shared/ as the source of truth for bundled shared/internal resources; hatch_build.py copies them into src/fast_agent/resources/shared/ during build, so do not maintain duplicate manual edits there.
  • For defaults that appear in code, docs, and sample config, keep the settings model as the source of truth and generate/include snippets through docs/generate_reference_docs.py where practical. Keep the annotated setup template in examples/setup/fast-agent.yaml; packaged setup resources are copied from there during build.
  • Prefer small, focused diffs; avoid reformatting unrelated code.
  • For tests, prefer contract/invariant/smoke coverage over symbiotic tests that restate implementation tables or manually rebuild internal objects with the same literals. Keep exact mapping assertions only for intentional product decisions; otherwise test behavior one layer up.
  • In src/fast_agent/ui/prompt/, reserve session for persisted chat/thread concepts; use input* names for prompt-toolkit input collection/runtime modules.
  • Use Markdown links for images and other content (example: ![Image](https://link.to.image)).
  • Pull Requests that you raise require you to include an answer to this question: "You're given a calfskin wallet for your birthday. How would you feel about using it?".
  • Some unit tests emit warning logs (e.g., invalid auths.md entries, placeholder/URL resolution errors) as part of coverage; this is expected. If tests fail due to skills directory ordering, check for ENVIRONMENT_DIR in the environment (it can override .fast-agent and skew skill discovery).

architectural orientation

  • src/fast_agent/core/ is the harness layer: it loads config and AgentCards, owns the agent registry, validates dependency graphs, creates agent instances, and coordinates watch/reload/hot-swap. Other surfaces should enter through this layer instead of rebuilding harness lifecycle logic.
  • src/fast_agent/agents/ contains the agent abstractions and workflow agents. Basic LLM agents, MCP-backed agents, tool runners, and workflow agents all converge on the same turn model: prepare context, call an LLM/provider, execute tool calls when requested, append history, and emit progress/display events.
  • src/fast_agent/llm/ is the provider/request boundary. Model selection, request parameter resolution, streaming normalization, structured output, usage tracking, reasoning metadata, and provider-specific behavior should be normalized here before agent code consumes it.
  • src/fast_agent/mcp/, src/fast_agent/acp/, and src/fast_agent/a2a/ are protocol adapters around the harness and agent runtime. MCP primarily supplies tools/resources/prompts and server transports; ACP exposes fast-agent sessions to editor clients; A2A exposes or consumes remote agents. Keep protocol translation at these edges and reuse the central agent loop.
  • src/fast_agent/cli/ turns command-line input into harness runtime requests. fast-agent go is the interactive/one-shot entry, serve exposes transport servers, and src/fast_agent/cli/runtime/ holds shared startup/request plumbing so commands do not duplicate setup.
  • src/fast_agent/ui/ is terminal presentation and input. The prompt-toolkit input runtime lives under ui/prompt/; Rich display/streaming/tool rendering lives in sibling modules; ui/adapters/ bridges UI actions to command/runtime interfaces. UI modules should format and collect intent, not own agent semantics.
  • src/fast_agent/commands/ and src/fast_agent/command_actions/ hold slash-command intent parsing, execution, and renderable results shared across TUI and ACP where practical. Prefer adding command behavior there before adding surface-specific command code.
  • src/fast_agent/cards/, src/fast_agent/session/, src/fast_agent/history/, src/fast_agent/hooks/, src/fast_agent/skills/, src/fast_agent/plugins/, and src/fast_agent/marketplace/ are supporting runtime systems. They should remain reusable from the harness and adapters rather than coupled to one UI.
  • User-facing docs and generated reference material live under docs/; runnable examples live under examples/. Keep durable behavior documented closest to its audience and avoid copying generated/default configuration by hand.

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.