Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
da31a93
CLI: a sub-agent's run in its view, and the main agent's notice, as t…
shoom1 Nov 20, 2026
b169586
CLI: a sub-agent's view: /agent <id>, a line as its next run or a ste…
shoom1 Nov 20, 2026
ef62ca1
CLI: /back tells the main agent; its notices wait in a view; /compact…
shoom1 Nov 20, 2026
8b4e21a
CLI: Ctrl+C stops the run in a sub-agent's view; /exit stops one stil…
shoom1 Nov 20, 2026
2cbba38
Docs: a sub-agent's view
shoom1 Nov 20, 2026
38b3e12
CLI: one dialog at a time on the session
shoom1 Nov 20, 2026
f8a06d3
CLI: run_turn goes through the conversation's one write frame
shoom1 Nov 20, 2026
00ac5be
Docs: the view's changelog bullet after the earlier sub-agent bullets
shoom1 Nov 20, 2026
61f9c87
CLI: /status in a sub-agent's view shows one Model row, the instance's
shoom1 Nov 20, 2026
059d173
CLI: a line in a view and /back start a workflow that is down, as a t…
shoom1 Nov 20, 2026
5536a8c
CLI: Ctrl+C says it was cancelled once in a view, and its test fails …
shoom1 Nov 20, 2026
5bf08e0
CLI: say when Ctrl+C cannot be bound in a view; pin what the main con…
shoom1 Nov 20, 2026
d3bda3f
Docs: dialogs.py and the view's queued lines in the structure notes
shoom1 Nov 20, 2026
95eddd0
CLI: /status keeps its fixed rows ahead of the context rows
shoom1 Nov 20, 2026
710056f
CLI: the comment on /back's start retry says what the warning says
shoom1 Nov 20, 2026
3321d38
Tests: the exit test fails instead of hanging when the view's stop st…
shoom1 Nov 20, 2026
a9fc629
CLI: the session's own dialog methods take the one dialog lock
shoom1 Nov 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ the start of the entry's title.
(`cancelled_by: user`), and the instance is `stopped` (an idle one at once):
its parent's `message_agent` is refused, and only the user may start its
next run. `/agent close <id>` closes it and its own sub-agents: no more
runs, its work still shown by `/agents <id>`. `/agent <id>` shows it. Each
runs, its work still shown by `/agents <id>`. `/agent <id>` opens its view. Each
says what it did, or why not. The manager's entry points (provisional; the
open conversation, or the one `session_id`/`user_id` name, any of its
instances): `run_instance(instance, message)`, the user's follow-up as a
Expand All @@ -640,6 +640,27 @@ the start of the entry's title.
after the user worked with a sub-agent is
`agents/envelope.py::view_notice`: "The user worked with <id> directly; its
latest result: <envelope as JSON>". On both backends, contract-tested.
- **A sub-agent's view: `/agent <id>` and `/back`.** `/agent <id>` (or Enter in
`/agents`' picker) opens one of the conversation's sub-agents to work with
directly: a rule (`── researcher-2 · researcher · idle ──`) and a recap (its
title and objective, its last run's status, the first lines of its result,
its tokens; nothing replayed), the prompt `researcher-2> `, and a status bar
that names it, its status, its own `ctx` and tokens, the jobs segment kept.
A line typed there is its next run (`run_instance`, `started_by: user`), its
text the reply; a line typed while that run works is given to it before its
next model step (`steer_instance`), not queued. The run works outside the
input handler, so the prompt stays open to steer it, and Ctrl+C stops it (a
key binding of the view's own, active only while its run works: the user's
stop, the sub-agent `stopped`). `/back` waits for a run still working,
prints `── back to main ──`, and, when a run you started there ended, the
main agent gets one notice turn with its latest envelope (`tell_root`),
drawn as a job's notice is; the main agent's notices (finished jobs) wait
while a view is open, counted in `↻N`, and are told after it
(`job_auto_resume`). In a view `/status` shows the sub-agent's context,
`/compact` is refused, `/new` and `/resume` leave it first; a closed
sub-agent's view is read-only (no prompt). The app's `agent_view`,
`open_agent_view(id)` and `leave_agent_view()` (provisional) are what the
commands call.
- **A parent's tools that continue its sub-agents, `message_agent`,
`stop_agent` and `check_agents`, on both backends, with
`SubAgentPolicy(follow_ups=True)`.** Every agent with sub-agents gets them
Expand Down Expand Up @@ -872,8 +893,9 @@ the start of the entry's title.
- **`/agents`: the conversation's sub-agents.** A picker of the open
conversation's sub-agent instances, each followed by the ones it started:
id, type, status (`running`, `idle`, `stopped`, `closed`) and title; Enter
shows the one picked. `/agents <id>` shows one instance (`researcher-2`:
every run of it, its first and each follow-up) or run (`researcher-2#1`):
opens the view of the one picked (`/agent <id>`). `/agents <id>` shows one
instance (`researcher-2`: every run of it, its first and each follow-up) or
run (`researcher-2#1`):
its type, parent and title, then each run's status (`running`, `queued`
waiting for a free working slot, `needs you` waiting on the user,
`completed`, `completed (partial)` for an answer cut at its output limit,
Expand Down
16 changes: 9 additions & 7 deletions CLAUDE.md

