Skip to the page
Spellbookby MurmurDownload for Mac

Working with the agent

Ask for a draft or a change, then keep or revert what it did.

The agent is your own Claude Code or Codex, signed in on your Mac, on your own account. Spellbook calls Claude Code's agent Claude Agent. It works in the open skill's folder and edits its files with its own tools. It never edits the text in front of you directly: the editor picks up the change from disk and shows it to you to review.

Ask for a change

Open the pane with ⌘J, type what you want, and press ⏎ (⇧⏎ for a new line). Your edits are saved first, so the agent sees what you see. While it works, the editor is read-only and a thin light runs along its top. Press Esc, or choose the stop button, to stop it.

A request, the agent's reply with the file it edited, and the message box with the agent and model.

To ask about one part, select it in the editor and press ⌘L. The selection goes into the message box as a quote, and the agent is told which file and lines it's from.

Give the agent a file

Drag a file from the Finder onto the window, anywhere, and it waits in the message box as a chip until you send. Type what you want done with it, such as "Read this feedback from Sam and tighten the description", or send it on its own. Drop several at once, up to ten.

  • A text file, such as Markdown, a plain text note or a script, up to 5 MB.
  • A picture, PNG, JPEG, GIF or WebP, up to 5 MB, such as a screenshot of what you want a skill to make. Its chip shows a small thumbnail until you send. Claude Agent takes pictures; if your agent doesn't, Spellbook says so and nothing is sent.
  • A skill's folder, one with a SKILL.md in it: the agent gets SKILL.md and the files beside it, so you can say "Take a look at this skill". Files whose names start with a dot, and links, are left out.
  • Words or a link dragged from another app go into the message box where the cursor is. A long run of words, over 5,000 characters, becomes a chip instead, as a long paste does.

The agent gets up to 40,000 characters of each. Past that, it's told where the whole file is, and asks before reading it. Choose the × on a chip to take it out. Sent messages keep their chips, as a record of what the agent was given; the files themselves aren't saved with the skill or its conversation.

Each skill keeps its own conversation with the agent, so moving between skills doesn't mix them up.

Keep or revert

When a turn changes files, the editor shows what changed: lines taken out, struck through in red, and lines put in, in green. A bar above the editor names the agent and how many files it changed.

After a turn: the bar with Revert all and Accept all, and the change in the text.
  • Keep or Revert each change with the buttons beside it, or ⌥⏎ and ⌥⇧⏎. ⌥↓ and ⌥↑ move between changes.
  • Accept all (⌘⏎) keeps everything. Revert all puts every file back as it was before the turn.
  • When several files changed, the bar lists them; choose one to see its changes.

The review lasts until you've decided on every change. Spellbook keeps the files from before the turn only while it's open, so decide before you quit.

Choose the agent and model

The agent and model show under the message box. Choose them to open Settings → Agents, where you pick Claude Agent or Codex and the model for new turns. ⌘K has Switch to Codex and Switch to Claude Agent too.

What the agent is told

The agent gets its own instructions as usual, and Spellbook's writing rules after them: what makes a good skill, how to write the frontmatter, and to say briefly what it changed. Edit the rules in Settings → Writing, or choose Reset to default to go back.

Claude Agent's sessions use none of your own Claude Code setup: no CLAUDE.md, hooks, plugins, MCP servers or permission rules, so nothing else colours the draft. Your sign-in is the exception; see Settings and sign-in. Its tools are reading, searching, editing and writing files, and looking things up on the web.

Check what the agent writes before you rely on it.

The same page is in the app, under Help (⌘?). As Markdown