Merged
Conversation
added 2 commits
April 23, 2026 11:00
Expose a compact hivemind MCP tool so Codex skills can ask Cavemem which proxy-runtime sessions own which tasks before reading memory bodies. The tool reads only local active-session JSON and AGENT.lock telemetry, keeps stale active records from hiding fresh lock telemetry, and documents the skill-first usage path. Constraint: MCP compact tools must preserve progressive disclosure and avoid raw observation bodies. Rejected: Persisting runtime task state in Cavemem storage | runtime ownership is transient and already emitted by proxy/Guardex state files. Confidence: high Scope-risk: narrow Tested: pnpm exec biome check apps/mcp-server/src/server.ts apps/mcp-server/src/hivemind.ts apps/mcp-server/test/server.test.ts docs/mcp.md .changeset/hivemind-mcp-tool.md Tested: pnpm --filter @cavemem/mcp-server test Tested: pnpm --filter @cavemem/mcp-server typecheck Tested: pnpm --filter @cavemem/mcp-server build
Current origin/main introduced tracked Active Agents files that make the repo-wide CI lint gate fail before the MCP change is tested. Apply Biome formatting and remove the no-op continue so the existing CI gate can run cleanly. Constraint: CI runs `pnpm lint` across the whole repository, not only changed MCP files. Rejected: Ignore the red CI check | the PR would remain unmergeable even though the failure is formatting drift. Confidence: high Scope-risk: narrow Tested: pnpm lint Tested: pnpm typecheck Tested: pnpm test Tested: pnpm build
c3480c4 to
1563b79
Compare
added 2 commits
April 23, 2026 11:20
Vitest runs before the build gate in CI, so clean checkouts do not have package dist outputs yet. Route workspace package imports to source during tests while preserving published dist exports for runtime consumers. Constraint: CI executes pnpm test before pnpm build. Rejected: Move the CI build before tests | would mask the clean pre-build test contract instead of fixing package resolution. Confidence: high Scope-risk: narrow Tested: pnpm clean; pnpm test; pnpm lint; pnpm typecheck; pnpm build
The new `hivemind` MCP tool only helps if review flows call it before pulling full memory bodies. This adds a repo-local `reviewer` skill so Codex can map active branches and worktrees first, then drill into targeted session evidence only when needed. Constraint: Keep the repo-local skill lean and dependency-free Rejected: README-only guidance | skill discovery needs an executable workflow surface Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep the skill hivemind-first; do not broaden it into a general review replacement without validating the trigger surface Tested: git diff --check; reviewed skill metadata and unignored file state Not-tested: pnpm typecheck; pnpm lint; pnpm test; pnpm build (docs-only follow-up on a previously verified PR branch)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hivemindMCP tool for active proxy-runtime session/task state.omx/state/active-sessions/*.jsonplusAGENT.locktelemetry fallback without returning observation bodies@cavemem/mcp-serverVerification
pnpm exec biome check apps/mcp-server/src/server.ts apps/mcp-server/src/hivemind.ts apps/mcp-server/test/server.test.ts docs/mcp.md .changeset/hivemind-mcp-tool.mdpnpm --filter @cavemem/mcp-server testpnpm --filter @cavemem/mcp-server typecheckpnpm --filter @cavemem/mcp-server build