intelligence-engine

πŸ€– Generated by Smart Project Inventory MCP Server πŸ“… Last Updated: 2026-02-22 18:19:02 🎯 Analysis Mode: UPDATED πŸ“Š Version: 0.14.1


MANDATORY: SPINE Initialization β€” READ THIS FIRST

This project is SPINE-orchestrated. Before doing ANY work, read and follow:

Full Protocol: _protocols\SPINE-INIT.md WSL: _protocols/SPINE-INIT.md

Key Rules

  1. SPINE is READ-ONLY β€” never create/modify/delete files in ``
  2. Classify every task by tier (1/2/3) before starting
  3. State tier out loud before working: β€œSPINE Classification: Tier [1/2/3]”
  4. Use subagents for Tier 2/3 tasks (Explore, Plan, code-architect, etc.)
  5. Use MCP servers proactively β€” the right question is β€œwould this tool add value?” not β€œdo I need it?”

Tool Usage Expectations

Do not default to minimal tool usage. Proactively use available MCP servers and Claude Code native capabilities throughout every session. At session start, identify all available MCP servers (via .mcp.json and ToolSearch) and native capabilities (Task agents, Plan mode, parallel execution).


MANDATORY: SPINE Tiered Usage Protocol

This project uses SPINE for orchestration. You MUST follow the tiered enforcement protocol.

Quick Reference

Tier When Requirements
Tier 1 Single-file, simple tasks Direct implementation OK
Tier 2 Multi-file, new features SHOULD use subagents, document if skipped
Tier 3 Architecture, research, UI-heavy MUST use subagents and MCP

Full Protocol Location

_protocols\tiered-spine-usage.md

Or WSL: _protocols/tiered-spine-usage.md

Available Capabilities

Native Subagents (Task tool):

Subagent Model Purpose
Explore Fast Codebase exploration, file discovery
Plan Opus Architecture planning, implementation design
code-architect Opus System design, architectural decisions
research-coordinator Opus Multi-source research
context-engineer Opus Context stack design
visual-tester Haiku UI verification via browser

Model Strategy: Claude Opus 4.6 for all substantive work.

MCP Servers (23 available β€” full list, self-contained):

Server Use For
Research & Analysis Β 
research-agent-mcp Multi-stage research workflow
research-notes-mcp Parse, cluster, structure research notes
research-log-mcp Research logging with citations
evaluation-mcp Rubric-based scoring, ranking, verdicts
Project Management Β 
session-handover-mcp Session continuity and handover docs
next-conductor NEXT.md task tracking
paaf Project audits, doc health, technical debt
mcp-builder-mcp Pattern analysis, MCP generation (testing)
Documentation & Content Β 
manual-mcp Multi-part documentation manuals
showcase-mcp GitHub Pages showcase generation
content-mcp Semantic content orchestration (video/image/audio/text)
content-analyzer-mcp Content analysis, extraction, classification
smart-inventory CLAUDE.md generation
Infrastructure & Testing Β 
browser-mcp Browser automation, screenshots, click memory
content-extractor-mcp Screenshot analysis, OCR, UI region detection
mcp-server-checker MCP server validation and quality
8do-mcp Ralph loop task orchestration with verdict gates
8me-mcp Tier 3 workflow management
gen-loop-mcp Async task scheduling, loop execution
backup-mcp Project backup and restore
Context & Memory Β 
context-glue-mcp Context assembly, scenario composition, vocabulary
minna-memory Persistent entity memory across sessions (recommended)
Agent Communication Β 
agent-comm-mcp Inter-agent messaging, registry, relay

Minna Memory (mem-system-lite-mcp):

  • Per-project database at .spine/minna.db
  • Features: Cross-session memory, error pattern storage, context enrichment
  • Three MCP servers have built-in Minna adapters: session-handover-mcp, content-mcp, 8do-mcp

Before Completing Any Task

  1. Classify the task tier (1/2/3)
  2. If Tier 2: Use recommended capabilities or document why skipped
  3. If Tier 3: Use required capabilities, document usage

Documentation Template (Tier 2/3)

SPINE Usage (Tier [2/3]):
- Subagents used:
  - [subagent_type]: [purpose]
- MCP servers used:
  - [server]: [purpose]
- Screenshots: [location if applicable]
- Skipped (with reason): [capability]: [reason]

πŸ“‹ Project Overview

