Skip to content
Projects

About

The AI control room for multithreaded work. Bring the AI CLIs you already use (Claude Code, Codex, Kimi and more) and give every Agent a lasting part of your business.

Developer Tools

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original
Mandala

Mandala

The AI control room for multithreaded work.

Bring the AI CLIs you already use. Give every Agent a lasting part of your business.
Mandala keeps track of everything, so every thread of work keeps moving.

License Platforms Release GitHub stars

Website · Download · Get started · Documentation · Discussions

English · 简体中文


Mandala tracking tasks across three Agents, one waiting for approval

One request, four tasks, three Agents on three CLIs. Running, waiting for approval, ready for review: all in one place. Sample data.

What is Mandala?

Mandala is a local workspace that sits above your AI coding CLIs. You tell it what needs doing. It turns that into tasks, hands them to long-lived Agents, and brings every result, approval and open question back to one place.

The CLIs still do the work, with their own logins, models and tools. Mandala adds what they don't have: Agents that own a part of your business, memory that survives a model switch, and one list that remembers what you asked for.

Some call this a super agent: one place you talk to, many Agents working behind it. Mandala adds what super agents usually hide. You can see what every Agent knows, what it is doing and what it changed, and you decide when the work is done.

One loop, around one center

A mandala is drawn around one center. Mandala works the same way: work leaves you, goes around, and comes back to you for the decisions only you can make. Each time around, your Agents know your business a little better.

1. Say it once

Describe what you need in plain words, even when it spans several things. Mandala splits it into tasks, picks the Agent that owns each part, and hands them off. You don't open a terminal per task.

Mandala splitting a request into tasks and delegating them to Agents

2. Every thread has an owner

An Agent is a long-lived owner of one part of your business, like payments, releases or weekly metrics. Each has its own instructions, Skills, MCP connections and memory, and its own runtime and model: Claude Code for hard problems, Kimi or Codex for routine work. Mandala supports 14 CLIs and reuses their own logins, with no model account and no token markup.

Browsing Agents, each with its own CLI, model and memories

3. Watch it all move

Every task shows what its Agent is doing right now. Work that needs you, like an approval or an open question, rises to the top. Mandala shows the same approval modes across runtimes: on demand, strict or automatic. What you can approve depends on the runtime: some ask about individual tool calls, while others ask before starting the whole turn. Strict mode cannot add prompts the runtime does not provide or change its sandbox. See the approval policy and CLI adapter capabilities.

Task progress updating live while one task waits for approval

4. You decide what's done

A run that succeeds is not the same as finished. Open the result, check it against the acceptance criteria, then confirm it or send it back with a reason. One task can hold several execution chats from different Agents and CLIs.

Requesting changes on one task and reviewing a completed one

5. It remembers next time

Agents keep what they learn as facts, scene knowledge and long-term context, each with its sources. Memory belongs to the Agent, not the model, so it carries over when the Agent switches CLI. Correct or withdraw anything. Shared conventions live in the Project Wiki that every member Agent can read.

An Agent's memory with its sources

Recorded in the current app with sample data.

Take it anywhere

Mandala runs on your computer and keeps your data there. When you're away, open it from your phone's browser: pair once from the desktop app, then chat, approve, stop runs and download results. Requests are end-to-end encrypted, and the relay only forwards ciphertext.

The same Mandala workspace on a Mac and on a phone

The official connection is live via Mandala's hosted relay. You can also self-host the relay. A native mobile app is on the roadmap.

Make it yours, build it together

The Mandala workspace in four themes

Mandala's source is public, and so is everything around it. Themes, language packs and the Mandala pet come from community catalogs on GitHub and install from the in-app Market. The pet sits in the Mandala panel, reacts to what your Agents are doing, and can pop out onto your desktop.

I want to… Start here
Make a data plugin Unified catalog · Theme, language and pet protocol
Make a theme Export it from Settings, then open a PR to mandala-themes
Translate Mandala mandala-plugins
Draw a pet Pet packages
Share a Skill or MCP server Coming soon to the Market
Improve Mandala itself Open an issue or a pull request

Every package is reviewed before it is listed, and the app installs only the exact version that was reviewed.

Get started

Desktop. Download macOS (.dmg, Apple Silicon) or Windows (.exe, x64) from mandala.pub or Releases. The macOS app is ad-hoc signed and not notarized by Apple; the Windows installer is unsigned. Your operating system may block installation or launch. Compare the download’s SHA-256 with the SHA256SUMS.txt in the same release to check file integrity. A matching checksum does not certify safety or justify overriding warnings. On macOS, see Apple’s guidance on opening apps safely.

From source. Requires Node.js 22.23.2 or later, and at least one supported CLI that already works in your terminal.

git clone https://github.com/maktub-ai/mandala.git
cd mandala
npm ci && npm run build && npm start
# open http://127.0.0.1:4317

Your first Agent in five minutes

  1. Enable a runtime. Settings → Runtimes. Mandala detects which CLIs start on your machine.
  2. Create an Agent. Give it a responsibility, a default runtime and a model.
  3. Hand off work. Tell Mandala or the Agent what you need. Get one-off results in chat. For ongoing work, ask “Track this as a task” in the same chat.
