A Distributed AI R&D Engine for Engineering Teams.
Physically isolated, multi-channel commanded, and production-ready.
Forked from NanoClaw
TiClaw is a specialized evolution of NanoClaw, redesigned to serve as the primary autonomous development engine for Engineering Teams. It transforms a Mac Mini (or any persistent host) into a 24/7 AI collaborator that bridges high-level requirements from Discord into physical code changes with industrial-grade monitoring.
While NanoClaw was built for personal assistance, TiClaw is built for Engineering Teams. It focuses on:
- Physical Workspace Isolation: Every task gets its own physical directory "factory" and dedicated environment.
- Discord-First Command & Control: High-fidelity debugging, streaming logs, and thread-locked task management via Discord.
- Deep Observability: Automated snapshots, smart diff summaries, and Playwright-backed UI verification.
- 💻 Multi-CLI Support: Switch between Gemini CLI (default), Claude Code, and Codex depending on your team's preference or account status.
- 🦀 The Claw (/claw): Grab any GitHub Issue URL from Discord, and TiClaw automatically initializes a fresh, isolated workspace to solve it.
- 🏗 Physical Factory: Unlike purely virtual containers, TiClaw manages physical
~/ticlaw/factory/{task_id}directories, allowing for persistent toolchain access and easier manual intervention. - 📺 Live Monitoring: Real-time Tmux bridge streaming terminal output directly to Discord threads.
- 📸 Vision-Backed Audit: Automated macOS screenshots for UI changes and Gemini-powered "Delta Feeds" for code summaries.
- 🚀 PR Pipeline: Seamless transition from "Issue Solved" to "PR Created" with automated context-aware descriptions.
git clone https://github.com/dustland/ticlaw.git
cd ticlaw
pnpm install
# Setup environment variables in .env (TC_DISCORD_TOKEN, TC_GEMINI_API_KEY, etc.)
pnpm startTiClaw extends the philosophy of NanoClaw by providing true isolation and industrial monitoring for professional AI development. While NanoClaw focused on lightweight personal agents, TiClaw is optimized for team environments where transparency and reliability are non-negotiable.
Transparent by Default. Every shell command and log is streamed in real-time. No "black box" AI actions.
Physical over Virtual. While we support container isolation, TiClaw prefers physical directory isolation for R&D to ensure native performance and full access to system-level tools (GPU, Keychain, etc.) when needed.
Customization = code changes. No configuration sprawl. If you want different behavior, you modify the TiClaw engine directly.
- macOS (optimized for Mac Mini) or Linux
- Node.js 20+
- Gemini CLI (Default) or Claude Code
- Discord Bot Token
TiClaw operates on a Command -> Factory -> Relay loop:
- Command: Discord Bot receives
/claw [URL]. - Factory: A dedicated
TcWorkspaceis created. Tmux session starts. - Relay: Logs, screenshots, and diffs are streamed back to the Discord thread.
- Verification: Playwright runs automated UI tests.
- Delivery: PR is submitted to GitHub.
For a complete guide on how to operate the system, see the User Guide.
Why Tmux instead of just containers?
Tmux allows for persistent sessions that can be manually attached for debugging. It provides a level of observability that pure container logs sometimes miss, especially for interactive CLI tools.
Is this secure?
TiClaw uses physical isolation and port-locking. However, it is designed for controlled R&D environments. Always review the code changes and use dedicated development machines (like a Mac Mini).
Can I switch between Gemini and Claude?
Yes! Set TC_CODING_CLI="claude" or TC_CODING_CLI="gemini" in your .env.
Can I use third-party LLM providers?
Yes! TiClaw defaults to OpenRouter which provides access to Claude 4.5 Sonnet and other powerful models via an Anthropic-compatible API. You can switch to direct Anthropic or Gemini by updating your .env file.
How do I configure OpenRouter?
Simply set your key and preferred model in .env:
OPENROUTER_API_KEY="your-openrouter-key"
TC_MODEL="anthropic/claude-sonnet-4.6"TiClaw automatically handles the routing and provider-specific mapping.
TiClaw is proudly built on the foundation of NanoClaw. We maintain NanoClaw's core message routing and task scheduling logic while extending it with our R&D-specific features.
