Bun + TypeScript implementation of the personal engineering/ops manager agent described in TECHNICAL_SPEC.md.
- Shared domain packages (
packages/core,packages/db,packages/security) - API control plane (
apps/api) with dashboard APIs + integration status endpoint - Worker runtime (
apps/worker) with:
- single active Codex session manager
- serialized priority queue (P0/P1/P2)
- heartbeat scheduler (1m active / 10m idle / 30m off-hours)
- full command execution + immutable command audit
- integration preflight checks (
gh,codex)
- Moonshot v1.5 systems:
- PR Hedge Fund (EV scoring and ranked portfolio decisions)
- Self-Evolving Test Generator (bug-to-regression candidate loop)
- Personal CTO Memo Engine (weekly strategic memo synthesis)
- Architecture Memory Graph (code + PR + incident impact graph)
- Autonomous Perf Scientist (nightly baseline + change smoke + draft PR recommendations)
- React dashboard (
apps/dashboard) served by Bun API static fallback
- Primary repo path:
/Users/ryanwible/projects/wrela(override viaPRIMARY_REPO_PATH) - Shared DB path:
.data/agent.db(override viaAGENT_DB_PATH) - Brave budget hard cap:
2000(persisted inprovider_budget_usage) - Moonshot scheduler env defaults:
PORTFOLIO_TOP_N=5PORTFOLIO_MIN_EV_AUTORUN=1.25TEST_GEN_MAX_CANDIDATES_PER_BUG=3MEMO_WEEKDAY=1andMEMO_HOUR=9GRAPH_REINDEX_CRON=60(minutes)
bun install
bun run buildRecommended setup wizard:
bun run setup:squidwardNon-interactive provisioning mode:
bun run setup:squidward --non-interactive --skip-install --skip-buildTerminal 1:
AGENT_DB_PATH=.data/agent.db bun run --filter @squidward/worker startTerminal 2:
AGENT_DB_PATH=.data/agent.db bun run --filter @squidward/api devThen open http://localhost:3000.
bun run setup:squidwardbun run lintbun run testbun run build
apps/workerdefaults to real command execution. SetWORKER_USE_STUB_EXECUTOR=1for dry/local simulation.- API and worker must point to the same
AGENT_DB_PATH. - Integrations are live:
- Integration status endpoint (
/api/integrations/status)