Skip to main content
Browse the documentation

Configuration

Files and environment variables

Where Snaga keeps things, what is safe to delete, and the environment variables worth knowing.

Per project

Everything Snaga writes about a project lives in .snaga/ in that project.

PathWhatSafe to delete?
.snaga/sessions/Transcripts and event logsYes — loses history
.snaga/tools/Tools the agent wrote: source, .wasm, .policy.tomlYes — loses those tools
.snaga/cache/wasm/Precompiled WASM, rebuilt on demandYes
.snaga/memory/snaga.dbStored factsYes — the agent forgets
.snaga/eval/runs.sqliteAutonomy run registry and baselinesYes — loses history and baselines
.snaga/specs-history.jsonlInstall ledgerPrefer snaga history prune
.snaga/monitors/monitors.jsonRecurring monitorsYes — monitors stop
.snaga/trust.tomlShell policy and install trustYes — reverts to strict defaults
SNAGA.mdProject memory, in the project rootYours — it is a normal file

Deleting the install ledger by hand is the one to avoid: rollback reads it to know what to revert, so removing it strands anything installed. snaga history prune trims it while keeping every entry that touches something still installed.

Per user

PathWhat
~/.snaga/bin/snagaThe binary
~/.snaga/credentials.jsonCredentials, when not in the system keychain
~/.config/snaga/permissions.tomlLong-term capability policy
~/.snaga/audit/grants.logAppend-only capability grant log
~/.config/snaga/snaga.tomlGlobal config

Environment variables

Ordinary use needs none of these.

Behaviour

SNAGA_NO_NOTIFY=1No desktop notification when a long run ends
SNAGA_NO_PLYAMKA=1Plain spinner instead of the mascot
SNAGA_TOKENAPI token, instead of stored credentials

Terminal

SNAGA_NO_STICKY=1Disable the pinned input bar
SNAGA_FORCE_STICKY=1Force it on a terminal that was not detected as capable
NO_COLOR=1No colour — the standard variable, honoured

WASM sandbox — each of these removes a guard. Set them when you know why:

SNAGA_WASM_ALLOW_PRIVATE_NETWORK=1Let tools reach private addresses
SNAGA_WASM_ALLOW_METADATA=1Let tools reach cloud metadata endpoints
SNAGA_WASM_STRICT=1Adds a keyword denylist at compile time — the one that tightens
SNAGA_WASM_EXECUTE_TIMEOUT_SECSPer-execution wall-clock limit, default 300

The first two exist because the SSRF guard is occasionally wrong for a legitimate case — a tool that genuinely must reach a service on your own network. They are not general "make it work" switches; see Capabilities and the sandbox.

What to back up

Almost nothing. SNAGA.md if you wrote one, and .snaga/trust.toml if you tuned it — both are small text files worth committing. The rest is either regenerable or history you can afford to lose.