Loopweft

Loopweft and AI agents

Loopweft has no AI of its own. An AI agent you run yourself can build and check maps with its command line, by rules that keep the evidence honest.

Loopweft's command line, loopweft, can do everything the Studio does to a map: add variables and links (also as shorthand, Births -> Population (+)), name loops, add sources and cite them, tell a story step by step, check the map and export it. Every command answers in plain words or, with --json, in one JSON document, with exit codes an agent can act on. So an agent that runs commands on your computer, such as Claude Code or Codex, can do the work while you watch the map in the Studio.

The rules an agent is given

How to work with one

  1. Get the command line. For now it runs inside a copy of the repository (with Node 24: npm install, then npx loopweft); the desktop apps will install it for you.
  2. In the Studio, save your map into a folder of its own, then choose File › Work with an AI agent… and Copy agent instructions.
  3. Open your agent in that folder, paste the message, and say what you would like it to do.
  4. Watch: in Chrome or Edge, the open map (opened with File › Open, saved from the Studio, or dropped on its window) follows each change the agent saves, with a note of what changed, and Undo goes back. If you have unsaved changes, the Studio asks which version to keep; it never merges.
  5. Read the agent's report, and check its changes before you rely on them.

loopweft guide --install <folder> also puts the guide in a folder, where Claude Code (.claude/skills/loopweft/SKILL.md) and Codex (AGENTS.md) find it by themselves.

Keep the agent to its folder

Loopweft tells an agent to work only with its guide, the command line and what you give it, but it cannot stop an agent from looking further: many agents can read any file your account can. In Loopweft's own trials, one agent listed file names across a whole user folder, and another read files it was never pointed to.

For agents: the guide is SKILL.md (the same text as loopweft guide prints), and every command, with examples of what it prints, is in the command reference.