Skip to main content

Infinity Context

Self-hosted memory for AI teams that keeps current project knowledge source-backed, scoped, and reviewable.

Infinity Context gives agents and applications durable project memory without treating every chat fragment or retrieval result as permanent truth. Postgres owns canonical lifecycle state; optional retrieval systems help find candidates but do not decide what is current or visible.

It is available through HTTP, a Python SDK, MCP, CLI, and a local UI for shared project knowledge as well as team, project, and thread-scoped memory.

Contents

Why Infinity Context

Teams need more than semantically similar notes. They need a shared memory layer where a decision can be traced to its source, updated when the project changes, and recalled only in the right context.

  • Current knowledge, not a history dump. Facts have lifecycle state, versions, source references, and visibility rules in Postgres.
  • Source-backed and reviewable. Agents can submit suggestions for review instead of silently promoting every generated conclusion to durable memory.
  • Scoped for real work. Spaces, memory scopes, and threads separate projects, workstreams, and sessions.
  • Retrieval is not authority. Optional Qdrant and Graphiti indexes return candidates that are rehydrated from canonical state before prompt rendering.
  • Prompt memory is evidence. Retrieved material includes citations and provenance rather than being phrased as instructions for a model to follow.

A typical team loop is simple: capture a decision with its evidence, propose a change when the decision evolves, and retrieve only the current scoped context before a new task. That makes the memory useful to people reviewing work as well as agents continuing it.

How it works

flowchart LR
    A["Agents and apps"] --> B["HTTP / SDK / MCP / CLI / UI"]
    B --> C["Application use cases"]
    C --> P[("Postgres<br/>canonical current truth")]
    P --> Q["Qdrant<br/>optional derived retrieval index"]
    P --> G["Graphiti<br/>optional current-state graph projection"]
    Q -. "retrieval candidates" .-> C
    G -. "retrieval candidates" .-> C
    C --> E["Final prompt context<br/>cited evidence, not instructions"]

Writes record canonical facts, documents, sources, versions, and scope first. Derived projections run separately. During search or context assembly, every derived candidate is checked against current canonical state before it can appear in a cited evidence block.

Architecture and trust model

Infinity Context applies Clean Architecture, SOLID, simple DDD, and ports-and-adapters boundaries:

  • Postgres owns the canonical lifecycle; Qdrant and Graphiti are optional, derived indexes.
  • The infinity_context_core package cannot import FastAPI, SQLAlchemy, Qdrant, Graphiti, OpenAI, or client application code.
  • Adapters provide delivery and infrastructure details without becoming the source of truth.

Read the architecture and trust model for write and read flows, package ownership, consistency behavior, and security limits.

Quickstart

You need Git, Python 3.11 or later, and Docker with Compose for the local runtime. Install from source:

git clone https://github.com/777genius/infinity-context.git
cd infinity-context
python3 -m venv .venv
.venv/bin/python -m pip install -e '.[mcp]'
.venv/bin/infinity-context quickstart --agent codex --open-ui

Quickstart initializes local configuration, starts the default lite Docker profile, installs or updates the chosen agent integration, enables review-gated capture suggestions, and opens the local UI. Add --no-install-agents if you only want the generated MCP configuration.

Profile Intended local setup
lite Postgres, the server, and workers with optional provider adapters disabled
full Adds Qdrant and Neo4j-backed graph services; enabled provider features need their own configuration

The public installation guide and self-hosted deployment guide cover first-run and operational details.

Integration entry points

Entry point Use it when
HTTP API An application needs canonical memory and context endpoints
Python SDK A Python service needs typed HTTP client calls
MCP A coding agent or MCP client needs memory tools and evidence resources
CLI A developer is starting, configuring, or inspecting a local instance
Local UI A person wants to browse evidence and review suggestions locally

The MCP adapter guide explains the agent-facing boundary. Retrieved memory is evidence to inspect, not an instruction source.

Capability positioning

This is capability positioning, not a quality ranking. There is no matched four-way benchmark behind this table. The clearest distinction is between two different goals: Hindsight currently offers the deeper cognitive-memory layer, while Infinity Context focuses on a governed current-state control plane for project memory shared by teams and agents.

Product Optimized for Typical fit
Infinity Context Governed current-state project memory Teams sharing evolving project knowledge across agents and apps
Hindsight Evidence-grounded observations, maintained mental models, multi-strategy recall, and agentic reflection Agents that learn from accumulated experience
Mem0 OSS Portable personalization with user, agent, and run scopes Products that want ADD-only extraction plus application-owned CRUD and policy
Memora Local-first MCP memory with smart absorb, typed lineage, documents, and graph interaction Individual developers wanting inspectable local memory workflows

See the detailed agent memory capability comparison for lifecycle, retrieval, temporal behavior, review, isolation, deployment, and scenario tradeoffs.

Status and limitations

Infinity Context is v0.1 and under active development. APIs, CLI behavior, and deployment details may evolve.

  • Postgres is the canonical lifecycle store. Qdrant is the primary derived vector projection. The Graphiti adapter is a narrower current-state projection: updates remove the prior episode before adding the new one, and the adapter does not expose Graphiti's complete source-reference, ontology, or version-history surface.
  • Canonical visibility updates take effect before asynchronous derived-index cleanup. A stale derived hit is rechecked before rendering.
  • Cognee is disabled by default and currently provides a recall-oriented boundary without complete ingest, update, or exact-forget lifecycle support.
  • Retrieval includes deterministic prepasses shaped by the current evaluation domains. This is not ground-truth leakage, but broader transfer quality still needs independent evidence.
  • Current load and chaos tests exercise lifecycle and consistency on a limited corpus; they do not prove behavior at 100,000+ memories or across dozens of concurrent agents.
  • Review and canonical revalidation reduce memory-poisoning exposure, but they are not a proof of safety against sleeper-memory attacks.
  • Source references prove provenance, not truth. Review and domain judgment remain necessary.
  • Evaluate deployment, access control, backups, and operational fit for your environment before relying on any self-hosted configuration.

Documentation

Metadata

Release files for infinity-context 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for infinity-context 0.1.0
File Size Uploaded
infinity_context-0.1.0.tar.gz 2.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for infinity-context 0.1.0
File Interpreter ABI Platform
infinity_context-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.1 MB

Release files / infinity_context-0.1.0.tar.gz

Download URL infinity_context-0.1.0.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
254312103fed38ed3435b3b4c5e9d5b1f2d171208f74c6853b62147168985f95
BLAKE2b-256 checksum
How to use checksums
25cd18f471a7f8a56fdb594b8b27dffea647cd9ac9e5853386bb71d2de8980a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.

Transparency log

Release files / infinity_context-0.1.0-py3-none-any.whl

Download URL infinity_context-0.1.0-py3-none-any.whl
Size 2.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2593c5da5e327a6927b1ba4a8e973e5ee9629cdb0c67716adb980aa0adfc8473
BLAKE2b-256 checksum
How to use checksums
8a784a5baec5f404235938d009be9b78c5f282ac016e0a0fd196c4cebe260075
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page