Skip to content

Settings

theta resolves settings using a cascade: CLI flag > environment variable > built-in default.

Directory overrides

Setting CLI flag Environment variable Default
Instructions directory --instructions-dir THETA_INSTRUCTIONS_DIR instructions
Rules subdirectory --rules-dir THETA_RULES_DIR rules
Subagent prompts directory --subagent-prompts THETA_SUBAGENTS_DIR subagents

The instructions/rules settings control where theta add system and theta add rule scaffold files. THETA_SUBAGENTS_DIR controls where theta cast from writes externalized subagent prompt files and where theta add subagent scaffolds new .md files:

<instructions-dir>/
├── system.md
└── <rules-dir>/
    ├── safety.md
    └── style.md

With defaults, that's instructions/system.md and instructions/rules/safety.md.

Well-known paths

Path Purpose
theta.toml Agent manifest
theta.lock Lockfile (committed to VCS)
.theta/ Materialized dependencies (gitignored)
~/.cache/theta/ Cache (XDG: $XDG_CACHE_HOME/theta/)
~/.cache/theta/git/ git clone cache
~/.cache/theta/registry/ MCP registry response cache
~/.local/share/theta/store/ System store (XDG: $XDG_DATA_HOME/theta/store/)

Manifest resolution

theta finds the manifest by:

  1. --manifest <path> flag (if provided)
  2. theta.toml in the current directory (or --directory if set)

Machine-readable output

theta check, theta list, and theta tree support --output-format json:

theta check --output-format json
theta list rules --output-format json
theta tree --output-format json

theta schema dumps the full JSON Schema for theta.toml:

theta schema > theta-manifest.schema.json