CtxPack0.4.0

Token-aware context extraction for AI agents

WindowsSystem ToolsOpen source

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

PlatformWindows
CategorySystem Tools
LicenseOpen source
PricingFree
Package IDatani.ctxpack
Latest versionv0.4.0
File typeZIP
Minimum OSWindows 10+ · Server 2016+
Architecturex64
File size3.0 MB
Published11/23/2026

SHA-256

Does this still work for you?

Works (0)Doesn't work (0)Sign in to vote

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.

CtxPack on MirrorNest
HTML
<a href="https://mirrornest.com/software/ctxpack-a64a608d"><img src="https://mirrornest.com/badge/ctxpack-a64a608d.svg" alt="CtxPack on MirrorNest" height="20"></a>
Markdown
[![CtxPack on MirrorNest](https://mirrornest.com/badge/ctxpack-a64a608d.svg)](https://mirrornest.com/software/ctxpack-a64a608d)

Reviews

No reviews yet — be the first.

Leave a review

Sign in to post as a verified member instead of anonymously.

CtxPack alternatives