HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
mpecan
tokf
Rust2026–2026
mpecan / tokf

tokf

Config-driven CLI tool that compresses command output before it reaches an LLM context

2Distinct people
2Mentions
0Explicit recommenders
200GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Config-driven CLI tool that compresses command output before it reaches an LLM context

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by 3-hour interval2 dated mentions

Observed mentions: 2026-03-06 17:12:43 UTC to 2026-03-09 16:59:23 UTC.

012026-03-06 15:00:00 UTC to 2026-03-06 18:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsMar 6, 15:002026-03-06 18:00:00 UTC to 2026-03-06 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-06 21:00:00 UTC to 2026-03-07 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-07 00:00:00 UTC to 2026-03-07 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-07 03:00:00 UTC to 2026-03-07 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-07 06:00:00 UTC to 2026-03-07 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-07 09:00:00 UTC to 2026-03-07 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-07 12:00:00 UTC to 2026-03-07 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-07 15:00:00 UTC to 2026-03-07 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-07 18:00:00 UTC to 2026-03-07 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-07 21:00:00 UTC to 2026-03-08 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-08 00:00:00 UTC to 2026-03-08 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-08 03:00:00 UTC to 2026-03-08 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsMar 8, 03:002026-03-08 06:00:00 UTC to 2026-03-08 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-08 09:00:00 UTC to 2026-03-08 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-08 12:00:00 UTC to 2026-03-08 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-08 15:00:00 UTC to 2026-03-08 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-08 18:00:00 UTC to 2026-03-08 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-08 21:00:00 UTC to 2026-03-09 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-09 00:00:00 UTC to 2026-03-09 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-09 03:00:00 UTC to 2026-03-09 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-09 06:00:00 UTC to 2026-03-09 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-09 09:00:00 UTC to 2026-03-09 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-09 12:00:00 UTC to 2026-03-09 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-03-09 15:00:00 UTC to 2026-03-09 18:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsMar 9, 15:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Mar 6, 15:002026-03-06 15:00:00 UTC2026-03-06 18:00:00 UTC110
Mar 6, 18:002026-03-06 18:00:00 UTC2026-03-06 21:00:00 UTC000
Mar 6, 21:002026-03-06 21:00:00 UTC2026-03-07 00:00:00 UTC000
Mar 7, 00:002026-03-07 00:00:00 UTC2026-03-07 03:00:00 UTC000
Mar 7, 03:002026-03-07 03:00:00 UTC2026-03-07 06:00:00 UTC000
Mar 7, 06:002026-03-07 06:00:00 UTC2026-03-07 09:00:00 UTC000
Mar 7, 09:002026-03-07 09:00:00 UTC2026-03-07 12:00:00 UTC000
Mar 7, 12:002026-03-07 12:00:00 UTC2026-03-07 15:00:00 UTC000
Mar 7, 15:002026-03-07 15:00:00 UTC2026-03-07 18:00:00 UTC000
Mar 7, 18:002026-03-07 18:00:00 UTC2026-03-07 21:00:00 UTC000
Mar 7, 21:002026-03-07 21:00:00 UTC2026-03-08 00:00:00 UTC000
Mar 8, 00:002026-03-08 00:00:00 UTC2026-03-08 03:00:00 UTC000
Mar 8, 03:002026-03-08 03:00:00 UTC2026-03-08 06:00:00 UTC000
Mar 8, 06:002026-03-08 06:00:00 UTC2026-03-08 09:00:00 UTC000
Mar 8, 09:002026-03-08 09:00:00 UTC2026-03-08 12:00:00 UTC000
Mar 8, 12:002026-03-08 12:00:00 UTC2026-03-08 15:00:00 UTC000
Mar 8, 15:002026-03-08 15:00:00 UTC2026-03-08 18:00:00 UTC000
Mar 8, 18:002026-03-08 18:00:00 UTC2026-03-08 21:00:00 UTC000
Mar 8, 21:002026-03-08 21:00:00 UTC2026-03-09 00:00:00 UTC000
Mar 9, 00:002026-03-09 00:00:00 UTC2026-03-09 03:00:00 UTC000
Mar 9, 03:002026-03-09 03:00:00 UTC2026-03-09 06:00:00 UTC000
Mar 9, 06:002026-03-09 06:00:00 UTC2026-03-09 09:00:00 UTC000
Mar 9, 09:002026-03-09 09:00:00 UTC2026-03-09 12:00:00 UTC000
Mar 9, 12:002026-03-09 12:00:00 UTC2026-03-09 15:00:00 UTC000
Mar 9, 15:002026-03-09 15:00:00 UTC2026-03-09 18:00:00 UTC110

What Hacker News says

2 sources

Show HN: Tokf – Stop wasting LLM context on verbose build output

If you use Claude Code (or similar AI coding tools), you've probably noticed that a single `cargo test` or `npm run build` can dump thousands of tokens of noise into your context window. Passing tests, repetitive warnings, full stack traces — stuff that's useful for humans scrolling through a terminal, but wasteful for an LLM that just needs to know what failed and why. tokf is a Rust CLI that intercepts command output and compresses it using TOML-defined filters. You can strip passing tests, collapse repetitive errors, trim stack traces, etc. The tricky part was making it work with build orchestrators. Hooking `just test` doesn't help if the noisy output comes from the `cargo test` that just runs internally. I ended up solving this three different ways depending on the tool: - make/just: use their --shell flag to route execution through
Read the rest
tokf - git hooks / other tools: prepend a shim directory to PATH Wrote up the full rabbit hole: https://pecan.si/posts/getting-into-make-just-and-hooks/ Built in Rust, ~1,800 daily executions in my workflow. Filters are TOML with a Lua escape hatch. Open source: https://tokf.net
1 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.