Skip to main content
Grouping by consequence rather than by subject is deliberate: when you are about to run something you have not run before, what you want to know first is whether it can take anything away from you. Every command has a short alias. base project add is base p a, base ast query is base a q, base decision log is base d log. Run base help <command> for anything not covered here.
This page tracks base 0.13.2. Flags do change between versions, so if your installed binary disagrees with something here, base help <command> is the authority, not this page.

Read-only

Safe to run at any time. None of these write anything.

Health and configuration

Searching what base holds

The global tier takes -g, and on rule it goes before the verb:

Sessions

The change log

Every successful graph write is appended to a log you can read back as JSON. The cursor is a byte offset, not a sequence number, which is why it needs no sidecar counter, survives concurrent writers, and is the thing a reader resumes from directly.

Writing

These add to or update the graph. None of them remove anything.

Teaching it

--type on learn accepts insight, correction, decision, commitment or shift, and defaults to insight. learn also takes --project and --entity to attach extra edges, and --list to read back what is stored.

Projects and work

project add also takes --status (defaults to active) and --stage. task add takes --priority. Both --project flags accept either the slug or the display name.

Sessions and hand-offs

Both create verbs take --slug to set the title you summon the document by; it defaults to the document’s basename. Creating a handoff archives any prior open handoff for that project. Creating a fork does not — forks are additive, and several can be open at once.

Syncing

Setup

Working the graph directly

graph query takes --depth (default 3), --token-budget (default 2000) and --model. graph extract is markdown-only unless multimodal is enabled, either with base config set multimodal.enabled true or --multimodal for a single run.

Removing

These delete data. Read what each one does before running it, and prefer the preview mode where one exists.
graph purge requires --stale to select a rule, and defaults to a 21-day threshold. It, graph move and project delete all print a preview and change nothing until you pass --apply or --yes. Graph maintenance backs up before it writes and is atomic with rollback, but a backup you have not checked is not a plan — read the preview.