Invoke-opencode-acp is a Claude Code CLI skill that delegates complex tasks to an OpenCode subagent via ACP protocol, reducing token usage by 50-90%. It benefits operations teams by optimizing costs and improving efficiency in AI-driven workflows. The skill connects to Claude Code CLI and supports JSON-RPC for integration.
git clone https://github.com/phonowell/invoke-opencode-acp.gitinvoke-opencode-acp is a Claude Code CLI skill that delegates complex tasks to an OpenCode subagent through the ACP protocol, significantly reducing token consumption in your main conversation. Instead of Claude processing every file and iteration, the subagent works independently on objectives like multi-file refactoring, batch operations, and code reviews, returning only a concise summary. This approach saves 50-90% tokens by offloading work to alternative models while keeping your main conversation responsive. The skill is ideal for operations teams managing AI-driven workflows, large codebases, and batch file operations where token optimization directly impacts costs. Installation requires Claude Code CLI, OpenCode, and Node.js, with straightforward command-line integration.
Install OpenCode globally (`npm install -g opencode`), copy the skill to `~/.claude/skills/`, then describe your task to Claude in one sentence. The subagent works independently and returns results to an output file. Set timeout based on task complexity: 180s for simple tasks, 600s for single-file work, 1800s for multi-file refactoring.
Multi-file code refactoring with type hints or style updates
Batch documentation updates across multiple markdown files
Codebase-wide security reviews and vulnerability audits
Git workflows including commits, pull requests, and branch operations
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/phonowell/invoke-opencode-acpCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I want to use the invoke-opencode-acp skill to [TASK]. Here are the details: [COMPANY] is in the [INDUSTRY] sector. The data I need to process is [DATA]. Please provide a step-by-step plan to accomplish this using the OpenCode subagent.
# Task Delegation Plan for [COMPANY] ## Objective Delegate the task of [TASK] to the OpenCode subagent to optimize token usage and improve efficiency. ## Steps 1. **Initial Assessment**: Evaluate the complexity of the task and estimate token usage without delegation. 2. **Task Breakdown**: Divide the task into smaller sub-tasks suitable for delegation. 3. **Subagent Configuration**: Set up the OpenCode subagent with the necessary parameters and access to [DATA]. 4. **Delegation Execution**: Use the invoke-opencode-acp skill to delegate the sub-tasks to the OpenCode subagent. 5. **Monitoring and Optimization**: Monitor the progress and optimize the delegation process for better performance. ## Expected Outcomes - Reduced token usage by 50-90% - Improved efficiency in task completion - Cost savings for [COMPANY]
AI-powered collections for food distributors
AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan