# paradigmxyz/centaur — AlpLab Radar Static Code Audit

- Ring: `adopt`
- Category: `agents`
- Overall score: `3.8/5`
- Implementation check: `verified`
- Maturity: `active`
- Audited commit: `400241ce447d` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T05:51:29Z
- Repository: https://github.com/paradigmxyz/centaur
- Radar entry: https://radar.alplab.co/#repo/paradigmxyz/centaur
- License: `NOASSERTION`
- CI workflows: `.github/workflows`
- Tags: `agents`, `kubernetes`, `slack`, `sandbox`, `rust`, `self-hosted`

## Summary

Self-hosted team agent platform: a Rust/Axum control plane (api-rs) that assigns per-thread Kubernetes sandboxes running CLI harnesses (Codex, Claude Code, Amp, Pi, Hermes), with durable Postgres sessions/executions/events, Python workflows, ~100 TypeScript QuickJS tool connectors, chat ingresses for Slack/Discord/GitHub/Linear/Teams, a Console UI, and per-sandbox credential-injecting egress proxies (iron-proxy).

## Implementation Check

Every core README claim maps to code read: durable session path in crates/centaur-session-runtime/src/lib.rs (SessionRuntime::create_or_get_session_with_principal_admission, event replay, warm pools, orphan adoption), capability auth in crates/centaur-api-server/src/auth.rs, tool CLI shims in services/sandbox/install_tool_shims.py, workflows in services/workflow-python/workflow_host.py; only tools/README.md's plugin inventory is stale (plugins moved to connectors/, see RETIRED_TOOLS in install_tool_shims.py).

## When to Use

Use when a team wants one shared, self-hosted Slack/Teams-native coding-agent platform with real sandbox isolation, durable long-running workflows, and placeholder-based credential boundaries, and can operate k3s+Postgres+Helm plus a secret source. Not for individuals wanting a quick local CLI agent, or teams without a Kubernetes cluster and willingness to configure NetworkPolicies, Slack apps, and model-provider secrets.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.5/5 |
| usability | 3.0/5 |
| reliability | 3.0/5 |
| security | 4.0/5 |
| integration | 4.5/5 |

## Code Evidence

crates/centaur-api-server/src/auth.rs defines a Capability catalog (22 capabilities) with ingress keys platform-scoped via INGRESS_SPECS.platform_prefixes and constant-time SHA-256 token comparison (subtle ct_eq); crates/centaur-api-server/src/main.rs wires SessionRuntime, warm pools, hands, scheduled tasks, and graceful SIGTERM handoff of in-flight executions; crates/centaur-session-runtime/src/lib.rs (519KB) implements session create/restart, harness pinning by persona, stdout-owner leases, sandbox capacity admission, and periodic orphan adoption; crates/centaur-api-server/src/slack_proxy.rs validates channel/user/file IDs, checks is_slack_file_url before spending the bot token, and scopes every route by sandbox-token channel-list claims; services/sandbox/entrypoint.sh composes Codex/Claude configs with validated TOML/JSON overlays and installs gh/git credential helpers; services/sandbox/install_tool_shims.py builds per-tool CLIs from [project.scripts] with file-locking, allow/blocklists, and retired-tool shims; crates/centaur-codemode/README.md documents QuickJS realm-per-call isolation (no fetch/module loader in cells, host-side policy checks); .github/workflows/ci.yml runs 17 jobs including Postgres-backed cargo test on both ParadeDB and plain pgvector, clippy -D warnings, sandbox Python tests, and connector typecheck; e2e/stack.sh brings up a kind cluster with fake Slack and scripted model servers and runs bun e2e scenarios; connectors/ ships 100+ real API connectors (e.g. connectors/github/index.ts, 63KB) with typed helpers in connectors/_lib/http.ts; centaur_sdk/tool_sdk.py implements secret() placeholder resolution and thread-scoped upload paths.

## Issues Found

services/sandbox/Dockerfile installs toolchains via curl|sh at build time (astral.sh/uv/install.sh unpinned, bun.sh/install, foundry.paradigm.xyz, sh.rustup.rs) — a build-time supply-chain surface; amp is sha256-verified but the uv installer is not version-pinned. tools/README.md still lists datadog/prose-lint/centaur-skills as tools/ tree plugins, but tools/ contains no plugin packages (they are now Code Mode connectors; see RETIRED_TOOLS in services/sandbox/install_tool_shims.py). README.md 'Getting Started' hardcodes a personal checkout path (/Users/magelinskaas/paradigmxyz/centaur).

## Key Risks

Heavy operational footprint: requires a Kubernetes cluster (k3s/kind minimum), Postgres, a Slack app, model-provider credentials via 1Password Connect or env secret source, and ~14 deployable services; the sandbox image is multi-GB. Egress allowlist defaults to permissive '*' (documented as deliberate UX). The codemode 'serve' HTTP API is unauthenticated by design, relying entirely on NetworkPolicy admission (crates/centaur-codemode/README.md). License is dual Apache-2.0 OR MIT (GitHub reports NOASSERTION because of the dual-license text). Repo moves extremely fast (300 commits/90d, daily releases), so any deployment pins a moving target. Nothing was executed: test/CI/e2e coverage was verified by reading the workflows and sources, not by running them.

## Reviewed Files

- `README.md`
- `Cargo.toml`
- `AGENTS.md`
- `LICENSE`
- `SECURITY.md`
- `Justfile`
- `crates/centaur-api-server/Cargo.toml`
- `crates/centaur-api-server/src/main.rs`
- `crates/centaur-api-server/src/lib.rs`
- `crates/centaur-api-server/src/auth.rs`
- `crates/centaur-api-server/src/slack_proxy.rs`
- `crates/centaur-session-runtime/src/lib.rs`
- `crates/centaur-codemode/README.md`
- `centaur_sdk/tool_sdk.py`
- `workflows/echo.py`
- `tools/README.md`
- `connectors/github/connector.toml`
- `connectors/_lib/http.ts`
- `services/iron-proxy/entrypoint.sh`
- `services/sandbox/entrypoint.sh`
- `services/sandbox/install_tool_shims.py`
- `services/sandbox/Dockerfile`
- `services/workflow-python/workflow_host.py`
- `e2e/stack.sh`
- `docs/pages/security.mdx`
- `docs/pages/quickstart.mdx`
- `.github/workflows/ci.yml`
- `.github/workflows/publish-images.yml`
