Skip to content

ayato-labs/SharedMemoryServer

Repository files navigation

SharedMemoryServer: State Governance for Agentic Intelligence πŸš€

License Commercial

SharedMemoryServer is a production-grade infrastructure designed to govern Inference-time Latency and System Entropy in complex Agentic Workflows. It provides a persistent, high-integrity context layer that survives ephemeral session boundaries.

🎯 Core Value

This project demonstrates verified proof of:

  • State Governance: Managing reasoning continuity across sessions.
  • Architectural Determinism: Enforcing data integrity through atomic synchronization.
  • Intelligence Provenance: Quantifying the maturity and reuse of knowledge assets.
  • Team-Scale Knowledge Hub: Centralizing agentic memory across developers via a persistent SSE server.

πŸ—οΈ Architecture at a Glance

SharedMemoryServer utilizes a Compute-then-Write pattern to eliminate database lock contention, ensuring high performance even with multiple simultaneous agents.

graph TD
    subgraph "Parallel AI Compute"
        A[Agent Request] --> B1[Gemini Embeddings]
        A --> B2[Conflict Detection]
    end
    B1 & B2 --> C{Orchestrator}
    subgraph "Atomic Sync"
        C --> D[SQLite Transaction]
        C --> E[Memory Bank MD]
    end
Loading

πŸ‘‰ Deep Dive into Architecture


⚑ Quick Start

1. Installation

uv pip install -e .

2. Execution

  • Mode A (SSE - Recommended): Centralized hub for team collaboration.
    uv run shared-memory --sse --port 8377
  • Mode B (STDIO): Isolated local use.
    uv run shared-memory

3. Verification

Run the 16-test suite covering Chaos, System, and Unit scenarios:

uv run pytest tests -v

πŸ›‘οΈ Governance & Licensing

This project is dual-licensed to ensure both community openness and commercial sustainability:

Contributing: We welcome contributions! Please see our Contributing Guide and note that a CLA agreement is required for all pull requests.


Built to elevate AI Agents from "Simple Assistants" to "Systematic Thinking Assets".

About

πŸš€ High-concurrency Hybrid Memory MCP for AI Agents. Supporting 3-5 concurrent agents with Compute-then-Write architecture.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages