diff --git a/.agents/scripts/supervisor/cron.sh b/.agents/scripts/supervisor/cron.sh index 9891c2588..b7b96feb7 100755 --- a/.agents/scripts/supervisor/cron.sh +++ b/.agents/scripts/supervisor/cron.sh @@ -54,7 +54,7 @@ cmd_cron() { done local script_path - script_path="${_CRON_DIR}/supervisor-helper.sh" + script_path="${SCRIPT_DIR}/supervisor-helper.sh" local cron_log="${SUPERVISOR_DIR}/cron.log" # Ensure supervisor dir exists for log file @@ -302,7 +302,7 @@ cmd_watch() { fi local todo_file="$repo/TODO.md" - local script_path="${_CRON_DIR}/supervisor-helper.sh" + local script_path="${SCRIPT_DIR}/supervisor-helper.sh" local watch_log="${SUPERVISOR_DIR}/watch.log" # Platform dispatch diff --git a/TODO.md b/TODO.md index c7278f079..169b59bcb 100644 --- a/TODO.md +++ b/TODO.md @@ -73,8 +73,9 @@ Tasks with no open blockers - ready to work on. Use `/ready` to refresh this lis - [x] t1308 LLM observability: data collection from OpenCode plugin — extend OpenCode plugin to capture LLM request metadata via `event` hook and `tool.execute.after`. Record: model used, token counts, cost, duration, tool call counts, success/failure. Write to the SQLite DB from t1307. Incremental — each session appends, no full reparse needed. ~1h #feature #observability #opencode #auto-dispatch model:sonnet ref:GH#2177 assignee:marcusquinn started:2026-02-22T05:02:44Z status:deployed pr:#2138 completed:2026-02-22 - [x] t1309 Intent tracing in OpenCode plugin — add intent field to tool call logging. Inspired by oh-my-pi's `agent__intent` pattern where a hidden field is injected into every tool's JSON Schema requiring the LLM to describe its intent in present participle form. In our case, log the intent alongside tool calls in the observability DB (t1307) for debugging and audit trails. v1.2.7 now passes sessionID and callID to shell.env hook — more context available. Evaluate whether `tool.execute.before` hook provides enough context. ~1h #feature #auto-dispatch #observability #opencode model:sonnet ref:GH#2190 assignee:marcusquinn started:2026-02-22T16:37:42Z status:deployed pr:#2153 completed:2026-02-22 - [x] t1310 Document hashline edit format and autocorrect heuristics — create `.agents/reference/hashline-edit-format.md` documenting oh-my-pi's hashline approach: content-addressed line references (xxHash32, custom alphabet), staleness checks, and the battle-tested autocorrect heuristics (anchor echo stripping, line merge detection, wrapped line restoration, indent restoration, bottom-up edit application). This is reference material for when we build custom edit tooling for headless dispatch or the objective runner. Source: `/Users/marcusquinn/Git/oh-my-pi/packages/coding-agent/src/patch/hashline.ts`. ~1h #docs #auto-dispatch #harness #reference model:sonnet ref:GH#2191 assignee:marcusquinn started:2026-02-22T16:38:15Z status:deployed pr:#2151 completed:2026-02-22 - - [ ] t1311 Evaluate oh-my-pi swarm DAG patterns for supervisor dispatch — compare oh-my-pi's YAML-defined swarm orchestration (`reports_to`/`waits_for` dependency resolution, Kahn's algorithm topological sort, execution waves) with our TODO.md `blocked-by:` system. Identify gaps: our system lacks parallel execution waves, has no `reports_to` concept, and dependency resolution is string-matching not graph-based. Propose concrete enhancements to supervisor dispatch. Source: `/Users/marcusquinn/Git/oh-my-pi/packages/swarm-extension/`. ~2h #research #orchestration #supervisor model:sonnet ref:GH#2135 + - [ ] t1311 Evaluate oh-my-pi swarm DAG patterns for supervisor dispatch — compare oh-my-pi's YAML-defined swarm orchestration (`reports_to`/`waits_for` dependency resolution, Kahn's algorithm topological sort, execution waves) with our TODO.md `blocked-by:` system. Identify gaps: our system lacks parallel execution waves, has no `reports_to` concept, and dependency resolution is string-matching not graph-based. Propose concrete enhancements to supervisor dispatch. Source: `/Users/marcusquinn/Git/oh-my-pi/packages/swarm-extension/`. ~2h #research #auto-dispatch #orchestration #supervisor model:sonnet ref:GH#2135 +- [ ] t1314 Fix batch concurrency bypass when pulse runs without --batch flag — `cmd_pulse()` only uses batch concurrency when called with explicit `--batch `. Without it, Phase 2 falls through to global dispatch with `SUPERVISOR_MAX_CONCURRENCY` (default: 4), ignoring the batch's `concurrency=1` setting. Five contributing causes: (1) no batch auto-detection in `cmd_pulse()`, (2) auto-batch absorption has no affinity checks, (3) `cmd_next()` sibling limits ignore batch concurrency, (4) `blocked-by:` not enforced in dispatch path, (5) AI lifecycle auto-merge has no human review gate. Fix: auto-detect active batches in `cmd_pulse()`, add batch affinity to auto-absorption, cap sibling limits to batch concurrency, persist `blocked-by:` in DB or re-check at dispatch time, require explicit opt-in for auto-merge. Affected files: `pulse.sh` (Phase 2), `cron.sh` (auto-pickup), `state.sh` (`cmd_next()`), `dispatch.sh` (concurrency check). ~8h (ai:6h test:2h) #bugfix #supervisor #auto-dispatch model:opus ref:GH#2163 logged:2026-02-23 - [x] t1294 Add MCPorter agent for MCP toolkit — steipete/mcporter (2K stars, MIT, TypeScript) is a runtime, CLI, and code-generation toolkit for MCP. Auto-discovers MCP servers from Cursor/Claude/Codex/Windsurf/VS Code configs, calls tools from CLI or TypeScript, generates standalone CLIs from MCP servers, emits typed TypeScript clients. Complements existing mcp-index-helper.sh (token-aware on-demand loading) and setup-mcp-integrations.sh (initial setup). Use MCPorter for ad-hoc MCP discovery, testing, CLI generation, and TypeScript automation. Create subagent doc, config template, update scripts per add-new-mcp-to-aidevops.md process. Enable for Build+, AI-DevOps agents. Links: https://github.com/steipete/mcporter https://mcporter.dev #feature #auto-dispatch #mcp #agent ~4h (ai:3h test:1h) model:sonnet ref:GH#2060 assignee:marcusquinn started:2026-02-21T08:08:00Z logged:2026-02-21 → [todo/PLANS.md#2026-02-21-mcporter-mcp-toolkit-agent] pr:#2093 completed:2026-02-21 - [x] t1294.1 Create `.agents/tools/mcp-toolkit/mcporter.md` subagent documentation — cover: install (npx/pnpm/brew), discovery (`mcporter list`), calling tools (`mcporter call`), CLI generation (`mcporter generate-cli`), typed client emission (`mcporter emit-ts`), OAuth auth (`mcporter auth`), daemon mode, ad-hoc connections, config resolution. Include AI-CONTEXT-START block with quick reference, verification prompt, supported AI assistants. ~1.5h #auto-dispatch model:opus ref:GH#2064 assignee:marcusquinn started:2026-02-21T04:06:58Z pr:#2075 completed:2026-02-21