2 Commits

Author SHA1 Message Date
chengyongru
b5cd23bf5e feat(subagent): add real-time monitoring for subagent execution
Track subagent progress via SubagentStatus dataclass that captures
phase, iteration, tool events, usage, and errors. Wire through
checkpoint_callback for phase transitions and _SubagentHook.after_iteration
for per-iteration updates. Enhance SelfTool inspect to display rich
subagent status via dot-path navigation.
2026-04-14 21:59:24 +08:00
chengyongru
e167eb2dfa feat(agent): add SelfTool v2 for agent self-evolution
Introduce a self tool that enables agents to inspect, modify, and invoke
any runtime state, supporting self-evolutionary behavior.

Key capabilities:
- Dot-path navigation: inspect/modify nested objects (e.g. subagents._running_tasks)
- Free method invocation via 'call' action (no whitelist)
- setattr-priority modify: changes take immediate effect on loop attributes
- Configuration snapshots: save/restore named config templates
- Minimal security: only bus, provider, _running are blocked
- Runtime safeguards: 64-key cap on _runtime_vars, value size limit, watchdog

Actions: inspect, modify, call, list_tools, manage_tool, snapshot, restore,
list_snapshots, reset
2026-04-14 20:26:11 +08:00