Gunicorn-style agent swarms with Redis-like shared memory and artifact stitching. (Imported as `puppetmaster`; published as `puppetmaster-ai` because the bare PyPI name is held by an abandoned 2019 project, name-reassignment pending.)
pip install puppetmaster-ai==1.27.23 Copy PIP instructions
Puppetmaster runs multi-step engineering work through the agent tools you already use: Cursor, Grok Bot, Claude Code, Codex, Hermes, Antigravity (Gemini 3.7 / 3.6 / 3.5 / 3.1 Pro), or a provider API. It starts independent workers, routes tasks to an available model, and stores their typed results in SQLite so jobs can be inspected and resumed. It is aimed at developers who want durable state and reviewable output for repository investigations, audits, refactors, and implementations.
Grok Bot: only remote MCP, not the stdio server Cursor Agent uses. Puppetmaster is the durable worker runtime behind that chat — same jobs, artifacts, and effort-index, over streamable HTTP. See Grok Bot.
pipx install puppetmaster-ai # or: pip install puppetmaster-ai puppetmaster setup # installs MCP tools, rules, and hooks setup is idempotent, skips platforms that are not installed, and prints each change. It asks you to enable at least one adapter; for example:
puppetmaster setup --platforms cursor # Pi TUI/pilot (not a worker adapter): puppetmaster setup --platforms pi # OMP / oh-my-pi TUI/pilot (not a worker adapter): puppetmaster setup --platforms omp Restart Cursor, Codex, Claude, Antigravity, Hermes, Pi, or OMP after setup. The host then has the puppetmaster_* MCP tools and, where supported, hooks that suggest delegation for larger tasks. Disable those hooks with PUPPETMASTER_AUTO_INVOKE_DISABLED=1. For CI, use --platforms or --platforms all. Add another adapter later with puppetmaster platform enable .
Grok Bot does not use that stdio install. Start remote MCP and add the printed connector instead (Grok Bot).
The built-in agentic adapter needs only a provider API key, so it can run without an external CLI. See adapter setup for provider, Antigravity, and Hermes details.
Cursor's Grok Bot assistant attaches remote MCP connectors only (streamable HTTP / SSE). It cannot register python -m puppetmaster.mcp_server the way Cursor Agent, Claude Desktop, and Codex do. Serve the same tool handlers over HTTP and Grok Bot can start and watch durable jobs on this box:
export PUPPETMASTER_MCP_TOKEN="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')" python -m puppetmaster mcp serve-remote --scope supervise # equivalent: puppetmaster-mcp-remote --scope supervise # one-shot PoC (prints connector JSON): ./scripts/grok-bot-remote-poc.sh In Grok Bot → Add MCP server, use the printed /mcp URL and Authorization: Bearer . Use a TLS tunnel if the bot is off-box. Confirm tools load, then puppetmaster_doctor and puppetmaster_start_implement or puppetmaster_start_agentic.
When Cursor is not installed on that host, implement / prewalk / swarm pick keys-only agentic workers (OPENROUTER_API_KEY, OPENAI_API_KEY, …). There is no grok-bot adapter and no CreateAgent fleet. Default --scope supervise omits implement/edit; pass --scope implement only when you want the remote client to start full-edit workers.
Connector JSON, handshake notes, and auth: GROK_BOT.md.
Use Puppetmaster to run doctor in this repo and summarize what is missing. For a supervised change:
Use Puppetmaster to start a review for this repo on my configured reviewer platform and return the job id immediately. Problem: users get logged out after refresh and token-refresh tests are flaky. Constraints: keep the patch focused, preserve public API behavior, run relevant tests. Do review/plan first. Poll status/logs by job id. Do not edit until you summarize findings and ask for approval. From the shell:
puppetmaster doctor puppetmaster route "Security audit every endpoint" --role audit puppetmaster cursor "Review this repo for release blockers" --review --dry-run puppetmaster platform reviewer codex puppetmaster review "Review this repo for release blockers" puppetmaster claude "Implement the approved change and run focused tests" --permission-mode acceptEdits puppetmaster show "$(puppetmaster last)" To verify an installed Codex route on macOS, Linux, or Windows, run puppetmaster setup --verify-first-run codex/ with an exact registry ID. This opt-in check makes one live call in temporary state and returns nonzero if it cannot prove delivery within 120 seconds. Ordinary setup does not make this call. See first-run verification.
More recipes are in DAILY_DRIVER.md and MODEL_ROUTING.md.
Puppetmaster is a supervisor and job store for agent CLIs and provider adapters. Grok Bot, Cursor Agent, Pi, and OMP are pilots (they call MCP tools); cursor / claude-code / agentic / … are adapters (leased workers):
pilots (MCP): Cursor Agent / Grok Bot / Claude Desktop / Pi / OMP workers: cursor / claude-code / codex / hermes / antigravity / agentic | v supervisor -> model router -> independent workers -> SQLite artifacts | v stitched summary Workers claim tasks, write artifacts containing payloads and evidence, and do not share one growing transcript. Follow-up inspection is a SQLite read at $0. A later model retrieves that working set; it does not inherit another model's provider KV cache. The parent agent receives the stitched result and can inspect the stored artifacts with:
puppetmaster artifacts python -m puppetmaster dashboard A host pane (for example Marionette) can load a chrome-free job view at http://127.0.0.1: /?job= &embed=1.
CodeGraph is an optional structural code index. When installed, Puppetmaster adds task-relevant CodeGraph context before worker calls; otherwise workers use ordinary repository inspection. See CODEGRAPH.md.
Puppetmaster sits above libraries such as LangGraph and CrewAI: those libraries help you build an agent, while Puppetmaster coordinates existing agent CLIs and adapters. See WHY.md and COMPARISON.md.
The repository includes reproducible benchmark scripts and their scope and caveats in CLAIMS.md. The receipts cover:
These are measurements of the included workflows, not guarantees for every repository or model. An independent durable-state benchmark is documented here.
puppetmaster uninstall pip uninstall puppetmaster-ai # or: pipx uninstall puppetmaster-ai uninstall removes Puppetmaster-owned MCP entries, hooks, and rules. It keeps ~/.puppetmaster/ and workspace .codegraph/ unless you pass --purge-state; use --dry-run to preview.
Puppetmaster is a daily-driver beta at v1.27.21, suitable for supervised local engineering. v1.27.21 stops agentic implement workers that keep exploring without a successful mutation and preserves compact terminal diagnostics for no-diff failures. v1.27.20 persists an agentic catalog refresh that restamps existing rows so fallback reloads that bound epoch, and durable admission requires a verification that names the artifact id or exact claim/risk/decision text — worker grounded labels and a same-task pass with no pointer do not count. v1.27.19 admits an exact enabled agentic/ /… registry id when that provider is ready, so a funded fallback such as agentic/openai/gpt-5-6-sol can dispatch even when gpt-5.6-sol is absent from a fresh agentic discover snapshot; bare names still need the catalog. v1.27.18 lets a generated auto-routed swarm leave a spent launch adapter after classified billing_or_quota (adapter_lock=lane) so that funded identity can complete the job; hard pins stay locked. v1.27.14 retries a locked file-backend projection writer on save_task (same helper as save_run) so crash recovery does not die with ProjectionWriteAdmissionError on Windows CI. v1.27.13 keeps OpenCode Go thinking models (deepseek-flash and peers) on the nudge-only submit path and retries a 400 whose body mentions tool_choice, so pinned Go swarms no longer die after a late forced submit. v1.27.12 makes setup --verify-first-run read the persisted Codex wire name instead of stripping codex/ from the registry id, so dashed aliases such as codex/gpt-5-6-sol match dotted adapter names such as gpt-5.6-sol. v1.27.11 preserves DeepSeek reasoning_content through agentic tool calls so the next provider request is accepted, and keeps qualified model allowlists within their selected provider. v1.27.10 makes MCP last_job return a store-scoped bind (last --json) so a workspace last id cannot be mistaken for a Marionette ~/.pmharness swarm. v1.27.9 stamps x-opencode-session on OpenCode Go worker HTTP so swarms stop dying with MissingSessionID. v1.27.8 keeps Darwin sqlite readonly helpers working when APFS updates ctime on a lock-open. v1.27.7 hardens openai-codex (remap *-pro, refuse openai-api, fail closed on HTTP 400). v1.27.6 adds orchestration durability (#167): session command ledger, run journal crash stamps, and WorkspaceScope freeze so MCP/CLI keep a stable primary store root. v1.27.4 adds an opt-in same-job continuous planner (role=planner): intent-spec before fan-out, typed worker handoffs, and kernel requeue until scope_complete. v1.27.1 adds chrome-free /?job=&embed=1 densify mode for Marionette (and other) host panes. v1.27.0 added a community observation store and a separate role-preference file so StrongOrc-shaped priors can order already-sufficient models without rewriting capability_score. ROUTING names community_observation or preference when that layer chose the winner.
Store contracts describe the embedding APIs and their limits. Attempt accounting preserves retries and unknown usage; selected-result economics remain separate. Budget reservations enforce cumulative admission, though opaque provider overruns can exceed allowances. SQLite state migrates to schema v5, with stale projection triggers repaired at supervisor initialization. Stop long-lived Puppetmaster processes before the schema cutover and restart supervisors, workers, MCP servers, and dashboards on the new version. See the feature matrix and changelog.
PyPI uses the package name puppetmaster-ai; the import name, CLI, and repository use puppetmaster.
agents swarm orchestration cursor llm redis sqlite
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
The dropdown lists show the available interpreters, ABIs, and platforms.
Enable javascript to be able to filter the list of wheel files.
Copy a direct link to the current filters Copy
Details for the file puppetmaster_ai-1.27.23.tar.gz.




