Skip to content
Back to work
03/ 2026/ Architect + sole engineer

PUX

A personal agent platform through five architecture pivots — what survived every rewrite was the isolation engineering, not the framework.

PythondeepagentsLangGraphMCPOpenSandbox

PUX is a personal agent platform that rebuilt itself five times in five months. Today it is a dcode workspace and nothing more — no harness library, no launcher of its own, no compiler, no custom agent code. dcode discovers the whole surface at startup and owns the runtime; the repo authors it in place: thirty specialists under .deepagents/agents/, five workspace skills, a ten-plugin marketplace, and six MCP lanes that each load through dcode's native --mcp-config seam. 1,683 commits from first commit to the current shape, every human-authored one mine — and 223 of them, one in eight, carry agent co-author trailers.

Five pivots, written down

 2026-03  Go kernel        SSE core on :3847,
          → MCP MVP         hand-written MCP server
 2026-06  → MCP-server MVP
 2026-07  → TS harness      pi-pivot, −7,543 LOC of TUI
 2026-07  → deepagents      "delete the Go MCP tree — harness Go-free"
 2026-08  → the strip       "strip all pux machinery —
                             the repo is a plain dcode workspace"

Each pivot deleted the previous machinery rather than shimming it, and the retirement dispositions are written down (docs/thin-architecture.md, docs/prod-come-back-to.md) — including what died and why: the CopilotKit web UI, the in-repo TUIs, the Hermes seam. The Web UI got four weeks of CopilotKit work, was folded back into the harness, and deleted in the same commit as everything else. Building the judgment to delete your own working code is the actual skill this repo documents.

Isolation is measured, not claimed

docs/isolation-patterns.md defines sandbox tiers (S1 session, S2 on-demand, S3 workload container) and an L0→L4 MCP segmentation ladder — then audits a real dcode assembly lane by lane: the coding lane binds 19 tool schemas across 7 subagents, the game lane binds 50 (godot 36 + surreal 14) uniformly across all 11, general-purpose included.

The shipped fix is L2.5, model-keyed harness exclusion: three agents opt in via model: frontmatter, and the tool-scoping plugin strips every MCP tool from exactly them — a deny-list of 199 tool names captured live. It's proved three ways: a structural tripwire (make scoping-check), hostile-prompt e2e where those agents can only answer NO-MCP-TOOLS, and a bind_tools spy checked against a live github_get_me control. An upstream L3 to langchain-ai/deepagents is prepared on a branch.

The browser that can't reach home

The browser is a 42-tool SeleniumBase Pure-CDP stealth build — no chromedriver, stealth flags, headless by default, one Chrome per server process — sealed as a remote async subagent on Aegra with its own Postgres, and the browser itself runs inside an OpenSandbox container: no credentials, no host mounts, no host reach. Isolation holds at three boundaries — context (dcode never loads the 42 schemas, the specialist never gets the main agent's tools), tools (a HarnessProfile drops every built-in file/shell/subagent tool), and host.

Containment wasn't review-checked; it was attacked. A hostile e2e fired the run arbitrary-Python escape hatch and pointed file:// at the host .env; both leaks were found and closed that way, a whole-thread token scan came back clean, and the lessons live in docs/browser-specialist-isolation.md. The browser sandbox runs on a 23-hour lease renewed every 12 hours.

Sovereignty is a flag, not a slide

make qwen serves Qwen3.8-27B (GGUF UD-Q5_K_XL, 20GB) on llama.cpp against the RTX 4090 at :8388, and any session runs on it with -M local-qwen:qwen3.8-27b. Provider swaps are config, not code — the same workspace runs on a local model, a frontier API, or both, per lane. The six MCP lanes make that real: make coding binds zero MCP tools (.mcp.json at the root is empty by design), while the research lane wires web_research, SurrealDB, the Equibles financial terminal, and nitter.

Host services are named, not assumed: SurrealDB :8000, media-mcp :8101, nitter :41730, Equibles :43181, Aegra :2026, local Qwen :8388 — wired through make infra with a startup health check.

The launcher is a seam, not a framework

profiles/run.py is the whole launcher, and it spends itself on dcode's own seams: _load_dotenv anchored to the repo (credentials work from any launch folder), a single chdir into the session folder so git-root discovery picks up roster, skills and AGENTS.md, the native mcp_config_path seam for the lane, then run_textual_app / run_non_interactive with server_kwargs — zero monkey patches, zero ProjectContext overrides, zero vendored runtime.

The ten plugins are the authored surface: six skill families (deep-research, investment-analysis, twitter-automation, telegram-automation, game-studio-workflows, social-media-publishing) carrying their operational scripts, three tool plugins (orchestrator-tools, the 42-tool browser, opensandbox as the sandbox provider), and tool-scoping as the isolation bridge. Two upstream fixes ride alongside as patches rather than forks — the Aegra thread-values conformance fix (make aegra-patch) and the deepagents per-subagent tools: frontmatter PR.

Quick start

# The workspace
dcode                 # the TUI — full 30-agent roster, no MCP loaded
make coding           # zero-MCP lane (git/github via execute + gh)
make research         # web_research · surreal · equibles · nitter

# The isolation claim
make scoping-check    # deny-list tripwire — fails loudly if a scoped
                      # agent can reach an MCP tool again