Parent label: devdevbuilds
Hive|Mind is a local-first, graph-primary knowledge intelligence workspace that imports developer-owned sources, normalizes them into a graph, and derives deterministic, evidence-backed signals from their structure.
Developer knowledge often starts in notes, source files, project docs, and repeated decisions that become hard to inspect as a whole. Hive|Mind treats that material as owned local data: sources are registered, imported explicitly, normalized into shared records, and projected into a Knowledge Graph that becomes the main workspace rather than a side panel.
The problem Hive|Mind is solving is not "generate more content." It is the quieter developer problem of remembering what exists, where it came from, how it connects, and which signals are trustworthy enough to review. Obsidian remains the writing and thinking layer; Hive|Mind is the structured layer above it, where imported knowledge becomes inspectable graph data.
The product direction is deliberately evidence-oriented. The app favors deterministic backend derivation, provenance, and read-only inspection before mutation or automation. The current Intelligence Report surfaces temporal decay, dreaming suggestions, provenance chains, and query trails as explainable outputs over existing store and graph structure.
Hive|Mind is also developing an Active Memory and Verification architecture: a contract-first layer for future tools and agents to read verified, evidence-linked project context before acting. Its implemented foundation includes deterministic context packets and a read-only inspector, plus a Repository Observer with bounded snapshot and drift APIs. Phase 37P completed and merged the explicit, on-demand drift workflow. Phase 38A defines safe multi-agent contribution contracts, and Phase 38B now implements their local PowerShell preflight pending independent audit.
- Source Registry: tracks local source metadata, status, and inspection details.
- Obsidian import: performs an explicit one-shot local import from developer-owned notes.
- Normalization: maps imported content into shared nodes, edges, sources, and metadata.
- Source ownership: keeps local source records visible rather than hiding imported material behind a black-box index.
- Knowledge Graph: presents normalized knowledge as the full-surface primary interface.
- Inspection: supports node, relationship, source, and contextual overlay inspection.
- Read-only interaction: graph exploration does not mutate source records or graph data.
- Console: exposes controlled app commands for read-only inspection and status checks.
- Temporal Knowledge Decay: derives freshness signals from stored timestamps.
- Dreaming Suggestions: derives conservative duplicate, orphan, and stale-link suggestions.
- Provenance Chains: traces source/import/node/edge lineage from existing records.
- Query Trails: derives structural follow-up, gap, and related-cluster trails.
- Evidence posture: every section returns honest empty states when the store does not support a claim.
- Implemented (contracts):
active-memory.v1backend Pydantic models and mirrored frontend TypeScript types for memory records, evidence records, verification state, lifecycle state, contradiction records, active-state results, and context packets. - Implemented (store): a deterministic, backend-only in-memory Active Memory store over the
MemoryRecordcontract — insert with duplicate-id rejection, retrieve by id with explicit not-found behavior, deterministic(created_at, record_id)listing, contract-backed filtering, table-driven lifecycle transitions with evidence/provenance preservation, and a versioned serialize/restore snapshot boundary. - Implemented (contradiction detection): a backend-only, read-only derivation service over the store that produces contract-valid contradiction records from stored fields alone —
pending_vs_merged,clean_vs_dirty_working_tree,duplicate_phase_status, andcurrent_vs_superseded_decision— with stable content-derived ids, conservative normalization (no ontology, fuzzy matching, or LLM),active-only eligibility, and preserved evidence. It mutates nothing and never auto-resolves a contradiction. - Implemented (context packets): a backend-only, deterministic, read-only packet builder that assembles active records, unresolved contradiction results, lifecycle warnings, verification counts, and rigid prohibited-assumption strings without authorizing actions.
- Implemented (context packet API):
POST /api/active-memory/context-packet, a thin, read-only, stateless endpoint over the existing builder — a validated request (project_id, caller-suppliedgenerated_at, optional exactscope, and the record set) returns the existingContextPacketcontract. It derives packets from request-supplied records only and mutates nothing. - Implemented (frontend inspector): a read-only Active Memory dock panel where a human explicitly supplies
MemoryRecordJSON, calls the stateless context-packet endpoint, and inspects the returnedContextPacketsections. It keeps entered data only in React state and provides no edit/delete/verify/supersede/retract/resolve controls. - Implemented (repository observer contracts): backend-only
repo-observer.v1Pydantic contract types for the planned Repository Observer, covering repository identity, conservative scope, snapshots, working-tree state, changed-file summaries, bounded evidence, evidence authority, warnings, limitations, overflow/truncation metadata, and completeness. - Implemented (deterministic Git adapter foundation): backend-only read-only adapter code that runs an allowlisted, bounded Git command set with
shell=False, parses NUL-delimited porcelain-v2 status evidence, and exposes deterministic low-level conversion helpers over the existing Phase 37I contracts. - Implemented (repository observation snapshot service): backend-only, request-triggered snapshot orchestration over the Git adapter. The service owns the Phase 37K observation boundary, applies conservative
ObserverScopelimit handling, rejects deferred scope features, preserves caller-supplied timestamps, and returns the existingRepositorySnapshotcontract without duplicating adapter parsing or conversion logic. - Implemented (repository observation API):
POST /api/repository-observer/snapshot, a thin read-only endpoint over the Phase 37K snapshot service. The request carries a local absoluterepository_root, caller-suppliedobserved_at, bounded file/snapshot limits, and optional existingObserverScope; the response is the existingRepositorySnapshotcontract with repository identity, working-tree state, changed files, evidence authority, warnings, limitations, overflow/truncation metadata, and completeness preserved. - Implemented (repository observer frontend inspector): a read-only contextual dock panel over
POST /api/repository-observer/snapshot. A human submits one bounded local repository observation request and inspects the returnedRepositorySnapshotsections, including repository identity, branch/HEAD, working-tree state, changed files, evidence, warnings, limitations, overflow/truncation, and completeness. Phase 37N verified and lightly hardened the integration for newest-request-only state updates, safe server-error display, exact endpoint presentation, and long-token wrapping. It keeps request data only in React state and adds no Git mutation controls, browser persistence, watcher, polling loop, ingestion, AI review, or dashboard replacement. - Implemented (repository drift analysis):
POST /api/repository-observer/driftremains the thin read-only API over the Phase 37O deterministic service, and the existing Repository Observer inspector provides an explicit Analyze Drift action. It presents status, baseline/current identity, change counts, bounded file observations, evidence, warnings, limitations, completeness, and overflow without persistence, watchers, background monitoring, or repository mutation. - Implemented locally (repository evidence projection, pending completed hardening and final review): a backend-only, deterministic, request/input-driven projection service that transforms existing Repository Observer results (
RepositorySnapshotplus optionalRepositoryDriftAnalysis) into bounded, always-inactivecandidate Active MemoryMemoryRecord/EvidenceRecordobjects with a closed repository-state claim vocabulary (including drift baseline commit and change-kind totals when drift input exists), claim-dependent verification states (observer evidence — including a complete-but-degraded drift analysis — is never automatically trusted), content-derived SHA-256 ids over all output-driving data, distinct input-owned observation and caller-suppliedrecorded_attimestamps, snapshot/drift identity consistency checks, credential-safe remote handling, referentially sound evidence bounding (no dangling evidence references), and explicit warnings/skipped observations/overflow. It is read-only and non-persistent: no endpoint, no watcher, no Active Memory store insertion, no ingestion, no active-state calculation, no contradiction resolution, no AI/LLM behavior, and no repository mutation. - Planned: active-state calculation, evidence resolution, ingestion, and any persistent Active Memory runtime.
- Boundary: the store is in-memory with a serialize/restore boundary only, evidence resolution remains deferred, and the API/UI surfaces remain read-only and stateless over caller-supplied records or explicit local repository observation requests — no database, file persistence, write endpoint, ingestion, runtime verification API, repository watcher, automatic resolution, action authorization, AI interpretation, autonomous mutation, or hidden Active Memory store exists yet.
- Spatial Hive: a 2.5D graph presentation with depth tiers, focus state, pointer orbit, momentum, and elastic node manipulation.
- Motion sandbox: an opt-in MediaPipe hand-tracking experiment derives hand orientation and gesture signals from all 21 landmarks.
- Status: the tracking foundation exists, but live gesture tuning remains paused and incomplete.
Current product pipeline:
Source
-> explicit import
-> normalization
-> local store
-> graph projection
-> deterministic intelligence
-> read-only inspection
Active Memory and Verification pipeline under development:
Evidence
-> memory record
-> verification and lifecycle state
-> contradiction analysis
-> bounded context packet
-> read-only explicit-record frontend inspection
-> read-only repository snapshot API
-> read-only repository snapshot frontend inspection
-> read-only repository drift analysis
-> planned active-state selection
The first pipeline is implemented across the current app surfaces. The second pipeline currently exists as merged contracts, a deterministic backend-only in-memory store, deterministic backend-only read-only contradiction detection, backend-only context packet generation, a read-only stateless context-packet endpoint, a read-only frontend inspector for user-supplied records, backend-only Repository Observer schema contracts, a backend-only deterministic Git adapter foundation, a backend-only repository observation snapshot service, a thin read-only snapshot API, a contextual read-only frontend inspector for explicit repository snapshots, and backend-only deterministic drift analysis from the current HEAD baseline; later phases will add active-state selection and ingestion.
These are real connected-runtime captures from docs/demo/screenshots/. They show implemented UI surfaces, not mockups.
Graph-primary surface
The Knowledge Graph fills the viewport with the app chrome and tools presented as contextual overlays.
Selected node with inspector
Selecting a node keeps the graph primary while opening a focused inspector for details and relationships.
Intelligence overlay
The Intelligence Report opens in context over the graph and shows backend-derived, read-only signals without claiming an Active Memory UI.
More screenshot history and QA notes live in the Phase 28C graph-primary evidence, Phase 33E Spatial Hive evidence, and screenshots directory. The Spatial Hive evidence set shows implemented 2.5D depth, focus, and presentation behavior; it does not claim live gesture tuning.
| Area | Status | Notes |
|---|---|---|
| Source Registry | Implemented | Local source metadata, status, and inspection. |
| Obsidian import | Implemented | Explicit one-shot local import; no watcher or write-back. |
| Knowledge Graph | Implemented | Graph-primary, read-only surface over normalized records. |
| Console | Implemented | Controlled app command surface, not arbitrary shell execution. |
| Intelligence Report | Implemented | Four deterministic backend-derived, read-only sections. |
| Spatial Hive | Implemented / experimental | Presentation-only 2.5D graph interaction. |
| Hand tracking | Experimental | Full-hand foundation exists; live tuning is paused. |
| Active Memory contracts | Implemented | Backend/frontend active-memory.v1 contract parity. |
| Active Memory store | Implemented | Deterministic backend-only in-memory store: insert, retrieve, ordered listing/filtering, lifecycle transitions, serialize/restore. |
| Active Memory contradiction detection | Implemented | Backend-only, read-only derivation of four contract contradiction classes from stored fields; stable ids, active-only eligibility, no mutation or auto-resolution. |
| Active Memory context packets | Implemented | Backend-only deterministic packet builder; no persistence, evidence resolver, action authorization, or automatic resolution. |
| Active Memory context packet API | Implemented | POST /api/active-memory/context-packet: read-only, stateless, non-mutating endpoint over the existing builder and ContextPacket contract. |
| Active Memory frontend inspector | Implemented | Read-only contextual dock panel over the stateless endpoint; records are explicitly supplied by the user and kept only in React state. |
| Repository Observer contracts | Implemented | Backend-only repo-observer.v1 schema foundation; no filesystem scan, endpoint, or persistence. |
| Repository Git adapter | Implemented | Backend-only deterministic read-only Git command adapter and porcelain-v2 parser; no watcher, API, persistence, ingestion, or repository mutation. |
| Repository snapshot service | Implemented | Backend-only request-triggered service over the Git adapter; no watcher, persistence, ingestion, frontend, or mutation. |
| Repository observation API | Implemented | POST /api/repository-observer/snapshot: thin read-only endpoint over Phase 37K using the existing snapshot contract. |
| Repository observer frontend inspector | Implemented | Contextual graph-first dock panel over the snapshot API, verified and hardened in Phase 37N; no Git dashboard, watcher, persistence, ingestion, AI review, or mutation. |
| Repository drift analysis | Implemented / merged | POST /api/repository-observer/drift plus an explicit frontend inspector action over the Phase 37O service; no persistence, watcher, background monitoring, Active Memory ingestion, AI/LLM behavior, or mutation. |
| Agent Lab contribution governance | Implemented locally / pending independent audit | Phase 38A documentation contracts plus Phase 38B dependency-free, read-only PowerShell enforcement for repository, Git, session, and JSON composition-manifest state, and a Phase 38C documentation-only Agent Session Pack connecting the policy to the executable preflight. |
| Repository evidence projection | Implemented locally / pending completed hardening and final review | Phase 39A backend-only deterministic projection of Repository Observer results into bounded, always-inactive candidate Active Memory records with claim-dependent verification, distinct observation/recording timestamps, and referentially sound evidence bounding; no endpoint, persistence, ingestion, store insertion, watcher, active-state calculation, contradiction resolution, AI/LLM behavior, or repository mutation. |
| Repository workspace configuration | Implemented locally / pending independent audit | Phase 39B local-only, versioned repository-workspaces.v1 registry with a deterministic configuration service (OS-appropriate path resolution, atomic corruption-resistant writes, credential-safe remotes, typed failure states, read-only availability diagnostics reusing the Git adapter), a narrow resolve_active_repository_workspace seam for a future Repository Observer phase, and a PowerShell operator tool; no watcher, polling, automatic observation, Active Memory ingestion, frontend editor, database, or repository mutation. |
| Managed local runtime | Implemented locally / pending independent audit | Phase 39C one-command runtime launcher that starts the backend and frontend together, verifies real readiness, and stops only its managed processes (identity-gated by PID + creation time + command-line signature). It resolves the repository through the Phase 39B workspace config and keeps bounded, secret-free runtime metadata/logs outside the repository; no service installer, container system, background daemon, dependency installation, or process termination by generic name. |
| Active Memory runtime | Planned | Active-state calculation, write endpoints, durable memory, ingestion, and evidence resolver are not implemented. |
- Frontend: React, TypeScript, Vite, plain CSS.
- Backend: Python, FastAPI, Pydantic.
- Storage: local JSON-backed
HiveStoremodel and source records. - Contracts: Pydantic models mirrored by TypeScript types; Phase 37B adds Active Memory contract parity tests.
- Source integration: Obsidian adapter and import service.
- Visualization: custom SVG and canvas-oriented graph presentation, without a graph-library dependency.
- Motion experiment: MediaPipe Hand Landmarker pinned through
@mediapipe/tasks-vision. - Validation:
pytestfor backend checks; frontend build/type checks through Vite/TypeScript.
The backend is the source of truth for contracts and deterministic derivation. The frontend consumes those shapes directly and keeps visualization state separate from graph data, so orbiting, selecting, focusing, and experimental gesture input remain presentation behavior unless a later phase explicitly adds a reviewed mutation path.
That separation is important: the app can become richer visually without confusing exploration with data change.
- Local-first ownership of developer data.
- Contracts before runtime expansion.
- Deterministic and inspectable derivation.
- Evidence and provenance before automation.
- Read-only intelligence before mutation.
- Clear implemented-versus-planned boundaries.
The technical credibility of the project comes from those principles being visible in code and docs: API shapes are documented, Pydantic models carry validation boundaries, frontend types mirror backend contracts, intelligence sections are derived from existing records, and limitations are written down instead of hidden. The system is intentionally modest in runtime ambition today, but its contracts are built so later persistence, memory inspection, and verification work can land without pretending the runtime already exists.
Prerequisites: Node.js 20+ and Python 3.11+.
Set-Location "C:\path\to\hive-mind"
npm install
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -r apps/backend/requirements-dev.txtRun the backend:
npm run dev:backendRun the frontend in another terminal:
npm run dev:frontend- Frontend: http://localhost:5173
- Backend: http://localhost:8787
- Health endpoint: http://localhost:8787/api/health
- API documentation: http://localhost:8787/docs
The frontend uses VITE_API_BASE_URL=http://localhost:8787/api when configured from .env.example, and falls back to the same local backend URL when unset.
Once you have registered the Hive|Mind workspace, you can start both services with a single command instead of two terminals:
.\scripts\runtime\Invoke-HiveMindRuntime.ps1 start # start backend + frontend, wait for readiness
.\scripts\runtime\Invoke-HiveMindRuntime.ps1 status # read-only health report
.\scripts\runtime\Invoke-HiveMindRuntime.ps1 stop # stop only the managed processesIt launches the same backend (8787) and frontend (5173), waits for both to
become reachable, and stops only the processes it started. See the
managed local runtime guide for details.
npm run check:frontend
npm run check:backendThe root check script runs both validation commands.
Hive|Mind is currently a local, single-user developer tool. It has no authentication, authorization, multi-user support, cloud sync, or production deployment hardening. Obsidian import is explicit and one-shot; there is no live vault watcher and no write-back. The Knowledge Graph and Intelligence Report are read-only, and suggestions are advisory only. Query-history persistence remains absent, so query-history-dependent categories stay deferred. The Active Memory store is deterministic but in-memory only (a serialize/restore boundary, no committed persistence medium); contradiction detection is backend-derived, read-only, and covers four of the five contract classes (frontend_only_vs_backend_modification is deferred, and no automatic resolution exists); the context packet endpoint and inspector are read-only and stateless — they derive packets from records explicitly supplied in the current request, with no server-side memory store, persistence, ingestion, evidence resolver, AI interpretation, action authorization, or mutation controls. The Repository Observer now has backend schema contracts, a deterministic read-only Git adapter foundation, a backend-only request-triggered snapshot service, a thin local API for explicit snapshot requests, a contextual frontend inspector for one-shot snapshot visibility, and backend-only drift analysis from the current HEAD baseline. It still has no watcher, polling loop, persistence, ingestion, Git write operation, AI review, or production-ready runtime. Gesture tracking remains experimental and needs live tuning. The product does not run autonomous agents or mutate repositories.
The active local contribution is:
38A - Multi-Agent Contribution Contracts + Composition Governance
(implemented locally / pending independent audit)
Phase 37P is complete and merged. Phase 38A adds the documentation-only Agent Lab contribution contracts. Phase 38B adds a local PowerShell governance preflight; it is implemented locally and pending independent audit, with no hook, CI, or autonomous Git behavior. Phase 36K remains paused, not canceled or completed. Active Memory continues to govern project data and verification architecture while Agent Lab governs contribution workflow. The complete chronology belongs in the roadmap.
- Full roadmap
- API contract
- Active Memory and Verification reference
- Agent Lab contribution governance
- Agent session launch guide
- Managed local runtime guide
- Phase 37A Active Memory planning
- Phase 37H Repository Observer planning
- Intelligence Surface Plan
- Security threat model and vulnerability test plan
- Demo guide
- Final demo script
- Portfolio presentation lock
- Frontend asset contract
- Latest Spatial Hive evidence
Hive|Mind demonstrates full-stack ownership across a React/FastAPI application, contract-driven backend design, local data handling, deterministic intelligence derivation, provenance modeling, graph visualization, security reasoning, and disciplined documentation. Its portfolio value is not that it claims to be a finished platform; it is that it keeps the product boundary honest while steadily turning developer knowledge into inspectable structure.