Type: Code Intelligence Tool Primary Language: Python 3.12 + TypeScript Framework: FastAPI (backend), React 18 (frontend), FastMCP (MCP server) Build System: Hatchling (Python), Vite 6 (frontend) Package Manager: uv (Python), npm (frontend)

πŸ“Š Project Statistics

  • Type: Code Intelligence Engine (AST-driven knowledge graphs + hybrid search + MCP server + web UI)
  • Version: 0.14.1
  • MCP Tools: 12
  • REST Endpoints: 23
  • Tests: 734
  • Languages Parsed: Python, JavaScript, TypeScript, TSX, Java, Go
  • Last Analysis: 2026-02-25

πŸ—οΈ Architecture Overview

Code Intelligence Engine β€” AST-driven knowledge graphs + hybrid search + MCP server + web UI.

See ai-memory/shared/architecture.md for full architecture diagram. See KB/CLAUDE.md for main instruction document.

Core Pipeline: Tree-sitter β†’ Knowledge Graph β†’ Hybrid Search β†’ MCP Server / Web UI

Components:

  • src/parser/ β€” Tree-sitter AST parsing, 6 languages (Python, JS, TS/TSX, Java, Go)
  • src/graph/ β€” Knowledge graph (NetworkX + KuzuDB dual-backend)
  • src/search/ β€” BM25 + Semantic (LanceDB) + Graph search with RRF fusion
  • src/mcp/ β€” FastMCP server (12 tools for AI assistants)
  • src/registry.py β€” Multi-project management
  • src/web/ β€” FastAPI backend (23 REST endpoints) + React frontend (Sigma.js graph explorer)
  • src/change_detector.py β€” Incremental indexing (git diff + hash fallback)
  • src/indexer.py β€” Shared pipeline with mode param (auto/full/incremental)
  • src/llm/ β€” LLM provider abstraction (Claude, OpenAI, Gemini, Ollama) + entity summarizer
  • src/quality.py β€” Code quality metrics (complexity, doc coverage, coupling, scores)
  • src/graph/clustering.py β€” Community detection (Louvain + label propagation)
  • src/index_history.py β€” Append-only performance history per project

Status: All phases complete (1-12 + Batch Summaries + Code Quality Metrics + UI Polish), 12 MCP tools, 23 REST endpoints, 734 tests.

πŸš€ Development Setup

cd intelligence-engine
python3 -m venv .venv
source .venv/bin/activate
# Use uv for all package management
uv pip install tree-sitter tree-sitter-python kuzu lancedb sentence-transformers rank-bm25 fastmcp pyyaml

See KB/REF-technology-stack.md for complete dependency list.

πŸ“š API Documentation

Add your API documentation here. This section is preserved during updates.

πŸ§ͺ Testing

Add your testing information here. This section is preserved during updates.

🚒 Deployment

Add your deployment notes here. This section is preserved during updates.

πŸ“ Team Notes

Project Identity:

  • Name: Intelligence Engine
  • Reference: [PROJ-EBQKC-TNHEV]
  • Path (Win): intelligence-engine
  • Path (WSL): intelligence-engine

Key Constraints:

  • Personal-use tooling β€” NOT enterprise
  • Fail loud, never silent
  • No backward compatibility
  • MVP-first, each phase building on the last
  • Reuse existing project code where possible
  • Local only β€” no data leaves the machine
  • Python 3.11+, use uv for packages

KB Reference Documents:

  • KB/CLAUDE.md β€” Main instruction
  • KB/REF-gitnexus-architecture.md β€” Architecture deep-dive
  • KB/REF-existing-projects-audit.md β€” 49+ project audit
  • KB/REF-implementation-phases.md β€” Step-by-step phases
  • KB/REF-mcp-integration-guide.md β€” MCP integration patterns
  • KB/REF-technology-stack.md β€” Technology choices

CRITICAL: Do NOT re-run analyze_project_smart without explicit instruction β€” it overwrites this file!

πŸ”„ Recent Activity

  • All 12 phases complete (AST Parsing through Graph Clustering + Batch Summaries + Code Quality Metrics + UI Polish)
  • Project Type: Code Intelligence Engine
  • Primary Technology: Python 3.12 + TypeScript (FastAPI + React 18 + FastMCP)

This documentation is automatically maintained by the Smart Project Inventory MCP Server.
Custom sections (between CUSTOM-START and CUSTOM-END markers) are preserved during updates.
Auto-updated sections are refreshed with each analysis.


This site uses Just the Docs, a documentation theme for Jekyll.