Installation
Quick Start
Install Tachikoma agent as an OpenCode plugin:
bun run install.tsInstallation Options
Local →
.opencode/(current project only)- Best for project-specific configurations
- Agent available only in this repository
- Copies to
./.opencode/
Global →
~/.config/opencode/(all projects)- Agent available across all your projects
- Single source of truth for agent updates
- Copies to
~/.config/opencode/
Custom → Specify a path
- Install to any directory you prefer
- Useful for development or testing
- Note: Appends
.opencode/to your custom path - Example:
/path/to/project→/path/to/project/.opencode/
What Gets Installed?
The installer creates a plugin structure with:
.opencode/
├── plugins/
│ ├── tachikoma.ts # Main plugin (auto-discovers scripts)
│ └── tachikoma/ # Scripts & agent modules
│ ├── edit-format-selector.ts # tachikoma.edit-format-selector
│ ├── where.ts # tachikoma.where
│ ├── core.ts # Core orchestrator
│ ├── router.ts # Cost-aware routing
│ ├── verifier.ts # Verification loops
│ ├── context-manager.ts # Position-aware context
│ ├── model-harness.ts # Model-aware editing
│ └── rlm-handler.ts # RLM orchestration
├── skills/ # Agent Skills (OpenCode standard)
│ ├── paul/SKILL.md # PAUL Framework
│ ├── carl/SKILL.md # CARL Layer
│ ├── code/SKILL.md # Code implementation
│ ├── planning/SKILL.md # Planning methodology
│ ├── research/SKILL.md # Codebase exploration
│ ├── verification/SKILL.md # Code validation
│ ├── context7/SKILL.md # Live documentation
│ ├── refactor/SKILL.md # Code refactoring
│ ├── git-commit/SKILL.md # Conventional commits
│ └── reasoning/SKILL.md # Functional thinking
└── agents/
└── tachikoma.md # Agent configurationHow It Works
- Plugin Auto-Discovery: The
tachikoma.tsplugin automatically discovers all.tsfiles in thetachikoma/subdirectory - Tool Registration: Each script is registered as a tool with the name
tachikoma.<script-name> - Zero Configuration: Just drop a new script in the directory - it becomes available automatically
- Agent Modules: All agent logic (core, router, verifier, etc.) lives in the same directory
- Skills: Agent Skills.io skills are also in the plugins directory
Adding New Scripts
To add a new capability:
- Create a new
.tsfile insrc/plugin/tachikoma/ - Add a JSDoc comment at the top for description
- Reinstall:
bun run install
Example script:
#!/usr/bin/env bun
/**
* My new Tachikoma capability
* Does something useful
*/
const args = Bun.argv.slice(2);
// Your script logic here
console.log(`Processing: ${args[0] || "no args"}`);After reinstall, it becomes tachikoma.my-new-capability tool!
Adding New Skills
To add a new skill:
- Create a new directory in
.opencode/skills/ - Add a
SKILL.mdfile with frontmatter - The skill is automatically discovered by OpenCode
Example skill:
---
name: my-skill
description: My specialized skill
keywords:
- keyword1
- keyword2
triggers:
- trigger1
- trigger2
---
# My Skill
Instructions for this specialized skill...Skills are loaded via the skill tool and don't require reinstallation.
Installation Flow
- Select installation location using arrow keys (↑/↓) or k/j
- Press Enter to confirm selection
- For custom paths, type destination
- Review installation summary
- Confirm to proceed
- Installer creates backup if target exists
- Files are copied (respects gitignore)
- Installation complete!
Backup
The installer automatically backs up existing .opencode directories before installation:
.opencode.backup-2026-02-23T16-30-00Keep the backup until you're satisfied with the installation, then delete it manually.
MCP Server Setup (Optional)
Tachikoma can integrate with Model Context Protocol (MCP) servers for enhanced capabilities. MCP setup is optional - the agent works without it with local fallbacks.
Required MCP Servers
1. Tachikoma-MCP
Provides meta-orchestration capabilities (topology analysis, verification loops, graph memory).
Installation:
git clone https://github.com/Nirvaxstiel/Tachikoma-MCP
cd Tachikoma-MCP
bun installConfiguration in OpenCode: Add to your OpenCode MCP configuration (typically ~/.config/opencode/mcp.json or similar):
{
"mcpServers": {
"tachikoma": {
"command": "bun",
"args": ["run", "path/to/Tachikoma-MCP/src/index.ts"]
}
}
}2. jcodemunch-mcp
Provides codebase indexing and navigation (file trees, symbol search, references).
Installation:
git clone https://github.com/jgravelle/jcodemunch-mcp/
cd jcodemunch-mcp
bun installConfiguration in OpenCode:
{
"mcpServers": {
"jcodemunch": {
"command": "bun",
"args": ["run", "path/to/jcodemunch-mcp/src/index.ts"]
}
}
}Verifying MCP Setup
After configuring MCP servers, restart OpenCode. The agent will automatically use available MCP tools with local fallbacks if unavailable.
Check MCP Integration for detailed information about which tools are used and how fallbacks work.
Without MCP Servers
Tachikoma works fully without MCP servers:
- All MCP calls fall back to local implementations
- No functionality is lost
- Performance may be slower for some operations (linear vs O(log N) queries)
After Installation
Run OpenCode and use Tachikoma:
opencodeThen in OpenCode TUI:
@tachikoma help me refactor this functionUsing Tachikoma Tools
The agent has access to all Tachikoma scripts as tools:
Agent: Let me check where Tachikoma is installed
[Uses tachikoma.where tool]
Agent: I'll select the best edit format for this model
[Uses tachikoma.edit-format-selector with args="recommend"]About the Installer
The installer uses clack, a modern TUI library that provides:
- Clean, minimal aesthetics
- Native arrow key navigation (no bugs)
- Proper terminal handling
- Cross-platform support
- No manual cursor management
This follows modern Node.js/Bun CLI standards for interactive prompts.
Manual Installation
If you prefer manual installation, copy these files:
Global Installation
# Create directories
mkdir -p ~/.config/opencode/plugins/tachikoma
mkdir -p ~/.config/opencode/plugins/tachikoma/skills
mkdir -p ~/.config/opencode/agents
# Copy files
cp src/plugin/tachikoma.ts ~/.config/opencode/plugins/
cp src/plugin/tachikoma/*.ts ~/.config/opencode/plugins/tachikoma/
cp src/plugin/skills/*.ts ~/.config/opencode/plugins/tachikoma/skills/
cp src/agents/tachikoma.md ~/.config/opencode/agents/Local Installation
# Create directories
mkdir -p .opencode/plugins/tachikoma
mkdir -p .opencode/plugins/tachikoma/skills
mkdir -p .opencode/agents
# Copy files
cp src/plugin/tachikoma.ts .opencode/plugins/
cp src/plugin/tachikoma/*.ts .opencode/plugins/tachikoma/
cp src/plugin/skills/*.ts .opencode/plugins/tachikoma/skills/
cp src/agents/tachikoma.md .opencode/agents/Troubleshooting
Scripts Not Showing Up
- Ensure scripts are in
plugins/tachikoma/directory - Script filenames must end in
.ts - Scripts starting with
_are ignored - Restart OpenCode after adding new scripts
Tool Errors
If a tool fails to execute:
- Check that the script has executable permissions
- Verify the script accepts arguments correctly
- Check that the script outputs to stdout (not stderr)
- Look at OpenCode logs for detailed error messages
Installation Fails
- Ensure you have write permissions to the target directory
- Check that
bunis installed and in your PATH - Try removing the existing
.opencodedirectory and retry - Use the
--helpflag for detailed usage information