Skip to content

feat: add sub-agent delegation, recall tool, and plan mode with struc…#261

Open
zjsy888 wants to merge 2 commits into
lessweb:mainfrom
zjsy888:main
Open

feat: add sub-agent delegation, recall tool, and plan mode with struc…#261
zjsy888 wants to merge 2 commits into
lessweb:mainfrom
zjsy888:main

Conversation

@zjsy888

@zjsy888 zjsy888 commented Jul 26, 2026

Copy link
Copy Markdown

…tured execution

New Tools

Delegate tool

  • Sub-agent delegation for parallel task execution (up to 8 sub-agents)
  • Sub-agent runner with isolated context per agent
  • Configurable tools, iterations, and timeouts per sub-agent

Recall tool

  • Search conversation history and code index across sessions
  • Supports categories: code, decision, error, fact, all
  • Optional file path filtering
  • Code index module for code entity tracking

Plan Mode Enhancements

  • Structured execution plan with verification and fallback strategies
  • Step lifecycle: pending -> in_progress -> complete/failed/skipped
  • Max retries per step with rollback, skip, or ask_user fallbacks

Infrastructure

  • Context manager for session-level context tracking
  • Conversation memory for persistent session recall
  • Cost calculator and usage tracker with per-model aggregation
  • Hooks manager for tool lifecycle extensibility
  • Shell session management

UI

  • ContextBar component for session context display
  • Updated App, PromptInput, slash commands for new tools

All 334 tests passing.

zjsy521 added 2 commits July 26, 2026 02:00
…tured execution

## New Tools

### Delegate tool
- Sub-agent delegation for parallel task execution (up to 8 sub-agents)
- Sub-agent runner with isolated context per agent
- Configurable tools, iterations, and timeouts per sub-agent

### Recall tool
- Search conversation history and code index across sessions
- Supports categories: code, decision, error, fact, all
- Optional file path filtering
- Code index module for code entity tracking

## Plan Mode Enhancements
- Structured execution plan with verification and fallback strategies
- Step lifecycle: pending -> in_progress -> complete/failed/skipped
- Max retries per step with rollback, skip, or ask_user fallbacks

## Infrastructure
- Context manager for session-level context tracking
- Conversation memory for persistent session recall
- Cost calculator and usage tracker with per-model aggregation
- Hooks manager for tool lifecycle extensibility
- Shell session management

## UI
- ContextBar component for session context display
- Updated App, PromptInput, slash commands for new tools

All 334 tests passing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants