ContextOS

Memory infrastructure for AI agents.

Give AI applications persistent, searchable, intent-aware context across millions of files without sending entire repositories to the LLM.

$npm i -g @siddharthakatiyar/contextos && contextos init

The Problem

AI agents break when context windows overflow. ContextOS replaces naive file loading with an intelligent retrieval pipeline.

Without ContextOS

read auth.ts
read database.ts
read queue.ts
read redis.ts
...
Total Tokens
0

With ContextOS

Search
Expand Graph
Rank Symbols
Extract

Retrieval Pipeline

Watch how a repository transforms into a surgical context package.

Repository
Index
Search
Graph Expansion
Intent Ranking
Compression
LLM Context

Pipeline Stage 1

Repository

Your raw codebase across thousands of files.

Graph Expansion

Search finds keywords. Graph Expansion finds reality. Watch how ContextOS automatically pulls in related dependencies to build a complete context package.

Waiting for query...
indexer.ts
cli.ts
api.ts
database.ts
schema.ts
migrations.ts
28,000
Fewer tokens sent to LLMs
312ms
Average retrieval latency
SQLite
Backed, zero external DBs
AST
Aware semantic chunking

Ready to build?

macOS / Linux / Windows • Zero configuration required