spec-gen (OpenLore) — Summary
spec-gen has been renamed to OpenLore (npm install -g openlore, CLI binary openlore). It is a TypeScript/Node.js CLI tool that turns any codebase into a persistent architectural knowledge graph backed by OpenSpec living specifications. Three independent layers: (1) static analysis builds a call graph, cluster map, and McCabe complexity index into .openlore/analysis/CODEBASE.md; (2) spec layer generates LLM-backed OpenSpec living specs, drift detection, and ADR gates; (3) agent runtime exposes 45 MCP tools (including orient()) that replace exploratory file reads with targeted graph queries. The Epistemic Lease tracks session context decay — when an agent cross-module trajectory degrades architectural confidence, escalating signals force orient() re-calls. Ships 7 skills for Claude Code integration plus an AGENTS.md "code archaeologist" persona. Claimed 430µs p50 orient() against a 15k-node TypeScript codebase.
Differs from seeds: Closest to ccmemory (persistent memory via MCP) and spec-driver (living specs + skills), but openlore is uniquely a code-archaeology framework — it reverse-engineers specifications from existing code rather than writing specs for new code. The Epistemic Lease (cross-module trajectory model for architectural confidence decay) and orient() as a file-read replacement are novel. Unlike ccmemory (Neo4j graph), openlore uses SQLite with label-propagation community detection. Unlike taskmaster-ai (task management MCP), openlore's 45 tools focus entirely on structural orientation and drift awareness.