honcho-cli 0.5.0__tar.gz → 0.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/CHANGELOG.md +39 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/PKG-INFO +43 -2
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/README.md +41 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/pyproject.toml +4 -2
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/_help.py +4 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/agents.py +17 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/commands/dream.py +3 -3
- honcho_cli-0.7.0/src/honcho_cli/commands/ingest.py +1831 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/commands/peer.py +32 -1
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/commands/session.py +31 -1
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/commands/setup.py +23 -1
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/commands/workspace.py +216 -5
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/common.py +48 -1
- honcho_cli-0.7.0/src/honcho_cli/experimental.py +70 -0
- honcho_cli-0.7.0/src/honcho_cli/follow.py +358 -0
- honcho_cli-0.7.0/src/honcho_cli/ingest_refs.py +185 -0
- honcho_cli-0.7.0/src/honcho_cli/ingest_sources.py +76 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/main.py +2 -0
- honcho_cli-0.7.0/src/honcho_cli/replay.py +702 -0
- honcho_cli-0.7.0/src/honcho_cli/replay_view.py +415 -0
- honcho_cli-0.7.0/tests/test_experimental.py +103 -0
- honcho_cli-0.7.0/tests/test_follow.py +416 -0
- honcho_cli-0.7.0/tests/test_ingest.py +1644 -0
- honcho_cli-0.7.0/tests/test_replay.py +860 -0
- honcho_cli-0.7.0/tests/test_version.py +29 -0
- honcho_cli-0.5.0/tests/test_version.py +0 -13
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/.gitignore +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/scripts/generate_cli_docs.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/__init__.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/branding.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/commands/__init__.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/commands/conclusion.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/commands/config_cmd.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/commands/install.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/commands/message.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/commands/scope.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/commands/stack.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/config.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/local/__init__.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/local/docker.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/local/env.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/local/health.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/local/profile.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/local/setup.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/local/templates/__init__.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/local/templates/docker-compose.yml +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/local/templates/init.sql +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/oauth.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/output.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/recall.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/update_check.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/src/honcho_cli/validation.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/__init__.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/conftest.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/test_commands.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/test_common.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/test_conclusion_attribution.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/test_config.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/test_dream.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/test_install.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/test_local.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/test_oauth.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/test_output.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/test_recall.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/test_setup.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/test_start.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/tests/test_validation.py +0 -0
- {honcho_cli-0.5.0 → honcho_cli-0.7.0}/uv.lock +0 -0
|
@@ -5,6 +5,45 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
7
7
|
|
|
8
|
+
## [0.7.0] - 2026-12-03
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Experimental, off unless `HONCHO_EXPERIMENTAL=1` is set: the `honcho ingest` commands, `peer`/`session` `exclude` and `include`, and `workspace create --auto` below. They're labeled "Experimental" in help, may change or stop working without notice, and without the variable exit 1 with an `EXPERIMENTAL` error
|
|
13
|
+
- `honcho ingest import FILE`, `honcho ingest status` and `honcho ingest derive`: import a connector's export (`records.jsonl`, one ingest record per line, or `-` for stdin) into an auto workspace, review what it became, and derive it. `import` stores records without deriving them unless `--derive now` is passed, reports created, duplicate and rejected records, and can be run again safely. `status` shows records by derivation state and the tokens waiting to be derived, and numbers the people and sessions the import created, most records first, with each person's source accounts and whether each is modeled. `derive` releases every deferred record; `--watch` follows the queue until derivation finishes. Needs a workspace or admin key and an auto workspace
|
|
14
|
+
- `honcho ingest from <source>`: runs an installed connector (registered under the `honcho.ingest_sources` entry point) and imports what it reads the way `ingest import` does, one container at a time. With no source it lists the installed ones; `honcho ingest from <source> --help` shows the source's own options. It checks the workspace is an auto workspace before reading
|
|
15
|
+
- `honcho ingest import FILE --check`: validates every line against the ingest record format and reports the invalid ones, counts by source, containers and authors, and how many bot records an import would hold back. Sends nothing and needs no workspace or credentials
|
|
16
|
+
- `honcho ingest import` holds back bot records no person interacted with: kept only when a person replied in their reply chain or @-mentioned the bot in the same conversation (`--bots interacted`, the default). `--bots all` imports every record, `--bots none` no bot records; the summary reports how many were held back
|
|
17
|
+
- `honcho peer exclude/include` and `honcho session exclude/include`: before `ingest derive`, stop deriving about an imported person (`observe_me` off) or from an imported session (reasoning off; it is still summarized). They take a number from the last `ingest status`, an ID, or a display name that matches one imported person or session; a name that matches none is an error, never a new peer or session
|
|
18
|
+
- `honcho ingest link`, `honcho ingest unlink` and `honcho ingest reset`: when one person shows up as several accounts in a dry run, `honcho ingest link 1 24 --reset` resets the import (deleting the imported sessions and waiting; people, exclusions and links stay), maps every account of the others to the first, and asks you to import again. A link never moves what was already imported. People are found before the reset, so the numbers from `ingest status` stay right. `--keep <peer-id>` keeps any peer, `unlink` takes one account back out the same way, and `reset` runs on its own
|
|
19
|
+
- `honcho workspace create NAME --auto` creates an auto workspace. An existing workspace that isn't auto can't be made auto, and the command says so
|
|
20
|
+
- `honcho doctor` shows the server's experimental features that are on, from `GET /v3/experimental`; a server without that listing fails no check
|
|
21
|
+
- A server's 405 (a feature it has off, such as an experimental one) is a `FEATURE_DISABLED` error carrying the server's message, which names the setting that turns it on, rather than a generic `API_ERROR`
|
|
22
|
+
- `honcho ingest suggestions`: refreshes and lists, numbered, the accounts across sources that look like one person, with the evidence. Each is labelled with the stage that made it and its confidence (`rules:high`, `rules:low`, and `model:high` for a pair the organizer's model groups, or `model:low` when its two accounts are in one source; `--only` filters by label). `accept` links each suggestion's accounts the way `ingest link` does, by number or by label (`accept rules:high`), with `--reset` and `--keep`, and `dismiss` keeps them apart for good. The table shows the person accepting keeps (`keeps`), and with `--status all`, each suggestion's status (#1630, #1670)
|
|
23
|
+
- `honcho ingest suggestions` also lists accounts that look like bots their source didn't flag and sessions whose records come mostly from bots, with a `kind` column, and `--kind` lists one kind. Accepting one by number stops modeling it, as `peer exclude` or `session exclude` does, with no reset. A label such as `rules:high` accepts same-person suggestions only unless `--kind` says otherwise. `honcho ingest status` shows the open suggestions by kind (#1630)
|
|
24
|
+
- `honcho ingest import` takes edits and deletes during the dry run (before the workspace first derives): a record sent again with a later `revised_at` replaces it, a line `{"op": "delete", ...}` removes it for good, and the summary counts updated and deleted records; `--check` validates deletes too. `--derive auto` stores records for later during the dry run and derives them as they arrive after it. `honcho ingest status` lists the sources connectors follow, with each one's last sync, newest record and last error (#1630)
|
|
25
|
+
- `honcho ingest from <source> --follow`: for a source that can (`discord`, `github`), catches up from the position it saved in Honcho, then follows the source live until stopped with Ctrl-C or SIGTERM, when it sends what's pending and saves its position. Records are sent with `--derive auto` unless `--derive` says otherwise. A bot record waits up to `--bot-window` minutes (60) for a person to reply to or mention the bot. A second runner on the same source, or a reset that forgot its position, stops it with a `SYNC_CONFLICT` error. Discord follows new messages, edits and deletes over the live connection; GitHub polls every `--interval` seconds (300) (#1630)
|
|
26
|
+
- `honcho ingest suggestions undo N` takes back a link the organizer applied or one you accepted, during the dry run, with its records. `honcho ingest decisions` lists who decided who is who and why, newest first, with `--person` for one person. `honcho ingest suggestions --status applied` lists the links the organizer made, and the open list points to them (#1630)
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- Requires `honcho-ai` 2.11.0 or later
|
|
31
|
+
- `honcho ingest link`, `unlink` and `suggestions accept` move the stored records at once during the dry run and say how many moved; `--reset` is needed only after the dry run (#1630)
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
|
|
35
|
+
- `uvx honcho-cli <command>` runs the CLI. The package now also installs a `honcho-cli` executable alongside `honcho`; before, uvx stopped with "An executable named `honcho-cli` is not provided", so the documented `uvx honcho-cli` and a one-line `uvx honcho-cli install` both failed
|
|
36
|
+
|
|
37
|
+
## [0.6.0] - 2026-11-10
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- `honcho workspace replay --from <id> --to <id>`: copy a workspace by replaying it. Workspace, peer and session metadata and configuration, session membership and scopes are copied, then every message is re-sent in order with its original `created_at`, so the destination derives its own conclusions, summaries and peer cards; nothing derived is copied. `--from-url` / `--to-url` (and `HONCHO_FROM_API_KEY` / `HONCHO_TO_API_KEY`) put either side on another Honcho instance, and the configured credentials are never sent to an instance they were not issued for. `--num-sessions N` replays only the N sessions with the most recent message, `--dry-run` reads both sides without writing and says, for each session, whether a replay will create it, resume it, find it up to date, or skip it as a conflict, and a rerun resumes by skipping messages the destination already has. A destination session whose messages differ from the source is left untouched and reported. In a terminal the command prints a short report and the `queue-status` command that shows derivation on the destination; `--json` prints the same facts as one object. Both reports count the conclusions in the source (`not_copied`), because conclusions and peer cards written through the API have no source message and are not recreated. The destination session has the source's current members from its first message, so a peer that joined late observes the whole session. With a workspace-scoped key, a source that has no sessions and no peers is reported as `NOTHING_TO_REPLAY` and is not created. Per-message configuration is not stored by Honcho and cannot be replayed (#1573)
|
|
42
|
+
|
|
43
|
+
### Fixed
|
|
44
|
+
|
|
45
|
+
- `honcho --version`, the update check and the `X-Honcho-Host` header report the installed version. `__version__` was a hardcoded string that the 0.5.0 release did not bump, so a 0.5.0 install reported itself as 0.4.0, and the update check told 0.5.0 users that 0.5.0 was available. The version is now read from the installed package metadata (#1571)
|
|
46
|
+
|
|
8
47
|
## [0.5.0] - 2026-11-05
|
|
9
48
|
|
|
10
49
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: honcho-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: A terminal for Honcho — memory that reasons.
|
|
5
5
|
Project-URL: Homepage, https://github.com/plastic-labs/honcho
|
|
6
6
|
Project-URL: Repository, https://github.com/plastic-labs/honcho
|
|
@@ -15,7 +15,7 @@ Classifier: Topic :: Software Development :: Libraries
|
|
|
15
15
|
Requires-Python: >=3.11
|
|
16
16
|
Requires-Dist: certifi>=2026.10.19
|
|
17
17
|
Requires-Dist: click>=8.0.0
|
|
18
|
-
Requires-Dist: honcho-ai>=2.
|
|
18
|
+
Requires-Dist: honcho-ai>=2.11.0
|
|
19
19
|
Requires-Dist: httpx>=0.27.0
|
|
20
20
|
Requires-Dist: questionary>=2.1.0
|
|
21
21
|
Requires-Dist: rich>=13.0.0
|
|
@@ -107,6 +107,7 @@ honcho stop --wipe # also delete volumes
|
|
|
107
107
|
| `honcho workspace chat <query>` | Query the dialectic across all peers (optional `-s` / `--scope` / `--reasoning`) |
|
|
108
108
|
| `honcho workspace search <query>` | Search messages across workspace |
|
|
109
109
|
| `honcho workspace queue-status` | Deriver queue status (filter with `--observer` / `--sender`) |
|
|
110
|
+
| `honcho workspace replay --from <id> --to <id>` | Copy a workspace by re-sending its messages, so the destination derives its own memory. `--to-url` / `--from-url` for another instance, `--num-sessions N` for the N most recently active sessions, `--dry-run` to preview |
|
|
110
111
|
| `honcho workspace delete <id>` | Delete a workspace. Use `--dry-run` to preview, `--cascade` to also delete sessions, `--yes` to skip the confirm prompt |
|
|
111
112
|
|
|
112
113
|
### Peers
|
|
@@ -173,6 +174,44 @@ honcho stop --wipe # also delete volumes
|
|
|
173
174
|
| `honcho dream list` | Dreams in the workspace, newest first (`-p` for dreams about one peer, `--observer` for one representation) |
|
|
174
175
|
| `honcho dream inspect <id>` | What one dream changed: conclusions created (with what each was derived from), conclusions removed, and the peer card before and after |
|
|
175
176
|
|
|
177
|
+
### Ingest (auto workspaces, experimental)
|
|
178
|
+
|
|
179
|
+
Import a connector's export, review what it became, and fix it before anything is derived. Exclusions made before `ingest derive` apply to what is derived; after it, they only affect records released later.
|
|
180
|
+
|
|
181
|
+
These commands are experimental: they may change or stop working without notice, and aren't ready for production use. They're off by default and run only with `HONCHO_EXPERIMENTAL=1` set; without it they exit 1 and say how to turn them on.
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
export HONCHO_EXPERIMENTAL=1
|
|
185
|
+
honcho workspace create acme --auto
|
|
186
|
+
honcho ingest import records.jsonl -w acme # stored, not derived
|
|
187
|
+
honcho ingest status -w acme # numbered people and sessions
|
|
188
|
+
honcho ingest suggestions -w acme # accounts that look like one person, with why
|
|
189
|
+
honcho ingest suggestions accept 1 --reset -w acme # accept one: reset and link,
|
|
190
|
+
honcho ingest import records.jsonl -w acme # then import again
|
|
191
|
+
honcho ingest link 1 2 --reset -w acme # or link two people yourself: reset and link,
|
|
192
|
+
honcho ingest import records.jsonl -w acme # then import again
|
|
193
|
+
honcho ingest status -w acme # numbers change after a reset
|
|
194
|
+
honcho peer exclude "Usage Stats" -w acme # a bot the source didn't flag
|
|
195
|
+
honcho session exclude 12 -w acme # a noisy channel (a reset deletes sessions, so exclude after it)
|
|
196
|
+
honcho ingest derive -w acme --watch
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
| Command | Description |
|
|
200
|
+
|---------|-------------|
|
|
201
|
+
| `honcho workspace create <id> --auto` | Create an auto workspace, which ingest writes to (only a new workspace can be made auto) |
|
|
202
|
+
| `honcho ingest import <file>` | Import ingest records, one per line (`-` for stdin); not derived unless `--derive now` (`--derive auto`: not during the dry run, then as they arrive). Safe to run again: stored records come back as duplicates. During the dry run, a record sent again with a later `revised_at` replaces it, and a line `{"op": "delete", ...}` deletes one. Bot records no person replied to or mentioned the bot about are held back (`--bots interacted`, the default; `--bots all` imports them). `--check` validates every line and sends nothing, with no workspace or credentials needed |
|
|
203
|
+
| `honcho ingest from [<source> ...]` | Run an installed connector and import what it reads, as `import` does (deriving later, holding back unanswered bot records per container). With no source, lists the installed ones; `honcho ingest from <source> --help` shows a source's own options. `--follow` (discord, github) catches up from the position saved in Honcho, then follows the source live until stopped, deriving `auto`; `--bot-window` sets how many minutes a bot record waits for a person (60). Connectors register under the `honcho.ingest_sources` entry point: see [Writing an Exporter](https://docs.honcho.dev/v3/contributing/experimental/ingest-exporters) |
|
|
204
|
+
| `honcho ingest status` | Records by derivation state, tokens waiting, and the people and sessions the import created, numbered, most records first; and the sources connectors follow, with each one's last sync |
|
|
205
|
+
| `honcho ingest derive` | Release every deferred record for derivation; `--watch` follows the queue until it finishes |
|
|
206
|
+
| `honcho peer exclude/include <ref>` | Stop (or resume) deriving about an imported person: `observe_me` off. `<ref>` is a number from `ingest status`, an ID, or a display name |
|
|
207
|
+
| `honcho session exclude/include <ref>` | Stop (or resume) deriving from an imported session; it is still summarized |
|
|
208
|
+
| `honcho ingest reset` | Delete the imported sessions and their messages, to import again; people, exclusions and links stay. Asks first (`--yes` to skip) and waits for the deletion |
|
|
209
|
+
| `honcho ingest link <ref> <ref>...` | Treat several imported people as one, from the next import on: every account of the others maps to the first (`--keep <peer-id>` keeps any peer). Nothing imported moves, so `--reset` resets the import first, finding the people before the reset so their numbers stay right |
|
|
210
|
+
| `honcho ingest unlink <person> <account>` | Take a linked account back out (`<account>` = its ID, display name, or `SOURCE:ID`); `--reset` as for link |
|
|
211
|
+
| `honcho ingest suggestions` | Refresh and list, numbered, the accounts that look like one person, with the evidence (the same email, "I'm X on GitHub", names only they share, linking their own work). Each has a label, the stage that made it and its confidence: `rules:high` ones can be accepted at a glance; `rules:low` ones need a look. `--no-refresh` lists without refreshing; `--only <label>`, `--status` filter. Run it after importing, before a reset |
|
|
212
|
+
| `honcho ingest suggestions accept <n or label>...` | Accept suggestions: link each one's accounts, as `ingest link` does. A label, such as `rules:high`, takes every open one with it; `--keep` the peer to keep. `--reset` resets the import first, then import again |
|
|
213
|
+
| `honcho ingest suggestions dismiss <n>...` | Dismiss suggestions; a refresh never brings them back |
|
|
214
|
+
|
|
176
215
|
### Config
|
|
177
216
|
|
|
178
217
|
| Command | Description |
|
|
@@ -235,6 +274,8 @@ Precedence (highest first): **flag → env var → config file → default**.
|
|
|
235
274
|
| `HONCHO_JSON` | `--json` | Force JSON output (`1` / `true`) |
|
|
236
275
|
| `HONCHO_NO_UPDATE_CHECK` | — | Disable the once-a-day upgrade notice (`1` / `true`) |
|
|
237
276
|
| `HONCHO_PROFILE` | `--profile` (start/stop/status) | Local stack profile (default: `local`) |
|
|
277
|
+
| `HONCHO_FROM_URL` / `HONCHO_FROM_API_KEY` | `--from-url` (workspace replay); the key has no flag | Source instance, when it is not the configured one |
|
|
278
|
+
| `HONCHO_TO_URL` / `HONCHO_TO_API_KEY` | `--to-url` (workspace replay); the key has no flag | Destination instance, when it is not the configured one |
|
|
238
279
|
| `LLM_OPENAI_API_KEY` | — | Provider key for `honcho start` (also `LLM_ANTHROPIC_API_KEY`, `LLM_GEMINI_API_KEY`) |
|
|
239
280
|
|
|
240
281
|
```bash
|
|
@@ -80,6 +80,7 @@ honcho stop --wipe # also delete volumes
|
|
|
80
80
|
| `honcho workspace chat <query>` | Query the dialectic across all peers (optional `-s` / `--scope` / `--reasoning`) |
|
|
81
81
|
| `honcho workspace search <query>` | Search messages across workspace |
|
|
82
82
|
| `honcho workspace queue-status` | Deriver queue status (filter with `--observer` / `--sender`) |
|
|
83
|
+
| `honcho workspace replay --from <id> --to <id>` | Copy a workspace by re-sending its messages, so the destination derives its own memory. `--to-url` / `--from-url` for another instance, `--num-sessions N` for the N most recently active sessions, `--dry-run` to preview |
|
|
83
84
|
| `honcho workspace delete <id>` | Delete a workspace. Use `--dry-run` to preview, `--cascade` to also delete sessions, `--yes` to skip the confirm prompt |
|
|
84
85
|
|
|
85
86
|
### Peers
|
|
@@ -146,6 +147,44 @@ honcho stop --wipe # also delete volumes
|
|
|
146
147
|
| `honcho dream list` | Dreams in the workspace, newest first (`-p` for dreams about one peer, `--observer` for one representation) |
|
|
147
148
|
| `honcho dream inspect <id>` | What one dream changed: conclusions created (with what each was derived from), conclusions removed, and the peer card before and after |
|
|
148
149
|
|
|
150
|
+
### Ingest (auto workspaces, experimental)
|
|
151
|
+
|
|
152
|
+
Import a connector's export, review what it became, and fix it before anything is derived. Exclusions made before `ingest derive` apply to what is derived; after it, they only affect records released later.
|
|
153
|
+
|
|
154
|
+
These commands are experimental: they may change or stop working without notice, and aren't ready for production use. They're off by default and run only with `HONCHO_EXPERIMENTAL=1` set; without it they exit 1 and say how to turn them on.
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
export HONCHO_EXPERIMENTAL=1
|
|
158
|
+
honcho workspace create acme --auto
|
|
159
|
+
honcho ingest import records.jsonl -w acme # stored, not derived
|
|
160
|
+
honcho ingest status -w acme # numbered people and sessions
|
|
161
|
+
honcho ingest suggestions -w acme # accounts that look like one person, with why
|
|
162
|
+
honcho ingest suggestions accept 1 --reset -w acme # accept one: reset and link,
|
|
163
|
+
honcho ingest import records.jsonl -w acme # then import again
|
|
164
|
+
honcho ingest link 1 2 --reset -w acme # or link two people yourself: reset and link,
|
|
165
|
+
honcho ingest import records.jsonl -w acme # then import again
|
|
166
|
+
honcho ingest status -w acme # numbers change after a reset
|
|
167
|
+
honcho peer exclude "Usage Stats" -w acme # a bot the source didn't flag
|
|
168
|
+
honcho session exclude 12 -w acme # a noisy channel (a reset deletes sessions, so exclude after it)
|
|
169
|
+
honcho ingest derive -w acme --watch
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
| Command | Description |
|
|
173
|
+
|---------|-------------|
|
|
174
|
+
| `honcho workspace create <id> --auto` | Create an auto workspace, which ingest writes to (only a new workspace can be made auto) |
|
|
175
|
+
| `honcho ingest import <file>` | Import ingest records, one per line (`-` for stdin); not derived unless `--derive now` (`--derive auto`: not during the dry run, then as they arrive). Safe to run again: stored records come back as duplicates. During the dry run, a record sent again with a later `revised_at` replaces it, and a line `{"op": "delete", ...}` deletes one. Bot records no person replied to or mentioned the bot about are held back (`--bots interacted`, the default; `--bots all` imports them). `--check` validates every line and sends nothing, with no workspace or credentials needed |
|
|
176
|
+
| `honcho ingest from [<source> ...]` | Run an installed connector and import what it reads, as `import` does (deriving later, holding back unanswered bot records per container). With no source, lists the installed ones; `honcho ingest from <source> --help` shows a source's own options. `--follow` (discord, github) catches up from the position saved in Honcho, then follows the source live until stopped, deriving `auto`; `--bot-window` sets how many minutes a bot record waits for a person (60). Connectors register under the `honcho.ingest_sources` entry point: see [Writing an Exporter](https://docs.honcho.dev/v3/contributing/experimental/ingest-exporters) |
|
|
177
|
+
| `honcho ingest status` | Records by derivation state, tokens waiting, and the people and sessions the import created, numbered, most records first; and the sources connectors follow, with each one's last sync |
|
|
178
|
+
| `honcho ingest derive` | Release every deferred record for derivation; `--watch` follows the queue until it finishes |
|
|
179
|
+
| `honcho peer exclude/include <ref>` | Stop (or resume) deriving about an imported person: `observe_me` off. `<ref>` is a number from `ingest status`, an ID, or a display name |
|
|
180
|
+
| `honcho session exclude/include <ref>` | Stop (or resume) deriving from an imported session; it is still summarized |
|
|
181
|
+
| `honcho ingest reset` | Delete the imported sessions and their messages, to import again; people, exclusions and links stay. Asks first (`--yes` to skip) and waits for the deletion |
|
|
182
|
+
| `honcho ingest link <ref> <ref>...` | Treat several imported people as one, from the next import on: every account of the others maps to the first (`--keep <peer-id>` keeps any peer). Nothing imported moves, so `--reset` resets the import first, finding the people before the reset so their numbers stay right |
|
|
183
|
+
| `honcho ingest unlink <person> <account>` | Take a linked account back out (`<account>` = its ID, display name, or `SOURCE:ID`); `--reset` as for link |
|
|
184
|
+
| `honcho ingest suggestions` | Refresh and list, numbered, the accounts that look like one person, with the evidence (the same email, "I'm X on GitHub", names only they share, linking their own work). Each has a label, the stage that made it and its confidence: `rules:high` ones can be accepted at a glance; `rules:low` ones need a look. `--no-refresh` lists without refreshing; `--only <label>`, `--status` filter. Run it after importing, before a reset |
|
|
185
|
+
| `honcho ingest suggestions accept <n or label>...` | Accept suggestions: link each one's accounts, as `ingest link` does. A label, such as `rules:high`, takes every open one with it; `--keep` the peer to keep. `--reset` resets the import first, then import again |
|
|
186
|
+
| `honcho ingest suggestions dismiss <n>...` | Dismiss suggestions; a refresh never brings them back |
|
|
187
|
+
|
|
149
188
|
### Config
|
|
150
189
|
|
|
151
190
|
| Command | Description |
|
|
@@ -208,6 +247,8 @@ Precedence (highest first): **flag → env var → config file → default**.
|
|
|
208
247
|
| `HONCHO_JSON` | `--json` | Force JSON output (`1` / `true`) |
|
|
209
248
|
| `HONCHO_NO_UPDATE_CHECK` | — | Disable the once-a-day upgrade notice (`1` / `true`) |
|
|
210
249
|
| `HONCHO_PROFILE` | `--profile` (start/stop/status) | Local stack profile (default: `local`) |
|
|
250
|
+
| `HONCHO_FROM_URL` / `HONCHO_FROM_API_KEY` | `--from-url` (workspace replay); the key has no flag | Source instance, when it is not the configured one |
|
|
251
|
+
| `HONCHO_TO_URL` / `HONCHO_TO_API_KEY` | `--to-url` (workspace replay); the key has no flag | Destination instance, when it is not the configured one |
|
|
211
252
|
| `LLM_OPENAI_API_KEY` | — | Provider key for `honcho start` (also `LLM_ANTHROPIC_API_KEY`, `LLM_GEMINI_API_KEY`) |
|
|
212
253
|
|
|
213
254
|
```bash
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "honcho-cli"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.7.0"
|
|
4
4
|
description = "A terminal for Honcho — memory that reasons."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.11"
|
|
@@ -19,7 +19,7 @@ classifiers = [
|
|
|
19
19
|
dependencies = [
|
|
20
20
|
"click>=8.0.0",
|
|
21
21
|
"typer>=0.15.0",
|
|
22
|
-
"honcho-ai>=2.
|
|
22
|
+
"honcho-ai>=2.11.0",
|
|
23
23
|
"rich>=13.0.0",
|
|
24
24
|
"httpx>=0.27.0",
|
|
25
25
|
"questionary>=2.1.0",
|
|
@@ -33,6 +33,8 @@ Repository = "https://github.com/plastic-labs/honcho"
|
|
|
33
33
|
|
|
34
34
|
[project.scripts]
|
|
35
35
|
honcho = "honcho_cli.main:app"
|
|
36
|
+
# Same entry point under the package name, so `uvx honcho-cli <command>` works
|
|
37
|
+
honcho-cli = "honcho_cli.main:app"
|
|
36
38
|
|
|
37
39
|
[build-system]
|
|
38
40
|
requires = ["hatchling"]
|
|
@@ -82,16 +82,20 @@ def print_welcome(console: Console) -> None:
|
|
|
82
82
|
("[dim]example[/dim]", "[dim]honcho peer chat \"what does alice prefer?\" -p alice -w agents[/dim]"),
|
|
83
83
|
("", ""),
|
|
84
84
|
("workspace", "list · create · search · chat · delete · inspect · queue-status"),
|
|
85
|
+
("", "replay"),
|
|
85
86
|
("peer", "list · create · search · inspect · card · chat"),
|
|
86
87
|
("", "get-metadata · set-metadata · representation"),
|
|
88
|
+
("", "exclude · include (experimental)"),
|
|
87
89
|
("session", "list · create · search · delete · inspect · view · add-peers"),
|
|
88
90
|
("", "context · get-metadata · set-metadata · peers"),
|
|
89
91
|
("", "remove-peers · representation · summaries"),
|
|
92
|
+
("", "exclude · include (experimental)"),
|
|
90
93
|
("scope", "list · create · inspect · sessions · add-sessions"),
|
|
91
94
|
("", "remove-session · status"),
|
|
92
95
|
("message", "list · create · get"),
|
|
93
96
|
("conclusion", "list · create · search · delete"),
|
|
94
97
|
("dream", "list · inspect"),
|
|
98
|
+
("ingest", "experimental: import · from · status · derive · reset · link · unlink"),
|
|
95
99
|
("config", "inspect current configuration"),
|
|
96
100
|
]
|
|
97
101
|
memory_rows = [
|
|
@@ -111,6 +111,19 @@ def _goose_dir() -> Path:
|
|
|
111
111
|
return _xdg_config() / "goose"
|
|
112
112
|
|
|
113
113
|
|
|
114
|
+
def _chatgpt_desktop_present() -> bool:
|
|
115
|
+
"""ChatGPT Desktop: its app bundle on macOS, its Store package on Windows."""
|
|
116
|
+
if sys.platform == "darwin":
|
|
117
|
+
return any(_exists(d / "ChatGPT.app") for d in (Path("/Applications"), _home() / "Applications"))
|
|
118
|
+
if sys.platform == "win32":
|
|
119
|
+
packages = _env_path("LOCALAPPDATA", _home() / "AppData" / "Local") / "Packages"
|
|
120
|
+
try:
|
|
121
|
+
return any(packages.glob("OpenAI.ChatGPT-Desktop_*"))
|
|
122
|
+
except OSError:
|
|
123
|
+
return False
|
|
124
|
+
return False
|
|
125
|
+
|
|
126
|
+
|
|
114
127
|
def _dsh_present() -> bool:
|
|
115
128
|
"""``dsh`` is also Debian's distributed shell; only count DeepSeek's npm one."""
|
|
116
129
|
exe = shutil.which("dsh")
|
|
@@ -330,6 +343,10 @@ AGENTS: tuple[Agent, ...] = (
|
|
|
330
343
|
id="claude-desktop", name="Claude Desktop", kind="suggest", docs_url=f"{MCP_DOCS}#claude-desktop",
|
|
331
344
|
paths=lambda: [_app_support() / "Claude"] if sys.platform in ("darwin", "win32") else [],
|
|
332
345
|
),
|
|
346
|
+
Agent(
|
|
347
|
+
id="chatgpt-desktop", name="ChatGPT Desktop", kind="suggest",
|
|
348
|
+
docs_url=f"{MCP_DOCS}#chatgpt-desktop", present=_chatgpt_desktop_present,
|
|
349
|
+
),
|
|
333
350
|
Agent(
|
|
334
351
|
id="windsurf", name="Windsurf", kind="suggest", docs_url=f"{MCP_DOCS}#windsurf",
|
|
335
352
|
bins=("windsurf",), paths=lambda: [_home() / ".codeium" / "windsurf"],
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Representation History: every dream records what it changed in a peer's
|
|
4
4
|
representation — the conclusions it created (with the conclusions each was
|
|
5
5
|
derived from), the conclusions it removed (with their text as it read when
|
|
6
|
-
removed), and the peer card before and after. Runs are
|
|
7
|
-
|
|
6
|
+
removed), and the peer card before and after. Runs are not pruned unless the
|
|
7
|
+
server sets a retention window. Needs a workspace or admin key.
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
10
|
from __future__ import annotations
|
|
@@ -125,7 +125,7 @@ def list_dreams(
|
|
|
125
125
|
if result.pages:
|
|
126
126
|
title += f" · page {result.page}/{result.pages}"
|
|
127
127
|
if not result.items:
|
|
128
|
-
status("No dreams
|
|
128
|
+
status("No dreams found.")
|
|
129
129
|
return
|
|
130
130
|
_print_runs(result.items, title)
|
|
131
131
|
if result.pages and page < result.pages:
|