Agents
Connect an agent app to your project, see what it changed, and undo it.
An AI agent is your choice. Qwil is complete without one. If you want one, connect an agent app such as Claude Desktop or Claude Code to your project, ask it things in your own words, and take back what it did.
Let agents change your projects
Open Settings › General › Automation and turn on Changes from agents. While it's off, agents can read your projects but not change them, and they tell you where to turn it on.
Connect an agent app
- In Settings › General › Automation, under Connect an agent, click Copy beside MCP configuration.
- Paste it into your agent app's MCP settings. In Claude Desktop that's Settings › Developer › Edit Config.
- Restart the agent app.
For Claude Code, copy the line under For Claude Code, run this in a terminal and run it once.
The configuration names no project. The agent works on the one you chose with qwil use (see The command line), or asks you which one. An agent app started inside a project's folder, such as Claude Code, works on that one.
Work with it
Ask in your own words: "Which scenes have no synopsis yet?", "Rename The council to Der Rat tagt." or "Who in my codex belongs to the Northern Host?" It can read and change your scenes and your codex, split and join scenes, read the trash and export your book. Ask it to show you the project: it opens in Qwil, and the window comes to the front.
Bring a Word file in
Ask it to bring your Word file into Qwil. It shows you the parts, chapters and scenes it found before it makes the project. Or do it yourself: see Import a Word file.
Bring an old project in
- In the agent app, choose the prompt "Bring a project into Qwil" from the qwil server, and give it your old project's folder. In Claude Code, type
/, pick bring_into_qwil, and add the folder after it. - The agent reads it, proposes where each part goes in Qwil and what stays behind, and waits for your yes before it writes anything.
It can start a new project for it, or bring it into one you made. Your old folder stays as it is: the agent only reads it. In Claude Desktop, turn on its Filesystem extension and allow the folder first.
See and undo what an agent changed
In Settings › General › Automation, Changes from outside Qwil lists the open project's changes from agents and from qwil in your terminal, newest first: who made them, when, and how many.
Click Undo beside one. Everything that agent changed in that session goes back, newest change first, and the row says Undone. Or ask the agent to undo it.
Good to know
- Everything an agent app changes in one project is one session, from the moment it starts until you quit the app. Claude Desktop keeps running between conversations, so two conversations can share one.
- If something changed again after the agent changed it, Undo takes back the agent's later changes, stops there, and tells you so.
- An agent can't start Qwil. If Qwil isn't open, the agent hears so and can ask you to open it.
- Opening a project for you counts as a change, so it needs Changes from agents on.
- Agents change your projects only. Your settings and your dictionary for every project stay yours to change in Qwil.
- An agent can read your trash. To empty it, or to delete one thing for good, do it yourself.
- An agent's change to a scene or a description keeps what it held before as a version, so you can get it back in Versions.
- Exporting changes nothing, yet it waits for Changes from agents too.
- Notes on characters and places stay behind when an agent brings an old project in.