Files and directories
Where Astranize keeps everything on disk, what each file is for and what format it uses.
Astranize keeps everything in one folder, ~/.astranize by default. There is no server and no database: these files are the whole state, so you can read them, back them up or move them. Set ASTRANIZE_HOME to use another folder (see environment variables).
Most files are created the first time they are needed, so a fresh folder has only a few of them. This page walks the folder from the top down: the files for the whole machine, then one workspace, then the folder each task fills as it runs.
Machine level
Section titled “Machine level”These files belong to the whole machine, shared by every workspace.
Directory~/.astranize/
- daemon.json
- daemon-processes.json
- daemon.log
- queue.json
- settings.yaml
- settings.json
- limits.json
- vault
Directorytmp/
- …
- remote.json
- machine.json
- machines.json
- paired-clients.json
Directorylogs/
- daemon.log
- autostart-task.xml
Directory.history/
Directorytelemetry/
- …
Directorytrash/
- …
Directoryworkspaces/
Directorynotes/
- …
Directorysite/
- …
| File | Format | Purpose |
|---|---|---|
daemon.json |
JSON, mode 0600 | The running daemon: pid, port, token, startedAt, version. Created when the daemon starts and removed when it stops. The token authorizes every CLI request. |
daemon-processes.json |
JSON | The processes the daemon started, so a restarted daemon can kill any left behind. |
daemon.log |
text | Unexpected daemon crashes, one timestamped entry each. |
queue.json |
JSON | { paused, jobs }, so the queue survives restarts. |
settings.yaml |
YAML | Machine settings and policies: memory floor, max_running, video slots, provider limits, budgets, profiles, each workspace’s profile and permission mode, spare window, telemetry thresholds. The keys are in YAML keys. |
settings.json |
JSON | language (en or pt-BR), and optionally worktrees_root: an absolute folder where worktrees go instead of each workspace’s worktrees/, as <worktrees_root>/<workspace>/. |
limits.json |
JSON | { providers: { claude?, codex? } }: the latest plan-limit reading for each provider. |
vault |
JSON, encrypted | The Vault: its format, version, id, key source (keystore, or a password-wrapped key) and the secrets, sealed with AES-256-GCM. |
tmp/ |
folder, mode 0700 | Short-lived files: secrets while a step needs them, such as a login session or an uploaded verdict; the MCP server settings of a running step (mcp-<id>.json), removed once the agent starts; and text staged for doc (doc-<id>.txt), deleted when read. Agents are denied access to this folder. |
remote.json |
JSON | Remote access: { enabled, port }. |
machine.json |
JSON | This machine’s identity: { id, name }. |
machines.json |
JSON | The machines this one has paired with: key, id, name, address, port. Their tokens are in the Vault. |
paired-clients.json |
JSON | The machines allowed to reach this one, with hashed tokens and when each was last seen. |
logs/daemon.log |
text | The daemon’s output when autostart launched it. |
autostart-task.xml |
XML | Windows only: the scheduled task that autostart enable registers. |
.history/telemetry/settings/ |
YAML | Earlier versions of the telemetry section of settings.yaml. See History and trash. |
trash/ |
folders | Deleted tasks, workspaces, and the state of deleted missions and probes. See History and trash. |
workspaces/ |
folder | One folder per workspace. |
On macOS, autostart enable also writes ~/Library/LaunchAgents/dev.wendel.astranize.daemon.plist, outside this folder.
Workspace
Section titled “Workspace”Each workspace is a folder under workspaces/. It holds your configuration, your flows and prompts, and everything its tasks, missions and probes produce.
Directoryworkspaces/notes/
- config.yaml
- workflow.yaml
Directoryflows/
- default.yaml
Directoryprompts/
- ideator.md
- developer.md
- reviewer.md
- video.md
Directoryscripts/
- …
- rules.md
- mcp.yaml
- permissions.yaml
Directorycontext/
- api symlink to the repo checkout
- api.md
- footprints.json
Directorytasks/
- t-0001.md
Directoryworktrees/
Directoryt-0001/
Directoryapi/
- …
Directoryruns/
Directoryt-0001/
- …
Directorymissions/
- nightly-check.yaml
Directorynightly-check/
- …
Directoryprobes/
- weeknights.yaml
Directoryweeknights/
- …
Directorymetrics/
Directorybaselines/
- before-maps.json
Directoryservices-check/
- …
Directorybackups/
Directorytask-status-v1/
- …
Directory.history/
Directoryflow/
Directoryquick/
- …
Directoryprompt/
- …
Directorytmp/
- …
The files you write by hand come first in this table:
| Path | Format | Purpose |
|---|---|---|
config.yaml |
YAML | Repos, gates, services, video and agent CLIs. Required. See its keys. |
workflow.yaml |
YAML | The version 1 default flow that init copies. Used when flows/default.yaml is missing. |
flows/<name>.yaml |
YAML | Version 2 flows, the app’s Trajectories. default.yaml is the default flow; config.yaml can pick another for new tasks with default_flow. The file name must match the name: key. |
prompts/*.md |
Markdown | The agents’ prompts, copied by init. Flows point at them by path. |
scripts/ |
any | Your helper scripts, copied by init --from from an example. Commands reach them with {workspaceDir}/scripts/.... |
rules.md |
Markdown | Workspace rules every agent gets in its prompt (up to 8 KB). init creates it empty. Edited in Settings, Instructions. |
mcp.yaml |
YAML | The MCP servers flow steps can load: servers: { <name>: { command, args, env } }. Secrets as vault:<name>. Optional. See Trajectories. |
missions/<name>.yaml |
YAML | A mission. See its keys. |
probes/<name>.yaml |
YAML | A probe. See its keys. |
permissions.yaml |
YAML | Permission rules, added when you answer a permission decision with “always allow”. |
context/<repo> |
symlink | A link to the repo checkout, so agents can read every repo from one place. Kept in sync with config.yaml. |
context/<repo>.md |
Markdown | The repo map, written by map or on first use. Starts with a base_commit and generated_at header. |
footprints.json |
JSON | How much memory each kind of step has used, per repo, so the daemon knows what fits. |
tasks/t-NNNN.md |
Markdown with YAML front matter | One task. The front matter holds the task’s fields (status, steps, criteria, history…). The body holds ## Description, ## Spec, ## Answers and adjustments and ## Validation. |
worktrees/<task>/<repo>/ |
git worktree | The task’s branch (astra/<task>-<slug>), one per repo. |
runs/<task>/ |
folder | Everything the task’s run produced. See Run folder. |
missions/<name>/ |
folder | runs/r-NNNN/ (laid out like a task’s run folder: events.jsonl, report.json, summary.md, diff.patch, steps/<id>/output.txt, actions/), records/r-NNNN.md (the run’s record), decisions.json and inbox.json (triggers waiting for the current run). |
probes/<name>/ |
folder | state.json (on or off, last check, AI calls), seen.json (items already seen, the baseline and the fires still to deliver) and decisions.json. |
metrics/baselines/<name>.json |
JSON | Signal baselines saved by metrics baseline save. |
services-check/ |
folder | Logs and markers from services-check. |
backups/task-status-v1/ |
Markdown | Copies of task files taken before an automatic status upgrade. |
.history/<kind>/<name>/ |
files | Earlier versions of the documents you edit. See History and trash. |
tmp/ |
folder | Where the app stages attachments for instruct. Removed after copying. |
Run folder
Section titled “Run folder”Each task gets a run folder, runs/<task>/, that fills up as the task moves: the agents’ streams, gate logs, the review, the proof video and your verdicts. files --root run lists it.
Directoryruns/t-0001/
- events.jsonl
- flow.yaml
- usage.jsonl
- sessions.json
- decisions.json
- instructions.jsonl
- spec.md
- summary.md
- summary.json
- report.json
- diff.patch
Directoryideator/
- round-1.jsonl
Directorycycle-1/
- developer-input.md
- developer.jsonl
- gates.json
Directorygates/
- api-test.log
- review.json
- reviewed.json
- reviewer.jsonl
Directoryvideo/
- t-0001.spec.ts
- astra-fixtures.ts
- playwright.config.ts
- video.jsonl
- results.json
- criteria-run.json
- criteria-results.json
- video.webm
Directoryframes/
- AC-1.png
Directoryoutput/
- …
Directoryvalidation/
- round-1.json
Directoryattachments/
- I-2-note.txt
Directoryround-override/
- …
Directoryservices/
- ports.json
Directoryactions/
- …
| Path | Format | Purpose |
|---|---|---|
events.jsonl |
JSON lines | The task’s events. |
flow.yaml |
YAML | The copy of its flow the task runs on, taken when it starts its first step and again on a restart. Editing the Trajectory does not change it. During a handoff, the next flow waits as handoff-<flow>.yaml. |
usage.jsonl |
JSON lines | One record per agent run: workspace, task, provider, model, effort, step, cycle, attempt, tokens, cost, duration, turns, whether it was downgraded or resumed, and the session id. usage adds these up across workspaces. |
sessions.json |
JSON | The agents’ session ids per step, so a step can pick up its session again. |
decisions.json |
JSON | Every decision of the task, with its status and answer. |
instructions.jsonl |
JSON lines | Instructions as they are added and applied: { kind, instruction }. |
spec.md |
Markdown | The ideator’s spec. |
summary.md |
Markdown | A short status table of the delivery. |
summary.json |
JSON | Written by the summary step: what was done, how, points of attention and the test guide. Missing when that step failed. |
report.json |
JSON | Per criterion: whether a test cites it, the reviewer’s verdict, the video’s result and yours. |
diff.patch |
text | The combined diff of the delivery. |
ideator/round-N.jsonl |
JSON lines | The ideator’s raw stream, one file per round. |
cycle-N/ |
folder | One development cycle: the developer’s input and stream, gates.json with each gate’s result and gates/<repo>-<name>.log, the reviewer’s review.json and stream, and reviewed.json, which says what the review covered. |
video/ |
folder | The generated Playwright spec, fixtures and config, the video agent’s stream, Playwright’s results, per-criterion results and frames, and the recording video.webm. When used, also data.<ext> (the task’s data script) and storage-state.json (a login session). |
validation/round-N.json |
JSON | Each verdict you submitted. |
attachments/ |
files | Files attached to instructions (I-<n>-<name>) and media from an imported request. |
round-override/<step>.json |
JSON | A model and effort chosen for a step’s next round. |
services/ports.json |
JSON | The ports given to the task’s services. |
actions/<step>.json |
JSON | Receipts of action steps, so an action is not repeated when the task resumes. |
.decision-ids/, .instruction-ids/ |
empty marker files | Reserve D-n and I-n ids so two writers never take the same one. |
.facts-cache.json |
JSON | Cached numbers for metrics. Hidden from files --root run. |
History and trash
Section titled “History and trash”Astranize does not throw away what you edit or delete. There are two places for it.
The history keeps earlier versions of the documents you edit in the app or with doc. Each save, delete or restore, and each regenerated repo map, first copies the text it replaces into .history/<kind>/<name>/ inside the workspace, one file per version named after its time, such as 2026-11-22T04-43-11.567Z.md. Single files use their kind as the name (.history/config/config/, .history/rules/rules/), and the telemetry section of settings.yaml goes to ~/.astranize/.history/telemetry/settings/. The last 20 versions of each document are kept; set documents.history_keep in settings.yaml to keep more or fewer. A deleted document lives on here, which is what Deleted and doc list --deleted show.
Directoryworkspaces/notes/.history/
Directoryconfig/
Directoryconfig/
- 2026-11-22T04-42-59.177Z.yaml
Directoryflow/
Directoryfast/
- 2026-11-22T04-46-50.553Z.yaml
Directoryprompt/
Directorychangelog/
- 2026-11-22T04-43-11.567Z.md
Directorycontext/
Directoryapi/
- …
The trash, ~/.astranize/trash/, takes whole folders that Astranize moves aside instead of deleting:
| Entry | What it holds |
|---|---|
<workspace>-<task>-<time>/ |
A deleted task: its task file, its run folder as run/, its worktrees as worktrees/, and uncommitted-<repo>.patch for changes that were never committed. When the worktrees are on another disk, they go to .astranize-trash/ next to the worktrees folder instead, and worktrees-location.txt says where. |
<workspace>-<time>/ |
A workspace moved to the trash, with its policies from settings.yaml saved as policies.yaml. |
<workspace>-mission-<name>-<time>/ |
The run history of a deleted mission. |
<workspace>-probe-<name>-<time>/ |
The state of a deleted probe. |
Nothing empties the trash for you. Restoring a mission or probe document brings back the YAML file, not the folder in the trash.
Outside the folder
Section titled “Outside the folder”Astranize touches two places outside ~/.astranize:
- Each worktree’s
.git/info/excludelists the files Astranize adds to the worktree, the setup marker.astra-setup-doneand the copied files, so they never show up in your diff. - To detect the rtk hook, Astranize reads Claude Code’s
~/.claude/settings.json, or$CLAUDE_CONFIG_DIR/settings.json. It never writes there.
