Write with an agent
An agent can draft a story (format: deck, report…) or a documentation page from a short brief,
check every scene with Récit's deterministic tools, and leave the file for you to inspect. Once you
have checked it, recit ai jobs record logs the session in the
generation register (.recit/jobs/).
What you need
- A Récit project (with a
recit.at its root) andconfig.ts @recit/mcpinstalled next to@recit/cli. - Claude Code or opencode connected to the MCP server
(
claude mcp add recit --, or annpx recit mcp serve mcp.recitentry inopencode.json). - Optionally, the Récit guides exported as Agent Skills with
npx recit skills export— or as opencode roles in.opencode/withagent/ recit skills export --.target opencode
One brief for both agents
Give either host the exact same brief. A documentation page of a Récit site is plain Markdown, not a
story: there is no format guide for it and recit validate does not read it, so its brief keeps the
target and step 4 and drops steps 1 to 3; it is recorded the same way below.
Code
Run the agent
Récit requires no API key in recit.config and imposes no model: each host uses its own credentials
and model selection.
From Claude Code:
Shell
From opencode:
Shell
Check the file
Verify the written story from the project root before keeping it:
Shell
recit validate converts the Markdown into its typed JSON twin and checks every scene against the
format's schema (add --strict before publishing).
Record the session
recit ai jobs record (experimental) writes one .recit/ entry under the project
root for the files the agent wrote:
Shell
What the record stores:
--tool(claudeoropencode, required) and optional--session <id>identify the agent run.- Every file argument must exist inside the project folder; paths are normalized to POSIX paths
relative to the
recit.configdirectory and deduplicated in order. Each entry carriesprovenance:— plus{ origin: "ai", tool } modelwhen a single--modelwas passed. --model <provider/is repeatable;model> modelsstores the sorted, deduplicated list.--started-sets the UTC start timestamp (at <iso> now -by default) andduration --duration <ms>records the elapsed milliseconds (0by default).--failed <message>records a failed session (state:and"failed" error), with the files the agent wrote before stopping or with none (recit ai jobsthen showsno file).
Example .recit/:
JSON
recit ai jobs lists agent sessions next to plugin runs under the label claude <session> (or
opencode <session>):
Shell
Code
What Récit does not do
- Never calls a model.
@recit/core,@recit/cliand@recit/mcpnever call an LLM or hold a key: the agent host talks to the model, and Récit validates the result. - Writes nothing without the command. Neither
recit mcp servenorrecit validatewrites to.recit/jobs/; an agent session is recorded only when you runrecit ai jobs record. - Never read by
recit build.recit buildnever reads.recit/jobs/. Keep.recit/in.gitignoreso local session logs stay on your machine while the validated story enters version control like any hand-written file.