Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

Merge remote-tracking branch 'origin/main' into audit/pr350-fix

AkitaOnRails80e920f17b85
diff --cc CHANGELOG.md
index 037f3fe8,6ccbc241..e8bd7686
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -8,17 -8,18 +8,29 @@@ and this project adheres to [Semantic V
## [Unreleased]
### Added
+- Added `ai-memory continue`, which resumes the most recently launched managed
+ checkout from any directory. `run`'s bare mode already continues the current
+ checkout, but its workstream lookup is keyed by repository and worktree
+ fingerprints, so it requires a `cd` first. `continue` orders the client-local
+ checkout links by their `linked_at` stamp, revalidates the newest one's path
+ and resolved scope, and then delegates to the same bare-mode launch. Stale,
+ retargeted, or scope-mismatched links are announced on stderr and skipped
+ rather than silently resuming a different project. It accepts `--workspace`,
+ `--yolo`, and `--fresh`; native harness arguments and `--executable` remain
+ unavailable because bare mode does not know which harness it will pick
+ (#350).
+ - New `GET /admin/sessions/by-agent` endpoint reporting how many sessions
+ each agent CLI opened in one scope (`claude-code`, `cursor`, `codex`, …),
+ so a dashboard can answer "where is this project's memory coming from".
+ `sessions.agent_kind` already carried the answer but no read surface
+ exposed it — the existing `/admin/open-sessions` takes the agent as a
+ *filter* and returns neither the kind nor a total. Counts cover open and
+ ended sessions alike, take an optional `since_days` window (`0` or absent
+ = whole history), and order count-descending with an agent-name tiebreak
+ so equal counts do not reorder between calls. Like the other scoped admin
+ reads it reports the caller's own sessions plus unowned ones, with
+ `all_owners=true` as the recovery switch. Unknown scopes 404 rather than
+ being auto-created. No migration. (#349)
## [1.22.0] - 2026-08-01