Hivemind for Cursor extension + memory-recall hook instrumentation (by Legion Code Inc.)#263
Hivemind for Cursor extension + memory-recall hook instrumentation (by Legion Code Inc.)#263thenotoriousllama wants to merge 39 commits into
Conversation
…005) Add a comprehensive suite of four main feature PRDs and their child specifications to design a first-class Cursor extension. This addresses the silent failure of the wiki-worker, automates pre-requisite health checks and hook auto-wiring, and provides rich in-editor Webviews for live KPIs, graphical settings, interactive codebase graph visualization, and team-wide rules/skills sync.
Documents Hivemind architecture, plugins, AI pipelines, data layer, auth, security, and operations from source and existing docs, with security and QA gate reports.
Introduced two new skills: `hivemind-goals` for managing team goals and KPIs via CLI, and `hivemind-graph` for querying the local code graph. Updated .gitignore to exclude cursor-related files.
docs: reverse-engineer Hivemind knowledge base
…extension-prds docs: Cursor Hivemind Extension specifications (PRD-002 to PRD-005)
Move claude-code, codex, openclaw, and pi into harnesses/, add cursor and hermes placeholders, and update build, CI, installers, docs, and tests for the new paths.
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ile' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ile' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
The openclaw skillify-worker esbuild outdir moved to harnesses/openclaw/dist during the harness reorganization; align the config regex assertion.
…harnesses-folder chore: consolidate agent harnesses under harnesses/
Implement the full Cursor/VS Code extension with health checks, auth, status bar, dashboard webview (KPIs, settings, sessions, graph, rules, skills), graph editor sync and impact overlay, and Cursor skill symlink bridge. Extend detectAgentSkillsRoots for ~/.cursor/skills-cursor and project .cursor/skills paths. Security fixes: execFileSync for browser open and hivemind login, session ID path validation, crypto CSP nonce.
Use vscode.env.openExternal with HTTPS host allowlist instead of shell browser launch. Validate API URLs and credential fields before network requests and credential file writes.
…-dev feat(cursor): Hivemind Cursor extension (PRD-002 through PRD-005)
Wire canonical dashboard data, org publish promote, graph UX, skill sync honesty, auth/offline fixes, bundle provisioning, and session summary loaders. Add security and QA pass reports; move PRD folders to completed/.
Refactor API URL and credential validation to prevent potential security issues. Update the method for opening external links to ensure compliance with HTTPS host allowlist. This addresses previous CodeQL alerts and improves overall security posture.
…-dev feat(cursor): complete PRD-002–005 acceptance criteria (post-PR #4)
# Conflicts: # .claude-plugin/marketplace.json # .claude-plugin/plugin.json # harnesses/claude-code/.claude-plugin/plugin.json # harnesses/codex/package.json # harnesses/openclaw/openclaw.plugin.json # harnesses/openclaw/package.json # package-lock.json # package.json
…e and Dashboard. This includes the deletion of index files, health check specifications, and QA reports, streamlining the project structure as we move forward with new features and improvements.
…ncing organization for future development
…nd improve session handling - Added goals management features to the dashboard, including the ability to add and filter goals. - Updated the dashboard UI to include a new goals section. - Improved session loading logic to better handle recent sessions and their associated data. - Refactored existing scripts for loading dashboard data, rules, and session summaries to streamline functionality and enhance performance.
…-0.1.0 feat(cursor): enhance dashboard functionality with goals management a…
…dashboard functionality - Updated version to 0.1.4 in package.json and package-lock.json. - Removed deprecated vsix file for the extension. - Improved dashboard data handling with new caching mechanisms and enhanced session statistics. - Adjusted paths for loading scripts to ensure proper functionality within the webview. - Enhanced memory recall tracking for better KPI reporting.
Version bump for the upstream PR carrying the Cursor extension dashboard fixes (loader script paths, real KPIs, graph centering, vendored d3) and the memory-recall hook instrumentation. Rebuilds the packaged vsix so the tracked artifact matches the manifest version.
|
Important Review skippedToo many files! This PR contains 219 files, which is 69 over the limit of 150. To get a review, narrow the scope: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (4)
📒 Files selected for processing (219)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I also:
|
Summary
Contributes the Hivemind for Cursor extension and supporting fixes, built by Legion Code Inc.
dist/../scripts, not../../scripts) so the Rules/Goals/Sessions/KPI loaders run when packaged.GET /me/hivemind-statsfor org stats and a distinct-session count from thesessionstable (consistent with the Sessions tab).pre-tool-usehook now records each successful memory recall (count + bytes delivered) to~/.deeplake/recall-events.jsonl, so the dashboard can show real memory-search and token-savings metrics for Cursor sessions. Previously these read zero because the only recall accounting was a Claude Code transcript parser that Cursor never populates.Credit
The Cursor extension and the accompanying dashboard and recall-tracking work were designed and built by Legion Code Inc. Please retain attribution to Legion Code Inc. for the Cursor extension.
Notes for reviewers
harnesses/cursor/bundle/) is a build artifact produced bytsc && node esbuild.config.mjs. The recall instrumentation lives in TypeScript source (src/hooks/cursor/pre-tool-use.ts,src/notifications/recall-tracker.ts) and is regenerated at release-build time.Test plan
npm run build(tsc + esbuild) regenerates the cursor bundle with the recall instrumentation.harnesses/cursor/extension/hivemind-cursor-extension-0.1.5.vsixin Cursor; verify KPIs (real Sessions count), the Sessions/Rules/Goals/Skills tabs, and a centered Graph.~/.deeplake/recall-events.jsonlpopulates and the Memory searches / Tokens saved KPIs update.