delegate_to_deepseek
Run a sub-agent with its own tool loop to handle batch, repetitive, or mechanical tasks end-to-end, saving main conversation tokens.
Instructions
Delegate a focused task to DeepSeek as a real sub-agent.
DeepSeek runs its own agent loop with Read/Write/Edit/Bash/Glob/Grep/NotebookEdit tools inside the configured workspace. Use this for batch / repetitive / mechanical tasks where you want to save main-conversation tokens and let DeepSeek do the heavy lifting end-to-end.
Good fits:
Extract i18n keys from N files into JSON
Translate large chunks of text
Scan logs for patterns
Bulk refactors with a clear pattern
One-off ETL scripts
Bad fits (do it yourself instead):
Architectural design / cross-file judgment
Bug root-cause analysis
Tasks requiring project-specific idioms from CLAUDE.md or other repo conventions
Args: task: Clear description of what DeepSeek should accomplish, including success criteria and file paths involved. context: Optional additional context — project conventions, related files DeepSeek should consider, output format requirements. Include this when project-specific knowledge matters.
Returns: A summary of what DeepSeek did, including files affected, turns used, tokens consumed, and any issues. Always verify the result by reading a sample of the affected files before declaring success to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| context | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |