imbue-mngr-codex-usage
Codex data provider for mngr usage. Codex exposes no statusline or in-process
plugin, but mngr already tails its rollout JSONL into a raw transcript via
mngr_codex's background-tasks supervisor. This package adds:
- The writer (
codex_usage.sh): installed into the agent'scommands/dir, where mngr_codex'scodex_background_tasks.shlaunches it iff present. It reads the raw rollout stream and emits onecost_snapshotpertoken_countitem toevents/codex/usage/events.jsonl. - The reader: an
aggregate_usage_sourcehookimpl claiming thecodexsource, aggregated session-cumulatively (eachtoken_countcarries the session's cumulative total, so the freshest per session wins).
What gets captured
Codex reports cumulative token usage (info.total_token_usage) but no dollar
cost, so cost is left null and the reader estimates it from tokens via the
pricing table (provenance ESTIMATED). input_tokens includes cached, so the
writer emits input = input_tokens - cached_input_tokens and
cache_read = cached_input_tokens (OpenAI has no cache-write surcharge). The
model is openai/<model> from the rollout's turn_context.
In ChatGPT-plan (subscription) mode, token_count also carries 5h/7d rate-limit
windows, which the writer maps onto the window schema -- so Codex subscription
agents get Claude-style windows, and the session is classified SUBSCRIPTION
(imputed). Without rate limits it's API_KEY (real spend).
Metadata
Release files for imbue-mngr-codex-usage 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| imbue_mngr_codex_usage-0.1.2.tar.gz | 18.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| imbue_mngr_codex_usage-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.0 kB
Release files / imbue_mngr_codex_usage-0.1.2.tar.gz
| Download URL | imbue_mngr_codex_usage-0.1.2.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37f63443979dc1c4f7047788e40c5a3ac7911d3c23fd77c1783061381faaf73b
|
|
BLAKE2b-256 checksum How to use checksums |
0f8cb511849faca3c7f8c6cb18e44b0a6146377c8abc9bed7cb0abe12144c8f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 18, 2026.
Transparency logRelease files / imbue_mngr_codex_usage-0.1.2-py3-none-any.whl
| Download URL | imbue_mngr_codex_usage-0.1.2-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89e585d6218854dc587e16acbd487dc0ab0af3aafa3df50211210fd84b907e61
|
|
BLAKE2b-256 checksum How to use checksums |
18bb1a59e7d65b7f06d463709bf079f68501b0a0f0749313da2c07230737e596
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 18, 2026.
Transparency log