← All docs

Command line

The CLI, command by command

One command wires a repository for the agents you already run. Everything below that is optional, and most teams never touch more than three of these.

What it is for

The CLI does the local half of Decispher: it writes the instruction files your coding tools read, installs the hooks that record a session and inject memory, and keeps your credentials on this machine rather than in the repository.

Nothing it writes is a secret. Repositories and tool configs carry a name that points at a credential; the credential itself stays in your home directory.

Running it

There is nothing to install globally. Run it with npx and you get the current version every time.

npx decispher help

Prints the same reference this page is written from.

npx decispher version

Short flags -v and --version do the same thing.

init: wire this repository

The one command most people run. It detects which coding tools this repository is set up for, writes the instruction files they read, installs the session hooks, and adds a status line so you can see capture is on.

npx decispher init
npx decispher init --only memory

Memory wiring and nothing else. No session capture, no git hook, nothing added to the repository you did not ask for.

--only <parts>
Wire a subset instead of everything. Use this when you want memory without session capture.
--agents <list>
Write files for specific tools rather than everything detected here.
--repo <path>
Target a different repository than the current directory.
--api-key <key>
Use this key rather than one already stored. This is also how you rotate a key.
--api-url <url>
Point at a different API endpoint. Rarely needed outside self-hosting.
--no-link
Skip naming the credentials. Useful in CI, where nothing should be written to a home directory.

Memory commands

Memory needs to know which human you are, because a shared team key still has to serve you your own preferences rather than somebody else’s.

npx decispher setup-memory

Store your identity key. It lives in your home directory, never in the repository.

npx decispher whoami

Confirms who the tools think you are, and says plainly if memory is not enabled for your company yet.

npx decispher memory-mode

Read or change how memory is applied for this company.

npx decispher import-memory <file>

Bring memories in from another tool. Parsing and the preview are free; you are charged only for what you commit.

--dry-run
Parse and report, write nothing. Always safe to run first.
--source <name>
Tell the parser what the file is, rather than letting it guess.
--set <name>
Put the imported memories into a named set.
--project <name>
Scope the import to one project instead of to you.
--review
Step through what was found before anything commits.
--watch / --no-watch
Follow the import as it runs, or return immediately.
--retry <id>
Retry only the items that failed, without paying for the rest again.
--cancel <id>
Stop a running import.

Turning capture off for a while

A private, machine-wide switch for the times you do not want recording: a sensitive change, a throwaway spike, credentials work. It stops new capture across every repository and both agents, and it auto-resumes when the timer lapses so it is never left silently off. Serving keeps working the whole time, so briefings and the store are unaffected.

npx decispher pause 1h

Also accepts eod for the end of today, or forever until you resume.

npx decispher resume

Start recording again now.

Housekeeping

npx decispher status

What is wired on this machine, and whether capture is currently on.

npx decispher discard

Throw away what the current session recorded before it is promoted.

npx decispher uninstall

Remove the hooks and files this repository's init wrote. It touches nothing it did not create.

Environment variables

Useful in CI, in a container, or when you want one shell to run as something different without changing what is stored.

DECISPHER_LINK
Which link to run as: a company, or company/project.
DECISPHER_SET
Memory sets to attach, by name, comma separated.
DECISPHER_API_KEY
Overrides the stored key. This is the company you are acting in.
DECISPHER_IDENTITY_KEY
Overrides the stored identity key. This is who you are.
DECISPHER_API_URL
Overrides the API endpoint.