deity

Run your first session.

Start with a scratch workspace, write a small file, and follow the change into the journal.

Run Deity

From the Deity source directory, use Go 1.27.3 or later. Set ANTHROPIC_API_KEY, OPENAI_API_KEY, or OPENROUTER_API_KEY in your environment, or install the Claude ACP adapter and put claude-agent-acp on your PATH.

workspace="$(mktemp -d)"
go run ./cmd/deity -C "$workspace"

In the terminal, type create notes.md with one line of text. Use -plain if you want a line-based prompt.

Choose a model

Ctrl+K
Open the planner picker.
/model review
/model research
Choose a model for a specific role. Using different models in the same session requires Pro.
/model acp
Pick from the models the connected ACP agent advertises. Select claude-code as your planner and send a message first.

If the provider returns 401, check the API key in your shell. If Claude Code needs sign-in, run claude auth login separately.

Review and roll back

At the approval prompt, press d for a diff or e for an explanation. Ofin marks blocked steps and says which rule applied. Press y only after reviewing what will run.

If the change was recorded as generation 1, inspect it and preview an undo:

why 1
rollback 0

Rollback checks whether the file changed after Deity wrote it. If it did, inspect the current file before proceeding.

Execution boundaries

Native file dry runs use a scratch copy. Shell commands are not simulated and do not have an automatic inverse.

Claude over ACP runs as a separate agent. Deity checks the permission requests it receives and can journal observed edits when it captures the previous file state. The adapter’s own tool access is outside Deity’s isolation and rollback boundary.