agent-memory-sync
Enables Speculative Twin to use Google Gemini models for live cross-model code critique and review.
Allows Speculative Twin to connect to a local Ollama OpenAI-compatible endpoint for local model reviews.
Enables Speculative Twin to use OpenAI or OpenAI-compatible models for live code critique and consensus generation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-memory-syncsave this as a gotcha: our Prisma pool starves under high load"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Agent Bridge Suite ๐
Monorepo suite bridging Antigravity and Claude Code through persistent cross-IDE episodic memory (Native SQLite FTS5 + BM25 Ranking Engine) and multi-model adversarial peer review (Speculative Consensus).
๐ฆ Suite Packages
Package | Description | Protocol | Key Features |
| High-scale local cross-IDE episodic memory bridge that prevents AI agent amnesia across sessions and editors. | MCP v1.x + Native SQLite / JSON | โข Native SQLite Storage (WAL Mode, node:sqlite)โข FTS5 Full-Text Search with C-Level BM25 Rankingโข Seamless Auto-Migration from |
| Multi-model adversarial peer consensus engine for stress-testing code drafts, eliminating hallucinations, and hardening systems. | MCP v1.x + Multi-Provider Adapter | โข Multi-Provider Support: Anthropic Claude, Google Gemini, OpenAI-compatible APIsโข High-Precision Zero-Token Heuristics (100% offline)โข P0 / P1 / P2 Severity Audit (secrets, silent catch, SQLi, loose types, race conditions)โข Speculative Paradigm Drafting (Immutable, Streaming, Zero-Alloc)โข Consensus synthesis engine |
Related MCP server: Memory MCP
๐ Quick Start & Installation
Prerequisites
Node.js
>= 20.0.0pnpm
>= 9.0.0
Clone & Build
git clone https://github.com/roedyrustam/agent-bridge-suite.git
cd agent-bridge-suite
pnpm install
pnpm build๐ Setup with AI Agents
1. Antigravity IDE / CLI
Link the plugins directly into your Antigravity environment:
agy plugin link ./plugins/agent-memory-sync
agy plugin link ./plugins/speculative-twin2. Claude Code CLI
Register both MCP servers in your Claude Code configuration:
claude mcp add agent-memory-sync node ./plugins/agent-memory-sync/dist/index.js
claude mcp add speculative-twin node ./plugins/speculative-twin/dist/index.js3. Standalone Terminal CLI (agent-bridge)
Interact with memory or run code audits directly from your terminal without opening an MCP client:
# Query memories using BM25 ranking
pnpm agent-bridge memory recall "prisma connection pool starvation"
# Inspect memory stats and tag distribution
pnpm agent-bridge memory stats
# Run adversarial code critique (returns exit code 1 on P0 issues)
pnpm agent-bridge twin critique ./src/auth.ts --context="Strict authentication middleware"
# Generate speculative alternative implementations across 3 paradigms
pnpm agent-bridge twin speculate "Bounded async worker pool with backpressure"
# Check active twin provider and capability mode
pnpm agent-bridge twin statusโ๏ธ Model Provider Configuration (Speculative Twin)
By default, speculative-twin operates 100% offline using high-precision static heuristics with zero token costs. To enable live frontier cross-model reviews, set any of the following environment variables:
# Option A: Anthropic Claude (default: claude-3-5-sonnet-20241022)
export ANTHROPIC_API_KEY="sk-ant-..."
export ANTHROPIC_MODEL="claude-3-7-sonnet-latest" # optional
# Option B: Google Gemini (default: gemini-2.5-flash)
export GEMINI_API_KEY="..."
export GEMINI_MODEL="gemini-2.5-flash" # optional
# Option C: OpenAI or Custom Local LLM (default: gpt-4o)
export OPENAI_API_KEY="sk-..."
export OPENAI_BASE_URL="http://localhost:11434/v1" # e.g. Ollama or vLLM
export OPENAI_MODEL="deepseek-r1" # optional๐งฐ MCP Tools Reference
agent-memory-sync
memory_recall: Query historical insights, debugging traps, and user preferences using BM25 semantic scoring.memory_record: Save a durable lesson, bug fix, or architecture rule (gotchas,architecture,user_preferences,performance).memory_list: List all stored insights with category and project scope filters.memory_stats: View telemetry metrics (total items, category breakdown, top tags, most recalled items).memory_export: Export knowledge base to Markdown or JSON format.memory_import: Import backup memories withskiporoverwritemerge modes.memory_delete: Delete obsolete memories by ID.
speculative-twin
twin_critique: Stress-test code against security flaws, hardcoded credentials, silent catch blocks, SQL injection, looseanycasts, and race conditions.twin_speculate: Generate candidate implementations across 3 algorithmic archetypes (Defensive Functional, High-Throughput Streaming, Minimal Zero-Alloc).twin_synthesize: Merge two competing code drafts into a unified, hardened solution.twin_status: Inspect active provider and capabilities.
๐งช Testing & Validation
The test suite is powered by Vitest and covers both plugins:
# Run all unit tests across monorepo packages
pnpm test
# Run build
pnpm buildโ test/store.test.ts (7 tests)
โ test/sqlite-store.test.ts (8 tests)
โ test/engine.test.ts (10 tests)
Test Files 3 passed (3)
Tests 25 passed (25)๐ค Contributing
Contributions, issues, and feature requests are welcome! Please feel free to check the issues page.
Fork the Project
Create your Feature Branch (
git checkout -b feature/AmazingFeature)Commit your Changes (
git commit -m 'feat: Add some AmazingFeature')Push to the Branch (
git push origin feature/AmazingFeature)Open a Pull Request
๐ License
Distributed under the MIT License. See LICENSE for more information.
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory for AI agents. Search, store, and recall across sessions.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Private memory for AI agents: save and recall facts across Claude Code, Codex, Cursor and ChatGPT.
Universal memory for AI agents and tools. Save, organize and search context anywhere.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI coding assistants with persistent project memory to retain architectural decisions, code patterns, and domain knowledge across sessions. It stores data locally in a SQLite database, allowing agents to remember, recall, and manage project-specific context using full-text search.0Apache 2.0
- AlicenseAqualityBmaintenanceProvides persistent cross-session memory and full-text search for AI coding assistants, storing project context, decisions, and preferences while enabling searchable access to conversation history via local SQLite.81MIT
- AlicenseNot gradedqualityAmaintenanceProvides long-term memory for LLMs via local SQLite storage with hybrid search (BM25, vectors, recency decay), enabling AI coding agents to persist and recall memories across sessions without cloud or API keys.53MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to persist and retrieve project-scoped memories across sessions using local SQLite FTS5 keyword search.1MIT