Data directory, port and backups
MANDALA_HOME="$HOME/.mandala" MANDALA_PORT=4332 npm start

# Offline snapshot and restore. Stop the service first.
npm run backup  -- --home "$HOME/.mandala" --output "$HOME/mandala-snapshot"
npm run restore -- --input "$HOME/mandala-snapshot" --home "$HOME/.mandala-restored"

MANDALA_HOME defaults to ~/.mandala and MANDALA_PORT to 4317. Keep everyday data and test data in separate directories.

Runtimes

Runtime Notes
Codex —
Claude Code —
Gemini CLI —
OpenCode —
OMP —
CodeBuddy —
Kimi —
Grok —
DeepSeek Harness Tool approval covers the whole turn
Antigravity Tool approval covers the whole turn · no per-session MCP
Cursor Agent Tool approval covers the whole turn · no per-session MCP · models follow your Cursor plan
Pi No per-session MCP
Hermes Agent Native Gateway · whole-turn approval · no session MCP binding
OpenClaw Native Gateway · native default model · whole-turn approval · no per-session MCP

Every runtime can be enabled, disabled and set as an Agent's default. Credentials are never written to Mandala's config. Actual capability depends on the installed CLI version and its login.

DeepSeek Harness connects through dsh acp. If a legacy connection is disabled, choose Use native CLI settings under DSH. DeepSeek R1 requires a provider configured in DSH that offers it. Thinking controls for the native default model follow the options reported by DSH.

Gateway-backed setup, limitations and live tests: Hermes Agent / OpenClaw.

Documentation

I want to… Read
Understand approvals and permissions Approval policy
Use Mandala from my phone Personal connection
Self-host the relay service Relay deployment
Build the desktop app or migrate data Desktop
Make a theme or language pack Market extensions
See what's planned Roadmap
Contribute Contributing · Code of conduct
Report a security problem Security policy
Develop, test and release Development · Collaboration

Architecture

How work moves: you talk to Mandala, Mandala hands tasks to long-lived Agents, and each Agent runs the work through a native CLI you already use.

flowchart TB
  you(["You"]) <-- "ask · review" --> mandala["<b>Mandala</b><br/>one inbox<br/>one progress view"]
  mandala <-- "tasks · progress" --> agents
  subgraph agents["Agents · long-lived owners, with memory · Skills · MCP · Project Wiki"]
    direction LR
    a1["Agent · payments"] ~~~ a2["Agent · releases"] ~~~ a3["Agent · metrics"]
  end
  agents <-- "work · receipts" --> clis
  subgraph clis["Native CLIs · their own logins"]
    direction LR
    c1["Claude Code"] ~~~ c2["Codex"] ~~~ c3["Kimi · …"]
  end

What runs where: everything stays on your machine. A phone can connect through an optional end-to-end encrypted relay.

flowchart LR
  phone["Phone browser"] -. "optional E2EE relay" .-> svc
  subgraph machine["Your machine"]
    ui["<b>React UI</b><br/>browser or Electron"] <--> svc["<b>Local Node service</b><br/>acpx + native adapters"] <--> db[("SQLite + files")]
  end
Layer Stack
UI React, Vite, Radix, Tailwind
Service Node.js 22, node:sqlite, acpx ACP runtime + native CLI adapters
Desktop Electron with bundled Node.js
Remote TweetNaCl authenticated box, bounded ciphertext relay
Tests Vitest, Playwright

Settings with the same name resolve as Project > Agent > native CLI.

Development

npm run dev        # Vite + local API at http://127.0.0.1:4174
npm test           # unit tests
npm run typecheck
npm run test:e2e   # after `npx playwright install chromium` and a build

Tests use temporary data and mock protocol endpoints, so they never need your CLI logins. Branching, review and release: docs/development.md.

Why "Mandala"?

A mandala is a circle drawn around one center. Our mark has six petals around an open core: you, tasks, Agents, memory, the Project Wiki and any CLI. Work moves out from the center and comes back to it.

Acknowledgements

Mandala's ACP transport uses a lightweight MIT fork of acpx, based on OpenClaw's acpx. We reuse Paperclip's host process spawning hook with attribution, keep compatibility fixes in separate upstream contributions, and retain native adapters for capabilities outside ACP. See the CLI capability matrix and update process.

Mandala's memory layer builds on TencentDB Agent Memory (MIT). We adapted its scene extraction, persona generation and search helpers in server/vendor/tencentdb/ and use its @tencentdb-agent-memory/tcvdb-text package. Thanks to its authors for making it open source.

UI components are adapted from shadcn/ui and icons come from Lucide. The full list is in THIRD_PARTY_NOTICES.md.

License

Mandala's own code is available under the Mandala Source-Available License. It is free for personal use and for a single organization's internal use, including internal commercial use. Running Mandala as a hosted service for third parties, paid or free, requires written authorization. It is not an OSI-approved open-source license. Third-party components keep their own terms: THIRD_PARTY_NOTICES.md.

Explore related projects

Loading…