OpenPanda

module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: MIT

README ยถ

๐Ÿผ OpenPanda

Open Personal Adaptive Node-based Distributed Assistant

Any device, any compute, one command. A personal task-orchestration assistant that runs across your heterogeneous devices as a peer-to-peer network of nodes.

English ยท ็ฎ€ไฝ“ไธญๆ–‡ ยท ๆ—ฅๆœฌ่ชž ยท Espaรฑol ยท Deutsch

Go Python Platform Status


Table of contents

What is OpenPanda?

OpenPanda is not another agent CLI โ€” it is the layer above them: the household manager for every device and every tool you own.

Claude Code, Codex, OpenCode, Grok Build, DeepSeek Harness, OpenClaw, Hermes โ€ฆ each is a powerful agent on one machine. OpenPanda doesn't compete with them โ€” it hires them. Whatever device you speak to becomes the commander; it answers directly when it can, and when it can't, it routes the task over your network to whichever node can actually do the work โ€” handing it to that node's own agents (Claude Code, Codex, โ€ฆ), or straight to the hardware when a plain device action is all that's needed (a servo doesn't need an LLM).

sub-agents (single machine)   agent teams (single machine)   OpenPanda (many machines)
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”               โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Claude Code  โ”‚              โ”‚ multi-agent  โ”‚               โ”‚ heterogeneous fleet  โ”‚
โ”‚ Codex โ€ฆ      โ”‚              โ”‚ orchestrationโ”‚               โ”‚ + their agents       โ”‚
โ”‚              โ”‚              โ”‚              โ”‚               โ”‚ + bare hardware      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜               โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
      upstream of all of them: OpenPanda delegates, they execute

In practice: you ask once, from any device, and OpenPanda delegates the task to the node best suited to run it, streams back the result, and remembers what it learned for next time โ€” while keeping project work strictly isolated from personal memory, so your codebase never drifts because "the assistant knows you prefer dark themes".

It is built from the ground up as a personal system: no cloud dependency, your memory stays on your devices, and every node speaks to its peers over direct WebSocket links you control.

Key features

  • Heterogeneous node network โ€” nodes advertise their real capabilities (CPU class, shell, agent adapters) via a capability card; the network routes each task to the node that can actually do it. Built for laptops, SBCs, desktops, and every platform tier in between.
  • Unified entry model โ€” one prompt in, three intents out: answer (pure LLM reply), tool_call (your tools), task (delegated to a node). Automatic intent classification with graceful fallback.
  • Three-tier capability execution โ€” native (direct shell execution), agent (adapter-backed agent, e.g. Claude Code via an Anthropic-compatible endpoint), and manual (queued for you to approve/run by hand).
  • Superior task review โ€” after an agent runs, the entry model judges the result against the task's success criteria; incomplete work is re-delegated to the agent chain (with what remains and the next step) until it is accepted or the round budget runs out. Completed reversible tasks finish into done, while irreversible side effects (pushes, deletes, โ€ฆ) and never-satisfied tasks land in review for your explicit approval.
  • P2P delegation protocol โ€” idempotent task_id keys and per-attempt attempt_ids over WebSocket + JSON, so crashed retries never double-execute.
  • Self-evolving skills โ€” procedural memory in SKILL.md files: a skill declares when it applies, how it runs, and can be refined after each use.
  • Daily-assistant tools โ€” the agent can read the system clock, fetch live weather, and set scheduled reminders (reminder.set): stored in SQLite, fired by a scanner, delivered as Web Push notifications and live SSE updates to any open console. panda reminder list/add/rm manages them from the CLI.
  • MCP integration โ€” one stdio Model Context Protocol server configurable in config.yaml (mcp.command) or the console's settings page; its tools join the agent's toolset live, no daemon restart.
  • Two-layer memory โ€” per-user and per-project memory (USER.md / MEMORY.md style) kept behind an isolation wall, plus a background Dreaming engine that consolidates daily logs into long-term memory while the node is idle.
  • Voice entry โ€” optional sidecar pipeline (wake word โ†’ STT โ†’ LLM โ†’ TTS), hardware-gated and ready for embedded microphones.
  • Interactive REPL + embedded web console โ€” panda repl is the operator's seat: bare input goes to the ask engine, slash commands drive the panel surfaces (/tasks, /approve, /projects, /nodes, /lang โ€ฆ), and /web boots the embedded console in one click. The console's task queue is a kanban board (to do / in progress / in review / finished) with inline approvals, plus chat sessions, reminders, an editable memory page (USER / MEMORY / DREAMS), and a settings page (model endpoint โ€” Anthropic or OpenAI compatible โ€” and MCP server). panda web is the one-command path: loopback bind + ephemeral token by default, browser opens already logged in (no config, no token paste). Five UI languages: English, ็ฎ€ไฝ“ไธญๆ–‡, ๆ—ฅๆœฌ่ชž, Espaรฑol, Deutsch.
  • Self-update โ€” panda web (and /web) checks the release channel in the background; the console downloads and verifies an available update, then installs it in one click once the task queue is idle. Discard a downloaded update and nothing is left behind.
  • Defense & safety layers โ€” permission tiers, a circuit breaker, scope-drift and infinite-loop detection, plus execution-side hardening: sandboxing, network allow-lists, secret redaction, and audit logging.
  • Slim by design โ€” steady-state RSS โ‰ˆ 13โ€“20 MB, built to live on resource-constrained single-board computers.
  • Cross-compiles cleanly โ€” one static binary per platform, no CGO needed (pure-Go SQLite via modernc.org/sqlite).

Architecture

                        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                        โ”‚  You: CLI / web / voice  โ”‚
                        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                      โ”‚
                 โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                 โ”‚             entry ยท panda ask            โ”‚
                 โ”‚   classify:  answer | tool_call | task   โ”‚
                 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                      โ”‚  delegate over WebSocket + JSON
                       โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                       โ”‚                              โ”‚
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚        Worker node      โ”‚     โ”‚        Worker node      โ”‚
          โ”‚  e.g. Laptop (Standard)  โ”‚     โ”‚    e.g. SBC (Micro)      โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Inside each node:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ cmd/panda      daemon + CLI (ask / status / queue / task โ€ฆ)  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ entry          unified entry model (answer ยท tool_call ยท task)โ”‚
โ”‚ scheduler      delegation & routing decisions                โ”‚
โ”‚ commander      3-tier execution: native ยท agent ยท manual     โ”‚
โ”‚ defense        permission tiers ยท circuit ยท drift ยท loops    โ”‚
โ”‚ security       sandbox ยท allow-lists ยท redaction ยท audit     โ”‚
โ”‚ memory         USER/MEMORY stores + Dreaming engine          โ”‚
โ”‚ skills         SKILL.md procedural memory                    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ bus            WebSocket transport + message envelope        โ”‚
โ”‚ ledger         capability directory (cards, heartbeat)       โ”‚
โ”‚ storage        SQLite (WAL) + migrations                     โ”‚
โ”‚ log / util     structured JSON logs, UUIDv7                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Installing

Get a release binary in one line โ€” macOS, Linux, or Windows; consistent experience, no root required. The installer downloads the matching release archive, verifies its SHA-256, unpacks the binary plus its agent adapters (adapters/*.py) into a per-user prefix, and links panda onto your PATH.

Platform Command
macOS / Linux curl -fsSL https://raw.githubusercontent.com/Xustalis/OpenPanda/main/scripts/install.sh | sh
macOS (Homebrew) brew tap Xustalis/openpanda && brew install openpanda
Windows (PowerShell) Set-ExecutionPolicy -Scope Process Bypass, then irm https://raw.githubusercontent.com/Xustalis/OpenPanda/main/scripts/install.ps1 | iex

Override the defaults with flags:

sh scripts/install.sh --version 0.0.4           # pin a version (default: latest)
sh scripts/install.sh --prefix /opt/openpanda   # custom install directory
sh scripts/install.sh --yes                     # also register auto-start, no prompt
sh scripts/install.sh --no-service              # skip auto-start entirely

On macOS / Linux files land under a per-user prefix following the XDG convention:

${XDG_DATA_HOME:-~/.local/share}/openpanda/
โ”œโ”€โ”€ bin/panda            # the real binary
โ”œโ”€โ”€ adapters/*.py        # agent adapters (the daemon needs these to delegate)
โ”œโ”€โ”€ config.example.yaml
โ””โ”€โ”€ capabilities.example-*.yaml

~/.local/bin/panda is a symlink to that binary (already on PATH); if your shell doesn't include ~/.local/bin, the script prints the export PATH line to add. On Windows the files go to %LOCALAPPDATA%\OpenPanda\ and its bin is added to your user PATH. The installer can also register an auto-start service (panda daemon at login) โ€” say yes only after panda init, since the daemon won't start without a config.

After installing, bootstrap and run:

panda init      # interactive config.yaml + capabilities card
panda doctor    # self-check: binary / PATH / config / adapters / agents
panda repl      # drop into the interactive REPL
panda web       # open the embedded web console (loopback, auto-login)

To remove everything:

  • macOS / Linux: rm -rf ~/.local/share/openpanda ~/.local/bin/panda (and stop any auto-start service first).
  • Windows: delete %LOCALAPPDATA%\OpenPanda and remove its bin from the user PATH.

Full guide and troubleshooting: docs/install.md.

Getting started

Prerequisites
Tool Version
Go 1.26.5+
Python 3.10+ (agent adapters / voice sidecar)
make any recent version
Build
make build          # native binary โ†’ bin/panda (release, stripped)
make web            # web console into the binary (needs node/npm; skip = console shows a hint page)
make test           # run the full test suite
make vet            # static analysis

Cross-compile for the devices you actually run:

make build-linux-arm64   # โ†’ bin/panda-linux-arm64  (SBCs, embedded boards)
make build-linux-amd64   # โ†’ bin/panda-linux-amd64
make build-darwin-arm64  # โ†’ bin/panda-darwin-arm64
make build-windows-amd64 # โ†’ bin/panda-windows-amd64.exe
Configure

Bootstrap a node interactively โ€” the model endpoint, node name, and a capabilities card are generated from one prompt:

./bin/panda init

Or copy the example config and edit it for each node:

cp config.example.yaml /etc/openpanda/config.yaml   # or keep it local and use --config

The config is small and self-explanatory. The two things that matter most:

network:
  listen_addr: ":7836"        # WebSocket listener
  shared_secret: "..."        # HMAC auth between nodes โ€” all nodes must share the same value
  peers:                      # other nodes in your network
    - "worker-1.your-tailnet.ts.net:7836"
model:
  base_url: "https://api.deepseek.com/anthropic"  # any /v1/messages-compatible endpoint
  model: "deepseek-chat"
  # api_key: ""               # prefer the OPENPANDA_MODEL_API_KEY env var

Node identity rules are enforced at daemon startup. A physical host may run only one physical node, regardless of its display name. A virtual machine may run as an additional vm node; set a stable node.identity for each VM. The OS lock is keyed by physical-host identity or VM identity, so an ordinary second process on the same device is rejected while host plus VM is allowed.

Secrets (model API keys) are read from OPENPANDA_MODEL_API_KEY rather than the config file whenever possible.

Run the daemon

The fastest way to see the whole system is the one-command web console: loopback bind, ephemeral token, browser opens already logged in โ€” no config editing, no token pasting:

./bin/panda web

The console also manages the model endpoint (Anthropic- or OpenAI-compatible) from its settings page if you haven't configured one yet.

For a resident multi-node setup, run the daemon itself:

./bin/panda daemon --config config.yaml --card config/capabilities.example-desktop.yaml

Each node that can execute work should be started with its capability card. A node without a card still participates in heartbeats, but it won't be routed work.

Usage

Ask anything โ€” the entry model decides whether to answer, call a tool, or delegate:

./bin/panda ask --card config/capabilities.example-desktop.yaml "summarize the git log for the last week"

--card points at this node's capability card; answer/tool_call work without it, but a delegated-task output is refused without it.

Inspect the network and queue:

./bin/panda status
./bin/panda queue

Drill into or cancel a specific task:

./bin/panda task <task-id>
./bin/panda cancel <task-id>
./bin/panda logs <task-id>

Manage skills:

./bin/panda skill

CLI reference

Command Description
panda (no args) Open the interactive REPL (same as panda repl); the daemon now runs via the panda daemon subcommand
panda daemon [--config PATH] [--card PATH] Run the daemon: register node, heartbeat, WS server, peer reconnect
panda ask [--config PATH] [--card PATH] [--authorize] "<question>" Unified entry: classify into answer / tool_call / task and execute
panda repl [--config PATH] [--card PATH] Interactive shell: slash commands (tasks/approve/projects/nodes/lang), bare input goes to the ask engine, /web boots the embedded console
panda web [--config PATH] [--card PATH] [--no-browser] One-command web console: loopback + ephemeral token by default, opens the browser already logged in
panda init Interactive first-run setup: generates config.yaml + capabilities.yaml (model endpoint, node name, hardware-scan defaults)
panda install [--dir PATH] [--no-path] Register panda globally on PATH (persistent across reboots) and self-verify the installed copy
panda uninstall [--config PATH] [--yes] [--no-backup] [--dry-run] Safe removal: full plan first, confirm required, whitelist-only deletion, user assets (projects/memory/skills) always kept, zip backup + report
panda doctor [--config PATH] Self-check: installed copy runs, PATH resolves, persistence survives reboot, config/database usable
panda status Node & task status
panda queue List the task queue
panda task [--config PATH] <task-id> Task details
panda cancel [--config PATH] <task-id> Cancel a task (cascades to the executing node)
panda approve [--config PATH] <task-id> Approve a reviewed task (review โ†’ done)
panda reject [--config PATH] [--reason s] <task-id> Reject a reviewed task
panda logs [--config PATH] <task-id> Task execution logs
panda skill Skill store management
panda reminder list | add | rm Scheduled reminders: list / add (--after 10m or --at "2006-01-02 15:04") / remove
panda detect [-o PATH] Scan this machine's hardware (CPU/RAM/GPU/agent CLIs) into a capabilities.yaml draft
panda agents [list] Probe the agent CLIs on PATH (Codex, Claude Code, OpenCode, Grok Build, DeepSeek Harness, OpenClaw, Hermes); test <name> checks one, `install
panda metrics [--csv] Export delegation metrics
panda audit [--task <id>] Verify the prev_hash chain of the audit log or one task's events
panda version / panda help Print version / command overview

Configuration

Section Key Meaning
node name Unique node ID (used across the network)
node resource_class Micro | Standard | Full โ†’ scheduler tier
node kind physical (default) or vm; controls the local singleton rule
node identity Stable VM identity; physical nodes use the host fingerprint and ignore this override
network listen_addr WebSocket listener address
network shared_secret HMAC secret authenticating node-to-node hellos; the WS listener refuses to start without it (all nodes share one value)
network max_connections Global concurrent WS connection limit (0 = unlimited)
network max_connections_per_ip Per-remote-IP concurrent WS connection limit (0 = unlimited)
network panel_addr Web console HTTP address (panda web / /web); default 127.0.0.1:7840
network panel_token Bearer token guarding the console's /api/* (loopback auto-generates an ephemeral one; prefer OPENPANDA_PANEL_TOKEN)
network peers Manual peer addresses to dial

Use panda nodes (or panda status) to inspect node kind, local/remote placement and running state. panda status --running shows only nodes with a fresh runtime heartbeat; the Web Nodes page exposes the same data through /api/self and /api/nodes. | storage | db_path | SQLite database path | | storage | context_path | Context snapshot store | | storage | memory_path | Personal memory root | | storage | projects_path | Per-project memory root | | storage | skills_path | Procedural-memory root | | storage | work_path | Where agents execute; scope drift is measured here | | log | level | debug | info | warn | error | | model | base_url | Anthropic- or OpenAI-compatible API base URL | | model | model | Model id (e.g. deepseek-chat, deepseek-reasoner) | | model | api_type | anthropic | openai (default anthropic) | | model | api_key | Secret โ€” prefer OPENPANDA_MODEL_API_KEY | | model | max_tokens | Completion cap (default 4096) | | mcp | command | stdio MCP server argv (empty = disabled); tools hot-load into the agent toolset | | push | enabled | Serve /api/push/* and send Web Push (embedded console + webui sidecar) | | push | vapid_subject | VAPID subject (e.g. mailto: address) | | push | vapid_key_path | VAPID key path (auto-generated on first boot) |

Config load order: --config flag > environment > default /etc/openpanda/config.yaml.

Documentation

Full documentation lives in the docs/ directory:

  • Documentation index โ€” entry point for the public docs.
  • Contributing guide โ€” toolchain, engineering gates, code conventions, and the PR checklist (translations available in CONTRIBUTING.zh-CN.md / CONTRIBUTING.ja.md / CONTRIBUTING.es.md / CONTRIBUTING.de.md).
  • Desktop & packaging roadmap โ€” staged plan toward a native desktop client, signed installers, notarization, and auto-updates.

Testing

make test        # full suite
make vet         # go vet

Key protocol invariants are covered by real two-node WebSocket tests (no Tailscale required):

go test ./internal/core/ -run 'TestTwoNodeProtocol|TestDelegateIdempotent|TestCancelPropagates' -v

Deployment

Network security baseline

OpenPanda nodes speak plain WebSocket (ws://) by default. Plain WebSocket must only be used over a trusted private path:

  • Loopback / same-host links (e.g. 127.0.0.1, localhost).
  • A private overlay network you control, such as Tailscale or a VPN.
  • A physically isolated LAN where every device is trusted.

If any OpenPanda peer crosses the public Internet, terminate TLS in front of the WebSocket listener (e.g. nginx, Caddy, Traefik) and configure peers with the wss:// URL. The shared_secret authenticates node-to-node hellos, but it is not a substitute for transport encryption โ€” do not expose a plain ws:// listener on the public Internet.

The panel_addr web console serves plain HTTP and carries a Bearer token (an ephemeral one is auto-generated on loopback). Keep it on loopback, or put it behind the same TLS reverse proxy.

Memory footprint

OpenPanda targets low-power devices. Verify your steady-state memory before shipping to hardware โ€” a single ps sample is unreliable due to GC noise; take several:

make build
for i in 1 2 3 4 5; do
  ./bin/panda daemon --config testdata/node-a.yaml >/dev/null 2>&1 &
  PID=$!; sleep 3
  ps -o rss= -p $PID | awk '{printf "%d MB\n", $1/1024}'
  kill -TERM $PID; wait $PID 2>/dev/null
done

Tech stack

Layer Choice
Core daemon Go (modernc.org/sqlite โ€” pure Go, no CGO)
Glue / adapters Python 3.10+
Transport WebSocket + JSON envelopes
State SQLite in WAL mode
Frontend Web console (Vite + Preact, go:embed single binary) via panda repl โ†’ /web, or the standalone webui/ sidecar
LLM access Anthropic-compatible /v1/messages or OpenAI-compatible endpoints (e.g. DeepSeek)

Roadmap

Phases 0โ€“3 (entry model ยท P2P delegation ยท memory + voice + execution hardening ยท kernel/console/REPL rebuild + live two-node verification) are complete. Phase 4 (desktop client + signed installer pipeline + auto-update mechanism + release channels) is planned in detail in the desktop & packaging roadmap.

Contributing

Contributions are welcome. To keep the codebase consistent, please follow the engineering gates before opening a pull request:

  • make vet && make test must pass.
  • gofmt -l internal/ cmd/ adapters/ must be empty.
  • Keep core-module test coverage above ~60% where practical.

See CONTRIBUTING.md for the full conventions: error wrapping (%w / errors.Is), complexity limits, no dead code, concurrency rules, i18n rules, and the commit style. Translated editions are available in CONTRIBUTING.zh-CN.md, CONTRIBUTING.ja.md, CONTRIBUTING.es.md, and CONTRIBUTING.de.md.

License

Released under the MIT License.

Acknowledgements

Inspired by distributed multi-agent scheduling theory and by the memory patterns of Hermes and OpenClaw. Built by Xenith.

Directories ยถ

Path Synopsis
cmd
panda command
Command panda is the OpenPanda CLI.
Command panda is the OpenPanda CLI.
internal
agents
Package agents is the single source of truth for the agent CLIs PANDA can delegate to.
Package agents is the single source of truth for the agent CLIs PANDA can delegate to.
askengine
Package askengine is the unified entry engine shared by `panda ask` (CLI) and the web panel: one prompt in, three intents out โ€” answer (pure LLM reply), tool_call (memory tools, executed and fed back), task (submitted to the node network, locally or delegated).
Package askengine is the unified entry engine shared by `panda ask` (CLI) and the web panel: one prompt in, three intents out โ€” answer (pure LLM reply), tool_call (memory tools, executed and fed back), task (submitted to the node network, locally or delegated).
bus
Package bus implements the WebSocket transport and wire protocol for node-to-node task delegation (design doc ยง10).
Package bus implements the WebSocket transport and wire protocol for node-to-node task delegation (design doc ยง10).
commander
Package commander implements the three-tier capability execution: native (deterministic commands, no model), agent (AI CLI via adapter), and manual (human-notified).
Package commander implements the three-tier capability execution: native (deterministic commands, no model), agent (AI CLI via adapter), and manual (human-notified).
config
Package config loads PANDA node configuration from YAML.
Package config loads PANDA node configuration from YAML.
core
Package core hosts the node lifecycle: registration, heartbeat loop, and graceful shutdown.
Package core hosts the node lifecycle: registration, heartbeat loop, and graceful shutdown.
ctxstore
Package ctxstore implements the local context snapshot cache (design doc ยง12.4): a hashโ†’data KV store over the `context` table with LRU eviction.
Package ctxstore implements the local context snapshot cache (design doc ยง12.4): a hashโ†’data KV store over the `context` table with LRU eviction.
defense
Package defense implements the task-loop defense chain (design doc ยง14) and the permission model (design doc ยง16).
Package defense implements the task-loop defense chain (design doc ยง14) and the permission model (design doc ยง16).
entry
Package entry implements the unified entry model (design doc ยง7): one model call classifies a user request as an answer, a controlled tool call, or a structured task.
Package entry implements the unified entry model (design doc ยง7): one model call classifies a user request as an answer, a controlled tool call, or a structured task.
executil
Package executil wraps os/exec so child processes can be hidden on Windows.
Package executil wraps os/exec so child processes can be hidden on Windows.
hwinfo
Package hwinfo probes the host machine's hardware identity (hostname, CPU model, RAM).
Package hwinfo probes the host machine's hardware identity (hostname, CPU model, RAM).
i18n
Package i18n provides the CLI's user-facing strings in the five project languages (the same set the READMEs and web console ship).
Package i18n provides the CLI's user-facing strings in the five project languages (the same set the READMEs and web console ship).
install
Package install implements `panda install` / `panda uninstall` / `panda doctor`: placing the binary on PATH (persistently, per-OS), and a whitelist-based uninstall that backs up and removes only OpenPanda-owned state while preserving user assets (projects, memory, skills, work) โ€” unless the user passes --purge and survives its second confirmation.
Package install implements `panda install` / `panda uninstall` / `panda doctor`: placing the binary on PATH (persistently, per-OS), and a whitelist-based uninstall that backs up and removes only OpenPanda-owned state while preserving user assets (projects, memory, skills, work) โ€” unless the user passes --purge and survives its second confirmation.
ledger
Package ledger manages the local capability directory (SQLite cache of node capability cards) and this node's self-registration.
Package ledger manages the local capability directory (SQLite cache of node capability cards) and this node's self-registration.
log
Package log provides structured JSON logging over slog.
Package log provides structured JSON logging over slog.
mcp
Package mcp is a minimal Model Context Protocol (MCP) client over stdio.
Package mcp is a minimal Model Context Protocol (MCP) client over stdio.
mdtext
Package mdtext converts light Markdown into the two forms OpenPanda's surfaces need beyond a rendered web page:
Package mdtext converts light Markdown into the two forms OpenPanda's surfaces need beyond a rendered web page:
memory
Package memory implements the two-layer memory system (design doc ยง17): Hermes personal-assistant memory and per-project memory, kept physically isolated by an isolation wall.
Package memory implements the two-layer memory system (design doc ยง17): Hermes personal-assistant memory and per-project memory, kept physically isolated by an isolation wall.
nodeidentity
Package nodeidentity owns the process-wide identity lock for a running node.
Package nodeidentity owns the process-wide identity lock for a running node.
reminders
Package reminders implements scheduled user reminders (design P1-28): "ๆ้†’ๆˆ‘ 5 ๅˆ†้’ŸๅŽๅผ€ไผš" โ€” a reminder is persisted in SQLite, and a Scanner running in the daemon (and/or the web panel) claims each reminder when it comes due and fires a callback (log line, Web Push notification, SSE change signal).
Package reminders implements scheduled user reminders (design P1-28): "ๆ้†’ๆˆ‘ 5 ๅˆ†้’ŸๅŽๅผ€ไผš" โ€” a reminder is persisted in SQLite, and a Scanner running in the daemon (and/or the web panel) claims each reminder when it comes due and fires a callback (log line, Web Push notification, SSE change signal).
scheduler
Package scheduler implements the P2P per-edge routing decision (design doc ยง6.4, ยง2.4 DCPS analogy).
Package scheduler implements the P2P per-edge routing decision (design doc ยง6.4, ยง2.4 DCPS analogy).
scheduler/queue
Package queue implements the node-local task queue scheduler: it decides which queued task runs next on this node.
Package queue implements the node-local task queue scheduler: it decides which queued task runs next on this node.
security
Package security implements the execution-side hardening of design doc ยง16 and plan P3-29..P3-32: a sandboxed subprocess environment, network egress validation, secret scrubbing, and a high-risk audit trail.
Package security implements the execution-side hardening of design doc ยง16 and plan P3-29..P3-32: a sandboxed subprocess environment, network egress validation, secret scrubbing, and a high-risk audit trail.
sessions
Package sessions implements the web console's conversation model: each session is one chat thread plus โ€” when the working directory is a git repository โ€” a dedicated git worktree, so changes made while answering a session's prompts land on an isolated branch instead of the user's checkout (the codex / claude-code working model).
Package sessions implements the web console's conversation model: each session is one chat thread plus โ€” when the working directory is a git repository โ€” a dedicated git worktree, so changes made while answering a session's prompts land on an isolated branch instead of the user's checkout (the codex / claude-code working model).
skills
Package skills implements the self-evolving procedural-memory layer (design ยง8): reusable workflows distilled from task history into SKILL.md files.
Package skills implements the self-evolving procedural-memory layer (design ยง8): reusable workflows distilled from task history into SKILL.md files.
storage
Package storage wraps the local SQLite database (WAL mode).
Package storage wraps the local SQLite database (WAL mode).
updater
Package updater implements the self-update path for the `panda` CLI: it checks GitHub for a newer release, downloads and verifies the platform's release archive, and โ€” once the task queue is idle โ€” atomically swaps the running binary (and its agent adapters) into place and restarts.
Package updater implements the self-update path for the `panda` CLI: it checks GitHub for a newer release, downloads and verifies the platform's release archive, and โ€” once the task queue is idle โ€” atomically swaps the running binary (and its agent adapters) into place and restarts.
util
Package util holds small shared helpers.
Package util holds small shared helpers.
version
Package version holds the build version in one place so both the CLI (`panda version`) and the web panel (/api/version) report the same value.
Package version holds the build version in one place so both the CLI (`panda version`) and the web panel (/api/version) report the same value.
scripts
genicons command
Command genicons renders the PANDA PWA icon set from a pure-stdlib drawing so the manifest is installable and push notifications carry an app mark without shipping binary assets or a third-party drawing library (design P2-17).
Command genicons renders the PANDA PWA icon set from a pure-stdlib drawing so the manifest is installable and push notifications carry an app mark without shipping binary assets or a third-party drawing library (design P2-17).
scenario-model command
Command scenario-model is a deterministic Anthropic-compatible supervisor used by distributed long-task labs.
Command scenario-model is a deterministic Anthropic-compatible supervisor used by distributed long-task labs.
smoke-delegate command
Command smoke-delegate verifies cross-process task delegation without the entry model: it becomes an ephemeral scheduler participant (the same pattern internal/askengine uses โ€” a fresh node id, the node's capability card, peers dialed once), submits a task requiring an ability only a peer has, and reports where the task ran and what it produced.
Command smoke-delegate verifies cross-process task delegation without the entry model: it becomes an ephemeral scheduler participant (the same pattern internal/askengine uses โ€” a fresh node id, the node's capability card, peers dialed once), submits a task requiring an ability only a peer has, and reports where the task ran and what it produced.
task-timeline command
Command task-timeline prints a task and its event timeline from one or more node databases.
Command task-timeline prints a task and its event timeline from one or more node databases.
webui
cmd/panel command
Command panel runs the web control panel as a sidecar, reading the same SQLite store the kernel daemon writes (see webui/README.md).
Command panel runs the web control panel as a sidecar, reading the same SQLite store the kernel daemon writes (see webui/README.md).
panel
Package panel serves the legacy PWA control panel (kept frozen as an optional webui/ sidecar; the kernel daemon no longer mounts it): the static web app under webui/web/pwa plus the JSON API that backs it โ€” task queue, task detail, and the human approval of reviewed tasks (design ยง14.2 Layer 4).
Package panel serves the legacy PWA control panel (kept frozen as an optional webui/ sidecar; the kernel daemon no longer mounts it): the static web app under webui/web/pwa plus the JSON API that backs it โ€” task queue, task detail, and the human approval of reviewed tasks (design ยง14.2 Layer 4).
push
Package push implements the (frozen) Web Push notifications behind the webui panel (design P3-26): the VAPID identity (RFC 8292), message encryption (RFC 8291 over the aes128gcm content coding from RFC 8188), subscription storage, and delivery to the browser's push service.
Package push implements the (frozen) Web Push notifications behind the webui panel (design P3-26): the VAPID identity (RFC 8292), message encryption (RFC 8291 over the aes128gcm content coding from RFC 8188), subscription storage, and delivery to the browser's push service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL