LearnNewsExamplesServices
Frontmatter
id8284
titleImplement Smart Lifecycle Management for ChromaDB processes
stateClosed
labels
enhancementai
assigneestobiu
createdAtJan 2, 2026, 4:28 AM
updatedAtJan 2, 2026, 4:35 AM
githubUrlhttps://github.com/neomjs/neo/issues/8284
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 2, 2026, 4:35 AM

Implement Smart Lifecycle Management for ChromaDB processes

Closed v11.18.0 enhancementai
tobiu
tobiu commented on Jan 2, 2026, 4:28 AM

The current database tools place an unnecessary burden on the agent to manage process lifecycle and do not clearly distinguish between managed and external instances.

Requirements:

  1. Auto-Cleanup (Code):

    • Update DatabaseLifecycleService.mjs in both the Memory Core (ai/mcp/server/memory-core) and Knowledge Base (ai/mcp/server/knowledge-base) servers.
    • Add process listeners (SIGINT, SIGTERM, exit) to automatically kill this.chromaProcess if and only if it exists (i.e., this server is the owner).
    • Ensure "client-only" mode (connecting to external DB) remains unaffected by these listeners.
  2. Tool Repositioning (Docs):

    • Update openapi.yaml for both Memory Core and Knowledge Base servers.
    • stop_database: Mark as a debug/maintenance tool. Clarify that manual invocation is rarely needed due to auto-cleanup, and that it has no effect on external databases.
    • start_database: Clarify "connect or start" behavior.
    • Guidance: Add a note advising that for multi-agent workflows, an externally managed database (via npm run ai:server-memory) prevents unexpected disconnects when the "owner" agent exits.

Goal: Agents should no longer feel compelled to call stop_database at the end of a session, and "zombie" processes should be prevented for managed instances.

tobiu added the enhancement label on Jan 2, 2026, 4:28 AM
tobiu added the ai label on Jan 2, 2026, 4:28 AM
tobiu assigned to @tobiu on Jan 2, 2026, 4:29 AM
tobiu referenced in commit d735874 - "Implement Smart Lifecycle Management for ChromaDB processes #8284" on Jan 2, 2026, 4:34 AM
tobiu closed this issue on Jan 2, 2026, 4:35 AM