What it does
deepseek-as-subagent runs DeepSeek, or a local OpenAI-compatible model, as a sub-agent inside Claude Code or Codex CLI. The sub-agent has its own loop for reading files, editing them and running commands in a sandboxed workspace. The main agent keeps the conversation, planning and verification, and hands over execution-heavy work.
Use cases
- 01Delegating a well-scoped refactor to a sub-agent
- 02Running a local model for code changes
- 03Handing off file edits and command runs to a workspace