24. Migrate Ideas to Local Qwen

What Transfers Cleanly

If your runtime model is local Qwen, the biggest transferable value from this source is not “Claude behavior.” It is the client architecture around the model.

  • Startup shell structure from main.tsx
  • Tool contracts from Tool.ts
  • Safe shell execution from tools/BashTool/*
  • File reading and editing patterns from FileReadTool and FileEditTool
  • Session handling from history.ts, services/compact/*, and services/SessionMemory/*

What Will Not Transfer Automatically

  • Model quality and planning reliability
  • Long-chain tool use stability
  • Strong code-edit judgment
  • Claude-specific request semantics and beta headers

Migration Strategy

KeepRewriteDrop for now
CLI shell, tool interface, permission modelModel adapter for Qwen/Ollama/vLLMComplex internal-only feature flags
Basic session history and compacting ideasPrompt templates tuned for weaker local modelsEnterprise/provider-specific auth branches
Read/edit/bash guardrailsTool descriptions optimized for your modelAnthropic-specific telemetry and growthbook logic

Source Navigation

Recommended Source Files

  • source/services/api/client.ts
  • source/services/api/claude.ts
  • source/tools.ts
  • source/tools/BashTool/BashTool.tsx
  • source/components/PromptInput

Next Files to Read

  • source/services/tools/toolExecution.ts
  • source/tools/FileReadTool/FileReadTool.ts
  • source/state/AppStateStore.ts