Sanity copilot
- Slack
- Sanity
- Notion
A Slack-based Sanity copilot that queries and edits content with GROQ, inspects and shapes schemas, manages drafts and releases, and drafts long-form pieces into Notion.
- Slack
- Sanity
- Notion
- Model
- anthropic/claude-sonnet-5
- Authored files
- 10
Filesystem
Browse the authored files at revision f076b80.
agent/agent.tstypescriptimport { defineAgent } from "eve";
/**
* Root agent runtime configuration.
*
* @remarks
* Sets the model and the session budget for the Sanity copilot; the rest of the agent's surface
* (channels, connections, tools, skills, subagents) is discovered from the filesystem under
* `agent/`. Conversation history is compacted once it reaches 75% of the context window, and the
* per-session token limits cap runaway sessions. Raise them if long content work hits the caps.
*/
export default defineAgent({
compaction: { thresholdPercent: 0.75 },
limits: {
maxInputTokensPerSession: 500_000,
maxOutputTokensPerSession: 20_000,
},
model: "anthropic/claude-sonnet-5",
});