CtxPack0.4.0
Token-aware context extraction for AI agents
v0.4.0
3.0 MBscanned clean
Verify your download
Select the file you downloaded to check it against the hash we published — the check runs in your browser, nothing is uploaded.
About
CtxPack converts web pages, HTML documents, and Markdown files into compact context that AI agents can consume, removing page clutter while retaining useful structure. It is intended to run before an agent reads a URL, and can also process a local HTML or Markdown file. The extractor discards scripts, styles, noscript, SVG, canvas, and iframe content, along with nav, footer, and aside elements.
Its filtering is keyword-based, so a class such as site-nav-primary is treated as navigation while ordinary text containing navigation can remain; useful content may therefore be dropped. The --query option moves task-relevant sections toward the beginning, while --json produces structured output for agent calls and Markdown output includes source metadata. Markdown can include a per-run savings table with --stats, JSON always carries statistics, --no-record skips recording a run, and -o writes the result to a file.
Each normal execution is logged in ~/.ctxpack/stats.jsonl, allowing cumulative token savings to be tracked over time. Counts are model-independent estimates: common Hiragana, Katakana, and CJK Unified Ideographs count as about 0.8 tokens each, while other characters count as roughly one token per four characters, with rare ideographs and emoji using fallback handling. Exit code 1 represents runtime problems such as network failures or oversized responses, whereas code 2 indicates a usage error or missing input file.
Developed by Akira Taniwaki, CtxPack is open-source software for Windows on x64 and arm64 systems. The current CLI preserves the earlier Python package’s flags, subcommands, exit codes, JSON schema, and stats history, but the Python library API from ctxpack import pack is no longer available. Developers can contribute through GitHub using an account there.
Requires Windows 10+ · Server 2016+ · Architecture: x64
Details
SHA-256
Does this still work for you?
Badge for your website
Developers can show that CtxPack is available on MirrorNest. Copy the code below: the badge links to this page and updates itself.
<a href="https://mirrornest.com/software/ctxpack-a64a608d"><img src="https://mirrornest.com/badge/ctxpack-a64a608d.svg" alt="CtxPack on MirrorNest" height="20"></a>[](https://mirrornest.com/software/ctxpack-a64a608d)Reviews
No reviews yet — be the first.
CtxPack alternatives
VectorCraft
Vector illustration; an open-source, clean-room reimplementation of Adobe Illustrator, rebuilt in pure Rust
Hysteria
A powerful, lightning fast and censorship resistant proxy.
dotMemory Unit Standalone Launcher
Effective memory usage in .NET applications with dotMemory Unit
GamebarHandler
Gets rid of those pesky 'open ms-gamebar' and 'open ms-gamingoverlay' popups.
ShareX
ShareX is a free and open-source application that enables users to capture or record any area of their screen with a single keystroke. It also supports uploading images, text, and various file types to a wide range of destinations.
cerebro-es (Install)
elasticsearch web admin tool