LogNexus
OfficialA Git-native memory and traceability layer for AI coding agents — it persists session state, enforces subtask file contracts, and makes every commit reviewable and auditable.
Inspect the workspace (
lognexus_status): cheap read-only snapshot of branch, active issue, routing mode and recommended model tier.Read and sync agent state (
lognexus_state_get,lognexus_state_sync): get the stored contract/completed subtasks, or reconcile state with the Git branch and GitHub metadata after checkout, rebase or PR.Manage subtasks (
lognexus_state_set_task,lognexus_state_finish_task,lognexus_state_clear): open a subtask with allowed/forbidden files, decision budget, tier and verification command; mark it done; or destructively reset all state.Make atomic commits (
lognexus_commit): one call creates a conventional commit with authorship trailers, validates the file contract, optionally finishes the subtask and attaches the Git Note; refuses protected branches and out-of-contract files.Work with Git Notes (
lognexus_note_show,lognexus_note_attach): read the parsed note payload on a commit, or backfill/repair a missing note on an existing commit.Reconstruct PR history (
lognexus_timeline): render the branch journey as a Markdown table, JSON, or ready-to-paste PR body.Audit before merge (
lognexus_audit): pass/fail check on commit format,Authored-bytrailers, note coverage, subtask contracts and author/reviewer separation (self-approval detection).Measure locally (
lognexus_telemetry): status, enable, disable, inspect, report or clear strictly local zero-network, zero-PII metrics (.lognexus/telemetry.json) with cost-savings estimates.
Provides a Git-backed knowledge graph and workflow: creates task branches, atomic task-scoped commits with trailers, attaches Git Notes under refs/notes/lognexus without changing commit SHAs, reconstructs branch timelines, and audits review-gate separation.
Integrates with GitHub issues and pull requests: turns plans into structured issues with subtasks, updates issue progress from commits, and compiles commit/discovery history into PR journey timelines for review.
LogNexus — Git-Native Memory & MCP Server for AI Coding Agents
What is LogNexus?
As AI coding agents take on complex engineering tasks across different IDEs, they suffer from a fundamental failure mode: cognitive amnesia. Between conversation resets, context compactations, model handoffs, and unexpected bugs, the why behind design decisions, discarded alternatives, and technical discoveries vanishes.
LogNexus transforms Git and GitHub into a persistent, traceable knowledge graph. It is a 100% generic, model-agnostic and editor-agnostic framework that operates directly inside your native AI development environments:
Clients: Claude Code, Cursor, Codex, GitHub Copilot, Google Antigravity, Kimi Code, VS Code, Zed.
Models: Anthropic Claude (
Claude Fable 5.2,Claude Mythos 5.2,Claude Opus / Sonnet / Haiku 5.5), Google Gemini (Gemini 4 Neon/Orchestrator (Neon),Gemini 4 Carbon,Gemini 4 Argon,Gemini 4 Hydrogen,Gemini 3.8 Pro & Flash), OpenAI (GPT-6-Cyber,GPT-6.2 Astra,GPT-6.2 Sol,GPT-6 Luna,codex-mini,o4), DeepSeek (DeepSeek V4-Pro,DeepSeek V4.1-Flash,R1,V3,Chat), xAI (Grok 4.7), Z.ai (GLM-5.3), Alibaba (Qwen4 Max), Moonshot AI (Kimi K3.1 Pro,Kimi K3/ Kimi Code).Supported Platforms: Linux, macOS, and Windows (
linux,darwin,win32— 100% cross-platform Node.js >= 20 & Git >= 2.28, zero native binary dependencies).
Issues (Why & Goals) ──▶ Branches (Task Scopes) ──▶ Commits (Context & Diffs) ──▶ PR (Timeline & Review)
▲ │
└─────────────────────── Git-Backed Knowledge Graph ──────────────────────────────┘Framework, Not an API Proxy: LogNexus never intercepts network calls or wraps vendor APIs. Your models remain inside their native IDEs with full access to editor buffers, interactive diff viewers, terminals, MCP servers, and local tools.
Related MCP server: total-agent-memory
Key Features
Universal Multi-Model Support: Native cognitive guidelines and prompt specifications for Anthropic Claude (
Claude Fable 5.2,Claude Mythos 5.2,Claude 5.5), Google Gemini (Gemini 4 Neon/Orchestrator (Neon),Gemini 4 Carbon,Gemini 4 Argon,Gemini 4 Hydrogen,Gemini 3.8 Pro & Flash), OpenAI (GPT-6-Cyber,GPT-6.2 Astra,GPT-6.2 Sol,GPT-6 Luna,codex-mini,o4), DeepSeek (DeepSeek V4-Pro,DeepSeek V4.1-Flash,R1,V3,Chat), xAI (Grok 4.7), Z.ai (GLM-5.3), Alibaba (Qwen4 Max), and Moonshot AI (Kimi K3.1 Pro,Kimi K3/ Kimi Code).Universal Client Compatibility: Drop-in support for Claude Code, Cursor, Codex, GitHub Copilot (
.github/copilot-instructions.md), Google Antigravity, and Kimi Code / VS Code.Adaptive Ecosystem Routing & Native Swarm Coordination: Declarative
.lognexus/routing.md(orchestration: auto | swarm | subagent | off,review_gate: auto | intra-fleet | cross-vendor | advisory | off,implementer: auto,reviewer: auto) with Hard Turn-1 Discovery Probes (> 3files), immediate Swarm UI handoff, and native Swarm contract flags (--assignee,--isolation swarm,--swarm-workers,--swarm-posts).Atomic Commit Engine (
lognexus commit& MCPlognexus_commit): Validates subtask file contracts, verifies reviewer separation, injects authorship trailers, commits changes, marks subtasks completed, and attaches Git Notes in a single ~0.15s execution.Cross-Model & Intra-Fleet Distinct-Model Review Gates: Non-negotiable review separation (
Authored-by:vsReviewed-by:) enforced both at pre-flight note attachment time and during branch audits. Supports cross-vendor review, intra-fleet distinct-model review (Neon/Carbon/ArgonreviewingHydrogen/Flash;GPT-6.2 AstrareviewingSol/Luna;Fable/OpusreviewingSonnet), shared-weights blocking (Fable <-> Mythos), andadvisory/offmodes for single-session ChatGPT or solo workflows—never forcing cross-vendor review—with strict anti-spoofing and mandatory--no-ffmerges.Contract-First Subtasks & Alphanumeric Tickets: Tasks are bounded by strict decision budgets, file allowlists, and stop conditions—supporting both GitHub issues (
feat(#42/T1)) and Jira/Linear ticket schemes (feat(SLM-201/T1)).Persistent State & Session Recovery: Local session state engine (
.lognexus/state.json) prevents amnesia across context compactations and conversation resets, retaining completed subtask metadata through the closing commit.Automated Context Handoff (
lognexus handoff): Regenerates a complete.lognexus/handoff.mdfrom local state — cycle state, active subtask contract, live scope-drift report, completed-subtask table and next required action — so a fresh session (or a different model) resumes without re-deriving context. Auto-refreshed onstate set-taskand on every--finish-taskcommit.Live Scope-Drift & Environment Guard (
lognexus status/lognexus doctor): Diffs the working tree against theallowedFilesof the active contract on every status and diagnostic run, catching out-of-contract writes before they reach a commit. Supportslognexus doctor --mcpto validate cross-platform MCP client setups and.lognexus/policy.jsonschemas.Memory Recall & Notes Export (
lognexus note search/lognexus note export): Queries the LogNexus Git Notes history by file, model, issue or free text, returning the newest matches first, or exports causation-preserving JSONL notes (note export) for offline auditing and session handoffs.Startup Update & Legal Terms Gate: A non-interactive gate surfaces update and legal-terms requirements at CLI startup, consulting the npm registry through
execFileSyncwithshell: falseand a 2500 ms timeout. The MCP transport is exempt.Git Notes Engine (Quiet Mode /
git-aiv3): Attaches structured session payloads and contracts to commits underrefs/notes/lognexuswithout changing commit SHAs.Native MCP Stdio Server (
lognexus mcp): Zero-dependency JSON-RPC 2.0 stdio server exposing LogNexus tools, live state resources, and prompts to Claude Desktop, Cursor, and any MCP client.Journey Timeline & Review Gate Audit: Reconstructs the complete branch journey into structured PR descriptions (
lognexus timeline --pr-body) and programmatically audits review gate separation (lognexus audit) under.lognexus/policy.jsonprofiles (default,incremental,strict) with a hardcoded review-gate error floor.Hidden Metadata Envelopes: HTML comments preserve machine-parseable state (
<!-- lognexus: kind: state ... -->) without cluttering human-readable markdown.Scaffolding & Health CLI (
@digital-lake/lognexus): Lightweight CLI for repository scaffolding (init), health diagnostics (doctor), and real-time status inspection (status).Optional Multi-Model Token Shield (
init --protect-tokens[=strict|types]): Opt-in, zero-runtime-overhead workspace hygiene flag that scaffolds official context-exclusion and root-anchored read-deny rules (.geminiignore,.aiexclude,.cursorignore,.claude/settings.jsoncovering monorepo**/node_modules/**, lockfiles,dist/**,dist-pypi/**,.next/**,.venv/**,__pycache__/**,.lognexus/**/*.jsonl,.rooignore,.codeiumignore,.aiderignore) tailored to the agent ecosystems detected in your repository—preventing accidental token leakage on lockfiles and build artifacts without touching the MCP server. Supportsstrict(default) and opt-intypes(allows Claude Code toRead.d.ts/.mts/.ctsdeclarations innode_modulesacross root and monorepo packages while still denying JS/WASM/binary/cache/lockfiles and keeping IDE ignore files excludingnode_modules/).
Model-Tier Routing Matrix
LogNexus organizes development phases into three cognitive tiers. You can assign any model or native client to any tier according to your team's workflow and cost preferences:
Operational Tiers
Tier | Cognitive Role | Anthropic Claude | OpenAI | Google Gemini | DeepSeek | Primary Activities |
tier-1 (Reasoning) | Deep synthesis, architectural design, narrative review | Claude Fable 5.2 / Mythos 5.2 / Opus 5.5 | GPT-6.2 Astra, GPT-6-Cyber, o4 | Gemini 4 Neon / Carbon / Argon, 3.8 Pro | DeepSeek R1 / V4-Pro | Brainstorming-to-issue planning, PR journey timeline synthesis, cross-model & intra-fleet review sign-offs. |
tier-2 (Context & Triage) | Long context ingestion, discovery triage, structured mapping | Claude Sonnet 5.5 | GPT-6.2 Sol, Codex, gpt-oss | Gemini 4 Hydrogen, Gemini 3.8 Flash High / Pro (1M) | DeepSeek V3 | Large codebase exploration, discovery classification, scoped implementation, knowledge retrieval. |
tier-3 (Execution) | Surgical implementation, template filling, fast execution | Claude Haiku 5.5 | GPT-6 Luna, codex-mini, o4-mini | Gemini 3.8 Flash, | DeepSeek V4.1-Flash / Chat (V3) | Subtask commits ( |
Adaptive Routing & Deployment Setups
LogNexus adapts automatically to single-provider and multi-vendor toolstacks. Configure .lognexus/routing.md with linear O(n) directives:
routing: confirm
orchestration: auto
review_gate: auto
implementer: auto
reviewer: autoorchestration:auto | swarm | subagent | off(autoactivates nativeswarmunder AntigravityOrchestratorafter plan confirmation).review_gate:auto | cross-vendor | intra-fleet | advisory | off(autoresolves tointra-fleetdistinct-model verification when running in a single-provider fleet; ChatGPT / OpenAI Codex workflows never force cross-vendor review, and single-session solo workflows may useadvisoryoroff).
┌──────────────────────────────────────────────────────────────────────────────────────────┐
│ POPULAR DEPLOYMENT SETUPS │
├──────────────────────────────────────────────────────────────────────────────────────────┤
│ Setup A (Claude Code): Claude Fable 5.2 / Opus 5.5 (t1) + Sonnet (t2) + Haiku (t3) │
│ Setup B (Antigravity Fleet): Gemini 4 Neon/Carbon/Argon (t1) + Hydrogen/Flash (t2/t3) │
│ Setup C (ChatGPT / Codex): GPT-6.2 Astra (t1) + GPT-6.2 Sol (t2) + GPT-6 Luna (t3) │
│ Setup D (Cross-Vendor): Claude Fable 5.2 / Opus (t1) + GPT-6 Luna / DeepSeek (t3) │
└──────────────────────────────────────────────────────────────────────────────────────────┘Quickstart & Golden Path
LogNexus coordinates the full issue-to-merge lifecycle through intuitive slash commands:
1. Capture the Plan
/lognexus planTransforms an exploratory brainstorm into a structured GitHub Issue with discrete subtasks (T1..Tn), verification criteria, and tier tags.
2. Start Work on a Clean Branch
/lognexus start <issue-number>Creates an ID-prefixed branch (issue/<id>-<slug>) from the default branch tip and logs a signed [lognexus/session-start] note.
3. Commit with Traceability
/lognexus commitStages changes and generates structured, task-scoped commits (feat(#42/T1): ...) paired with an issue progress update.
4. Synthesize the Pull Request
/lognexus prCompiles all commits, discoveries, discarded alternatives, and verification steps into a comprehensive Journey Timeline inside the PR description.
5. Cross-Model Review & Gate Verification
/lognexus reviewAn independent model inspects the PR diff, verifies task contracts, and signs off (Reviewed-by: <model>) before merge.
Installation & Setup
1. Scaffold Rules & Manage State with the CLI
Initialize .lognexus/ rules, templates, and routing configuration:
npx @digital-lake/lognexus init
# Optional: scaffold official multi-model context-exclusion rules (zero runtime overhead)
# to prevent agents from burning tokens on lockfiles or build directories:
npx @digital-lake/lognexus init --protect-tokens # strict mode (default)
npx @digital-lake/lognexus init --protect-tokens=strict # explicit strict mode
npx @digital-lake/lognexus init --protect-tokens=types # opt-in Claude Code .d.ts profile
# Optional: pre-seal local telemetry consent in an interactive human terminal
npx @digital-lake/lognexus init --enable-telemetry
npx @digital-lake/lognexus init --no-telemetryToken Shield Profiles & Boundaries (strict vs types)
strict(default): DeniesRead(**/node_modules/**)in.claude/settings.json(covering monorepo workspaces), uses root-anchored/rules (such asRead(/package-lock.json)andRead(/.lognexus/**/*.jsonl)), and excludesnode_modules/plus.lognexus/**/*.jsonlin all IDE ignore files.types(opt-in): ReplacesRead(**/node_modules/**)in.claude/settings.jsonwith 12 granular deny rules (Edit(**/node_modules/**),.js/.mjs/.cjs/.map/.wasm/.node,.cache/**,.vite/**,.package-lock.json,.pnpm/lock.yaml,.yarn-state.yml), permitting Claude Code toRead.d.tsdeclarations across root and monorepo workspaces when needed. Transitions betweenstrictandtypes(and upgrades from1.6.0–1.6.2) prune legacy managed rules safely while preserving user custom rules.Operational boundaries of
typesmode:Claude Code only:
typesapplies ONLY to.claude/settings.json..geminiignore,.aiexclude,.cursorignore,.rooignore,.codeiumignore, and.aiderignorekeepnode_modules/excluded so IDE indexers do not thrash.Residual
Greprisk insidenode_modules: Claude Code evaluatesReaddeny rules on searched paths/directories, soGrepinsidenode_modules/<pkg>can still match minified bundles. Inspect the package'spackage.jsontypesentry andReadthe.d.tsfile directly instead of greppingnode_modules/.Real
Bashbehavior: Claude Code applies deny rules to recognized file commands (cat,head,tail,sed,tee) and shell redirections, whereasgrep -rfrom a parent directory or Node/Python subprocesses bypass file-read deny rules without OS-level sandboxing.Scope precedence: A
Read(**/node_modules/**)(or legacyRead(./node_modules/**)) deny rule in user settings, managed settings, or.claude/settings.local.jsonoverrides project-leveltypesmode.
Verify your environment anytime (including multi-manifest SemVer drift checks and MCP client configuration health across Claude Desktop, Cursor, Google Antigravity ~/.gemini/config/mcp_config.json & .agents/mcp_config.json, ~/.cursor/mcp.json, and ~/.claude.json):
npx @digital-lake/lognexus doctor
npx @digital-lake/lognexus doctor --mcpInspect active branch, ecosystem profile, review gate mode, and tier advisory:
npx @digital-lake/lognexus statusManage persistent agent state (.lognexus/state.json), native swarm contracts, and session recovery:
npx @digital-lake/lognexus state sync
npx @digital-lake/lognexus state show
npx @digital-lake/lognexus state set-task T1 "Add user schema" \
--assignee "google/gemini-4-hydrogen-high (antigravity)" \
--isolation swarm --swarm-workers 2 --swarm-posts 4 \
--allowed "src/schema.ts,tests/schema.test.ts" \
--verify "npm test"
npx @digital-lake/lognexus state finish-task T1Execute an Atomic Commit (validates subtask contract, enforces review-gate separation, injects trailers, commits, marks subtask completed, and attaches Git Note in a single ~0.15s call):
npx @digital-lake/lognexus commit -m "feat(#42/T1): add user schema" \
--author "google/gemini-4-hydrogen-high (antigravity)" \
--stage-allowed \
--swarm-workers 2 --swarm-posts 4 \
--finish-task
# Or read message from file (cross-platform on Linux, macOS, and Windows shells):
npx @digital-lake/lognexus commit -F commit-msg.txt --stage-allowed --finish-taskQuiet Mode with Git Notes (refs/notes/lognexus, standard git-ai v3):
npx @digital-lake/lognexus note attach HEAD --swarm-workers 2 --swarm-posts 4
npx @digital-lake/lognexus note show HEAD
npx @digital-lake/lognexus note push origin
npx @digital-lake/lognexus note export --since main -o notes.jsonlJourney Timeline reconstruction and Review Gate audit (configured via .lognexus/policy.json with default, incremental, strict profiles and a non-overridable review-gate error floor):
npx @digital-lake/lognexus timeline main
npx @digital-lake/lognexus timeline main --pr-body
npx @digital-lake/lognexus audit mainSession continuity, scope-drift and memory recall:
# Regenerate .lognexus/handoff.md from live state (--json or --prompt for compact agent dispatch)
npx @digital-lake/lognexus handoff
npx @digital-lake/lognexus handoff --prompt
npx @digital-lake/lognexus handoff --json
# Inspect the working tree against the active subtask contract and validate MCP client health
npx @digital-lake/lognexus status
npx @digital-lake/lognexus doctor
npx @digital-lake/lognexus doctor --mcp
# Recall past reasoning from Git Notes or export topological JSONL
npx @digital-lake/lognexus note search "scope drift"
npx @digital-lake/lognexus note search --file src/cli.ts
npx @digital-lake/lognexus note search --issue 30 --limit 5
npx @digital-lake/lognexus note search --author "deepseek" --json
npx @digital-lake/lognexus note export --issue 30 -o notes.jsonlOpt-in Telemetry 2.0, LOC-Weighted ROI & Cohort Benchmarks (100% local, zero network calls):
# Check telemetry status (disabled by default, 0% overhead; interactive [y/N] Policy v2.0.0 gate on human TTY)
npx @digital-lake/lognexus telemetry status
# Enable or disable local telemetry (stores metrics only in .lognexus/telemetry.json, schemaVersion 2.0.0)
npx @digital-lake/lognexus telemetry enable
npx @digital-lake/lognexus telemetry disable
# Generate .lognexus/telemetry.md report with LOC-weighted ROI (optionally scoped in-memory)
npx @digital-lake/lognexus telemetry report
npx @digital-lake/lognexus telemetry report --issue 42 --since 2026-11-01T00:00:00Z --branch main
# Inspect the exact Zero-PII payload structure (optionally scoped in-memory)
npx @digital-lake/lognexus telemetry inspect --issue 42
# Export an offline Zero-PII snapshot and aggregate multi-repo cohort benchmarks locally
npx @digital-lake/lognexus telemetry snapshot -o .lognexus/snapshot-v2.json --issue 42
npx @digital-lake/lognexus telemetry benchmark ./snapshots -o .lognexus/cohort.md --json
# Zero-token multi-repo cohort discovery, incremental watermark deltas & site JSON export
npx @digital-lake/lognexus telemetry benchmark --discover .. --watermark .lognexus/cohort-watermark.json --update-watermark --site-json site/cohort-metrics.json--discover <dir>: Scans immediate child repositories (skipping.git,node_modules, and hidden directories) read-only for.lognexus/snapshot-v2.jsonor.lognexus/telemetry.jsonwithout mutating any sibling repository.--watermark <file>&--update-watermark: Computes incrementaldeltametrics (newProjects,changedProjects,deltaCommits,deltaCostSavingsUsd,deltaTokensSaved) since the last review without waking extra agent turns.--site-json <file>: Emits a compact (< 2 KB), strictly Zero-PII JSON summary (capped at 12 ISO weeks, zero project IDs, names, or paths) for static dashboards.
Telemetry 2.0 is strictly local-only: zero network egress, zero PII, and O(1) fail-silent passive hooks (100% silent in automated agent sessions). Sealed GDPR consent (Policy v2.0.0) pauses automatically on material policy bumps until a human re-confirms in an interactive terminal. The retired --share --accept-terms flags fail with an explicit error, and pre-2.0.0 stores migrate to local / schemaVersion: "2.0.0" on save.
Read our strict Zero-PII, zero-network policy in docs/TELEMETRY_PRIVACY.md.
CLI-First vs. MCP Token Efficiency
When operating inside shell-capable coding agents (Antigravity, Claude Code, Cursor Agent, Codex CLI, Kimi Code), invoking the LogNexus CLI directly (npx @digital-lake/lognexus ...) avoids loading all 12 MCP tool schemas into every turn's prompt context—saving hundreds of input tokens per turn while preserving identical Git Notes and contract guarantees. Use the MCP server (lognexus mcp) when connecting GUI/desktop clients (Claude Desktop, IDE MCP panels) or workflows that require lognexus:// live resources and lognexus-plan / lognexus-review prompts.
For mechanical release bumps (--budget none), evaluateContextBudget() automatically exempts declarative release manifests (package.json, pyproject.toml, Cargo.toml, server.json, tauri.conf.json, Dockerfile, and .claude-plugin/plugin.json) alongside generated lockfiles so multi-surface version bumps never trigger false context-budget warnings.
2. Connect via Model Context Protocol (MCP)
LogNexus includes a native, lightweight JSON-RPC 2.0 stdio server (lognexus mcp) with zero external SDK dependencies, exposing 12 annotated MCP tools (with standardized RFC ToolAnnotations: readOnlyHint, destructiveHint, idempotentHint, openWorldHint), 3 live resources, and 2 prompts. Connect it to Google Antigravity, Claude Desktop, Cursor, or any MCP-compliant client:
Google Antigravity Setup (~/.gemini/config/mcp_config.json or workspace .agents/mcp_config.json):
{
"mcpServers": {
"lognexus": {
"command": "npx",
"args": ["-y", "@digital-lake/lognexus", "mcp"],
"eager": true
}
}
}Tip for Antigravity: Add
"eager": trueso Antigravity pre-warms the MCP server and registers tools eagerly on session startup.
Claude Desktop, Cursor & VS Code Setup — configuration files:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonor~/.claude.jsonLinux:
~/.config/Claude/claude_desktop_config.jsonor~/.claude.jsonWindows (Classic Installer):
%APPDATA%\Claude\claude_desktop_config.jsonor~/.claude.jsonWindows (Microsoft Store / MSIX):
%LOCALAPPDATA%\Packages\Claude_*\LocalCache\Roaming\Claude\claude_desktop_config.json(auto-detected and validated bynpx @digital-lake/lognexus doctor --mcp)Cursor / VS Code:
~/.cursor/mcp.json,.cursor/mcp.jsonor.vscode/mcp.json
{
"mcpServers": {
"lognexus": {
"command": "npx",
"args": ["-y", "@digital-lake/lognexus", "mcp"]
}
}
}Or install automatically via Smithery:
npx -y @smithery/cli install @digital-lake/lognexus --client claudeOr run via Python (uvx / pip from PyPI):
# Zero-install MCP stdio launch via uvx:
uvx lognexus-mcp
# Or install globally via pip / pipx:
pip install lognexus-mcpExposed Capabilities & RFC ToolAnnotations:
12 Annotated Tools:
Read-Only (5 tools):
lognexus_status,lognexus_state_get,lognexus_note_show,lognexus_timeline,lognexus_audit(readOnlyHint: true,destructiveHint: false,idempotentHint: true,openWorldHint: false).Non-Destructive Write (5 tools):
lognexus_state_sync,lognexus_state_set_task,lognexus_state_finish_task,lognexus_commit,lognexus_note_attach(readOnlyHint: false,destructiveHint: false,openWorldHint: false).State-Reset (2 tools):
lognexus_state_clear(destructiveHint: true),lognexus_telemetry(destructiveHint: false).
3 Live Resources:
lognexus://state,lognexus://routing,lognexus://handoff2 Prompts:
lognexus-plan,lognexus-review
3. Install Rules in Your Agent Environment
Claude Code:
claude plugin add digital-lake-ai/lognexusCursor / Codex / Agent Skills:
npx skills add digital-lake-ai/lognexusGoogle Antigravity: Active automatically via
skills/lognexus/SKILL.mdor workspace skills.GitHub Copilot / VS Code / Kimi Code: Active via
.github/copilot-instructions.mdand.lognexus/workspace instructions and prompts.
⚡ Production Telemetry & Field Benchmark
LogNexus was battle-tested in a high-intensity production deployment governing the end-to-end engineering of an enterprise static analysis CLI and AI migration skill (Anonymous Project ID: prj-7a4e91c2) operating over 250,000+ lines of legacy code with 22 AST/CFG rules (SPH-001..SPH-022).
╔══════════════════════════════════════════════════════════════════════════════════════════════╗
║ LOGNEXUS TELEMETRY HUD // PRODUCTION SWARM BENCHMARK (PROJECT ID: PRJ-7A4E91C2) ║
╠═════════════════════════════════════════════╦════════════════════════════════════════════════╣
║ ▸ GOVERNED FEATURES 12 Issues (#1-#12) ║ ▸ ORPHAN / UNTRACKED COMMITS 0 (0.0%) ║
║ ▸ VERIFIED COMMITS 38 / 38 Signed ║ ▸ SELF-APPROVAL VIOLATIONS 0 Blocked ║
║ ▸ GIT NOTES ATTACHED 100% (git-ai v3) ║ ▸ SCOPE CREEP INCIDENTS 0 (Allowlist) ║
║ ▸ TEST SUITE INTEGRITY 536 Passed (100%) ║ ▸ ATOMIC COMMIT LATENCY ~0.15s / op ║
╚═════════════════════════════════════════════╩════════════════════════════════════════════════╝Multi-Model Swarm Performance Matrix
By enforcing Closed Delegation Contracts (allowedFiles, forbiddenFiles, decisionBudget: "none") and Cross-Model Review Gates, LogNexus coordinated three distinct AI model families in production without a single context leak or rogue commit:
Model Family | Assigned Tier | Production Strengths Observed | Optimal Contract Fit |
Google Antigravity / Gemini Pro |
| • Zero-drift multi-branch coordination• Strict review-gate enforcement ( | Architecture synthesis, closed contract authoring, cross-model code review, release governance. |
DeepSeek V3 (Chat) |
| • Ultra-low latency & token cost• Exceptional at mathematical AST parsing, pushdown automata & CFG tokenization• Strict adherence to stop conditions when hitting out-of-scope test assertions | Algorithmic engines, deterministic parsers, isolated single-file modules ( |
Kimi K2.7 Code |
| • Massive context retention with zero file truncation on large modules ( | Large-context refactorings, multi-file rule catalogs, CI/CD matrices & standalone packaging. |
Key Takeaway: Contract-driven development paired with
refs/notes/lognexuscompletely eliminated scope creep by Tier-3 implementers while keeping the public Git commit graph 100% clean and human-readable.
Disambiguation
LogNexus by Digital Lake is an open-source development framework and Git memory system for AI agents. It is not affiliated with academic research papers on industrial log compression (e.g. ISSTA 2026).
🛡️ Verified Quality & Supply-Chain Security
Every published release is continuously measured against independent third-party evaluators. The table below summarises the current external audit snapshot:
Auditor | Scope | Result |
Glama MCP Directory | Server quality & maintenance score (TDQS) | Triple A grading · TDQS 4.3 / 5.0 ( |
Socket Security | Vulnerability audit | 100 / 100 — |
Socket Security | Quality & License compliance | 100 / 100 |
Socket Security | Maintenance health | 96 / 100 |
SLSA Provenance | Build supply chain | Verified ( |
License & Contribution model | Open governance | MIT — Open Source, Core-Maintained (Closed to Unsolicited External PRs) |
Awesome MCP Servers | Community MCP directory ( | Listed under Version Control ( |
Smithery & Claude Plugin | Native MCP & Plugin registries ( | Verified Cross-Platform ( |
MCP Registry & PyPI | Official | Verified ( |
Local-first by construction: LogNexus ships
0runtime network calls,0PII, and0telemetry endpoints. Seedocs/TELEMETRY_PRIVACY.mdandSECURITY.md.
Provenance & Identities
Every commit carries signed provenance trailers (Planned-by: / Authored-by: / Reviewed-by:). Identities are declared with their canonical spellings:
Role | Canonical identity |
Master Architecture & Security Orchestrators |
|
Implementation (Antigravity / VS Code clients) |
|
Independent review (Cross-Vendor & Intra-Fleet) |
|
The Planned-by: trailer documents where an externally authored plan came from. It grants no review authority and no merge rights; an author model never writes its own Reviewed-by: trailer.
Provenance & Acknowledgments
LogNexus is engineered and maintained by HorchataHTML and Digital Lake, encompassing:
The full TypeScript runtime, repository scaffolding & diagnostic CLI, Persistent Agent State Engine, Atomic Commit Engine, Git Notes memory layer (
refs/notes/lognexus), local-first FinOps telemetry, Multi-Model Token Shield, and native JSON-RPC 2.0 stdio MCP server (@digital-lake/lognexus/lognexus-mcp).First-class multi-model tier routing and closed delegation contracts across Anthropic Claude (
Fable 5.2,Mythos 5.2,Opus / Sonnet / Haiku 5.5), OpenAI (GPT-6.2 Astra,GPT-6.2 Sol,GPT-6 Luna,codex-mini,o4), Google Gemini (Gemini 4 Neon,Gemini 4 Carbon,Gemini 4 Argon,Gemini 4 Hydrogen,Gemini 3.8 Pro & Flash), Moonshot AI (Kimi K3/ Kimi Code), and DeepSeek (R1,V3,Chat).The cross-reference CI validation workflow (
.github/workflows/cross-ref-check.yml), single-source-of-truth review/signing block architecture, and sub-skill anchor normalization authored by HorchataHTML (2026-08-04, commitcd0582c1).
The Master Architecture & Security Plan governing frontier-model support, supply-chain hardening, and cross-model review governance is authored and signed by Gemini 4 Neon, Gemini 4 Carbon, and Gemini 4 Argon (Master Architecture & Security Orchestrators).
Additional workflow inspirations and patterns are derived from OrchestKit and Superpowers. Detailed license texts and notices are preserved in the LICENSES/ directory and in NOTICE.md.
LogNexus is an independent continuation and full-stack TypeScript, CLI, and native MCP evolution of shiplog.
Did you find this project useful? 🤖⚡
Maintaining and evolving open-source agentic infrastructure takes time, dedication, and... quite a few AI tokens to power multi-model benchmarking, automated testing, and continuous architecture updates.
If LogNexus saved you time, prevented context amnesia in your workflows, and you'd like to help cover the API and compute costs to keep it evolving, consider fueling the AI with a token:
Every contribution goes straight into compute power, multi-model benchmarks, new MCP capabilities, and continuous improvements!
License
LogNexus is released under the MIT License.
Copyright (c) 2026 HorchataHTML (https://github.com/HorchataHTML)
Copyright (c) 2026 Digital Lake (https://github.com/digital-lake-ai) and LogNexus contributors.
Copyright (c) 2026 devallibus
Available Tools
12 toolslognexus_auditLogNexus Audit: Audit review gate and commit traceabilityARead-onlyIdempotent
Audit the branch commits against the LogNexus review gate: commit format, Authored-by trailer, Git Notes coverage, subtask file contracts, and author/reviewer separation including self-approval detection. Use when you need the pass/fail gate before merging or before opening a pull request. Not for producing the PR narrative (use lognexus_timeline); audit reports violations and never fixes them.
Inputs: baseBranch.
lognexus_commitLogNexus Commit: Atomic commit with Git Note and review gateA
Atomically create a Git commit with conventional commit format, authorship trailers, subtask file contract validation, optional task finishing, and Git Note attachment in a single operation. Use when creating any commit on a LogNexus branch, including the atomic subtask commits that close a Tn. Not for retro-attaching a note to a commit that already exists (use lognexus_note_attach), and not for bypassing the gate: the commit engine refuses to run on a protected branch and rejects files outside the contract.
Inputs: message (required), tier, author, reviewer, +3 more.
lognexus_note_attachLogNexus Note: Attach state as Git Note to commitAIdempotent
Attach the current LogNexus state as a Git Note (refs/notes/lognexus) to a commit that already exists. Defaults to HEAD. Use when backfilling manually on commits created outside the commit engine, or repairing a missing note. Not for normal commits: lognexus_commit already attaches the note as part of the atomic operation, so attaching again is only needed when the note was lost.
Inputs: commitRef.
lognexus_note_showLogNexus Note: Show Git Note attached to commitARead-onlyIdempotent
Read the LogNexus Git Note (refs/notes/lognexus) attached to a commit and return its parsed JSON payload. Defaults to HEAD. Use when verifying that a commit carries the expected tier, subtask and contract before a review or a merge. Not for creating or repairing notes (use lognexus_note_attach).
Inputs: commitRef.
lognexus_state_clearLogNexus State: Clear session stateADestructiveIdempotent
Reset the persistent LogNexus agent state to empty. Equivalent to 'lognexus state clear'. Use when abandoning an issue, switching to an unrelated task, or recovering from a corrupted state file. Not for finishing a single subtask (use lognexus_state_finish_task); clearing is destructive and drops the whole contract.
Inputs: no named parameters.
lognexus_state_finish_taskLogNexus State: Finish subtask and mark completedAIdempotent
Mark a subtask as completed in the persistent state and return the updated state. Equivalent to 'lognexus state finish-task '. Use when the subtask work has already been committed and its Git Note attached. Not for creating the commit itself (use lognexus_commit with finishTask: true, which finishes the task atomically) and not for editing the contract (use lognexus_state_set_task).
Inputs: taskId (required).
lognexus_state_getLogNexus State: Get persistent session stateARead-onlyIdempotent
Return the persistent LogNexus agent state (.lognexus/state.json) as stored on disk: active issue, current subtask and its file contract, completed subtasks and last synchronization timestamp. Use when you need the current contract or completion list and nothing has changed the branch since the last sync. Not for validating the state against the Git branch or GitHub (use lognexus_state_sync), and not for starting or finishing subtasks (use lognexus_state_set_task or lognexus_state_finish_task).
Inputs: no named parameters.
lognexus_state_set_taskLogNexus State: Set active subtask and file contractAIdempotent
Mark a subtask as in progress and persist its closed delegation contract (allowed files, forbidden files, decision budget, verification command) plus the active issue tier. Equivalent to 'lognexus state set-task [title]'. Use when you begin a new subtask and need the file scope enforced by the commit engine and the audit. Not for marking a subtask complete (use lognexus_state_finish_task) and not for reading the contract (use lognexus_state_get).
Inputs: taskId (required), tier, title, allowedFiles, +3 more.
lognexus_state_syncLogNexus State: Synchronize state from Git branch and GitHubAIdempotent
Reconcile the persistent state with the current Git branch and GitHub metadata, rewriting .lognexus/state.json and returning the updated state. Use when you just checked out a branch, rebased, opened a PR, or suspect the stored state is stale. Not for a plain read of what is already on disk (use lognexus_state_get); sync mutates the store and runs git and gh.
Inputs: no named parameters.
lognexus_statusLogNexus Status: Inspect workspace and Git branch stateARead-onlyIdempotent
Inspect the current Git branch, whether the directory is a Git repository, the active issue, the routing mode and the recommended model tier. Use when you need a cheap read-only snapshot before choosing a branch, a tier, or a next action. Not for reading the subtask contract (use lognexus_state_get) or for refreshing the state from Git and GitHub (use lognexus_state_sync).
Inputs: no named parameters.
lognexus_telemetryLogNexus Telemetry: Local performance and ROI cost reportADestructive
Inspect local telemetry status, enable strictly local performance metrics (zero network calls), disable tracking, inspect the zero-PII local payload, generate telemetry markdown reports, or clear the metrics store. Use when measuring subtask duration, Git Notes coverage and estimated cost savings. Not for any form of upload: telemetry is local-only, stored in .lognexus/telemetry.json, and no data leaves the working directory.
Inputs: action, outputPath.
lognexus_timelineLogNexus Timeline: Generate PR Journey TimelineARead-onlyIdempotent
Reconstruct the branch Journey Timeline against a base branch: commit list enriched with Git Notes, subtask IDs, tiers and Authored-by/Reviewed-by trailers, rendered as a Markdown table, JSON or a PR body draft. Use when preparing a pull request description or reviewing the subtask sequence of a branch. Not for judging compliance (use lognexus_audit, which reports violations rather than a narrative).
Inputs: format, baseBranch.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool has a clearly distinct role, and descriptions explicitly state boundaries with 'not for' guidance for overlapping areas such as state_get vs state_sync, commit vs note_attach, and timeline vs audit. An agent can reliably distinguish read-only inspection, mutation, commit creation, note repair, and reporting tools.
All names use snake_case with a consistent lognexus_ prefix, and most follow a resource_action pattern such as state_get, state_sync, note_show, and note_attach. A few tools are single words or simple nouns like commit, status, timeline, audit, and telemetry, which are readable but less parallel than the resource_action group.
Twelve tools is well scoped for a workflow server covering state, commits, notes, auditing, timelines, and telemetry. Each tool appears to earn its place without obvious redundancy or excessive surface area.
The surface covers the main LogNexus lifecycle: status, state read/sync/set/finish/clear, commit creation, note show/attach, timeline, audit, and telemetry. Minor gaps remain around explicitly setting or switching the active issue and around direct PR creation/merge operations, though some may be handled externally or via sync/timeline.
Maintenance
Related MCP Connectors
A personal memory you control, shared across Claude, ChatGPT, Cursor and any MCP client.
Team memory for AI coding agents and code reviews, reviewed by humans and served over MCP.
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
Give your AI agent persistent, governed memory for every project. At task start it recalls the approved decisions, conventions, risks and architecture (semantic search, ranked by importance); at close it proposes what was learned as typed memories that you review and approve — governance, not a notes dump. Agents propose, humans govern: edits go back to pending and deletion is human-only by design. Connect Claude Code, Cursor, Claude Desktop or any MCP client in two minutes with just your API key — hosted (nothing to install) or locally via `uvx solucortex-mcp`. Built by SoluAI and dogfooded daily: SoluCortex is developed using its own living memory.
Related MCP Servers
- AlicenseAqualityBmaintenancePersistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based, Persistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based organization, and team collaboration via Model Context Protocol.15512 npm2MIT
- AlicenseBqualityAmaintenancePersistent, local memory for AI coding agents that learns how you work, not just what you said. Supports Claude Code, Codex CLI, Cursor, and any MCP client.79356 PyPI78MIT

Memcellofficial
AlicenseNot gradedqualityFmaintenanceLiving memory for AI coding agents (Claude Code, Cursor, Copilot, Codex). Cross-vendor persistent memory, decision recall, and outcome calibration via MCP and hooks.Apache 2.0- AlicenseNot gradedqualityAmaintenanceGives AI coding agents persistent, cross-session memory by storing task insights as interlinked markdown knowledge cards and recalling relevant ones before new work begins. Uses plain files and git sync instead of a vector database or embeddings, and exposes this through MCP tools for Claude Code, Cursor, VS Code Copilot, Codex, Windsurf, and other clients.9 npmISC