@votadev/tooncode
v2.6.9
Published
πΉπ Thai AI Coding Agent CLI β powered by free models. 21 tools, multi-agent team, semantic search, browser automation, MCP servers.
Downloads
5,562
Maintainers
Readme
ToonCode β πΉπ Thai Coding Agent CLI
by VotaLab | v2.6.1 | Thai AI Coding Agent powered by free AI models
βββββββββ βββββββ βββββββ ββββ βββ βββββββ βββββββ βββββββ ββββββββ
βββ βββ ββββββ βββββββββ ββββββ βββ ββββββ βββββββββ
βββ βββββββ βββββββ βββ βββββ βββββββ βββββββ βββββββ ββββββββToonCode is a free, open-source Thai AI coding agent that runs in your terminal. It uses free AI models (no API key needed) and provides a professional coding experience with 21 tools, 32 skills, multi-agent teams, semantic search, browser automation, MCP server support, and more.
Features
21 Built-in Tools
ToonCode comes with a comprehensive set of tools that the AI can use autonomously:
| Category | Tool | Description |
|----------|------|-------------|
| File | read | Read files with line numbers |
| | write | Create/overwrite files (shows diff) |
| | edit | String replacement in files (shows diff) |
| | multi_edit | Batch edits across multiple files in one call |
| | glob | Find files by pattern (e.g. **/*.py) |
| | grep | Search file contents with regex |
| | list_dir | Browse directory structure |
| Shell | bash | Run shell commands (auto-detects PowerShell on Windows, bash on Mac/Linux) |
| Web | web_search | Search the web via DuckDuckGo |
| | web_fetch | Fetch and extract web page content |
| | http | Full HTTP client β GET/POST/PUT/DELETE with headers, auth, JSON body |
| Browser | browser | Playwright browser automation β open pages, click, fill forms, take screenshots, read console, monitor network |
| System | screenshot | Capture desktop or window screenshot with OCR |
| Agent | spawn_agent | Spawn sub-agents (coder, reviewer, tester, researcher) |
| | bosshelp | Escalate difficult tasks to Boss AI (more powerful model) |
| Memory | memory_save | Save notes for future sessions |
| | memory_search | Search past memories by keyword |
| Tasks | task_create | Create a tracked task |
| | task_update | Update task status (pending/in_progress/done) |
| | task_list | View all tasks and progress |
32 Built-in Skills
Skills are pre-built prompt templates organized by category. Use them with slash commands:
| Category | Skills | Example |
|----------|--------|---------|
| Code (10) | refactor, review, test, lint, explain, optimize, scaffold, types, convert, deps | /refactor src/utils.py |
| Debug (4) | fix, error, perf, trace | /fix β auto-detect and fix bugs |
| Git (3) | commit, changelog, pr | /commit β smart commit message |
| DevOps (2) | docker, ci | /docker β generate Dockerfile |
| Docs (2) | readme, api | /readme β generate README |
| Data (3) | migrate, seed, sql | /sql β query helper |
| API (2) | endpoint, mock | /endpoint β create new API endpoint |
| Architecture (3) | diagram, pattern, split | /diagram β generate architecture diagram |
| Security (2) | audit, secrets | /audit β OWASP Top 10 security audit |
Slash Commands
| Command | Description |
|---------|-------------|
| /help | Show all commands |
| /model [name] | Switch AI model |
| /boss <task> | Create detailed implementation plan using Boss AI |
| /team <task> | Start multi-agent team (see below) |
| /plan | Toggle Plan Mode (AI plans only, no edits) |
| /do | Execute pending tasks |
| /tasks | Show task progress |
| /continue, /c | Continue where AI left off |
| /save, /s | Save session |
| /resume, /r | Load saved session |
| /compact | Compress conversation context |
| /memory | Browse saved memories |
| /semantic <query> | Semantic search across codebase (requires LanceDB) |
| /index | Rebuild codebase structure index |
| /paste, /v | Send clipboard content to AI |
| /send <msg> | Chat between ToonCode windows |
| /bg, /ps | Manage background processes |
| /commit | Git add & commit with smart message |
| /diff | Git diff |
| /status | Git status |
| /undo | Undo last file edit |
| /init | Create TOONCODE.md (auto-imports CLAUDE.md etc.) |
| /config | Show/edit configuration |
| /skills | List all 32 built-in skills |
| /cost | Token usage statistics |
Multi-Agent Team System
ToonCode's most powerful feature. Spawn a team of specialized AI agents that coordinate and collaborate on complex tasks:
/team ΰΈͺΰΈ£ΰΉΰΈ²ΰΈΰΉΰΈ§ΰΉΰΈ portfolio # Default: planner + frontend + backend + reviewer
/team build REST API --roles planner,backend,tester # Custom roles13 Agent Roles
| Role | Emoji | Thai Name | Specialty | |------|-------|-----------|-----------| | Planner | π | ΰΈͺΰΈ‘ΰΈΰΈ²ΰΈ’ | Breaks tasks into steps, assigns work to agents | | Supervisor | π§ | ΰΈͺΰΈΈΰΈ ΰΈ²ΰΈΰΈ£ | Monitors progress, resolves conflicts | | Frontend | π¨ | ΰΈΰΈ±ΰΈΰΈΰΈ₯ | Builds UI β HTML/CSS/JS/React | | Backend | βοΈ | ΰΈ§ΰΈ΄ΰΈΰΈ±ΰΈ’ | APIs, databases, server logic | | Reviewer | π | ΰΈ‘ΰΈ²ΰΈ₯ΰΈ΅ | Code review, finds bugs, suggests improvements | | Tester | π§ͺ | ΰΈΰΈΰΈ² | Writes and runs tests | | Researcher | π¬ | ΰΈΰΈ΄ΰΈ’ΰΈ° | Finds info, gathers data, provides sources | | Analyst | π | ΰΈΰΈ ΰΈ² | Data analysis, comparisons, insights | | Writer | βοΈ | ΰΈΰΈ²ΰΈΰΈΰΈ² | Articles, docs, reports, plans | | Editor | π | ΰΈΰΈ£ΰΈΈΰΈ | Reviews and improves written content | | Designer | π― | ΰΈΰΈ΄ΰΈ‘ΰΈΰΉ | Architecture, schemas, UI layouts |
How Teams Work
- Planner receives the task and breaks it into sub-tasks
- Tasks are assigned to specialized agents via JSON messages on a shared channel
- Each agent works independently with access to all 21 tools
- A shared task board tracks progress (pending / in_progress / done)
- Agents communicate results back through the shared channel
- Supervisor monitors progress and resolves conflicts when needed
- Agents can dynamically spawn new agents if the task requires it
Available AI Models
| Model | Context Window | Notes |
|-------|---------------|-------|
| big-pickle | 200K | Default β strong at coding tasks |
| minimax-m2.5-free | 204K | Good all-round performance |
| nemotron-3-super-free | 131K | Fast execution |
| gpt-5-nano | 1M | Largest context for big projects |
- Auto-fallback: if a model fails, ToonCode automatically tries the next available model
- Per-model config: each model can have its own API URL and key
- Switch models anytime with
/model <name>
Project Context Awareness
ToonCode automatically reads and understands your project:
- Context Files β auto-imports
TOONCODE.md,CLAUDE.md,GEMINI.md,.cursorrules,COPILOT.md - Codebase Indexing β scans project structure, extracts function/class symbols from code
- Tech Stack Detection β auto-detects frameworks (FastAPI, React, Next.js, Django, Express, Go, Rust, etc.)
- Semantic Search β optional vector-based code search using LanceDB for finding similar patterns
Browser Automation
Control a real browser powered by Playwright:
β― ΰΉΰΈΰΈ΄ΰΈ google ΰΈΰΉΰΈΰΈ«ΰΈ² "ToonCode" ΰΉΰΈ₯ΰΉΰΈ§ΰΈͺΰΈ£ΰΈΈΰΈΰΈΰΈ₯ΰΈ₯ΰΈ±ΰΈΰΈΰΉ
AI β browser open https://google.com/search?q=ToonCode
AI β browser text # reads page content
AI β browser screenshot # captures the page
AI β browser console # checks JS errors
AI β browser network # monitors API callsRequires: pip install playwright && playwright install chromium
MCP Server Support
Extend ToonCode with custom tools via Model Context Protocol servers:
// ~/.tooncode/mcp.json
{
"servers": {
"my-tool": {
"command": "python",
"args": ["path/to/server.py"],
"env": { "API_KEY": "..." }
}
}
}MCP servers are discovered automatically β their tools become available to the AI alongside built-in tools.
Session & Memory
- Save/Resume β save conversations with
/save, resume later with/resume - Persistent Memory β AI saves important notes across sessions via
memory_save - Edit History β tracks recent file edits, supports
/undo
Cross-Platform
| Feature | Windows | Mac | Linux | |---------|:-------:|:---:|:-----:| | All 21 tools | β | β | β | | Shell | PowerShell | bash | bash | | Screenshot | ImageGrab | screencapture | scrot | | Clipboard | Get-Clipboard | pbpaste | xclip | | Browser | β | β | β |
Requirements
- Python 3.10+
- Git
- Node.js 16+ (optional, for npm install method)
Installation
Method 1: One-line install (recommended)
Mac / Linux:
curl -fsSL https://raw.githubusercontent.com/votadev/tooncode/main/install.sh | bashWindows (PowerShell):
irm https://raw.githubusercontent.com/votadev/tooncode/main/install.bat -OutFile install.bat; .\install.batMethod 2: npm
npm install -g @votadev/tooncodeMethod 3: Git clone
git clone https://github.com/votadev/tooncode.git ~/.tooncode
pip install -r ~/.tooncode/requirements.txt
python ~/.tooncode/tooncode.pyAdd to PATH:
Mac/Linux β add to ~/.bashrc or ~/.zshrc:
alias tooncode="python ~/.tooncode/tooncode.py"Windows β create tooncode.cmd in a PATH directory:
@echo off
python %USERPROFILE%\.tooncode\tooncode.py %*Method 4: Just copy the folder
cd /path/to/tooncode
pip install -r requirements.txt
python tooncode.pyQuick Start
tooncode # Start in current directory
tooncode big-pickle # Start with specific model
tooncode minimax-m2.5-free ~/my-project # Model + directoryConfiguration
Settings (~/.tooncode/settings.json)
{
"api_url": "https://opencode.ai/zen/v1/messages",
"api_key": "public",
"default_model": "big-pickle",
"models": [
{ "name": "big-pickle", "context": 200000 },
{ "name": "custom-model", "api_url": "...", "api_key": "..." }
],
"auto_approve": true
}Custom Skills
Add .md files to ~/.tooncode/skills/<category>/:
---
name: my-skill
description: What this skill does
---
Your prompt template here. Use {{input}} for user input.Update
cd ~/.tooncode && git pullLicense
MIT β Free to use, modify, and distribute.
Made with β€οΈ by VotaLab
