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
8 changes: 0 additions & 8 deletions crates/kernel/src/agent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -852,14 +852,6 @@ Excessively long context may cause model call failures. In this case, you MAY us
`tape-info` to check token usage and you SHOULD use `tape-anchor` to shorten the \
retrieved history.

**Task delegation**: Use the `task` tool to delegate focused subtasks to a background \
agent. Pick a task_type: `explore` for codebase research (read-only, fast), `bash` for \
shell operations, `general-purpose` for complex multi-step work with full tool access. \
Provide a complete prompt with all necessary context — the child agent does not see your \
conversation. Use `explore` when your task requires more than 3 search queries or spans \
multiple files. You can launch multiple tasks concurrently to investigate independent \
questions in parallel.

**On-demand tool activation**: Call `discover-tools` BEFORE using any tool from \
the discoverable list below. These are search keywords, NOT callable tools. \
Example: `discover-tools({{"query":"marketplace"}})`. \
Expand Down
2 changes: 1 addition & 1 deletion crates/kernel/src/tool/spawn_background.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use crate::{
instruction), `description` (short status label), and `system_prompt` (agent \
behavior). Optional: `name`, `tools`, `model`, `max_iterations`. The agent \
runs independently and results are delivered when complete.",
tier = "deferred"
tier = "core"
)]
pub struct SpawnBackgroundTool {
handle: KernelHandle,
Expand Down
10 changes: 9 additions & 1 deletion crates/kernel/src/tool/task/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ use crate::{
description = "Launch a background task using a predefined agent type. Pick a task_type: \
'explore' for codebase analysis and research, 'bash' for shell/CLI operations, \
'general-purpose' for complex multi-step tasks with full tool access. The \
agent runs independently and results are delivered when complete."
agent runs independently and results are delivered when complete. Only the \
final result enters your context — intermediate tool calls stay in the \
child.\n\nWHEN TO USE:\n- Research spanning 3+ queries or multiple files\n- \
Tasks whose intermediate output would flood your context\n- Independent \
workstreams that can run in parallel\n- Reasoning-heavy subtasks (debugging, \
code review, analysis)\n\nWHEN NOT TO USE:\n- Single tool call — just call the \
tool directly\n- Tasks needing user interaction — child agents cannot ask the \
user\n\nIMPORTANT: The child agent has NO memory of your conversation. Pass \
ALL relevant context (file paths, error messages, constraints) in the prompt."
)]
pub struct TaskTool {
handle: KernelHandle,
Expand Down
Loading