agentleFS
VercelKnown publishervercel/eve/apps/templates/eve-content-agent-template/AGENTS.md

eve / eve-content-agent-template

AGENTS.md5.9k starsChanged 2 days agoApache-2.0View on GitHub

Guidance for AI coding agents working in this repository. A Slack-based content assistant built on the eve agent framework. Writers @mention it in Slack; it loads a per-surface style skill, pulls source material from Notion (user-scoped OAuth via Vercel Connect), drafts in the house voice, and publishes approved pieces back to Notion. Files and assets are stored in Vercel Blob. The whole agent is defined under agent/. eve discovers capabilities from the filesystem. See ARCHITECTURE.md for the component map, data…

  • Reads credentials
  • Installs packages

1 other project uses a version of this.

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 7 mentionsJul 2026: 12 mentionsAug 2026: 6 mentionsSep 2026: 10 mentionsOct 2026: 17 mentionsNov 2026: 4 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.

Most recently taken up by

Who's talking about vercel/eve

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

See all 56

Talked about on GitHub and Bluesky (56 times).

On GitHub · 49

44 more on GitHub

On Bluesky · 7

2 more on Bluesky

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    Tools: run in the app runtime (full process.env), one default export per file.

    line 49
  2. Very specific:

    After editing, check LSP diagnostics / pnpm typecheck and fix type errors before moving on.

    line 83
  3. Very specific:

    Document exported config with TSDoc (@remarks, @param, @returns, @defaultValue, @see).

    line 97
  4. Very specific:

    When building a RegExp from data, escape it (literal match) to avoid ReDoS.

    line 106
  5. Very specific:

    No secrets, node_modules, or build output (.eve, .vercel, .output) staged.

    line 124

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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 AI coding agents working in this repository.

Project overview

A Slack-based content assistant built on the eve agent framework. Writers @mention it in Slack; it loads a per-surface style skill, pulls source material from Notion (user-scoped OAuth via Vercel Connect), drafts in the house voice, and publishes approved pieces back to Notion. Files and assets are stored in Vercel Blob.

The whole agent is defined under agent/. eve discovers capabilities from the filesystem. See ARCHITECTURE.md for the component map, data flow, and boundaries.

Setup & commands

pnpm install        # install dependencies (Node >= 24)
pnpm dev            # eve dev — local TUI; run /model once to link a model provider
pnpm typecheck      # tsc (TypeScript, no emit)
pnpm check          # ultracite (Biome) lint + format check
pnpm fix            # ultracite (Biome) auto-fix
pnpm build          # eve build
pnpm eval:offline   # evals/offline on mock models — no model calls, runs in seconds
pnpm eval           # evals/live on real models (needs Gateway credentials)
eve deploy          # deploy to Vercel production (use this, not raw `vercel deploy`)
npx eve info        # print the discovered surface + discovery diagnostics

There is no unit-test suite. Verify changes with pnpm typecheck and npx eve info (both must report 0 errors / 0 warnings), then run pnpm eval:offline, and pnpm eval when you have credentials, and exercise the agent in the pnpm dev TUI. The offline evals run the agents on the mock models in agent/lib/mock-model.ts (EVE_MOCK_MODEL=1) and make no model calls; the live evals call real models, so they need the project's AI Gateway credentials (vercel env pull or /login in the TUI).

