PandaClaw
A deliberate, reasoning-first, vision-native personal AI assistant built on Bun. Operates with strict planning, multi-agent worker coordination, Git transaction boundaries, a live visual canvas dashboard, and an integrated multi-channel gateway.
Get Started
Install PandaClaw and bring up the Gateway in minutes.
Configuration
Setup LLM providers with pandaclaw setup wizard.
Open the Control UI
Launch the browser dashboard for chat, config, and sessions.
What is PandaClaw?
PandaClaw is a deliberate, reasoning-first, vision-native personal AI assistant built on Bun. Unlike traditional agents that act instantly, PandaClaw operates with strict planning, multi-agent worker coordination, Git transaction boundaries, and a live visual canvas dashboard.
It features an integrated multi-channel gateway (Telegram, Slack, WebChat) with native voice parsing, a 3-way classifier for dynamic query routing, and cross-platform full-device automation across macOS, Windows, and Linux.
Core Capabilities
Coordinator-worker swarm, PandaGraph semantic memory, Git-backed rollbacks, local visual canvas, skills loader, voice processing, and more.
Environment variables override config.json settings. The following variables are supported:
GROQ_API_KEY=YOUR_GROQ_KEY
OPENROUTER_API_KEY=YOUR_OR_KEY
NVIDIA_NIM_KEY=YOUR_NIM_KEY
PANDACLAW_PORT=18789 Note: No Telegram token configuration needed. PandaClaw has a shared default bot token built into the codebase. Message @pandaclawbot to get started.
Reactor Loop
PandaClaw never rushes. Every task moves through a strict six-step reasoning pipeline before a single file is touched.
โโโโโโโโโโโโโโโ
โ OBSERVE โ Index codebase, load memory & Knowledge Graph
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โ REASON โ Evaluate goal status and R1 thought budget
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โ PLAN โ Topological task graph generation & critical path
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โ EXECUTE โ Run workers (low risk โ auto, high risk/git tx โ approve)
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โ VALIDATE โ Verify output correctness & syntax critique
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โ REFLECT โ Record success/failure, update episodic graph
โโโโโโโโโโโโโโโ The 3-Way Classifier routes queries dynamically: simple queries use a snappier direct answering path, complex queries use the DeepSeek R1 reasoning compiler, and action queries enter agentic tool-use loops with full filesystem and shell access.
Core Architecture
PandaClaw v3 is built around eight interconnected systems that make it a truly deliberate AI agent:
๐ 1. Sandboxing & Git-Backed Rollbacks
All filesystem mutations run on a temporary git branch (pandaclaw-tx-<uuid>). If validation fails or you decline the changes, the workspace rolls back instantly. Arbitrary scripts execute in a native Bun.spawn sandbox with stripped environment secrets and strict timeouts.
๐ 2. Coordinator-Worker Swarm
The coordinator decomposes your goal into a dependency tree of sub-tasks. Tasks are processed concurrently by specialized workers: researcher (web search, codebase reading), coder (source code modification), verifier (syntax checks, test execution), and visualizer (spatial layout, UI reports). The R1 Reasoning Compiler parses DeepSeek <think> traces.
๐ง 3. PandaGraph Semantic Memory
Persistent chat history is saved per-chatId to .pandaclaw/chats.jsonl. Semantic facts are extracted as triplet relationships (subject, predicate, object) in .pandaclaw/graph_memory.json. TF-IDF semantic recall retrieves relevant facts locally in under 1ms. After 12 turns, the oldest 4 are pruned and summarized into .pandaclaw/COMPACTED_MEMORY.md.
๐ 4. Pluggable Dynamic Skills Loader
PandaClaw recursively scans the skills/ folder at startup. Any dynamic tool exported as a ToolDefinition is automatically registered, giving the agent customizable capabilities without modifying core code.
๐๏ธ 5. Native Voice & Audio Processing
Converts speech buffers (OGG, OPUS, MP3, WAV, MPEG) into text in under 1 second using Groq's whisper-large-v3 endpoint. Voice messages from paired Telegram users are automatically downloaded, transcribed, and processed in the agent pipeline.
๐จ 6. Local Visual Web Canvas
A premium glassmorphic dashboard at http://localhost:18789 with real-time chat, visual canvas overlay for bounding box coordinates, interactive agent drawing (draw_rect, render_html, clear_canvas), and live websocket logs with Accept/Decline approval for file mutations.
โก 7. Pluggable Gateway & Local Fallback
Abstracted channel adapters support Telegram, Slack, and WebChat. If external LLMs rate limit or fail, calls automatically fall back to a local Ollama endpoint (qwen3:0.6b) for continuous operation. The 3-Way Classifier routes queries as simple, complex, or action.
๐น๏ธ 8. Cross-Platform Full-Device Automation
Dynamic OS detection adapts commands across macOS, Windows, and Linux. Includes native macOS screen capture, advanced web orchestration (list/switch/scroll browser tabs), simulated keystrokes and hotkeys, and system controls for volume, brightness, and clipboard.
Getting started
Three ways to install PandaClaw. The one-liner is recommended for first-time users.
Option 1 โ Automated Script (Recommended)
Run the automated script for your operating system to check/install Bun, clone the app, install dependencies, and register the binary.
# One-liner for macOS and Linux
$ curl -fsSL https://pandaclaw.vercel.app/install.sh | bash Option 2 โ npm or Bun
# Using Bun (native runtime)
$ bun add -g pandaclaw-cli Option 3 โ Manual Clone
$ git clone https://github.com/senapati484/pandaclaw.git
$ cd pandaclaw && bun install Prerequisites
- Bun runtime (
curl -fsSL https://bun.sh/install | bash) - Git for rollback safety
- An LLM API key (Groq for audio, OpenRouter or NVIDIA NIM for chat)
Note: No Telegram token required โ PandaClaw has a shared default bot token built into the codebase. Message @pandaclawbot on Telegram to get started.
Configuration
After installation, run the interactive setup wizard to configure LLM providers:
$ pandaclaw setup The wizard will prompt for your Groq API key (for voice/audio transcription), OpenRouter or NVIDIA NIM API key (for chat/reasoning). PandaClaw supports two configuration layers:
- Global config at
~/.pandaclaw/config.json - Local config at
.pandaclaw/config.json(project-scoped, takes precedence)
Environment variables like GROQ_API_KEY, OPENROUTER_API_KEY, and NVIDIA_NIM_KEY override file-based config at runtime.
Directory Layout
PandaClaw organizes its internal state and configuration under .pandaclaw/ (local) and ~/.pandaclaw/ (global):
.pandaclaw/
โโโ config.json # Local configuration (overrides global)
โโโ chats.jsonl # Persistent chat history per chatId
โโโ graph_memory.json # PandaGraph semantic triple relationships
โโโ COMPACTED_MEMORY.md # Summarized memory after turn pruning
โโโ skills/ # Pluggable dynamic tools
~/.pandaclaw/
โโโ config.json # Global configuration
โโโ skills/ # Global skill definitions Usage
Launch the PandaClaw agent pipeline and visual dashboard with these commands:
$ pandaclaw setup # Interactive LLM provider configuration
$ pandaclaw wakeup # Launch the agent pipeline
$ bun run dashboard # Start the visual web canvas at localhost:18789 Architecture
PandaClaw coordinates five atomic systems via its Reactor Loop:
- PandaGraph Memory Engine โ Semantic triple extraction, TF-IDF recall, and turn-based compaction
- Coordinator-Worker Swarm โ Goal decomposition into dependency trees with four specialized workers (researcher, coder, verifier, visualizer)
- 3-Way Classifier โ Routes queries as
simple(direct answer),complex(DeepSeek R1 reasoning), oraction(agentic tool-use) - Gateway Channel Adapters โ Abstracted multi-channel support (Telegram, Slack, WebChat)
- Sandboxed Execution Layer โ Git-backed transactional filesystem mutations with Accept/Decline approval workflow
Channels
PandaClaw integrates with three gateway channels through abstracted adapters:
Risk Safety Model
PandaClaw classifies every tool invocation by risk level. High-risk operations require manual confirmations via the dashboard or Telegram gateway.
| Level | Scope | Examples | Gate |
|---|---|---|---|
| Low | Read / Query | grep, glob, read, web_search, read_url, ls, memory | Auto |
| Medium | Scoped Write | write (new), edit, rename, copy_file, smart_edit | Auto* |
| High | Destructive / Exec | bash, write (overwrite), delete, npm install, db queries | Requires approval |
* Medium-risk writes auto-commit on git branch pandaclaw-tx-<uuid> and can be rolled back if validation fails.