Skip to main content

CogniCore

Agents don't share conversations. They share experience.


PyPI Python License


The Problem

Agent A discovers a bug fix, optimizes an algorithm, or learns what doesn't work. But when Agent B encounters a similar task, it starts from zero.

CogniCore solves this. It persists agent experiences across independent sessions, providing subsequent agents with retrieved context containing verified approaches—and failures to avoid.


See It In 30 Seconds

============================================================
 SESSION 1: Agent A (Claude) fixes an authentication bug
============================================================

AGENT A: Task -> Fix intermittent JWT authentication failures

Attempt 1: Increase JWT expiration
❌ FAILED: tests/auth timeout

Attempt 2: Modify retry logic
❌ FAILED: race condition in auth_middleware.py

Attempt 3: Fix refresh-token lifecycle
✅ SUCCESS
VERIFICATION: pytest tests/auth -> 18 passed

🧠 COGNICORE: Verified experience promoted and saved.

============================================================
 SESSION 2: Agent B (Gemini) encounters the same problem
============================================================

NEW SESSION: No previous conversation available.

AGENT B: Task -> Investigate JWT authentication failure.

AGENT B: Let me query CogniCore for related past experiences...

🧠 CogniCore retrieved 1 relevant experience
  ❌ Increasing JWT expiration
     Failed because: tests/auth timeout
  ❌ Modifying retry logic
     Failed because: race condition in auth_middleware.py
  ✅ Refresh-token lifecycle fix
     Verified: 18 tests passed

AGENT B:
"I found a verified previous experience for this repository.
 I'll inspect the refresh-token lifecycle first rather than
 repeating the two failed approaches."

Install

pip install cognicore-env

60-Second Quickstart

import cognicore

runtime = cognicore.CogniCoreRuntime()

def my_agent(task, context):
    print(f"Task: {task}")
    print(f"Memory: {context.get('experience')}")
    # Call your LLM here
    return True

result = runtime.execute(my_agent, task="Fix the JWT login bug")

Why This Isn't Just Memory

Most agent memory is just a dump of past conversations. CogniCore operates on Experience Memory.

Verification

An experience progresses through a strict lifecycle: Observed → Evidence → Verified → Promoted → Transferable

CogniCore requires independent evidence (e.g., exit_code: 0 from tests) before allowing an experience to be transferred.

Failure Memory

CogniCore explicitly stores what didn't work and why. Often, knowing a specific approach leads to a race condition is more valuable to an agent than a direct answer.

Context Guardians

If an experience was verified on Python 3.11 but an agent retrieves it on Python 3.13, CogniCore flags a CONTEXT MISMATCH and requires the agent to independently verify the approach against the new environment before committing.

Cross-Agent Transfer

CogniCore memory is model-agnostic.

Claude (learns) → CogniCore (verifies & stores) → Codex (retrieves & applies)


Benchmarks

LongMemEval (Strict R@5 on 500 chunks, 30 targets, 470 distractors)

System Accuracy Tokens / Query
CogniCore FTS5 76.7% 68
Mem0 70.0% 72
Naive Context 95.0% 7,942

CogniCore achieves a ~99% token reduction vs Naive Context injection while outperforming remote embedding pipelines natively.

Full methodology → docs/benchmarks.md


Architecture & Features

CogniCore is a full cognitive framework for AI.


Community

🔥 Join the CogniCore Lab to experiment with agent memory.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cognicore_env-0.10.1.tar.gz (703.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cognicore_env-0.10.1-py3-none-any.whl (676.4 kB view details)

Uploaded Python 3

File details

Details for the file cognicore_env-0.10.1.tar.gz.

File metadata

  • Download URL: cognicore_env-0.10.1.tar.gz
  • Upload date:
  • Size: 703.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for cognicore_env-0.10.1.tar.gz
Algorithm Hash digest
SHA256 366b90b7960ec16050f48726ced9904e8373cda0fc0089454fb1c592a5885179
MD5 519029d4d03228ea3d976e74f342e736
BLAKE2b-256 f1c4854c27aa8f16eacd42b7d01c3cddf2e4e2e0263164e8d83e913cd2b29de0

See more details on using hashes here.

File details

Details for the file cognicore_env-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: cognicore_env-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 676.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for cognicore_env-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 345e719976330927c1d42a27ab2b17720be72eb597eeeb556438fa75ffac9ce4
MD5 d13e6e06ac62dd26e4360af084c20980
BLAKE2b-256 e21b81f9e5d7456c9827538b28968bcd777bb5fe87e5e442056a7fcf2e5ed9eb

See more details on using hashes here.

Release history Release notifications | RSS feed

0.10.3

2 files

0.10.2

2 files

This release

0.10.1 This release

2 files

0.10.0

2 files

0.9.5

2 files

0.9.4

2 files

0.9.3

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.3

2 files

0.8.2

2 files

0.8.1

2 files

0.8.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page