Skip to content

Remove code execution and task-mode steering#185

Merged
chloeilabs merged 1 commit into
mainfrom
claude/chloe-streaming-simplify-3w3p5o
Jun 16, 2026
Merged

Remove code execution and task-mode steering#185
chloeilabs merged 1 commit into
mainfrom
claude/chloe-streaming-simplify-3w3p5o

Conversation

@chloeilabs

Copy link
Copy Markdown
Owner

Summary

Simplifies Chloei into a basic streaming AI agent whose only tools are Tavily web search (tavily_search, tavily_extract). Removes two subsystems the app no longer needs: the sandboxed code-execution tool and the per-request task-mode inference/overlay system.

What changed

Code execution removed

  • Deleted src/lib/server/llm/code-execution-tools.ts.
  • Removed its wiring from agent-runtime.ts (tool set, tool-call/result metadata extraction, tool-error guard, and the now-dead durationMs event field that only code execution emitted).
  • Dropped code_execution from TOOL_NAMES and the code-execution bullet from the operating instruction.

Task-mode feature removed

  • Deleted inferPromptTaskMode, the detection regexes, and TASK_MODE_OVERLAYS; createPromptSteeringBlocks now emits only the provider overlay.
  • Deleted the now-unused src/lib/server/prompt-message-utils.ts.
  • Removed the taskMode plumbing through /api/agent route and agent-context.ts, and the "task mode overlay" entry from reasoning-privacy redaction.

Kept intentionally

  • Provider overlays (PROVIDER_OVERLAYS / resolvePromptProvider) — Qwen/Kimi behavior tuning, independent of task modes.
  • The static <task_modes> guidance inside DEFAULT_OPERATING_INSTRUCTION (always-on prompt text, not a selectable feature).
  • The streaming protocol's optional operation/provider fields — Tavily still sets operation: "search" | "extract".

Tests & docs

  • Deleted the code-execution and prompt-steering test files; updated the contract, route-behavior, system-prompt, context, stream-events, and activity-timeline tests (timeline fixtures retargeted to Tavily tools to preserve dedup coverage).
  • Updated CLAUDE.md and README.md.

Verification

pnpm lint, pnpm typecheck, pnpm format:check, pnpm test (157 pass), and pnpm build all green.

https://claude.ai/code/session_01XZFXX8tRecX9HaMdxhL642


Generated by Claude Code

Simplify Chloei to a basic streaming agent whose only tools are Tavily
web search (tavily_search, tavily_extract).

- Remove the code_execution tool: delete code-execution-tools.ts, drop its
  wiring from the agent runtime tool set / metadata extraction / error
  handling, and prune the "code_execution" tool name and prompt references.
- Remove the task-mode feature: delete inferPromptTaskMode, the detection
  regexes, and TASK_MODE_OVERLAYS; createPromptSteeringBlocks now emits only
  the provider overlay. Drop the now-unused prompt-message-utils.ts and the
  taskMode plumbing through the route and agent-context.
- Keep provider overlays (Qwen/Kimi tuning) and the streaming protocol's
  optional operation/provider fields (Tavily still uses operation).
- Update affected unit tests and refresh CLAUDE.md / README docs.
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chloei Ready Ready Preview, Comment Jun 16, 2026 12:52am

@chloeilabs chloeilabs merged commit b99f47a into main Jun 16, 2026
6 checks passed
@chloeilabs chloeilabs deleted the claude/chloe-streaming-simplify-3w3p5o branch June 16, 2026 01:51
@chloeilabs chloeilabs mentioned this pull request Jun 16, 2026
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