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.0.tar.gz (703.4 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.0-py3-none-any.whl (675.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cognicore_env-0.10.0.tar.gz
  • Upload date:
  • Size: 703.4 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.0.tar.gz
Algorithm Hash digest
SHA256 fbe7a11cd8fd1640c7b4bf8b8c7ff86b4b6f57dd39b3cbb28d51b00b64f41d89
MD5 2e52b77d7a6ba6eb659963d0cf50feb7
BLAKE2b-256 70ba53719d82e16e2a05a84ddd551f33e1e96bfa09a500e8d89cbdc9ca7d465d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cognicore_env-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 675.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41cb77e2d00b290658987b4833d237733683297a2ec3d6a4771c8490ae7c007c
MD5 647c3d93db1c86027cc72c515bca5a82
BLAKE2b-256 f5b8522d67603f864061517b34da32746718043ec59d04342b7b12db8ac9b142

See more details on using hashes here.

Release history Release notifications | RSS feed

0.10.3

2 files

0.10.2

2 files

0.10.1

2 files

This release

0.10.0 This release

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