feat(query): add overview() for project-aware session/memory discovery

Resolves current project from cwd, lists all known projects with session
  and memory counts, and returns the current project's recent sessions and
  memories in one call. Enables the agent to orient itself at the start of
  a retrieval without multiple exploratory queries.
This commit is contained in:
tommy0103
2026-06-10 03:04:11 +08:00
parent 34f3a164ab
commit 807e5141fa
6 changed files with 312 additions and 4 deletions
+3 -3
View File
@@ -108,9 +108,9 @@ references only when the question needs them:
- `context(uuid)` — full story around a message (parent chain, subagent/workflow metadata)
- `sql(query, ...params)` — read-only SQL for structured queries
**Structured shortcuts** — session, memory, summary, subagent, workflow,
file-history, failure, raw-window, and parent-chain helpers over the same
SQLite data.
**Structured shortcuts** overview, session, memory, summary, subagent,
workflow, file-history, failure, raw-window, and parent-chain helpers over the
same SQLite data.
**References** — agent reads on demand when the task needs deeper structure: