agent_reuse_recommend
Recommends whether to reuse an existing sub-agent for follow-up tasks by ranking prior agents on domain match, checking context freshness, and suggesting reuse, slim-then-reuse, or spawn-new actions to preserve accumulated context.
Instructions
Recommend whether to reuse an existing sub-agent for a follow-up task.
For follow-up work (bug re-fix, deeper research, same-domain iteration), resuming a prior sub-agent preserves its accumulated context. This tool ranks prior sub-agents by same-domain match, reads their P1 context watermark, infers reachability, and recommends one of three actions: reuse (SendMessage resumes it) / slim_then_reuse (self-summarize then spawn fresh with the summary) / spawn_new. It only recommends; the Leader decides.
Availability tiers: live (same session, reachable now) / resumable (same
session, offline but transcript fresh) / cross-session (another session,
needs claude --resume) / expired (past retention). Address candidates by
NAME — SendMessage(to=...) takes a teammate name and keeps working after
the agent completes; each candidate's resume_hint is a ready-to-run call
(with the required summary). The raw agentId is the documented fallback
for nameless rows or when a newer agent took the name.
Default response is a COMPACT projection (view="compact" + hint — trimmed, NOT missing fields): decision signals and call keys kept, full rationale and watermark detail via fields="all".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max candidates to return (default 10) | |
| query | No | The follow-up task description / target domain | |
| fields | No | "compact" (default, trimmed projection) / "all" (full rows) | compact |
| keywords | No | Extra space-separated keywords to widen domain matching | |
| project_id | No | Scope to a project (optional; defaults to the active project, empty searches all teams) | |
| session_id | No | The caller's CC session id (optional; enables precise cross-session detection, otherwise availability is inferred from status) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||