ContextLane
Open-source context ingestion pipeline for persistent AI agents.
MemoryLane gives agents memory. ContextLane gives agents something worth remembering.
Turn files, folders, URLs, repos, and notes into structured context with citations — then optionally sync to MemoryLane for persistent agent recall.
| Package | pip install contextlane |
| CLI | contextlane |
| npm | @talocode/contextlane |
| Repo | github.com/talocode/contextlane |
| Docs | docs.talocode.site |
| License | MIT |
Why ContextLane?
Agents fail when context is a pastebin. ContextLane standardizes:
source → load → normalize → chunk → extract → cite → save → optional MemoryLane sync
Every ingestion run can produce:
- Summary — high-level overview
- Key facts — statements with confidence
- Decisions — active / historical
- Action items — TODOs with priority
- Entities — people, tools, URLs
- Tags — auto topics
- Citations — line-level source refs
- MemoryLane records — ready to sync
Local usage is free and open-source. Cloud mode uses Talocode when configured.
Install
pip install -U contextlane
contextlane demo
Python 3.10+.
From source:
git clone https://github.com/talocode/contextlane.git
cd contextlane/python && pip install -e .
Supported sources
| Type | Examples |
|---|---|
| File | .md, .txt, .json, .pdf, .py, .ts, .js, .go, .rs, .css, .html, .yaml, .sh, + many more |
| Folder | Recursive; ignores node_modules, .git, dist, build, .next, … |
| URL | Public pages → readable text |
| GitHub | Shallow clone; README / docs / src |
| Text | Inline or piped content |
CLI
contextlane --help
contextlane --version
contextlane init # ~/.contextlane/
contextlane doctor
contextlane demo
contextlane ingest <path>
contextlane ingest-url <url>
contextlane ingest-github <repo>
contextlane runs list
contextlane runs show <runId>
contextlane search <query>
contextlane recall <query>
contextlane sync memorylane <runId>
contextlane export <runId> -o file.json
contextlane import file.json
contextlane serve --port 3060
Auto-sync during ingest:
contextlane ingest ./README.md --sync
Python SDK
from contextlane import ContextLaneClient, ingest, search
# Local engine (no network)
run = ingest("./README.md")
print(run["id"], len(run.get("extraction", {}).get("facts", [])))
results = search("authentication")
for r in results:
print(r.get("run_id"), (r.get("chunk") or {}).get("text", "")[:120])
# Remote HTTP API
client = ContextLaneClient("http://localhost:3060")
print(client.health())
print(client.list_runs())
HTTP API (local server)
contextlane serve --port 3060
curl -X POST http://localhost:3060/v1/contextlane/ingest \
-H 'Content-Type: application/json' \
-d '{"input":"./README.md"}'
curl -X POST http://localhost:3060/v1/contextlane/search \
-H 'Content-Type: application/json' \
-d '{"query":"What is this?"}'
MemoryLane sync
Priority:
- HTTP —
CONTEXTLANE_MEMORYLANE_URL - CLI —
memorylaneonPATH - Fallback —
~/.contextlane/runs/<runId>/memory-records.json
contextlane sync memorylane <runId>
Cloud mode
export CONTEXTLANE_CLOUD_MODE=true
export TALOCODE_API_KEY=your_key
# optional: TALOCODE_BASE_URL=https://api.talocode.site
Related packages
| Package | Role |
|---|---|
contextlane |
This package — ingest & structure |
talocode |
Unified cloud client |
| MemoryLane (npm/CLI) | Persistent agent memory store |
talocode-searchlane |
Live web research into new context |
Talocode ecosystem
| Project | Role |
|---|---|
| ContextLane | This product |
| MemoryLane | Persistent memory |
| Codra | Coding agent that can consume context |
| SearchLane | Web search / research |
| StackLane | Cloud control plane |
| Tera | AI capabilities API |
More: github.com/talocode · talocode.site
Links
- PyPI: https://pypi.org/project/contextlane/
- npm: https://www.npmjs.com/package/@talocode/contextlane
- GitHub: https://github.com/talocode/contextlane
License
MIT © Talocode
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file contextlane-0.2.1.tar.gz.
File metadata
- Download URL: contextlane-0.2.1.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b47f80ab4f0247f77e7ae8b7c51abe303118d6d6b258a3559e521b6845f3a842
|
|
| MD5 |
a6ea8af09a3e243e27d6e3c70765ada2
|
|
| BLAKE2b-256 |
24d2bcdb53ef38652eafdf3af5587f4a477c12270d9d6d6ac276d6637df871d1
|
File details
Details for the file contextlane-0.2.1-py3-none-any.whl.
File metadata
- Download URL: contextlane-0.2.1-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89b8d53dcc4f354cd6eab9dfebc72b2d902242a0f17166b453df392aff4329df
|
|
| MD5 |
1835bf1e80655043098a927d39e98910
|
|
| BLAKE2b-256 |
8cc2af84a67fdcdc612fcc834929f469464457e411d1365b426e83db8012c777
|