Remove code execution and task-mode steering#185
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
src/lib/server/llm/code-execution-tools.ts.agent-runtime.ts(tool set, tool-call/result metadata extraction, tool-error guard, and the now-deaddurationMsevent field that only code execution emitted).code_executionfromTOOL_NAMESand the code-execution bullet from the operating instruction.Task-mode feature removed
inferPromptTaskMode, the detection regexes, andTASK_MODE_OVERLAYS;createPromptSteeringBlocksnow emits only the provider overlay.src/lib/server/prompt-message-utils.ts.taskModeplumbing through/api/agentroute andagent-context.ts, and the "task mode overlay" entry from reasoning-privacy redaction.Kept intentionally
PROVIDER_OVERLAYS/resolvePromptProvider) — Qwen/Kimi behavior tuning, independent of task modes.<task_modes>guidance insideDEFAULT_OPERATING_INSTRUCTION(always-on prompt text, not a selectable feature).operation/providerfields — Tavily still setsoperation: "search" | "extract".Tests & docs
CLAUDE.mdandREADME.md.Verification
pnpm lint,pnpm typecheck,pnpm format:check,pnpm test(157 pass), andpnpm buildall green.https://claude.ai/code/session_01XZFXX8tRecX9HaMdxhL642
Generated by Claude Code