Skip to main content
Glama

LogNexus — Git-Native Memory & MCP Server for AI Coding Agents

CI npm version npm downloads PyPI version PyPI downloads LogNexus MCP server – quality and maintenance score on Glama Organization Ko-fi

SLSA Provenance Socket Security MCP TDQS TypeScript Node.js Platforms Privacy License: MIT


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 (> 3 files), immediate Swarm UI handoff, and native Swarm contract flags (--assignee, --isolation swarm, --swarm-workers, --swarm-posts).

  • Atomic Commit Engine (lognexus commit & MCP lognexus_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: vs Reviewed-by:) enforced both at pre-flight note attachment time and during branch audits. Supports cross-vendor review, intra-fleet distinct-model review (Neon/Carbon/Argon reviewing Hydrogen/Flash; GPT-6.2 Astra reviewing Sol/Luna; Fable/Opus reviewing Sonnet), shared-weights blocking (Fable <-> Mythos), and advisory / off modes for single-session ChatGPT or solo workflows—never forcing cross-vendor review—with strict anti-spoofing and mandatory --no-ff merges.

  • 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.md from 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 on state set-task and on every --finish-task commit.

  • Live Scope-Drift & Environment Guard (lognexus status / lognexus doctor): Diffs the working tree against the allowedFiles of the active contract on every status and diagnostic run, catching out-of-contract writes before they reach a commit. Supports lognexus doctor --mcp to validate cross-platform MCP client setups and .lognexus/policy.json schemas.

  • 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 execFileSync with shell: false and a 2500 ms timeout. The MCP transport is exempt.

  • Git Notes Engine (Quiet Mode / git-ai v3): Attaches structured session payloads and contracts to commits under refs/notes/lognexus without 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.json profiles (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.json covering 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. Supports strict (default) and opt-in types (allows Claude Code to Read .d.ts/.mts/.cts declarations in node_modules across root and monorepo packages while still denying JS/WASM/binary/cache/lockfiles and keeping IDE ignore files excluding node_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, gemini-flash-worker-agy

DeepSeek V4.1-Flash / Chat (V3)

Subtask commits (feat(#N/Tk)), atomic code changes under closed contracts, timeline logging.

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: auto
  • orchestration: auto | swarm | subagent | off (auto activates native swarm under Antigravity Orchestrator after plan confirmation).

  • review_gate: auto | cross-vendor | intra-fleet | advisory | off (auto resolves to intra-fleet distinct-model verification when running in a single-provider fleet; ChatGPT / OpenAI Codex workflows never force cross-vendor review, and single-session solo workflows may use advisory or off).

┌──────────────────────────────────────────────────────────────────────────────────────────┐
│                                 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 plan

Transforms 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 commit

Stages changes and generates structured, task-scoped commits (feat(#42/T1): ...) paired with an issue progress update.

4. Synthesize the Pull Request

/lognexus pr

Compiles all commits, discoveries, discarded alternatives, and verification steps into a comprehensive Journey Timeline inside the PR description.

5. Cross-Model Review & Gate Verification

/lognexus review

An 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-telemetry

Token Shield Profiles & Boundaries (strict vs types)

  • strict (default): Denies Read(**/node_modules/**) in .claude/settings.json (covering monorepo workspaces), uses root-anchored / rules (such as Read(/package-lock.json) and Read(/.lognexus/**/*.jsonl)), and excludes node_modules/ plus .lognexus/**/*.jsonl in all IDE ignore files.

  • types (opt-in): Replaces Read(**/node_modules/**) in .claude/settings.json with 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 to Read .d.ts declarations across root and monorepo workspaces when needed. Transitions between strict and types (and upgrades from 1.6.0–1.6.2) prune legacy managed rules safely while preserving user custom rules.

  • Operational boundaries of types mode:

    1. Claude Code only: types applies ONLY to .claude/settings.json. .geminiignore, .aiexclude, .cursorignore, .rooignore, .codeiumignore, and .aiderignore keep node_modules/ excluded so IDE indexers do not thrash.

    2. Residual Grep risk inside node_modules: Claude Code evaluates Read deny rules on searched paths/directories, so Grep inside node_modules/<pkg> can still match minified bundles. Inspect the package's package.json types entry and Read the .d.ts file directly instead of grepping node_modules/.

    3. Real Bash behavior: Claude Code applies deny rules to recognized file commands (cat, head, tail, sed, tee) and shell redirections, whereas grep -r from a parent directory or Node/Python subprocesses bypass file-read deny rules without OS-level sandboxing.

    4. Scope precedence: A Read(**/node_modules/**) (or legacy Read(./node_modules/**)) deny rule in user settings, managed settings, or .claude/settings.local.json overrides project-level types mode.

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 --mcp

Inspect active branch, ecosystem profile, review gate mode, and tier advisory:

npx @digital-lake/lognexus status

Manage 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 T1

Execute 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-task

Quiet 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.jsonl

Journey 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 main

Session 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.jsonl

Opt-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.json or .lognexus/telemetry.json without mutating any sibling repository.

  • --watermark <file> & --update-watermark: Computes incremental delta metrics (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": true so 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.json or ~/.claude.json

  • Linux: ~/.config/Claude/claude_desktop_config.json or ~/.claude.json

  • Windows (Classic Installer): %APPDATA%\Claude\claude_desktop_config.json or ~/.claude.json

  • Windows (Microsoft Store / MSIX): %LOCALAPPDATA%\Packages\Claude_*\LocalCache\Roaming\Claude\claude_desktop_config.json (auto-detected and validated by npx @digital-lake/lognexus doctor --mcp)

  • Cursor / VS Code: ~/.cursor/mcp.json, .cursor/mcp.json or .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 claude

Or 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-mcp

Exposed 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://handoff

  • 2 Prompts: lognexus-plan, lognexus-review

3. Install Rules in Your Agent Environment

  • Claude Code:

    claude plugin add digital-lake-ai/lognexus
  • Cursor / Codex / Agent Skills:

    npx skills add digital-lake-ai/lognexus
  • Google Antigravity: Active automatically via skills/lognexus/SKILL.md or workspace skills.

  • GitHub Copilot / VS Code / Kimi Code: Active via .github/copilot-instructions.md and .lognexus/ workspace instructions and prompts.


⚡ Production Telemetry & Field Benchmark

Corpus Analyzed Git Notes Coverage Traceability Audit Test Suite Health

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

tier-1 & tier-2(Architect & Orchestrator)

• Zero-drift multi-branch coordination• Strict review-gate enforcement (lognexus audit)• Rapid root-cause regression triage

Architecture synthesis, closed contract authoring, cross-model code review, release governance.

DeepSeek V3 (Chat)

tier-3(Scoped Implementer)

• 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 (<500 LOC).

Kimi K2.7 Code

tier-2 & tier-3(High-Context Implementer)

• Massive context retention with zero file truncation on large modules (>500 LOC)• Flawless single-shot multi-file generation (rule catalogs + visitors + test suites)

Large-context refactorings, multi-file rule catalogs, CI/CD matrices & standalone packaging.

Key Takeaway: Contract-driven development paired with refs/notes/lognexus completely 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

LogNexus MCP server – quality and maintenance score on Glama

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 (Grade A)

Socket Security

Vulnerability audit

100 / 100 — 0 CVEs

Socket Security

Quality & License compliance

100 / 100

Socket Security

Maintenance health

96 / 100

SLSA Provenance

Build supply chain

Verified (SLSA Provenance, OIDC-signed npm publish)

License & Contribution model

Open governance

MIT — Open Source, Core-Maintained (Closed to Unsolicited External PRs)

Awesome MCP Servers

Community MCP directory (punkpeye/awesome-mcp-servers / HorchataHTML/awesome-mcp-servers)

Listed under Version Control (📇 🏠 🍎 🪟 🐧 — TypeScript, Local, macOS, Windows, Linux)

Smithery & Claude Plugin

Native MCP & Plugin registries (smithery.yaml, .claude-plugin/plugin.json, skills/lognexus/SKILL.md)

Verified Cross-Platform (Linux, macOS, Windows)

MCP Registry & PyPI

Official server.json & Python launcher (lognexus-mcp)

Verified (io.github.digital-lake-ai/lognexus · npx & uvx across Linux, macOS, Windows)

Local-first by construction: LogNexus ships 0 runtime network calls, 0 PII, and 0 telemetry endpoints. See docs/TELEMETRY_PRIVACY.md and SECURITY.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

Gemini 4 Neon (Orchestrator (Neon)) · Gemini 4 Carbon · Gemini 4 Argon

Implementation (Antigravity / VS Code clients)

google/gemini-4-hydrogen-high (antigravity) · google/gemini-3.8-flash-high (antigravity) · deepseek/VS Code (kimi-code)

Independent review (Cross-Vendor & Intra-Fleet)

Claude Fable 5.2 · Claude Opus 5.5 · OpenAI GPT-6.2 Astra · Gemini 4 Neon · Gemini 4 Carbon · Gemini 4 Argon

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, commit cd0582c1).

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:

Ko-fi - Fuel the AI

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 tools
lognexus_auditLogNexus Audit: Audit review gate and commit traceabilityA
Read-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 commitA
Idempotent

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 commitA
Read-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 stateA
DestructiveIdempotent

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 completedA
Idempotent

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 stateA
Read-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 contractA
Idempotent

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 GitHubA
Idempotent

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 stateA
Read-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 reportA
Destructive

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 TimelineA
Read-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

    A4.4/5.0

    Scored across 12 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Persistent 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.
      15
      512 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      F
      maintenance
      Living 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
    • A
      license
      Not graded
      quality
      A
      maintenance
      Gives 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 npm
      ISC