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 helpPrints the same reference this page is written from.
npx decispher versionShort 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 initnpx decispher init --only memoryMemory 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.
link: name your credentials
A link is a named credential context stored on this machine. The name is public and meant to be committed. The keys it points at never leave your home directory, so a repository or an MCP config carries the name and never a key.
npx decispher linkName the credentials you already hold.
npx decispher link acme/paymentsA narrower link for a single project.
A machine holding nothing signs in through your browser instead: the terminal shows a short code, you approve it in the dashboard, and a personal key for the project you pick is created there and stored here. Nothing is pasted.
- --browser / --no-browser
- Force the browser sign-in on, or keep it off on a headless machine.
- --yes
- Take the defaults without prompting. This never opens a browser, on purpose.
- --json
- Machine-readable output for scripts.
- --keep
- Leave the existing link in place instead of replacing it.
- --no-mint
- Do not create a new key, only name what is already here.
- --no-adopt
- Do not take over credentials found in the older store.
Nothing here writes an MCP server into a config that does not already have one. Every link prints the entry to add, in JSON and in the TOML that Codex and Grok Build use, and names any config it did edit.
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-memoryStore your identity key. It lives in your home directory, never in the repository.
npx decispher whoamiConfirms who the tools think you are, and says plainly if memory is not enabled for your company yet.
npx decispher memory-modeRead 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 1hAlso accepts eod for the end of today, or forever until you resume.
npx decispher resumeStart recording again now.
Housekeeping
npx decispher statusWhat is wired on this machine, and whether capture is currently on.
npx decispher discardThrow away what the current session recorded before it is promoted.
npx decispher uninstallRemove 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.