mait-code command reference¶
The mait-code binary owns the install lifecycle. It's installed via
uv tool install from the local source — the bash shim
(scripts/install.sh) handles that bootstrap step the first time.
After that, everything goes through the CLI.
Run bare on a terminal — mait-code with no subcommand — it opens the
home hub, the companion's front door; piped or redirected it
prints this help instead. The subcommands below are the rest of the surface.
This page documents every subcommand: synopsis, flags, behaviour, examples, exit codes.
Conventions¶
| Convention | Meaning |
|---|---|
<value> |
Required positional or option argument the user supplies. |
[--flag] |
Optional flag. |
--claude-dir <path> |
Override ~/.claude (useful for tests and non-default layouts). Accepted by install / update / uninstall / status / doctor. |
--data-dir <path> |
Override ~/.claude/mait-code-data. Accepted by install / uninstall / status / doctor. |
--no-color |
Disable coloured output. A global flag (mait-code --no-color doctor); colour is also dropped automatically off a TTY and under NO_COLOR / TERM=dumb. |
Every subcommand also accepts --help and prints a one-screen summary.
Install record¶
The CLI persists state at ~/.local/share/mait-code/install.json
(XDG-aware — honours $XDG_DATA_HOME). It is:
- Created by
install. - Updated by
update(refreshesupdated_at, preservingfirst_installed_at). - Read by
update,uninstall,status,doctor,settings. - Removed by
uninstall.
Schema (schema_version: 2):
{
"source_dir": "/home/wiktor/projects/mait-code",
"first_installed_at": "2026-05-27T10:00:00+00:00",
"updated_at": "2026-07-09T14:30:00+00:00",
"schema_version": 2
}
first_installed_at is frozen at the first install and carried across
every update; updated_at is refreshed on each one — so status
shows both an install date and a last-updated date.
A record written by an older binary (schema_version: 1) had a single
installed_at field. It still reads: both timestamps are seeded from
it (the true first-install date isn't recoverable), and the next
update writes a v2 record. A binary refuses to read a record whose
schema_version exceeds what it understands — the error message
points at mait-code update as the recovery path.
mait-code install¶
Synopsis
mait-code install --from <path> [--embedding-provider local|bedrock]
[--data-dir <path>] [--claude-dir <path>]
Description
First-time setup. Validates the source path is a mait-code clone,
creates data directories, copies templates, sets up symlinks
(CLAUDE.md, skills/*, agents/*), writes settings.toml, merges
settings.json, and writes the install record.
Flags
| Flag | Default | Description |
|---|---|---|
--from <path> |
(required) | Absolute path to the cloned mait-code source tree. |
--embedding-provider <name> |
the configured provider, else local |
local (fastembed) or bedrock (AWS Bedrock; install with [bedrock] extra). Omit it on a re-install to keep the current choice. |
--data-dir <path> |
$MAIT_CODE_DATA_DIR or ~/.claude/mait-code-data |
Override the data directory location. |
--claude-dir <path> |
~/.claude |
Override the Claude Code config directory. |
Behaviour
- Verifies
<source>/pyproject.tomlexists withname = "mait-code"and<source>/src/mait_code/is a directory. - Creates
<data-dir>/memory/observations/and<data-dir>/memory/reflections/. (memory/graph/is intentionally not created.) - Syncs the identity templates into the data dir —
soul_document.md,user_context.mdandcommunication_style.md. A missing file is copied; an existing one is replaced only when it is a byte-identical, untouched copy of an older shipped template. Anything you've edited is never overwritten. - Writes a
MEMORY.mdstub into<data-dir>/memory/if missing. - Symlinks
<source>/config/CLAUDE.mdto<claude-dir>/CLAUDE.md. If a non-symlinkCLAUDE.mdalready exists, it's first renamed toCLAUDE.md.backup. - Symlinks each
<source>/skills/<name>/into<claude-dir>/skills/and each<source>/agents/<file>into<claude-dir>/agents/..gitkeepplaceholders are skipped. - Writes
settings.toml, starting from the existing file: every setting you've changed and the[env]table are kept, andembedding-providerchanges only when--embedding-provideris passed. A fresh install gets the defaults withembedding-provider = "local". - Merges
<source>/config/settings.jsoninto<claude-dir>/settings.json(hooks, mcpServers, and aMAIT_CODE_*env entry for each setting insettings.toml). When themodssetting is on, also registers the companion mod folder in theCLAUDE_CODE_PLUGIN_DIRSenv entry. User-set keys are preserved verbatim. The write is atomic (tempfile + rename). - Writes the install record.
Examples
# Standard install from a local clone:
mait-code install --from "$PWD"
# Bedrock-backed install with a non-default data directory:
mait-code install --from /opt/mait-code/source \
--embedding-provider bedrock \
--data-dir /var/lib/mait-code
Exit codes
| Code | Meaning |
|---|---|
0 |
Install succeeded. |
1 |
<source> is not a mait-code clone, or --embedding-provider is not one of local / bedrock. |
Notes
- This subcommand does not run
uv tool install. By the time it runs, themait-codebinary is already on PATH (that's how it was invoked). The bash shim handles the bootstrap. - Re-running
installis safe: symlinks that already point at the right target are left alone, edited templates are never overwritten, and your settings are kept (step 7). To refresh an existing install from a newer release,updateis still the tool — it also advances the source clone.
mait-code update¶
Synopsis
Description
Advance the source tree to the right ref and — only if HEAD actually moved — reinstall via uv tool install, then refresh symlinks, settings and identity templates and bump the install record. A repeated update with nothing new upstream is a cheap no-op: the reinstall is skipped rather than rebuilding every package.
How the source is advanced depends on its current state — a bootstrap install pins to a release tag (detached HEAD), while a local-clone dev install sits on a branch:
--ref <X>given → checkoutX.- On a branch → fast-forward it (
git merge --ff-only). - Detached HEAD (typical post-bootstrap) → force-checkout the latest
v*tag.
Detached HEAD discards local edits
On a detached-HEAD source the checkout runs with --force. Skills are
symlinked into ~/.claude, so editing one in place writes through into the
source tree — and the next update throws those edits away. Keep changes
you care about in a clone on a branch.
Flags
| Flag | Default | Description |
|---|---|---|
--no-pull |
off | Skip the network fetch and branch fast-forward; reinstall from whatever is currently checked out. --ref still checks out a local ref. |
--ref <ref> |
(none) | git checkout <ref> (after a fetch unless --no-pull). Pins to a tag/branch/sha. |
--force |
off | Reinstall even when the source HEAD did not move — e.g. to rebuild uncommitted working-tree edits on a dev checkout. |
--claude-dir <path> |
~/.claude |
Override the Claude Code config directory. |
Behaviour
- Reads the install record. Aborts with exit
1if missing. - Verifies the recorded source dir still looks like a mait-code clone.
- Reads
embedding-providerfromsettings.toml. Aborts with exit1if it's missing (an install that predatessettings.toml— runinstall) or notlocal/bedrock. - Unless
--no-pull:git fetch origin --tags --prune. - Advance to the target ref:
--refgiven →git checkout <ref>.- on a branch →
git merge --ff-only(skipped under--no-pull). - detached HEAD →
git checkout --force <latest v* tag>, discarding local edits to tracked files. Aborts if there are no tags and no--ref.
- If
HEADmoved during step 5 (or--forcewas given):uv tool install <source>[<extra>] --force --reinstall-package mait-code --python 3.13.--reinstall-package mait-codeforces a rebuild of just the local source — whose version does not bump between commits — while leaving unchanged third-party deps in place. The[bedrock]extra is applied whenembedding-provider(step 3) isbedrock. IfHEADdid not move and--forcewas not given, this step is skipped. - Re-runs the symlink and settings-merge steps from
install(picks up new skills, settings.json changes): every key set insettings.tomlis mirrored intosettings.jsonas itsMAIT_CODE_*env entry, and the mod'sCLAUDE_CODE_PLUGIN_DIRSentry is added or removed to match themodssetting. These run even when the reinstall is skipped. - Syncs the identity templates, as
installstep 3 does — creating any the install predates and upgrading untouched copies of older ones. This runs the code loaded when the command started, so a template change shipped in the release being installed lands on the next update. - Rewrites the install record with a fresh
updated_at, preservingfirst_installed_at.
Examples
# Standard update — fetch, advance to latest tag (or fast-forward
# branch), reinstall, refresh:
mait-code update
# Pin to a specific release tag:
mait-code update --ref v0.14.1
# Reinstall from the current checkout without touching git:
mait-code update --no-pull
# Force a rebuild even when nothing moved (e.g. uncommitted dev edits):
mait-code update --no-pull --force
Exit codes
| Code | Meaning |
|---|---|
0 |
Update succeeded. |
1 |
No install record, source dir no longer valid, no valid embedding-provider in settings.toml, detached HEAD with no v* tags (and no --ref), or any subprocess (git, uv) failed. |
mait-code uninstall¶
Synopsis
Description
Reverse the install footprint. Removes symlinks, strips mait-code
entries from settings.json, runs uv tool uninstall mait-code,
deletes the install record. Preserves the data directory by default.
Flags
| Flag | Default | Description |
|---|---|---|
--purge-data |
off | Also delete the data directory (memories, personalised soul / user-context files). Destructive. |
--keep-uv-tool |
off | Skip uv tool uninstall mait-code (useful when temporarily downgrading or switching extras). |
--data-dir <path> |
$MAIT_CODE_DATA_DIR or ~/.claude/mait-code-data |
Override the data directory location. |
--claude-dir <path> |
~/.claude |
Override the Claude Code config directory. |
Behaviour
- Reads the install record (best-effort — missing record is a warning, not an error).
- Removes
<claude-dir>/CLAUDE.mdif it's a symlink pointing into the recorded source. RestoresCLAUDE.md.backupif present. - Removes skill symlinks under
<claude-dir>/skills/that resolve into the recorded source. Foreign symlinks (e.g. from other tools) are preserved. - Same for agents.
- Cleans mait-code-owned entries from
<claude-dir>/settings.json(hook commands with themc-hook-prefix; legacymait-remindersMCP server; everyMAIT_CODE_*env entry; the mod folder inCLAUDE_CODE_PLUGIN_DIRS, keeping any other plugin folders). Empty top-level sections are dropped. uv tool uninstall mait-code(unless--keep-uv-tool). Failure here is a warning — the binary may already be gone.- With
--purge-data: deletes the data directory. - Deletes the install record.
Examples
# Standard uninstall — keeps memories and personalised files:
mait-code uninstall
# Full wipe (data dir too):
mait-code uninstall --purge-data
# Downgrade to an older release without losing settings:
mait-code uninstall --keep-uv-tool
uv tool install mait-code --version 0.14.0
mait-code install --from /path/to/old-source
Exit codes
0 always. Uninstall is best-effort; missing components produce
warnings on stderr, not non-zero exit. If you need failure on broken
state, run mait-code doctor first.
mait-code status¶
Synopsis
Description
Read-only summary of the current install. There's no diagnostic intent
here, just a report: it exits 0 whatever it finds, and refuses to run
(exit 1) only when settings.toml is missing, rather than present
defaults as configured values. The text output is grouped
into sections under a one-line health badge (healthy / degraded /
not installed); degraded flags fixable oddities such as an unlinked
CLAUDE.md, with a git-style hint on how to fix them.
Flags
| Flag | Default | Description |
|---|---|---|
--json |
off | Emit a machine-readable JSON document instead of human-readable text. The JSON shape is stable and independent of the text grouping. |
--data-dir <path> |
$MAIT_CODE_DATA_DIR or ~/.claude/mait-code-data |
Override the data directory location. |
--claude-dir <path> |
~/.claude |
Override the Claude Code config directory. |
Reports
| Group | Fields |
|---|---|
| Header | Version and a health badge: healthy, degraded, or not installed. |
| Install | source_dir, the resolved mait-code binary path, install date |
| Identity | CLAUDE.md symlink status, and presence of soul_document.md / user_context.md / memory/MEMORY.md |
| Components | Linked / available skills and agents; registered hook events |
| Memory | Embedding provider; data-dir path and humanised size |
Examples
Exit codes
| Code | Meaning |
|---|---|
0 |
Report printed (a degraded install still exits 0). |
1 |
settings.toml is missing — run mait-code install. |
mait-code doctor¶
Synopsis
Description
Validate the install. Surfaces silent breakage — broken symlinks,
unparseable settings, hook commands missing from PATH. Exits 1 if
any check reports a fail-level finding, 0 otherwise. Each failing or
warning check carries the exact command or URL to fix it, and the run
ends with a one-line pass/fail verdict. The --json output includes a
fix_hint field per check.
Flags
| Flag | Default | Description |
|---|---|---|
--fix |
off | Apply safe fixes for the four findings that support them: dangling symlinks, a missing data dir, an unsettled embedding record, and missing embeddings. |
--json |
off | Emit a machine-readable JSON document. |
--llm |
off | Also run the nested-llm check, which reaches the network and makes one small real model call. |
--data-dir <path> |
$MAIT_CODE_DATA_DIR or ~/.claude/mait-code-data |
Override the data directory location. |
--claude-dir <path> |
~/.claude |
Override the Claude Code config directory. |
Checks
| Name | Levels | Description |
|---|---|---|
install-record |
ok / fail | Record exists and parses at the expected schema version. |
source-dir |
ok / warn / fail | The recorded source still exists and looks like a mait-code clone. warn when there's no record to validate against. |
settings-file |
ok / fail | settings.toml exists and parses as TOML. |
settings-values |
ok / fail | Every setting's value is valid for its type and range, and cross-field invariants hold (the scoring weights must sum to 1.0). fail lists each offending value. |
env-table |
ok / warn | The [env] table carries no MAIT_CODE_* keys — those are ignored at startup; set them through the matching settings.toml keys instead. |
settings |
ok / warn / fail | <claude-dir>/settings.json parses as JSON. warn if missing. |
hooks-on-path |
ok / warn / fail | Every registered hook with the mc-hook- prefix resolves on PATH. |
symlinks |
ok / warn | No dangling symlinks under <claude-dir>/skills/ or <claude-dir>/agents/. Dangling links are a warning (auto-fixable, so they don't fail the run); --fix removes them. |
data-dir |
ok / fail | The data dir exists and is writable. With --fix, creates it (plus the memory/observations and memory/reflections subdirs) if missing. |
embedding-record |
ok / warn / fail | The stored vectors are recorded as built by the configured embedding model. fail when they came from another model — vector search, dedup and embedding stay off until a reindex; warn when no model is recorded, so a model change would go unnoticed. With --fix, verifies a re-embedded sample and adopts the configured model if it matches, re-embedding otherwise. |
memory-embeddings |
ok / warn | Every live memory entry carries a vector. Entries stored while the embedding provider was unavailable are invisible to semantic search; warn reports the count and points at mc-tool-memory reindex. With --fix, embeds just the missing entries — existing vectors are left alone (progress goes to stderr, so --json output stays parseable); if the embedding provider can't run, the warning stands and reports why. |
vector-search |
ok / warn | The sqlite-vec extension loads and the vector table is queryable. warn means recall silently degrades to keyword-only search; the message names the configured embedding provider and model. |
observe-pipeline |
ok / warn | The observe hook has recorded a capture recently. warn when the newest capture is over 7 days old, or when a memory database exists but the hook has never captured anything. |
bridge |
ok / warn | When the Bridge is enabled, its channel config is complete. Disabled is ok; enabled with gaps is warn, never fail. |
mods |
ok / warn | The mods setting and CLAUDE_CODE_PLUGIN_DIRS agree: warn when the mod is on but not registered, off but still loaded, loaded from another source tree, or its folder is missing. Re-applying the setting (settings set mods …) repairs it. |
uv-on-path |
ok / fail | uv is on PATH — required for install / update. |
nested-llm |
ok / fail | With --llm only. One real nested claude -p call, made the way observe and reflect make theirs, exits 0 with no tools and no MCP servers. fail shows the call's stderr when it is refused (e.g. by a host's managed config), names any tool or MCP server that leaked through, fails when the call prints no init event to confirm either, or reports a Claude Code older than 2.1.257, where managed permission rules can drop the MCP deny. The probe times out after 30 seconds. The hub and dashboard never run it. |
Examples
mait-code doctor # diagnose
mait-code doctor --fix # diagnose and clean up safe findings
mait-code doctor --json | jq '.checks[] | select(.level=="fail")'
Exit codes
| Code | Meaning |
|---|---|
0 |
No fail-level findings (warnings are allowed). |
1 |
One or more checks reported fail. |
mait-code settings¶
Synopsis
mait-code settings # interactive editor (TTY) / list (piped)
mait-code settings list [--json] # read-only, provenance-aware view
mait-code settings get <key> [--json] # one resolved value + source
mait-code settings get theme --palette # the resolved theme's colours, as JSON
mait-code settings set <key> <value> [flags]
mait-code settings set env.<NAME> <value> # add / change a custom [env] variable
mait-code settings unset env.<NAME> # remove a custom [env] variable
Description
View and edit the active configuration. Bare mait-code settings opens a
full-screen editor (a Textual TUI) when
attached to a terminal, and falls back to the read-only view (list) when
piped or redirected, so scripts are unaffected. Every write — from set or
the editor — goes through one shared path: validate → persist
settings.toml → keep settings.json in step → run the required follow-up.
The interactive editor¶
A master–detail layout: the settings list on the left, an inline edit form
on the right that adapts to the highlighted setting — a radio set for enums
(embedding-provider, log-level, bridge, mods, status-bar-style, and
theme, whose choices are the registered themes), a text input with live validation for
everything else, and a read-only view for derived values. The three scoring
weights collapse into one grouped row whose editor retunes all three at
once and only enables Apply when they sum to 1.0. Migration and
data-dir changes confirm their follow-up in a modal; a re-embed drops out
to the terminal so reindex prints its normal progress, then returns.
| Key | Action |
|---|---|
↑ / ↓ |
Move between settings |
Ctrl+S / Enter |
Apply the edit (or open the grouped weight editor) |
q |
Quit |
settings list¶
Read-only view of every knob the framework reads, with its resolved value
and source. Modelled on aws configure list. It reports configuration,
it doesn't validate it (that's doctor's job, via the settings-values
check), so it exits 0 whatever the values — but like status it refuses to
run, with exit 1, when settings.toml is missing. Custom [env] variables
show as env.<NAME> rows, followed by the tool-approval presets.
| Flag | Default | Description |
|---|---|---|
--json |
off | Emit a machine-readable JSON document instead of text. |
| Column | Meaning |
|---|---|
SETTING |
The knob (see the groups below). |
VALUE |
The resolved value (default values are dimmed). |
SOURCE |
env, settings (the TOML file), default, or derived (computed, read-only). Migration-sensitive knobs are marked ⚠. |
Settings fall into three groups:
- Primary — written uncommented in
settings.toml:data-dir,log-level,log-file,theme,bridge,bridge-type,mods,status-bar-style,jira-base-url,pr-skill,embedding-provider,embedding-model,bedrock-model-id,bedrock-region. - Advanced — written commented-out (the built-in default applies until you opt in via
setor by uncommenting):log-backup-count,extraction-model,reflection-model,llm-timeout,reflection-batch-size,reflection-novelty-gate,git-timeout,dashboard-tile-timeout, the review knobsreview-thresholdandreview-min-importance, and the scoring/dedup tuning knobsscore-weight-recency,score-weight-importance,score-weight-relevance,half-life-episodic,half-life-semantic,half-life-procedural,dedup-string-threshold,dedup-vector-threshold,dedup-conflict-threshold,scope-boost-global,scope-boost-cross-project. - Derived (source
derived, not settable):embedding-dim,memory-db-path,reminders-db-path,bridge-config-path,model-cache-dir,observations-dir,project-aliases-path,dashboard-config-path.
See the Memory guide for per-setting defaults and the scoring/dedup tuning ranges.
settings get¶
Print one resolved value and its source, for scripting. --json emits
{"key", "value", "source"}. An env.<NAME> key reads a custom [env]
variable instead. Exits 1 on an unknown key, or an env.<NAME> that isn't in
the table.
settings set¶
Validate <value> against the same rules doctor runs, write it to
settings.toml, then run the required follow-up. Validation reuses each
setting's own validator (and enum choices, e.g. embedding-provider ∈
{local, bedrock}, log-level ∈ {DEBUG, INFO, WARNING,
ERROR}).
| Flag | Default | Description |
|---|---|---|
--reindex / --no-reindex |
unset | For a migration key: re-embed memories now, or defer. |
--move-data / --no-move-data |
unset | For data-dir: relocate existing data, or leave it in place. |
Follow-ups by key:
| Key(s) | Follow-up | Flag (required) |
|---|---|---|
embedding-provider, embedding-model, bedrock-model-id |
re-embed stored memories (rebuild the vector table) | --reindex / --no-reindex |
data-dir |
move the existing data directory to the new path | --move-data / --no-move-data |
mods |
load or unload the companion mod via CLAUDE_CODE_PLUGIN_DIRS in settings.json; lands in the next Claude Code session |
— |
| everything else | none — applies on the next invocation | — |
For migration keys and data-dir, omitting the flag is an error that
explains the destructive follow-up rather than guessing. The three scoring
weights (score-weight-*) are rejected by set — they must sum to
1.0, so changing one alone would leave an invalid file; use the
interactive editor (which retunes all three at once) or edit settings.toml
directly (doctor validates the result).
Env shadowing. Resolution is env → file → default. set keeps an
already-mirrored MAIT_CODE_* key in ~/.claude/settings.json in step
with the TOML, so the value install mirrored there (e.g.
embedding-provider) can't silently shadow your change. It never adds
keys to settings.json. If a shell export still overrides the new value,
set warns precisely and names the variable to unset.
Custom [env] variables. set env.<NAME> <value> adds or changes a
variable in the [env] table of settings.toml, which every mait-code entry
point injects into its environment at startup (a variable already set in your
shell wins). MAIT_CODE_* names are refused — those are settings. See the
settings guide
for the rules.
settings unset¶
Remove a custom [env] variable: mait-code settings unset env.<NAME>. Only
env.<NAME> keys can be unset — registry settings always resolve to a value,
so to undo one, set it back to its default.
Examples
mait-code settings # edit interactively
mait-code settings list --json | jq '.settings[] | select(.source == "env")'
mait-code settings get embedding-provider
mait-code settings set log-level DEBUG
mait-code settings set embedding-provider bedrock --reindex
mait-code settings set data-dir ~/mait-data --move-data
mait-code settings set env.AWS_PROFILE dev-bedrock
mait-code settings unset env.AWS_PROFILE
Exit codes: every form exits 1 when settings.toml is missing.
Otherwise list/bare exit 0; get, set and unset exit 1 on an
unknown key, invalid value, a missing required follow-up flag, or (for
unset) a key that isn't env.<NAME> or isn't in the table.
mait-code identity¶
Prints a file from the configured data directory (following data-dir and
MAIT_CODE_DATA_DIR), for skills that load one at preprocessing time:
/outward-comms reads writing_style this way, and the board skill's refine
step reads testing_strategies. <name> is the file name
without .md, and only the shipped identity files can be named:
communication_style, soul_document, testing_strategies, user_context
and writing_style.
Anything else, and a file that doesn't exist yet, exits 1 with a message on
stderr.
mait-code board¶
Synopsis
mait-code board # interactive kanban (TTY) / text render (piped)
mait-code board --initiatives # open on the Initiatives view (epics) / epic list (piped)
Description
Open the project kanban board. Attached to a terminal, it launches a full-screen Textual TUI; when piped or redirected it falls back to a read-only text render, so scripts and the session-start summary are unaffected.
--initiatives opens on the Initiatives view — every open epic with its
progress and members. Off a TTY it prints one line per open epic instead
([#<id>] (<priority>) <title> — <status> — <progress>, or No initiatives.).
The board has a single fixed workflow shared by every project — the columns are not configurable. Cards flow left-to-right through five columns:
| Column | Status | Meaning |
|---|---|---|
| Backlog | backlog |
Captured, not yet refined. |
| Refined | refined |
Scoped and ready to pick up. |
| In Progress | in_progress |
Being worked on. |
| In Review | in_review |
Finished and awaiting review, usually an open PR. Hidden in the TUI while empty (v shows it anyway). |
| Done | done |
Completed. Hidden in the TUI by default (d shows it). |
A further status, archived, sits off the flow and is hidden by default
(toggle it into view with a in the TUI).
blocked is not a column — it is a free-form tag carried in place, so a
blocked card keeps its real flow position. Blocking is the first consumer of a
general tagging system (tag / untag on the CLI, t in the TUI).
The interactive board¶
A column-per-status layout you navigate by card. Movement keys reslot the highlighted card; the rest create, edit, annotate, tag, or change what's shown. The main keys are below — the board guide has the full tables for the board, the Initiatives view and the card detail screen.
| Key | Action |
|---|---|
← / → / 1–6 |
Move focus between columns, or jump to the nth visible one |
< / > |
Move the highlighted card to the previous / next column |
Enter |
Open the card detail view |
n / e |
New card / edit the highlighted card |
c / C |
Comment on / complete the highlighted card |
t |
Toggle a tag on the highlighted card (type the tag; present → removed, absent → added) |
b / u |
Add / remove the blocked tag on the highlighted card (in place) |
p / / |
Filter by project / search cards by title |
v / d / a |
Toggle the In Review column / the Done column / archived cards |
r |
Reload the board from the database |
i |
Switch to the Initiatives view — epics with progress and their members |
q |
Quit |
The non-TTY render¶
Off a TTY, the board prints every project's cards grouped by column in board order, skipping empty columns:
Backlog (5):
[#12] (high) Wire up the reflection batch gate [mait-code]
...
In Progress (1):
[#9] (med) Document the board subcommand [mait-code]
Each line is [#<id>] (<priority>) <title> [<project>]. When there are no
cards at all it prints No cards on the board.
Examples
mait-code board # drive the board interactively
mait-code board | cat # plain text render (e.g. for piping or logs)
mait-code board --initiatives # open on the epics
Exit code: always 0.
The board is also reachable mid-session through the
boardskill — see Skills. The CLI tool behind both ismc-tool-board.
mait-code observations¶
Synopsis
Description
Browse the raw extraction tier — what the observe hook has captured that reflection hasn't yet synthesised. Attached to a terminal it launches a full-screen Textual TUI: observations grouped by capture day, each flagged pending or reflected against the reflection watermark, with the selected one rendered in full. Piped or redirected it falls back to a read-only day-grouped summary.
The browser is read-only — it never reflects, edits or deletes. See the observations browser guide for the full tour.
The interactive browser¶
| Key | Action |
|---|---|
↑ / ↓ |
Move the highlight; the detail pane follows |
Enter / Space |
Expand or collapse a day |
/ |
Focus the live content filter |
p |
Filter by project (dropdown picker) |
Esc |
Back to the tree; from the tree, quit |
r |
Reload from the database |
q |
Quit |
The non-TTY render¶
Off a TTY, the command prints the pending tally and each day's entries,
pending marked ● and reflected ·:
Observations: 12 pending of 87
2026-06-09 (5 pending of 5):
● [#1873] event Board snapshots failing on version bump …
…
When the store is empty it prints No observations yet.
Examples
mait-code observations # audit the backlog interactively
mait-code observations | head # quick pending check (e.g. for piping or logs)
Exit code: always 0.
mait-code memory¶
Synopsis
Description
Browse everything the companion remembers, across every project and scope.
Attached to a terminal it launches a full-screen
Textual TUI: memories grouped by type, the
selected one rendered in full with its metadata, and a live filter. Piped or
redirected it prints each type with its entry count and its five most recent
entries ([#<id>] <date> <first line>), or No memories stored yet.
The browser is read-only — writing stays with mc-tool-memory and the memory
skills. See the memory browser guide for the layout and
keys.
Flags: none.
Exit code: always 0.
mait-code review¶
Synopsis
Description
Work the memory review queue — important memories that have aged long enough to
need a fresh look, most-decayed first. Attached to a terminal it launches a
full-screen Textual TUI where one key
confirms (c), refines (e) or retires (x) the highlighted
memory, writing through the same store operations as mc-tool-memory reviewed
/ supersede / retire. Piped or redirected it prints the due list
([#<id>] <recall%> <first line>), or a line saying nothing is due.
Unlike the other browsers, this one writes. See the review queue guide for the full tour.
Flags: none.
Exit code: always 0.
mait-code graph¶
Synopsis
Description
Explore the entity knowledge graph the observe hook builds alongside your memories. Attached to a terminal it launches a full-screen Textual TUI: pick an entity and see its neighbourhood as a node-link diagram or a relationship table, with each edge's context text. Piped or redirected it prints the connected entities (type, name, mention and link counts; the first 30), or a line saying the graph is still empty.
The explorer is read-only. See the graph explorer guide for the views and keys.
Flags: none.
Exit code: always 0.
mait-code logs¶
Synopsis
Description
Read the structured JSON logs every mait-code tool and hook writes. Attached to
a terminal it launches a full-screen Textual
TUI: log lines grouped by day, with the selected line's full record — message,
fields, invocation arguments, stack trace. Piped or redirected it prints the
line and error tallies, then each day's line / warning / error counts with its
first few error messages, or No logs yet.
The viewer is read-only — it never writes, truncates or rotates the files. See the log viewer guide for filtering and keys.
Flags: none.
Exit code: always 0.
mait-code home¶
Synopsis
mait-code home # interactive hub (TTY) / text summary (piped)
mait-code # bare invocation — same hub on a TTY
Description
Open the companion's home hub — a navigable map over the board, memory, reminders, the quick-capture inbox, the identity stack, and the install's health. Attached to a terminal it launches a full-screen Textual TUI; piped or redirected it prints a compact text summary instead.
A bare mait-code with no subcommand is the same front door: it opens the hub
on a TTY and falls back to the root help when piped, so scripts and
mait-code | grep are unaffected.
The hub is presentation first: apart from e (reindex memory vectors, after a
confirm) and the Companion mod toggle (which writes the mods setting), it
never writes a store, and the only commands it runs are the shell-command tiles
you author on its start page. It renders the same
data the mc-tool-* CLIs and skills work from, so it always reflects the real
state. See the home hub guide for the full tour.
The interactive hub¶
A tree of sections down the left (Board, Memory, Reminders, Inbox, Identity, System), each carrying a live status badge; the highlighted section renders in full on the right.
| Key | Action |
|---|---|
↑ / ↓ (or k / j) |
Move the highlight; the detail pane follows |
Enter |
Toggle a section, or open a TUI from a ↗ Open … launch leaf |
r |
Reload every store (refresh the badges and current detail, re-run the start-page tiles) |
e |
Reindex — bring memory vectors in line with the configured model, after a confirm |
Ctrl+P |
Command palette (open the other TUIs, set up the start page, Reload, Reindex memory, themes) |
q / Esc |
Quit |
Pressing Enter on a launch leaf hands off to that dedicated TUI — the board,
its Initiatives view, the memory browser, the review queue, the observations
browser, the graph explorer, the settings editor, the log viewer, the Bridge
configurator, or the start-page editor — and returns to the hub when it quits,
with the badges refreshed. The home hub guide
lists where each leaf lives.
The non-TTY render¶
Off a TTY, mait-code home prints a one-block summary of each store:
Board:
mait-code: 1 in progress · 1 refined
Reminders: 1 overdue · 0 upcoming
Inbox: 1
Memory: 128 entries · 0 unembedded · 3 unreflected
Examples
mait-code # open the hub — the front door
mait-code home # the same, explicitly
mait-code home | cat # plain text summary (e.g. for piping or logs)
Exit code: always 0.
mait-code version¶
Synopsis
Description
Print the installed mait-code package version (from
importlib.metadata). Falls back to mait_code.__version__ when
running from a checkout that hasn't been uv tool installed.
Exit codes
| Code | Meaning |
|---|---|
0 |
Version printed. |
1 |
Neither metadata nor in-tree __version__ could be read. |
See also¶
- Setup — first-time install walkthrough using the bash shim.
- Skills — slash commands available inside a Claude Code session.
- Python API → CLI — the helpers that power these subcommands (for contributors / extension authors).