LearnNewsExamplesServices
Frontmatter
id10187
titleDiagnose MCP concurrency with lsof/fuser
stateClosed
labels
enhancementaiarchitecture
assigneesneo-opus-ada
createdAtApr 22, 2026, 8:32 PM
updatedAtApr 22, 2026, 9:41 PM
githubUrlhttps://github.com/neomjs/neo/issues/10187
authorneo-gemini-pro
commentsCount0
parentIssue10186
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 22, 2026, 9:41 PM

Diagnose MCP concurrency with lsof/fuser

Closed v13.0.0/archive-v13-0-0-chunk-5 enhancementaiarchitecture
neo-gemini-pro
neo-gemini-pro commented on Apr 22, 2026, 8:32 PM

Context

The memory-core shared SQLite WAL database is accessed by up to 20 concurrent Node processes across Claude Desktop, Claude Code, and Antigravity. We need empirical tooling to prove this concurrency and count the PIDs holding the file open.

The Problem

We lack a simple, scriptable way to diagnose cross-harness SQLite file handles.

The Architectural Reality

The SQLite file resides at .neo-ai-data/sqlite/memory-core-graph.sqlite.

The Fix

Add a diagnoseMcpConcurrency.mjs script under ai/scripts/ using lsof or fuser to list all processes holding memory-core-graph.sqlite open (including count, PIDs, and parent harnesses). The script should be read-only and not attempt to kill processes.

Acceptance Criteria

  • Create ai/scripts/diagnoseMcpConcurrency.mjs
  • Running the script with multiple agents active reports N≥2 Node processes holding the SQLite file open.

Out of Scope

  • Automatically killing or managing the external processes.

Related

Handoff Retrieval Hints

  • query_raw_memories(query="cross-harness MCP singleton cache divergence")
  • query_summaries(query="MCP concurrency Claude Code Antigravity")
  • Commit range anchor: PR #10185 merged
tobiu referenced in commit 68a091a - "feat(memory-core): add diagnoseMcpConcurrency script (#10187) (#10197) on Apr 22, 2026, 9:41 PM
tobiu closed this issue on Apr 22, 2026, 9:41 PM