โ† Open Source

Incremental engine for long horizon agents ๐ŸŒŸ Star if you like it.

AI EngineeringGive agent knowledgeRust
Momentum
+2stars in 24 hours+0.0%
12.0k
Stars
939
Forks
+48
This week
100
Contributors
Created 2025-03-03 ยท Updated 2026-12-05 ยท #3047 today
Top developers
README

Your agents deserve fresh context.

Star usย โค๏ธย โ†’ย  ย ยทย  ย ยทย  ย ยทย 

CocoIndex turns codebases, meeting notes, inboxes, Slack, PDFs, and videos into live, continuously fresh context for your AI agents and LLM apps to reason over effectively โ€” with minimal incremental processing. Get your production AI agent ready in 10 minutes with reliable, continuously fresh data โ€” no stale batches, no context gap

Incremental ยท only the delta ย ยทย  Any scale ยท parallel by default ย ยทย  Declarative ยท Python, 5 min




Built with CocoIndex โค๏ธ

See all 20+ examples ยท updated every week โ†’


Get started

pip install -U cocoindex

Declare what should be in your target โ€” CocoIndex keeps it in sync forever, recomputing only the ฮ”.

import cocoindex as coco
from cocoindex.connectors import localfs, postgres
from cocoindex.ops.text import RecursiveSplitter

@coco.fn(memo=True)                          # โ† cached by hash(input) + hash(code)
async def index_file(file, table):
    for chunk in RecursiveSplitter().split(await file.read_text()):
        table.declare_row(text=chunk.text, embedding=embed(chunk.text))

@coco.fn
async def main(src):
    table = await postgres.mount_table_target(PG, table_name="docs")
    table.declare_vector_index(column="embedding")
    await coco.mount_each(index_file, localfs.walk_dir(src).items(), table)

coco.App(coco.AppConfig(name="docs"), main, src="./docs").update_blocking()

Run once to backfill. Re-run anytime โ€” only the changed files re-embed.

Building with an AI coding agent?
Drop in our CocoIndex skill so your agent writes correct v1 code โ€” concepts, APIs, patterns, all in one file.
See Use with AI coding agents for install steps.

ย ย 



React โ€” for data engineering

See the React โ†” CocoIndex mental model โ†’



Incremental engine for long-horizon agents

Data transformation for any engineer, designed for AI workloads โ€”
with a smart incremental engine for always-fresh, explainable data.



Why incremental?

Your agents are only as good as the data they see.
Batch pipelines drift stale. CocoIndex stays live โ€” and only runs the ฮ”.



What can you build?

See all 20+ examples ยท updated every week โ†’

Working starters from the examples tree โ€” clone, plug your source, ship.


Building something with CocoIndex? We want to see it.
Tag @cocoindex_io on X or drop a link in #showcase on Discord. We'll boost it. ๐Ÿฅฅ



Community



We are so excited to meet you.
Every typo fix, new connector, doc tweak, or full-on rewrite makes CocoIndex better.
Come hang out โ€” big PRs and small ones, both welcome.

๐Ÿ“ Read the contributing guide ย ยทย  ๐Ÿ› good first issues ย ยทย  ๐Ÿ’ฌ Say hi on Discord



CocoIndex Enterprise

Large corpus โ€” built for enterprise scale.

Incremental compute is the only way to keep large corpora fresh without re-embedding them every cycle.
CocoIndex scales from a single repo to petabyte-scale stores โ€” parallel by default, delta-only by design.


Process once. Reconcile forever.

When a source changes, CocoIndex identifies the affected records, propagates the change
across joins and lookups, updates the target, and retires stale rows โ€”
without touching anything that didn't change.


Built on a Rust engine.

The core is Rust โ€” production-grade from day zero.
Parallel chunking, zero-copy transforms where possible, and failure isolation
so one bad record doesn't stall the flow.





Apache 2.0 ยท ยฉ CocoIndex contributors ๐Ÿฅฅ

Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store