Anatomy of src/terse.generated.ts. What terse generate writes, how your workflows import it, and why it’s the single biggest ergonomic win for both humans and coding agents.
Use this file to discover all available pages before exploring further.
Context as Code is the idea. The generated SDK is the artifact.Running terse generate writes a single typed file to your project at src/terse.generated.ts. Every trigger, skill, deterministic tool wrapper, and real workspace resource (channels, repos, objects, owners) is exported as a typed value. Your workflows import from it. Your coding agent reads it. The compiler enforces it.
The generated file is deterministic, overwritten on every terse generate, and committed alongside your workflows. Do not hand-edit it.
Each section is generated from a real integration you’ve connected. Here’s a trimmed snapshot of what you’d see after connecting Slack, GitHub, and Attio.
Every connected integration also generates typed wrappers on agent.tools.*, with the exact parameter and return types of each tool. Use them when you know what to do and don’t want to burn tokens letting a model decide.agent.tools.* is gated at runtime by the agent’s skills: only integrations declared in skills are populated on agent.tools (the others are undefined). The TypeScript surface includes every connected integration, so the safety net here is “you’ll get a clear runtime error if you reach for a skill you didn’t declare.” The same file also exports toolbox: identical typed namespaces, but callable without a TerseAgent and not filtered by skills. Prefer toolbox for workflows that are purely deterministic.
src/terse.generated.ts
export type GeneratedTools = { slack: { /** Send to a channel, existing DM (`channelId`), or member DM (`slackUserId`). */ sendMessage(params: SlackSendMessageParams): Promise<ToolOutputByName["slack_send_message"]> /** Read message history from a Slack channel or DM */ readConversation(params: SlackReadConversationParams): Promise<ToolOutputByName["slack_read_conversation"]> } attio: { /** Query records on an Attio object */ queryRecords<T extends GeneratedAttioObject>(params: AttioQueryRecordsParams<T>): Promise<AttioQueryRecordsResult<T>> /** Upsert records on an Attio object */ upsertRecord<T extends GeneratedAttioObject>(params: AttioUpsertRecordParams<T>): Promise<AttioUpsertRecordResult<T>> } github: { /** Search code by semantic meaning */ searchCode(params: SearchGitHubCodeParams): Promise<ToolOutputByName["searchGitHubCode"]> }}declare module "terse-sdk" { interface TerseAgent { readonly tools: GeneratedTools }}
Because every resource, trigger, skill, and tool is an export, your workflow code reads like a description of your business, not a scavenger hunt through admin UIs.
Before the generated SDK, shipping a workflow meant context switching between your editor, your CRM admin, your Slack workspace, and GitHub settings to collect IDs. After it, SlackChannel.DealDesk replaces "C08XYZ1234" and Repos.TerseAI.Terse replaces a repository ID you’d otherwise dig out of a URL. Your editor lists every connected channel, object, and repo inline; hover for the real name. When #deal-desk is renamed in Slack, the next terse generate rewrites the constant and your code keeps working against SlackChannel.DealDesk. PRs read like English: AttioObject.Deal, not "obj_f1e3c0b2…".
The generated SDK is the difference between an agent that guesses and an agent that knows. This is where the compounding wins live:
Cursor, Claude Code, Windsurf, and Codex see every real channel, repo, and list as an exported symbol; they pick the one that exists instead of asking which channel to post to.
Agents are notoriously bad at preserving long opaque strings across tool calls. With resource constants, there’s nothing to copy.
If an agent invents SlackChannel.SalesTeam or Repos.TerseAI.Website, the TypeScript language server in your editor flags it immediately, and any tsc --noEmit step in your own CI catches it before push. A fabricated resource never lands.
agent.tools.slack.sendMessage requires message plus either channelId or slackUserId (or both; channelId wins). The signature is enforced, so an agent can’t accidentally pass channel_name or forget message.
Point your coding assistant at src/terse.generated.ts and it instantly has a complete map of the integrations, resources, and tools available in your workspace. No documentation gap.
The net effect: coding agents ship working workflows on the first try, without a human looping through “here’s the channel ID, here’s the list ID, here’s the repo name” every time.