flameox
Bounded local runtime evidence for coding agents.
Flameox coordinates profilers, benchmark tools, trace processors, and direct local targets. It gives an agent a short path from an explicit native artifact or live command to bounded evidence, while keeping preservation optional.
Version 0.2 is a clean break. There is no workspace to initialize, no
flameox.toml, no SQLite control plane, no durable job to poll, and no parent
directory discovery. Existing artifacts remain usable by passing their exact
paths and formats to analyze; old .diagnostics state is not migrated.
Quick start
uv sync --extra dev --extra memory --extra trace --extra cpu
uv run flameox mcp inspect
uv run flameox analyze artifact.preview /absolute/path/to/artifact.json
uv run flameox capture --provider direct -- python benchmark.py
The MCP server fixes its project root at startup. Manual launches default to the startup working directory:
uv run flameox mcp serve --project-root "$PWD"
flameox setup prints a version-bound stdio client configuration using Python
3.12 and the exact running Flameox release. It does not change an MCP client
registration; apply the printed command through the client's supported MCP
management interface. Explicit
--provider selections prepare the exact version-pinned uvx environment in
the printed launcher by resolving it once into uvx's cache; they do not create a
persistent global uv tool installation. Each invocation declares the complete
managed provider set for that launcher rather than adding to remembered state.
Use --timeout-seconds for a slow cold resolution. System and vendor tools are
diagnosed with external install guidance. Setup never initializes the project
or creates .flameox.
Authority model
explicit artifact paths / typed direct target
│
▼
bounded process-lifespan runtime
│ │
▼ ▼
inline evidence session scratch/cache
│
explicit preservation
│
▼
<project>/.flameox
Analysis and unpreserved capture make no durable Flameox writes. Capture
artifacts stay in bounded session scratch until preservation or server
shutdown. The first preserve_evidence call creates .flameox, stores native
bytes and a canonical evidence bundle by SHA-256, and adds .flameox/ to the
repository-local .git/info/exclude when applicable.
The agent owns hypotheses and narrative findings in its own notes. Flameox owns only observed inputs, effective requests, execution provenance, typed evidence, coverage, truncation, limitations, and optional immutable preservation.
MCP interface
The server exposes actual evidence operations for client-side tool search instead of hiding its
capabilities behind discover, inspect, or generic analyze(capability_id, arguments) calls.
There are 24 read-only analysis tools, 17 executing capture tools, and three lifecycle tools. For
example:
analyze_cpu_hotspots capture_cpu_hotspots
analyze_gpu_launches capture_gpu_launches
analyze_benchmark_compare capture_benchmark_summary
analyze_kernel_validation capture_sanitizer_failures
prepare_providers preserve_evidence query_evidence
Each tool advertises its capability-specific options and compatible providers in its input schema. Analysis and capture have separate names and annotations because reading an artifact and executing a target are materially different effects. Tool search happens in the MCP client; Flameox does not require an additional catalog-search call.
It exposes one resource template, flameox://evidence/{evidence_id}, for the
digest-bound, redacted projection of the canonical immutable manifest. Full
argv, environment values, working directories, and host paths remain available
only through explicit local manifest inspection. Native artifact bytes are
deliberately not available as MCP resources.
Direct capture accepts an argv array, a project-contained cwd, bounded environment overrides, a typed compatible-provider variant, capability-specific options, an explicit single/experiment choice, and limits as top-level tool arguments. There is no generic request or arguments envelope. Shell strings are never accepted. Work remains owned by the live MCP request, so SDK progress and cancellation apply directly; there are no detached or restart-surviving tasks.
Managed external collectors such as py-spy execute from Flameox's uvx
environment. In-process collectors such as coverage.py and Memray are verified
in, and run with, the workload's declared Python interpreter. Flameox does not
substitute one Python runtime for the other. When a capture reports a missing managed provider,
prepare_providers prepares its version-pinned uvx environment and returns that same launcher for
reconnection. The agent supplies the complete provider list it wants in that launcher; Flameox does
not merge it with prior calls. Preparation does not modify the running MCP process. When the client
must reconnect, the result returns a typed next_action with kind: "reconnect_mcp", an agent-facing
message, and the launcher to use. The managed provider IDs are aiperf, memray, otlp, perfetto,
py-spy, and torch. Host tools, drivers, and permissions are never installed or changed; the same
result reports their setup guidance.
Comparison is intentionally a two-stage workflow. Flameox captures representative baseline and
candidate summaries separately, optionally preserves them, and then passes both artifacts to an
analyze_*_compare tool. There are no capture_*_compare tools: experiment capture measures cases
and reports an effect, but it is not a substitute for comparing explicit native artifacts.
Evidence quality
An investigation still follows:
symptom → capture or explicit artifact → bounded evidence → hypothesis
→ discriminating experiment → supported, refuted, or inconclusive finding
A profile supports exploration, not causality. Confirmatory claims require a representative target, declared metric and estimand, compatible identities, preserved samples, a practical threshold, and an appropriate semantic oracle.
See architecture, storage and evidence, interfaces, runtime safety, and investigations for the contracts.
Development
Flameox requires Python 3.12 or newer and uses the committed uv.lock.
uv run ruff check src tests tools
uv run ruff format --check src tests tools
uv run mypy src tests tools
uv run lint-imports
uv run pytest -q
The project is licensed under the MIT License.
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 flameox-0.2.3.tar.gz.
File metadata
- Download URL: flameox-0.2.3.tar.gz
- Upload date:
- Size: 15.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dad84df5c76184424a8524f0e4172068cf91a0f07820541313bf9ea654ed701
|
|
| MD5 |
699b0b09797e13a43a265ab1cd53c921
|
|
| BLAKE2b-256 |
6a47724dcc0a35677c59a7c41d02fa2a43fa8cf9c4200f865d8c9ffed23c9527
|
Provenance
The following attestation bundles were made for flameox-0.2.3.tar.gz:
Publisher:
release.yml on morluto/flameox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flameox-0.2.3.tar.gz -
Subject digest:
2dad84df5c76184424a8524f0e4172068cf91a0f07820541313bf9ea654ed701 - Sigstore transparency entry: 2682555646
- Sigstore integration time:
-
Permalink:
morluto/flameox@7fceaaf7e44e66919cf821ba085775852cf655bd -
Branch / Tag:
refs/heads/main - Owner: https://github.com/morluto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7fceaaf7e44e66919cf821ba085775852cf655bd -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file flameox-0.2.3-py3-none-any.whl.
File metadata
- Download URL: flameox-0.2.3-py3-none-any.whl
- Upload date:
- Size: 179.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74b3b0f0c4df74b1e6fe27f9651bb6a1d27891d229dc6001ac92ff008d38c6db
|
|
| MD5 |
adc60e80df24de5823c24904cb395b48
|
|
| BLAKE2b-256 |
154eeb24664ec0d9e429ebf2772feb897af528486fae6a22c82d46c80a3c0eec
|
Provenance
The following attestation bundles were made for flameox-0.2.3-py3-none-any.whl:
Publisher:
release.yml on morluto/flameox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flameox-0.2.3-py3-none-any.whl -
Subject digest:
74b3b0f0c4df74b1e6fe27f9651bb6a1d27891d229dc6001ac92ff008d38c6db - Sigstore transparency entry: 2682555693
- Sigstore integration time:
-
Permalink:
morluto/flameox@7fceaaf7e44e66919cf821ba085775852cf655bd -
Branch / Tag:
refs/heads/main - Owner: https://github.com/morluto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7fceaaf7e44e66919cf821ba085775852cf655bd -
Trigger Event:
workflow_dispatch
-
Statement type: