Add OpenCode integration and CLI-only mode support#138
Open
benjaminwestern wants to merge 1 commit intoTinyAGI:mainfrom
Open
Add OpenCode integration and CLI-only mode support#138benjaminwestern wants to merge 1 commit intoTinyAGI:mainfrom
benjaminwestern wants to merge 1 commit intoTinyAGI:mainfrom
Conversation
This commit adds OpenCode as a supported AI provider alongside Anthropic and OpenAI, enabling users to use TinyClaw without requiring Discord, Telegram, or WhatsApp. Key Features: - Add OpenCode provider with full agent and skill support - Implement CLI-only mode with --no-tmux flag for headless operation - Add --cli-only quick setup flag for streamlined onboarding without channels - Fix tmux window targeting to support user configs with base-index 1 - Add send, receive, and chat commands for CLI-based interaction - Create .opencode directory structure with skill symlinks per agent - Support 6 pre-configured agent roles (build, plan, coder, reviewer, writer, assistant) Technical Changes: - lib/common.sh: Support empty channels array for CLI-only configs - lib/daemon.sh: Add no-tmux mode and dynamic window targeting - lib/messaging.sh: Add send, receive, and chat functions - lib/setup-wizard.sh: Add --cli-only flag for quick setup - src/lib/agent.ts: Create .opencode structure and per-agent config - src/lib/invoke.ts: Add OpenCode CLI invocation with --agent flag - tinyclaw.sh: Add command routing for new flags - opencode.json: Add root agent configuration Documentation: - Add docs/OPENCODE.md: OpenCode integration guide - Add docs/5-AGENT-SQUAD.md: Multi-agent team setup guide - Add docs/CLI.md: Complete CLI usage documentation - Update AGENTS.md: Add OpenCode-compatible team mention syntax - Update .gitignore: Exclude .opencode runtime directory
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
I worked with KimiK2.5 and Opus4.6 to co-develop this PR.
This commit adds OpenCode as a supported AI provider alongside Anthropic and OpenAI, enabling users to use TinyClaw without requiring Discord, Telegram, or WhatsApp.
Changes
Key Features:
Technical Changes:
Documentation:
Type of Change
Testing
Tested locally using OpenCode + CLI-only mode:
setup --cli-only)start --no-tmux)Note: Multi-agent teams, tmux mode, and skill invocation not fully tested.
I think there is a Low chance of regression as changes primarily add new code rather than modifying existing functionality. Tmux targeting change improves handling of non-default base-index configs.
Checklist