eve conventions

  • Read the relevant guide in node_modules/eve/docs/ before writing code. Don't invent framework APIs; confirm them against the docs.
  • Identity comes from the filesystem, never a name field. A tool at agent/tools/upload_asset.ts is the tool upload_asset; a connection at agent/connections/notion.ts registers as notion.
  • Authored slots: agent/agent.ts (model), agent/instructions.md (system prompt), agent/tools/*.ts (defineTool, or defineWorkflowTool for durable tools such as research), agent/connections/*.ts, agent/channels/*.ts, agent/skills/<name>/SKILL.md, agent/memory/<slot>.ts (defineMemory), agent/subagents/<id>/agent.ts (defineAgent), agent/sandbox.ts (exports environment and a defineSandbox() default).
  • Tools run in the app runtime (full process.env), one default export per file. Gate destructive tools with approval from eve/tools/approval. Connections accept the same approval field — pass a policy that inspects toolName/toolInput to gate specific tools (e.g. notion gates notion-create-pages via its APPROVAL_REQUIRED_TOOLS list).
  • Skills are load-on-demand. A packaged skill (<name>/SKILL.md) requires description frontmatter; that description is the routing hint. Adding a new surface is just a new <surface>-style skill folder: the SURFACES enum that check_style and the reviewer's get_surface_rubric share is generated from those folders into agent/lib/surfaces.generated.ts by pnpm sync:shared, so there is no hand-edited enum to keep in step. Tool code can't read skill files at runtime, so each skill's references/banned-words.json is bundled into agent/lib/banned-words.generated.ts by the same script.
  • Shared references live in shared-references/ (the source of truth). scripts/sync-shared.mjs copies them into every skill's references/ and regenerates the managed ## Shared references section in each SKILL.md (the bullet text lives in that script's SHARED_FILES). Edit the source and run pnpm sync:shared (also run on predev/prebuild); never edit the synced copies or that section. A skill's own ## References section is left untouched.
  • Subagents are declared under agent/subagents/<id>/agent.ts (defineAgent, required description — the routing hint). The directory name is the identity and the lowered tool name (no namespace; it must not collide with a tool name). A declared subagent runs in a fresh child session and inherits nothing from the root (no skills, connections, tools, or sandbox), so the caller passes everything it needs in the message. Here: researcher and reviewer (the reviewer carries its own generated rubric module + get_surface_rubric tool rather than inheriting the root's skills). Structured output is requested per turn, not on defineAgent, so both set tool: false and the root reaches them through the research / review workflow tools, which call askSubagent (agent/lib/subagent.ts): one ctx.agent("<id>").send(message, { outputSchema }). A tool can't share a subagent's name (the compiler rejects it even with tool: false), hence the different names.
  • Models are Gateway ids kept in agent/lib/models.ts. The researcher's model is routed per call with auto() from eve/models (a decision model picks from an allowlist using the research message; fallback covers decider failures only, and a message over 16,000 characters is rejected). check_style asks the same decision model yes/no questions with decide() from eve/ai, inside a "use step" helper so replay reuses the answers. decide returns probabilities, not calibrated confidence: treat a mid-range value as "unsure" and fall back to a model that can reason (here, the reviewer subagent), and report why the fallback ran.
  • After editing, check LSP diagnostics / pnpm typecheck and fix type errors before moving on.

Code style

  • Linting and formatting are handled by Ultracite (a Biome preset). Run pnpm check before finishing and pnpm fix to auto-fix. Config is in biome.jsonc; the kebab-case filename rule is disabled there because eve tools use snake_case names.
  • TypeScript strict; ESM with NodeNext resolution (relative imports need a .js extension). Prefer const, arrow functions, optional chaining / nullish coalescing.
  • Validate tool input/output with zod schemas.
  • @biomejs/biome is pinned to 2.5.x: Ultracite 8.0.x's preset still configures a nursery rule that Biome 2.6 renamed, so Biome 2.6 refuses the config. Bump both together once Ultracite supports 2.6 (pnpm exec ultracite doctor checks the pairing).
  • Document exported config with TSDoc (@remarks, @param, @returns, @defaultValue, @see). Avoid inline // comments — put rationale in the TSDoc block instead.

Security

  • Never ask the user for API keys, client secrets, or any other credentials.
  • Never commit secrets. .env* is gitignored. Connector UIDs are read from env (SLACK_CONNECTOR, NOTION_CONNECTOR); Notion auth is per-user via Vercel Connect and Blob auth is via the project's OIDC token — there are no API keys in code.
  • When building a RegExp from data, escape it (literal match) to avoid ReDoS; bound untrusted input length.
  • Gate irreversible or high-impact actions behind approval: destructive tools (delete_asset) and connection writes (the notion connection gates notion-create-pages).
  • For per-user storage, scope by the resolved principal (ctx.session.auth.current), never by model input — see agent/memory/preferences.ts, which gives only signed-in writers a memory document. The asset tools refuse the Blob prefixes listed in agent/lib/reserved-paths.ts, so they can't read or overwrite a writer's memory.
  • Give each agent only the built-in tools it needs. The root keeps read_file (skills read their references with it) and has bash, write_file, and edit_file disabled; the researcher and the reviewer set defaultTools: false, and the researcher adds back only web_search and web_fetch.

Before committing

  • pnpm typecheck passes.
  • pnpm check (Ultracite) passes.
  • npx eve info reports 0 errors / 0 warnings.
  • No secrets, node_modules, or build output (.eve, .vercel, .output) staged.

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.