Skip to main content

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:

  1. HTTPCONTEXTLANE_MEMORYLANE_URL
  2. CLImemorylane on PATH
  3. 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

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

contextlane-0.3.0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

contextlane-0.3.0-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file contextlane-0.3.0.tar.gz.

File metadata

  • Download URL: contextlane-0.3.0.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

Hashes for contextlane-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b041fd4a5e3d8c9a456668ae6d2d386a3de26326c898114d373a895e57501a49
MD5 16174119cd79d025fd6bf95216126170
BLAKE2b-256 72a9082ad3464880dbbdeb9b57f01a1e99620f278f5a1c47d869a00520221cd3

See more details on using hashes here.

File details

Details for the file contextlane-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: contextlane-0.3.0-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

Hashes for contextlane-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30d7f4af2acafa041cdcc060246f31ec01fc28a21f4bda3e6098a22e5cdf422d
MD5 c8af94c8069a04fd26fedf1fba961140
BLAKE2b-256 93fcd30f16adb4c63c3ac952e603a631dbef5093f37409280c4f6b689814b2f5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.1

2 files

0.2.0

2 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