agentleFS
VercelKnown publishervercel/eve/AGENTS.md

eve

AGENTS.md5.5k starsChanged 59 days agoApache-2.0View on GitHub

Guidance for coding agents (and humans) working in this repository. For setup, PR workflow, and release process, see CONTRIBUTING.md. eve is a filesystem-first framework for durable backend AI agents. You author an agent as a directory on disk — instructions, skills, tools, connections, channels, subagents, and schedules are all files — and eve compiles and runs it. See the README for the full overview and docs/ for user-facing documentation. Always style the framework name as eve, lowercase, in user-facing copy,…

  • Installs packages

Trending

Quiet since September.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 4 mentionsJul 2026: 4 mentionsAug 2026: 7 mentionsSep 2026: 8 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the vercel/eve repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about vercel/eve

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 and Bluesky (23 times).

On GitHub · 17

12 more on GitHub

On Bluesky · 6

1 more on Bluesky

The file

Show its rules and text

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

18 rules. About 0 are common, 5 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

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

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

    Always style the framework name as eve, lowercase, in user-facing copy, docs, prompts, comments, and headings.

    line 14
  2. Distinctive:

    KISS: Keep things simple. If there are 5 ways to do something, the simplest and more obvious one should be the preferred option.

    line 112
  3. Distinctive:

    Wrap third-party dependencies: Do not expose third-party APIs as eve public APIs.

    line 120
  4. Very specific:

    Add runtime dependencies only as a last resort: prefer vendoring code or generated artifacts into the repository and listing the source …

    line 122
  5. Very specific:

    Name definitions for the protocol they target: Use defineMcpClientConnection, not defineConnection.

    line 137
  6. Very specific:

    All runtime functionality lives in the eve package: Never rely on emitted or generated code for runtime behavior.

    line 140
  7. Distinctive:

    Comment why, not what: Default to no comment; well-named code is the documentation.

    line 143
  8. Very specific:

    Use the test-audit skill when writing, reviewing, or pruning tests.

    line 164
  9. Very specific:

    Add -t "<name>" to filter by test name.

    line 191
  10. Very specific:

    Do not commit fixture trees under packages/eve/test/fixtures/ — scenario app content is defined inline as ScenarioAppDescriptor objects (CI …

    line 195
  11. Distinctive:

    Write model-facing eval prompts as benign, process-oriented narratives.

    line 211
  12. Very specific:

    Do not set VERCEL_TEAM_ID at build: sandbox template keys must derive identically at build and runtime, and Vercel has no team variable at …

    line 218
  13. Distinctive:

    When moving a published route, update authored links to the new URL and add a permanent redirect from every old HTML and supported Markdown …

    line 231
  14. Very specific:

    Use Title Case for page title frontmatter and meta.json section titles (Fumadocs renders title as both the sidebar entry and the <h1>), and …

    line 234
  15. Very specific:

    Keep markdown framework-agnostic — no MDX-only constructs unless the page is .mdx.

    line 238
  16. Very specific:

    Every PR that touches the published eve package must include a changeset (pnpm changeset).

    line 243
  17. Very specific:

    Authorize every access on the server, keyed to the resource: Check the caller's session against the specific resource id from the request — …

    line 258
  18. Very specific:

    Never render untrusted input as HTML: Use framework escaping (JSX text) or an explicit sanitizer — no dangerouslySetInnerHTML, innerHTML, …

    line 262

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

AGENTS.md

Guidance for coding agents (and humans) working in this repository. For setup, PR workflow, and release process, see CONTRIBUTING.md.

About eve

eve is a filesystem-first framework for durable backend AI agents. You author an agent as a directory on disk — instructions, skills, tools, connections, channels, subagents, and schedules are all files — and eve compiles and runs it. See the README for the full overview and docs/ for user-facing documentation.

Always style the framework name as eve, lowercase, in user-facing copy, docs, prompts, comments, and headings.

Repository layout

  • packages/eve — the framework and eve CLI (the main package)
  • packages/eve-catalog — internal, unpublished library
  • packages/eve-code — @eve/code, internal source of the eve/extensions/code extension shipped in eve
  • apps/fixtures — shared agent fixtures used by e2e, TUI smoke tests, and local dev
  • apps/frameworks, apps/templates, apps/docs — framework integrations, templates, docs site
  • docs — published documentation content
  • e2e/ — fixture-owned eve eval end-to-end tests
  • research — issue-backed implementation plans for proposed changes

Git workflow

Commits must be cryptographically signed with a GitHub-verified key and include the DCO Signed-off-by trailer. Use git commit -s for every commit, and if a commit is missing the trailer, amend it with git commit --amend -s --no-edit before pushing.

PR descriptions are reviewer-oriented explanations of the problem or decision behind the change, the solution, meaningful behavior changes, and validation—not file lists or commit logs. Keep the Summary short and lead with that justification before implementation details. Link a prior issue or discussion when one exists, call out important scope boundaries or preserved behavior, and report only checks actually run. Never create an issue solely to accompany a PR. Use the gh-pr-description skill when drafting or updating one.

Commands

pnpm install            # install workspace dependencies
pnpm build              # build all packages
pnpm dev                # watch-mode build + weather fixture on an available local port

pnpm typecheck          # TypeScript across the workspace
pnpm lint               # oxlint (auto-fixes)
pnpm fmt                # oxfmt
pnpm guard:invariants   # mechanical code-invariant checks (runs in CI)
pnpm docs:check         # docs frontmatter and nav validation

pnpm test               # unit + integration
pnpm test:unit          # unit tests (<3s)
pnpm test:integration   # integration tests (<10s)
pnpm test:scenario      # scenario tests (2–5 min; requires pnpm build first)
pnpm test:framework-fixtures # apps/frameworks smoke builds (requires pnpm build first)
pnpm test:e2e           # fixture-owned eve eval suites (CI only)
pnpm test:tui           # TUI smoke scripts (not e2e)

We value fast local iteration whenever possible. Run pnpm fmt, pnpm lint, and pnpm typecheck frequently to catch inexpensive failures early, and run unit tests after material behavioral changes. Integration and scenario tests are comparatively slow, so do not run them after every change; run the narrowest relevant test when a change needs behavioral validation. Copy edits, typo fixes, small code reorganizations, and similar non-behavioral changes can proceed without local integration or scenario runs. CI is always the official line of defense, and every required check must pass before merge.

Agent-ready product principles

  1. Docs is priority #1. Agents read your docs before they ever touch your product. If the docs are incomplete or ambiguous, the agent is lost before it starts.
  2. Authentication is the biggest friction point. Auth is where agent runs stall most often: hidden prerequisites, unset keys, and OAuth flows that quietly assume a human is at the keyboard.
  3. Error messages make or break recovery. A vague or misleading error sends an agent spiraling; a precise, actionable one lets it self-correct. Your errors are documentation.
  4. CLIs often assume a human is present. Interactive prompts, TTY checks, and "press y to continue" break agents that have no way to answer back.
  5. Discoverability determines whether agents find you at all. llms.txt, typed SDKs, MCP servers, machine-readable specs. If an agent can't discover your surface, it reaches for a competitor it already knows.
  6. Better for agents, better for humans. Almost everything that makes a tool agent-ready, from clear docs to precise errors to sane defaults, makes it better for human developers too.

Coding principles

  1. Public APIs are sensitive. They usually require a research doc proposing the change, alongside proper e2e tests covering golden paths and known failure modes. They also require proper and legible documentation.
  2. The core is lean and powerful. The framework core should be simple yet highly expressible i.e., eve can be built with eve. This means that changes in execution/ and harness/ should be only done when strictly necessary. The core should expose hooks and internal APIs so that broad functionality is built on top of it.
  3. KISS. Keep things simple. If there are 5 ways to do something, the simplest and more obvious one should be the preferred option. Code should be legible and obvious.
  4. Code is liability. Each net-new introduced snippet should earn its right to exist. Common abstractions should be reused. Accidental complexity needs to be derived to its essence. Entropy must be contained.
  5. Wrap third-party dependencies. Do not expose third-party APIs as eve public APIs. Wrap them in eve-owned surfaces so internals can change freely. Add runtime dependencies only as a last resort: prefer vendoring code or generated artifacts into the repository and listing the source package under devDependencies. The eve package should aim to keep nitro as its only runtime dependency. This keeps eve installs as small as possible and avoids exposure to hijacked nested dependencies that are not pinned directly in the main lockfile.
  6. Pre-1.0: prefer breaking changes. Favor correctness and simplicity over backwards compatibility. No legacy fallback logic.
  7. Derive names from file paths. Connection names, tool names, and similar identifiers come from the filesystem path (e.g. agent/connections/linear.ts → "linear"). Do not add redundant name fields to definitions.
  8. Name definitions for the protocol they target. Use defineMcpClientConnection, not defineConnection.
  9. All runtime functionality lives in the eve package. Never rely on emitted or generated code for runtime behavior.
  10. Comment why, not what. Default to no comment; well-named code is the documentation. Comment only what the code cannot say itself — a non-obvious why, an invariant, a surprising edge case. Public API docs (principle 1) are the exception.

Machine-checkable invariants are enforced by pnpm guard:invariants, which runs in the CI lint job. If the guard fails, fix the violation rather than editing the baseline — baselines may only shrink.

Research plans

Research documents live in the top-level research/ directory and require issue, status, and last_updated frontmatter. Keep plans concise and focus primarily on the proposed authoring API and externally observable semantics. Include only the architecture needed to explain boundaries, data flow, and invariants; avoid speculative implementation detail, repeated rationale, and exhaustive task inventories. Use a compact diagram when it makes a lifecycle or ownership relationship materially clearer.

Testing

Use the test-audit skill when writing, reviewing, or pruning tests.

Tests belong in one of four tiers. Pick the tightest tier that can express the assertion:

  • Unit (src/**/*.test.ts): pure logic, colocated. No filesystem writes, subprocesses, or real network calls.
  • Integration (src/**/*.integration.test.ts): multiple modules in memory.
  • Scenario (src/**/*.scenario.test.ts, test/scenarios/): real subprocess, HTTP port, or bundler.
  • E2E (e2e/fixtures/*/evals/): fixture-owned eve eval suites that run only in CI. The model suite (e2e-local) runs real matrix models against the local world; the world suites (e2e-vercel, …) run deterministic mock models (EVE_E2E_MODEL=mock) and exclude real-model-tagged evals. See e2e/README.md.

Running a single file or filtered test: always pass the tier config. Only the vitest.<tier>.config.ts files alias #* imports to ./src; a bare vitest run <path> resolves them to compiled ./dist output, so you end up testing stale builds. Use:

pnpm --filter eve exec vitest run --config vitest.unit.config.ts <path-or-pattern>
# or vitest.integration.config.ts / vitest.scenario.config.ts for those tiers

Add -t "<name>" to filter by test name. If you touched anything under #compiled/*, run pnpm --filter eve build:compiled first — the tier configs do not rebuild it.

Do not commit fixture trees under packages/eve/test/fixtures/ — scenario app content is defined inline as ScenarioAppDescriptor objects (CI enforces this).

End-to-end tests

Automated tests cover module-level behavior, but they don't prove a fixture agent boots, accepts a request, and streams a response over HTTP. E2E suites cannot run locally and must run in CI. When a change needs e2e coverage, add or update the relevant fixture eval, then proceed to commit and push. Optionally watch CI for the results and iterate on any failures.

Pick the fixture that exercises the surface you changed; if none does, add a new eval under the matching fixture's evals/ directory. E2E evals must be deterministic and self-contained. Keep e2e free of external service startup and injected env requirements (beyond model-provider credentials).

Write model-facing eval prompts as benign, process-oriented narratives. Use neutral named actors such as Alice and Bob, and describe the ordinary workflow that produces the state under test. Avoid terse, adversarial, or probe-like wording when a natural scenario can test the same behavior. Such wording can trigger provider refusals and cause live-model flake. Do not weaken the behavior or security boundary under test.

Do not set VERCEL_TEAM_ID at build: sandbox template keys must derive identically at build and runtime, and Vercel has no team variable at runtime.

The shared Vercel project's Preview env must provide the model-provider credentials the fixtures need. TUI smoke tests live under packages/eve/test/tui-client and run with pnpm test:tui. See e2e/README.md.

Documentation

  • docs/** is the published documentation. If your change alters public behavior, update the relevant doc in the same PR and run pnpm docs:check.
  • When moving a published route, update authored links to the new URL and add a permanent redirect from every old HTML and supported Markdown URL.
  • Sidebar order lives in docs/meta.json.
  • Use Title Case for page title frontmatter and meta.json section titles (Fumadocs renders title as both the sidebar entry and the <h1>), and sentence case for in-page headings — capitalize only the first word plus proper nouns and acronyms, e.g. Next.js, CLI, agent.ts.
  • Keep markdown framework-agnostic — no MDX-only constructs unless the page is .mdx.

Changesets

Every PR that touches the published eve package must include a changeset (pnpm changeset). Because eve is pre-1.0, use patch in most cases, including bug fixes and new features. Use minor only when the change breaks a public API. Write the body for someone reading release notes — what changed and what they'll see differently, in 1–2 sentences.

Docs-only, internal-tooling, and fixture changes do not need a changeset. When in doubt, add one.

Security

Baseline invariants for authorization, injection, disclosure, and untrusted input. Use established patterns in the codebase when existing (libraries, etc.) instead of reinventing the wheel.

  • Authorize every access on the server, keyed to the resource. Check the caller's session against the specific resource id from the request — never trust a client-supplied id, role, or isAdmin flag (IDOR / privilege escalation).
  • Never render untrusted input as HTML. Use framework escaping (JSX text) or an explicit sanitizer — no dangerouslySetInnerHTML, innerHTML, or HTML built from template literals on user or third-party data (XSS).
  • Errors and logs must not leak internals. Client-facing errors stay generic; stack traces, SQL, internal hostnames, tokens, and other users' data go to server logs only — and logs never persist secrets, credentials, or PII in cleartext.
  • Bound work derived from untrusted input. Request-driven loops, pagination, recursion, and body/file reads need explicit caps (page size, timeout, max depth, max bytes) so one caller can't force unbounded work.
  • Validate outbound destinations before fetching. Server-side fetches, webhooks, and imports whose URL or host comes from user input must block access to internal resources (SSRF). Use established patterns / libraries from the project already.

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.