Large diffs are not rendered by default.

21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,8 @@ reviewer = AgentConfig(name="reviewer", prompt="Check what was said.",
`</agents>`, at most 2,000 characters. The list is taken once and kept, as
the memory index is, so the prompt stays cached: it is taken again when the
conversation is opened, after a summary and after `/compact`.
- **The user's control.** `/agents` picks a sub-agent and shows it;
- **The user's control.** `/agents` picks a sub-agent and opens its view, as
`/agent <id>` does (next bullet);
`/agent stop <id>` (its run cancelled by you, `cancelled_by: user`; it is
then `stopped`: its parent's messages are refused, only you can start its
next run) and `/agent close <id>` (it and its own sub-agents). The
Expand All @@ -1439,6 +1440,19 @@ reviewer = AgentConfig(name="reviewer", prompt="Check what was said.",
`instance_result(id)`, `tell_root(text)` (with `view_notice(id,
envelope)`'s text, left out of fact extraction and of the conversation's
title and turns, as a job's notice is).
- **A sub-agent's view.** `/agent <id>` opens one to work with directly: a
rule (`── researcher-2 · researcher · idle ──`) and a recap (its title and
objective, its last run's status, the first lines of its result, its
tokens), the prompt `researcher-2> `, and a status bar naming it, its
status, its own `ctx` and tokens (the jobs segment kept). A line you type is
its next run, streamed as a turn, its text the reply; a line typed while
that run works is given to it before its next model step. Ctrl+C stops the
run (it is then `stopped`; your next line continues it). `/back` prints
`── back to main ──` and, when a run you started there ended, tells the main
agent its latest result in one notice turn; finished jobs wait while you are
in a view (`↻N`) and are told after `/back`. In a view `/status` shows the
sub-agent's context, `/compact` is refused, and `/new` and `/resume` leave
the view first; a closed sub-agent's view has no prompt (`/back` only).
- **What the agent graph refuses.** `inherit_context` is for sub-agents only, and
only for the main agent's own sub-agents that have none of their own. A
coordinator cannot have a tool of its own named `task` (nor, with
Expand Down Expand Up @@ -2276,10 +2290,11 @@ Built-in slash commands available in all apps:
| `/models` | | The list the model pickers offer, each model's facts and why an entry is left out, and the providers in use (`/models <text>` searches the full listings, `/models refresh` lists again) |
| `/sandbox` | `/sb` | List / reset stateful sandbox sessions |
| `/jobs` | | List and manage long-running background jobs (`/jobs all`, `/jobs <id>`, `/jobs cancel <id>`, `/jobs clean`; `/jobs resume` tells the agent this conversation's finished jobs) |
| `/agents` | | Pick one of this conversation's sub-agents, each under the one that started it: id, type, status (`running`, `idle`, `stopped`, `closed`), title; Enter shows it (`/agents <id>`: one instance or run, each run's status and time, the first lines of its result, its error and its tokens by model) |
| `/agent` | | One sub-agent: `/agent <id>` shows it, `/agent stop <id>` stops it (its run, if one works; only you can start its next run), `/agent close <id>` closes it and its own sub-agents (no more runs; its work stays readable) |
| `/agents` | | Pick one of this conversation's sub-agents, each under the one that started it: id, type, status (`running`, `idle`, `stopped`, `closed`), title; Enter opens its view (`/agents <id>` shows one instance or run, each run's status and time, the first lines of its result, its error and its tokens by model) |
| `/agent` | | One sub-agent: `/agent <id>` opens its view (a line typed there is its next run, or steers the run that works; `/back` returns), `/agent stop <id>` stops it (its run, if one works; only you can start its next run), `/agent close <id>` closes it and its own sub-agents (no more runs; its work stays readable) |
| `/papers` | `/docs` | List knowledge-base documents (filter by source, query, --global) |
| `/sessions` | `/sess` | List the saved sessions of every installed backend: backend, title, turns, last update (delete one with `--delete=<id>`; `--backend=<name>` picks one of an id two backends keep); on the memory store it says none are kept |
| `/back` | | Leave a sub-agent's view, back to the main conversation; the main agent is told what you did there |
| `/compact` | | Summarize the conversation now, keeping the newest turns word for word (`/compact <focus>`: what the summary should keep above all) |
| `/new [backend]` | | Start a new conversation, on the backend named (`adk`, `deepagents`, `langgraph`) or the settings' `orchestrator`; the current one stays in `/sessions` (on the memory store it is dropped) |
| `/resume` | | Reopen a saved conversation, on the backend that keeps it: pick one (Enter opens it, Esc cancels), or `/resume <id>`; the last messages are shown again (refused on the memory store) |
Expand Down
Loading
Loading