Skip to main content

flash-context

CI PyPI version Python versions License

Read-only context exploration and retrieval for AI agents, available as a Python CLI and Model Context Protocol (MCP) server.

Delegate recursive, repetitive file search and reading to a utility model behind an OpenAI-compatible endpoint. The calling agent receives validated file-line citations and source snippets to use in its main task.

Codebases and repositories are the current focus; the same tools explore documentation, configuration, and other local text files. CLI and MCP share one exploration core with read-only tools, path safety, and resource limits. Scans and regex execution are bounded; partial results report truncation. Optional metadata-only trajectory logs must stay outside the inspected repository.

Inspired by FastContext, a now-withdrawn paper on delegating repository exploration to a dedicated model.

Quickstart

Requires Python 3.13+, uv, and an OpenAI-compatible model endpoint with tool calling support.

uv tool install flash-context
export FLASH_CONTEXT_BASE_URL=http://localhost:1234/v1
export FLASH_CONTEXT_MODEL=your-model

flash-context explore --repo . --query "Find the request validation logic"

Replace the endpoint and model with your settings. Set FLASH_CONTEXT_API_KEY if authentication is required. Installed commands use environment variables; source checkouts also support project-root config.yaml and .env.

Default output is repository-relative citations:

src/api/validation.py:42-88

Use --format json for structured results with source snippets, or --max-turns 6 to set the exploration limit. Exact path and unique symbol lookups can resolve locally without an endpoint. See the CLI contract for options, output schemas, and exit codes.

MCP

uvx --from 'flash-context[mcp]' flash-context mcp --transport stdio

Exposes explore_repository(query, repo_root?, max_turns?, citation?). See MCP integration for editor configuration and source launches.

Documentation

License

Apache License 2.0.

Metadata

Release files for flash-context 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flash-context 0.2.0
File Size Uploaded Provenance Actions
flash_context-0.2.0.tar.gz 28.9 kB With provenance Details for flash_context-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flash-context 0.2.0
File Interpreter ABI Platform Actions
flash_context-0.2.0-py3-none-any.whl Python 3 none any Details for flash_context-0.2.0-py3-none-any.whl

Total release size: 61.7 kB

Release files / flash_context-0.2.0.tar.gz

Download URL flash_context-0.2.0.tar.gz
Size 28.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b76ca13035979a8f52433825d5bcee77d40ce7035e09beca97b1fca90e86795e
BLAKE2b-256 checksum
How to use checksums
eb9348e10e59e103d470730bb3c5df6b088fe4032585c7a9f654a64fbe954e24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / flash_context-0.2.0-py3-none-any.whl

Download URL flash_context-0.2.0-py3-none-any.whl
Size 32.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42e7eeb30042b9bf010cd4f0f021982996cb3f57a0d898a2b6e23ec778a35fd1
BLAKE2b-256 checksum
How to use checksums
27283383a05d74382c41488953c77991dc5aef3597d3373da796ad0d3def8b79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for flash-context 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for flash_context-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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