Context Economics
Pay the "Token Tax" once. CiteKit maps your file via a pluggable mapper (Gemini by default) to create a structural index, then allows agents to resolve evidence 100% locally from then on.
Structural mapping and content extraction for AI agents.
pip install citekitnpm install citekit# Installs CLI tool for Claude/Cline
pip install citekitCiteKit works the same way across all interfaces: Ingest to map, Resolve to extract.
from citekit import CiteKitClient
# 1. Ingest (Map)
client = CiteKitClient()
video_map = await client.ingest("lecture.mp4", "video")
# 2. Resolve (Extract)
# Extracts exact clip from 10s to 20s
evidence = client.resolve(video_map.resource_id, "intro_scene")
print(evidence.output_path)import { CiteKitClient } from 'citekit';
// 1. Ingest (Map)
const client = new CiteKitClient();
const map = await client.ingest('lecture.mp4', 'video');
// 2. Resolve (Extract)
const evidence = await client.resolve(map.resource_id, 'intro_scene');
console.log(evidence.output_path);# 1. Ingest
python -m citekit.cli ingest lecture.mp4 --type video
# 2. Resolve
python -m citekit.cli resolve lecture intro_scene{
"mcpServers": {
"citekit": {
"command": "citekit",
"args": ["serve"],
"env": { "GEMINI_API_KEY": "..." }
}
}
}If you use a custom mapper,
GEMINI_API_KEYis not required.
CiteKit is the high-fidelity orchestration layer for Modern AI Architectures. It solves the Context Precision Problem in multimodal applications (Agentic RAG, Long-Context reasoning, and Multi-Agent flows).
Instead of "fuzzy" context loading, CiteKit employs a Semantic Indexing strategy: