sanity-copilot-eve-template: Instructions file for Codex

AGENTS.md

sanity-copilot-eve-template AGENTS.md is an instructions file for Codex, OpenCode from vercel-labs/sanity-copilot-eve-template. It costs 1,745 tokens per session, scanned A, original, MIT.

Repository guidance for a Slack-based Sanity content-management copilot built with the Eve agent framework. It explains the project structure, commands, integrations, and coding conventions for an agent that works with Sanity, Notion, and Vercel Blob.

In plain words
What is it for?
Setting up, checking, building, and deploying the project, and developing its Slack workflows, Sanity queries and schemas, Notion document handling, and file storage.
Why use it?
It gives coding agents the context needed to change the right files, use the project's commands, and respect how content and files move between connected services.

Instructions file for CodexOpenCode ✓ vendor

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents; mentions AGENTS.md.

This is vercel-labs/sanity-copilot-eve-template's own configuration. It tells Codex and OpenCode how to work on sanity-copilot-eve-template itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sanity-copilot-eve-template configures →

About the project

Sanity Copilot eve Template is a Slack-based assistant that lets team members query and edit Sanity content, inspect schemas, manage drafts and releases, and send long-form drafts to Notion. Teams use it to work on Sanity projects through Slack with each person's permissions and approval controls for sensitive actions. The catalogue add-ons support this agent workflow.

vercel-labs/sanity-copilot-eve-template · 5 stars · on GitHub · vercel.com

Reuse

Borrowing it

Nothing to install: this file belongs to vercel-labs/sanity-copilot-eve-template. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vercel-labs/sanity-copilot-eve-template/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/vercel-labs/sanity-copilot-eve-template

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 sanity-copilot-eve-template AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/vercel-labs/sanity-copilot-eve-template/agents-md/github.svg)](https://agentmods.dev/instructions/vercel-labs/sanity-copilot-eve-template/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/vercel-labs/sanity-copilot-eve-template/agents-md"><img src="https://agentmods.dev/badge/instructions/vercel-labs/sanity-copilot-eve-template/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sanity-copilot-eve-template AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/vercel-labs/sanity-copilot-eve-template/agents-md"><img src="https://agentmods.dev/badge/instructions/vercel-labs/sanity-copilot-eve-template/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,745 This file is loaded in full into every session.
When invoked 1,745 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01745 $0.01745
Opus 5.5 $0.00698 $0.00698
Sonnet 5.5 $0.00349 $0.00349
Haiku 4.5 $0.00175 $0.00175

Measured 3d ago against content hash ed161587a7cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sanity-copilot-eve-template 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 3d 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 · 59 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents working in this repository.

Project overview

A Slack-based Sanity copilot built on the eve agent framework. Users @mention it in Slack; it manages their Sanity project through the Sanity MCP connection (GROQ queries, schemas, drafts, releases), pulls source material from and drafts into Notion (user-scoped OAuth via Vercel Connect), and stores files in Vercel Blob. Its workflow lives in agent/instructions.md.

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.x)
pnpm dev            # eve dev — local TUI; run /login once to connect 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
eve deploy          # deploy to Vercel production (use this, not raw `vercel deploy`)
npx eve info        # print the discovered surface + discovery diagnostics
pnpm validate       # check + typecheck + eve info in one command

There is no unit-test suite. Verify changes with pnpm validate (lint, typecheck, and discovery diagnostics must all report 0 errors / 0 warnings), then exercise the agent in the pnpm dev 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/sanity.ts registers as sanity.
  • Authored slots: agent/agent.ts (model), agent/instructions.md (system prompt), agent/tools/*.ts (defineTool, or defineWorkflowTool for durable/delegating tools), agent/connections/*.ts, agent/channels/*.ts, agent/skills/<name>/SKILL.md, agent/subagents/<id>/agent.ts (defineAgent), agent/sandbox.ts. This repo also has agent/subagents/<id>/skills/ and agent/subagents/reviewer/sandbox.ts: subagent sandboxes don't inherit from the root, and the reviewer needs one to read its skill's reference files.
  • 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: both sanity.ts and notion.ts pass a policy that substring-matches the qualified tool name against an APPROVAL_REQUIRED_TOOLS list. Sanity gates patch_documents, publish_documents, unpublish_documents, discard_drafts, version_discard, update_dataset, deploy_schema, and deploy_studio; Notion gates update-pages, move-pages, update-data-source, and update-view (creation is ungated).
  • Skills are load-on-demand. A packaged skill (<name>/SKILL.md) requires description frontmatter; that description is the routing hint. Skills here: sanity-best-practices, content-modeling-best-practices, portable-text-conversion, portable-text-serialization, seo-aeo-best-practices, content-experimentation-best-practices, and writing-quality.
  • Subagents are declared under agent/subagents/<id>/agent.ts (defineAgent, required description). The directory name is the identity (no namespace; it must not collide with a tool name, even when the subagent sets tool: false). defineAgent no longer takes outputSchema; structured output is requested per turn with ctx.agent(<id>).send(message, { outputSchema }) from a defineWorkflowTool. That's why both subagents here set tool: false and the root reaches them through agent/tools/research.ts and agent/tools/review_draft.ts (shared loop in agent/lib/subagent-task.ts); keep each subagent's description in step with its wrapper tool's. 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 researcher sets defaultTools: false and re-adds only web_search and web_fetch under its own tools/, so it has no sandbox tools. The reviewer carries its own copy of the writing-quality skill under agent/subagents/reviewer/skills/ plus its own sandbox.ts. The copy intentionally diverges from the root skill where the root's references other root-only skills (seo-aeo-best-practices); when editing either copy, keep them in step except for that.
  • After editing, check LSP diagnostics / pnpm typecheck and fix type errors before moving on.

Read the full file on GitHub · 59 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. 3d ago Changed · +153 tokens per session ed161587a7cf
  2. 1mo ago First seen · 59 lines · 1,592 tokens per session scan A 86eb0128b0b2

Subscribe to this mod's changes

sanity-copilot-eve-template AGENTS.md is an instructions file published in the GitHub repository vercel-labs/sanity-copilot-eve-template (5 stars, last pushed 4d ago), licensed MIT. It adds 1,745 tokens to every session, about $0.0070 per session on Opus 5.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-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,786 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens