Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
48 changes: 35 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,29 @@ the start of the entry's title.
of its trigger is not written (the brief restated in each summary can keep
a long brief near the trigger), as ADK's is not. The main agent's
summaries are unchanged.
- **The user's control of sub-agents: `/agent stop`, `/agent close`, and the
manager's entry points.** `/agent stop <id>` stops one of the
conversation's sub-agents: its run, if one works, is cancelled by the user
(`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
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
turn of its own (`started_by: user`, counted toward no turn's runs, from the
conversation's outside-content mark; stopping its stream, Ctrl+C, is the
user's stop of the run, which ends `cancelled` and leaves the instance
`stopped`), `stop_instance`, `close_instance` (both written to the store
before they return), `steer_instance(instance, message)` (the user's message
to a running run, before its next step), `instance_result` (the envelope of
the latest run the user started) and `tell_root(text)`, a turn of the root
on a notice the user did not type (marked as a job's notice is, so fact
extraction and the conversation's title and turns leave it out; the
outside-content mark a user's run brought is written with it), whose notice
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 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 @@ -846,19 +869,18 @@ the start of the entry's title.
user's answer in the dialog approves: a brief, a tool result or a message
saying the user approved changes nothing, and a sub-agent's question goes
to the user, never to its parent (contract-tested on both backends).
- **`/agents`: the conversation's sub-agent runs.** A table of the open
conversation's sub-agent runs, each followed by the runs it started:
instance, type, 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, `refused`, `failed`, `cancelled`,
`interrupted`),
run, title, tokens in/out (from the usage ledger, so a run still going
shows what it has used so far) and time, a row for each run of an
instance (its first and each follow-up, titled by its message's first
line). `/agents <id>` shows one instance (`researcher-2`: every run of it)
or run (`researcher-2#1`): its type, parent and title, then each run's
status and time, the other fields of its brief (a follow-up's message), the
first lines of its result, its error and its tokens by model. The runs are the conversation's records, kept
- **`/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`):
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,
`refused`, `failed`, `cancelled`, `interrupted`) and time, the other fields
of its brief (a follow-up's message), the first lines of its result, its
error and its tokens by model (from the usage ledger, so a run still going
shows what it has used so far). The runs are the conversation's records, kept
beside it in its store and loaded with it, so a conversation resumed from
an earlier run of the app lists its runs, each with the tokens its record
keeps. During a turn each line of the events
Expand Down
14 changes: 7 additions & 7 deletions CLAUDE.md

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1428,6 +1428,17 @@ 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;
`/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
manager's entry points (provisional, on the open conversation, any of its
sub-agents): `run_instance(id, message)` (a turn of its own, counted toward
no turn's runs; stopping the stream is your stop of the run),
`stop_instance(id)`, `close_instance(id)`, `steer_instance(id, message)`,
`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).
- **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 @@ -2265,7 +2276,8 @@ 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` | | This conversation's sub-agent runs, each under the run that started it: status, title, tokens in/out, time (`/agents <id>`: one instance or run, the first lines of its result, its error and its tokens by model) |
| `/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) |
| `/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 |
| `/compact` | | Summarize the conversation now, keeping the newest turns word for word (`/compact <focus>`: what the summary should keep above all) |
Expand Down
Loading
Loading