-
Notifications
You must be signed in to change notification settings - Fork 4
CLI Companion
ed companion talks to Edith's local memory backend. The companion stores
Markdown notes as append-only episodes in Postgres, keeps the original note in
its vault, and deduplicates sources by their SHA-256 content hash.
Run the backend with docker compose from apps/companion. The CLI reaches it
directly on this Mac or through an ed machines port forward. Pass
--endpoint for one invocation, set EDITH_COMPANION_URL for a shell, or use
the default http://127.0.0.1:4820.
| Command | What it does |
|---|---|
ed companion |
Runs ed companion status, the default subcommand. |
ed companion status |
Counts stored records and episodes waiting to be indexed. |
ed companion doctor |
Checks Postgres, migrations, pgvector, Redis and the vault. |
ed companion search <query> |
Searches indexed memory with hybrid retrieval. |
ed companion index |
Embeds episodes that are waiting to be indexed. |
ed companion ingest <path> |
Sends one Markdown file or a recursive folder scan to the backend. |
ed companion episodes |
Lists recent episodes, newest first. |
ed companion episode <id> |
Reads one episode in full, body included. |
ed companion chat <message> |
Talks with the companion, streamed as it thinks. |
ed companion conversations |
Lists chats, or replays one by id. |
ed companion forget <id> |
Deletes a conversation and its messages. |
ed companion nightly |
Runs the nightly learning pipeline right now. |
ed companion reason |
Shows or changes the reasoning provider, model and API key. |
ed companion statused companion doctored companion searched companion indexed companion ingested companion episodesed companion synced companion observationsed companion reflected companion beliefsed companion asked companion extracted companion claimsed companion corroborateed companion runsed companion chated companion conversationsed companion forgeted companion episodeed companion nightlyed companion reason
| Code | Meaning |
|---|---|
0 |
Success, including a reachable doctor report whose ok is false. |
1 |
General failure. |
2 |
Bad usage, including a missing Markdown path or a non-positive limit. |
4 |
The companion backend is unreachable or returned an unusable response. |
--endpoint wins over EDITH_COMPANION_URL, which wins over
http://127.0.0.1:4820. A saved machine forward can put a remote companion on
that local address: run ed machines forwards on tuf 2, then
ed companion status.
Each Markdown file must be no larger than 2MB. Larger notes are skipped before
any request, and uploads are split into batches of 200 files. The backend
deduplicates by SHA-256 of the note text, so ingesting the same content again is
safe and returns duplicate with the original episode id.
Search and indexing need the Ollama service to be reachable and the configured embedding model to be pulled before the first request.
Use ed machines to create and open a port forward. Read
conventions and contracts for JSON, stdout, stderr and exit
code guarantees shared by every command.
Auto-generated from docs/, edit the docs in the repo, not the wiki.
CLI reference
Companion
- Deploy
- Concepts
- Concepts Memory
- Concepts Ingestion
- Concepts Search
- Concepts Chat
- Concepts Learning
- Concepts Brain
- Concepts Friend
- Hosts
- Stack
- Status
- Doctor
- Search
- Index
- Ingest
- Episodes
- Sync
- Observations
- Reflect
- Beliefs
- Ask
- Extract
- Claims
- Corroborate
- Runs
- Chat
- Conversations
- Forget
- Export
- Import
- Erase
- Wipe
- Episode
- Nightly
- Reason
- Personas
- Council
- Lenses
- Core
- Why
- Hypotheses
- Predictions
- Commitments
- Discrepancies
- Calibration
- Inquire
- Entities
- Eval
- Standup
- Machines
- Baselines
- Connectors
- Facts
- Correct
- Weekly
- Db
Guides