Skip to content

Feature Request: Enable ULTRAPLAN Feature Flag #5

@sobird

Description

@sobird

Summary

Enable the ULTRAPLAN feature flag to activate advanced multi-agent planning capabilities in Claude Code.

What ULTRAPLAN Does

ULTRAPLAN is an advanced planning feature that:

  1. Multi-Agent Planning: Uses Claude Code on the web with Opus 4.6 model for sophisticated multi-agent exploration and planning
  2. Remote Execution: Launches remote sessions in Claude Code on the web for complex task planning
  3. Interactive Refinement: Allows users to review, edit, and approve generated plans before execution
  4. Terminal Freedom: Keeps the local terminal free while planning runs remotely
  5. Plan Integration: Returns finalized plans as pull requests when complete

Current State

  • ULTRAPLAN is currently disabled (commented out in scripts/config.ts)
  • The feature has full implementation but requires explicit opt-in via feature flag
  • All necessary components exist: command implementation, UI integration, session management, polling logic

Proposed Enhancement

Enable ULTRAPLAN Feature Flag

Uncomment the ULTRAPLAN line in scripts/config.ts:

- // 'ULTRAPLAN',
+ 'ULTRAPLAN',

Expected Benefits

  1. Advanced Planning: Users can leverage multi-agent capabilities for complex planning tasks
  2. Better Task Management: Structured approach to breaking down complex problems
  3. Collaborative Planning: Web-based interface allows better plan visualization and editing
  4. Integration Ready: Plans can be seamlessly integrated back into local workflow

Implementation Considerations

  • Target Audience: Primarily internal users (USER_TYPE === 'ant')
  • Performance: ~10-30 minute planning sessions with timeout protection
  • Resource Usage: Remote sessions managed through existing CCR infrastructure
  • Fallback: Graceful degradation if remote services unavailable

Testing Plan

  1. Verify feature flag activation in build process
  2. Test basic /ultraplan <prompt> command functionality
  3. Validate remote session creation and polling
  4. Confirm plan generation and PR creation workflow
  5. Test error handling and edge cases

Related Components

  • Command: src/commands/ultraplan.tsx
  • UI Integration: src/components/PromptInput/PromptInput.tsx, src/screens/REPL.tsx
  • Session Management: src/utils/ultraplan/ccrSession.ts
  • Teleport Integration: src/utils/teleport.ts

This feature would significantly enhance Claude Code's planning capabilities and provide users with a more structured approach to complex task decomposition and execution.


总结

启用ULTRAPLAN功能标志以激活Claude Code中的高级多智能体规划功能。

什么是ULTRAPLAN

ULTRAPLAN是一个高级规划功能,它:

  1. 多智能体规划:使用Claude Code在Web上使用Opus 4.6模型进行复杂的多智能体探索和计划
  2. 远程执行:在Claude Code on the web上启动远程会话进行复杂任务规划
  3. 交互优化:允许用户在执行前审查、编辑和批准生成的计划
  4. 终端自由:规划运行时保持本地终端空闲
  5. 计划集成:完成后将最终计划作为拉取请求返回

当前状态

  • ULTRAPLAN当前是禁用的(在scripts/config.ts中被注释掉)
  • 该功能已完全实现,但需要通过功能标志显式启用
  • 所有必要组件都存在:命令实现、UI集成、会话管理、轮询逻辑

建议的增强功能

启用ULTRAPLAN功能标志

scripts/config.ts中取消注释ULTRAPLAN行:

- // 'ULTRAPLAN',
+ 'ULTRAPLAN',

预期收益

  1. 高级规划:用户可以利用多智能体能力处理复杂的规划任务
  2. 更好的任务管理:将复杂问题分解为结构化方法
  3. 协作规划:基于Web的界面可实现更好的计划可视化和编辑
  4. 集成就绪:计划可以无缝集成回本地工作流

实施考虑因素

  • 目标用户:主要是内部用户(USER_TYPE === 'ant'
  • 性能:~10-30分钟规划会话,具有超时保护
  • 资源使用:通过现有CCR基础设施管理远程会话
  • 回退:如果远程服务不可用则优雅降级

测试计划

  1. 验证构建过程中的功能标志激活
  2. 测试基本的/ultraplan <prompt>命令功能
  3. 验证远程会话创建和轮询
  4. 确认计划生成和PR创建工作流
  5. 测试错误处理和边界情况

相关组件

  • 命令:src/commands/ultraplan.tsx
  • UI集成:src/components/PromptInput/PromptInput.tsxsrc/screens/REPL.tsx
  • 会话管理:src/utils/ultraplan/ccrSession.ts
  • 传送集成:src/utils/teleport.ts

如果启用此功能,将显著增强Claude Code的规划能力,为用户提供更结构化的复杂任务分解和执行方法。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions