CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

feat(acp): add multi-turn tool execution support to ACP server

Open Yourdaylight opened this issue 6 months ago • 0 comments

  • Add toolCapabilities to initialize response (handlesRequestPermission: true)
  • Add 11 built-in tools: read_file, write_file, edit_file, exec_shell, grep_files, file_search, list_dir, todo_write, web_search, web_fetch, diagnostics
  • Implement multi-turn tool execution loop in prompt() method
  • Auto-approve session/request_permission for headless daemon integration
  • Add session/resume and session/set_model support
  • Set loadSession: true in agent capabilities
  • Add unit tests for toolCapabilities and loadSession advertisement

This enables deepseek-tui as a fully-functional agent runtime in Multica, supporting Quick Create, issue assignment, and task execution flows.

Fixes multica-ai/multica#2606

Summary

Testing

  • [ ] cargo test --all-features
  • [ ] cargo fmt --all -- --check
  • [ ] cargo clippy --all-targets --all-features

Checklist

  • [ ] Updated docs or comments as needed
  • [ ] Added or updated tests where relevant
  • [ ] Verified TUI behavior manually if UI changes

Yourdaylight avatar May 15 '26 16:05 Yourdaylight