dbx
Query databases from AI agents using connections configured in DBX.
T8t8y2/dbx32k726 new stars in the last 7 days
Memory, reflection and safety for AI agents. Hosted or local, no vector database.
Local-first session memory for Claude Code and Codex
Start a fix in Claude Code. Open Codex in the same project and it can pick up the ticket, the reasoning behind your last change, and the test you still need to write. CogniCore saves that handoff locally without a model API key.
Quickstart · How it works · Integrations · Python SDK · Benchmarks
With Python 3.10+ and either Claude Code or Codex installed, run:
pipx install "cognicore-env[mcp]"
cognicore install
/hooks and trust the CogniCore hooks.If you use uv, install the CLI with uv tool install "cognicore-env[mcp]". Use cognicore install --agent codex to set up just Codex, or cognicore install --dry-run to preview the installer. Claude Code marketplace setup and hook configuration.
cognicore_recall to look up details left out of the brief.Local session memory lives in SQLite under ~/.cognicore/mcp. Capture uses conversation text and edited file paths, and redacts detected secrets before saving. Open the read-only session viewer with python -m cognicore.memory.viewer from a Python environment where CogniCore is installed. Storage, capture, and configuration.
CogniCore groups sessions by Git repository, including its subfolders and linked worktrees. Outside a repository, it uses the folder where the session started. A repository rooted in your home directory is ignored.
Save standing decisions and rules in .cognicore/context.md. CogniCore puts curated context first in the startup brief, and your team can review changes in pull requests.
cognicore project set goal "Make CSV exports reliable for large reports"
cognicore project add decision "Stream rows" --why "Keep memory usage bounded"
cognicore project add rule "Test empty exports and trailing blank lines"
cognicore project list
Run cognicore project suggestions to review proposals captured during sessions and cognicore project accept <id> to add one to the file.
Import a ChatGPT ZIP or JSON export to search original messages, reconstruct project decisions, and trace claimed outcomes back to their source. Historical records keep their original event times and live in a private local archive. Retrospective Memory Engine tutorial
cognicore history import chatgpt-export.zip --consent --project DIPY
cognicore history search "DIPY optimization" --project DIPY
cognicore history timeline --project DIPY --kind decision
To sync your stored archive across devices, run cognicore history sync enable --consent once on the device holding it. Other devices with empty archives restore automatically after you sign in to the same account. History sync setup
| If you use | Setup | How memory is accessed |
|---|---|---|
| Claude Code or Codex | Install the hooks | Automatic capture and resume using a shared local store |
| Claude on web, desktop, or mobile | Set up the hosted connector | Access hosted memory through the connector |
| Another MCP client | Configure the local server or add the hosted endpoint | Use the memory tools from your client |
| Your own Python agent | Install the SDK | Store and retrieve memory directly in your code |
Add https://mcp.cognicoree.tech/mcp/stream as a custom MCP connector in a compatible client and sign in with GitHub. To link your local Claude Code or Codex memory, run cognicore login and sign in with the same account. Sync sends the redacted handoff and can pull sessions saved through the connector.
Use cognicore sync status to check your connection and cognicore sync to sync manually. Hosted MCP and self-hosting guide.
For clients that accept a stdio MCP configuration, add this entry with uvx available on your PATH:
{
"mcpServers": {
"cognicore": {
"command": "uvx",
"args": ["--from", "cognicore-env[mcp]", "cognicore-mcp"]
}
}
}
The hosted MCP tool reference lists the tools available through the hosted connector and their side effects.
pip install cognicore-env
Give an agent a searchable SQLite store for what worked, what failed, and why. This example opens the same database twice to show how a later run can recall an earlier result.
from cognicore.memory.base import MemoryEntry
from cognicore.memory.sqlite_backend import SQLiteMemoryBackend
memory = SQLiteMemoryBackend("agent-memory.db")
memory.store(
MemoryEntry(
text="CSV export skips trailing blank lines when rows are streamed.",
category="csv-export",
correct=True,
)
)
# A later run can open the same database.
memory = SQLiteMemoryBackend("agent-memory.db")
for result in memory.search("CSV export", top_k=3):
print(result.entry.text)
SQLite search works with the base package. The [memory] extra adds dependencies for embedding-based retrieval, and [mem0] adds dependencies for signed memory transfer bundles. See the Python API, runnable examples, and experience transfer guide for reflection, replay, and verified memory sharing.
In the November 1, 2026 audit, both CogniCore and Claude-Mem 15.7.0 completed all three deferred follow-ups in each route. The harness withheld the prior transcript and simulated both products’ Codex startup hooks by running their hook commands and passing their output to Codex.
| Handoff | Memory system | New tokens | Memory ready | Recall |
|---|---|---|---|---|
| Claude Code → Claude Code | CogniCore | 52,609 | ~1 s | 24/24 |
| Claude Code → Claude Code | Claude-Mem | 215,888 | 70–80 s | 24/24 |
| Claude Code → Codex | CogniCore | 60,310 | ~1 s | 23/24 |
| Claude Code → Codex | Claude-Mem | 146,520 | 80–130 s | 24/24 |
New token counts include background processing. The audit covers three tasks per route and one run per task. Method, scoring notes, and full results.
On the repository’s LongMemEval evaluation, multi-hop retrieval reached 85.2% strict recall with five chunks versus 78.8% for the zero-shot baseline. Both reached 95.0% at 20 chunks. Evaluation setup, results, and reproduction steps.
Apache License 2.0. Built by Kaushal Trivedi, Durvesh Bhadgaonkar, and Hassaan Tole.
Query databases from AI agents using connections configured in DBX.
T8t8y2/dbx32k726 new stars in the last 7 days
Run Windmill scripts and flows and manage jobs, schedules, resources and variables.
WIwindmill-labs/windmill19k82 new stars in the last 7 days
MCP Toolbox for Databases enables your agent to connect to your database.
GOgoogleapis/mcp-toolbox17k77 new stars in the last 7 days
Open-source, self-hosted alerting for metrics, logs, and databases. Includes a built-in AI agent and MCP server.
CCccfos/nightingale14k10 new stars in the last 7 days
Real-time Kubernetes network traffic visibility and API analysis for HTTP, gRPC, Redis, Kafka, DNS.
KUkubeshark/kubeshark12k5 new stars in the last 7 days
Let your users work with their own data through an AI assistant, limited to what they can see.
NHnhost/nhost9.4k1 new stars in the last 7 days