frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Ctx, save tokens by loading only the relevant tools

https://github.com/stevesolun/ctx
3•stevesolun•1h ago
Hi HN!

Token cost has started to become a high topic of concern to all of us. I tried a few (awesome) tools such as rtk, caveman, and the recent (hillarious but effective) ponytail. What they usually do, is in-line token reduction, e.g. try to compress requests / responses as much as possible.

But then it hit me (and I’m sure others had similar ideas) - just like we have routers that pick the right model, why not have something that will also narrow down the amount of available tools, skills and mcps based on repo/context?

People usually accumulate skills, agents, MCP servers, harnesses, prompts, repo instructions, and local scripts. I’m not saying we are all hoarders, but we sort of are. When did you remove a skill recently? After a while, the model has way too many options to choose from.

ctx tries to fix that by selecting context before the session gets bloated.So no, it doesn’t cleanup your messy garage, but it gives you magic glasses that let you focus only on the tools you need.

It does it by watching the repo and task, walks a graph of available tooling, and recommends a small top-scored bundle of skills, agents, MCP servers, and harnesses.

How does it know? To make sure results are not hallucinated, and repeatable, I curated a list of 91k+ skills, 467 agents, 10.7k MCP servers, 207 harnesses, and built a graph to help ctx make decisions on what to recommend. While I used AI to generate it of course, I curated it and revised it to make sure the data is up to date.

So how this is different from rtk, caveman, ponytail, and similar token-saving tools?

As mentioned above those tools mostly reduce tokens after something is already being used.

rtk compresses command output.

caveman-style tools make the assistant respond with fewer words.

ponytail, is, well, awesome, but again it focuses more on reducing code (YAGNI)

ctx is upstream. It tries to avoid loading irrelevant skills, agents, MCPs, and harnesses into context at all.

So it is not really a replacement. It should work side by side with them!

Use ctx to choose the right tools. Use rtk to reduce terminal-output noise. Use terse-output tools if you want shorter responses.

The goal is simple: save tokens without forcing the user to manually test and compare thousands of possible skills, agents, MCP servers, and harnesses.

Repo: https://github.com/stevesolun/ctx

The Rivian R2's Radio Needs Cell Signal the Wilderness Doesn't Have

https://www.carscoops.com/2026/06/rivian-r2-fm-radio/
1•MBCook•48s ago•0 comments

Anyone give me a strong mobile app idea

1•habeebmd•54s ago•0 comments

Show HN: Dopamine – An MIT-Licensed Open-Source Cross-Platform Effects Library

https://github.com/10in30/dopamine/
1•jmckenty•1m ago•0 comments

Build your project Zig-style

https://fnordig.de/2026/06/16/build-your-project-zig-style/
1•caleb_thompson•1m ago•0 comments

When Intelligence Gets Cheap, What Becomes Valuable?

https://agonora.com/blog/when-intelligence-gets-cheap
3•mw67•2m ago•0 comments

Snap unveils $2,195 AR glasses as CEO Evan Spiegel bets on post-smartphone futur

https://www.cnbc.com/2026/06/16/snap-unveils-2195-specs-ar-glasses-spiegel-bets-on-post-smartphon...
1•mmarian•3m ago•0 comments

Unlocking Extreme AMD Instinct Inference with Software-Hardware Co-Optimization

https://rocm.blogs.amd.com/software-tools-optimization/atom-inference-engine/README.html
1•mooreds•5m ago•0 comments

Prototypes Are Free. Proprietary Data Is Priceless

https://www.kpler.com/blog/data-is-still-king
1•mooreds•6m ago•0 comments

Superpowers 6

https://blog.fsck.com/2026/06/15/Superpowers-6/
1•arittr•6m ago•0 comments

Read the Lutnick Letter That Led Anthropic to Disable Mythos

https://www.bloomberg.com/news/articles/2026-06-16/read-the-lutnick-letter-that-led-anthropic-to-...
2•lesbarclays•8m ago•0 comments

What Is the Return on Tokens?

https://lesbarclays.substack.com/p/what-is-the-return-of-tokens
1•lesbarclays•9m ago•0 comments

The Perceptual Characteristics of Voice-Hallucinations in Deaf People (2006)

https://pmc.ncbi.nlm.nih.gov/articles/PMC2632268/
1•bryanrasmussen•10m ago•1 comments

Russian Frigate Opens Fire with Warning Shots in the English Channel

https://theaviationist.com/2026/06/16/russian-frigate-opens-fire-with-warning-shots-in-the-englis...
1•speckx•13m ago•0 comments

S‑CURVES a field guide to technology adoption · 1825–2026

https://escurves.com/
1•sapal•15m ago•0 comments

Pentagon reduces reliance on Anthropic, switches to competitors after clash

https://cryptobriefing.com/pentagon-reduces-anthropic-reliance-competitors/
4•devonnull•17m ago•0 comments

Lutnick's Letter to Anthropic Warned of Curbs on Top AI Models

https://www.bloomberg.com/news/articles/2026-06-16/lutnick-s-letter-to-anthropic-warned-of-curbs-...
2•airstrike•17m ago•1 comments

The Return of the Energy Transition

https://steelforfuel.substack.com/p/the-return-of-the-energy-transition
1•simonebrunozzi•18m ago•0 comments

Leaked Alleged Text of Trump-Iran Deal

https://www.mediaite.com/media/news/read-leaked-alleged-text-of-trump-iran-deal/
3•cf100clunk•19m ago•1 comments

Hillock – Local, brain-inspired AI memory using SQLite and HDC

https://github.com/roandejager/Hillock
1•roandejager•19m ago•0 comments

Build Your Own Eval Harness from Scratch with Bun and Claude -p

https://alexop.dev/posts/build-your-own-eval-harness-bun-claude-p/
1•speckx•20m ago•0 comments

Claude recursive subagents burning hundreds in extra tokens

https://bsky.app/profile/ed3d.net/post/3moggsr47dk2z
2•belkinpower•20m ago•0 comments

Webview – cross-platform HTML5 UI abstraction layer

https://github.com/webview/webview
1•smartmic•20m ago•0 comments

Show HN: VoiceDraw – Talk system design out loud, the diagrams draw themselves

https://voicedraw.com/
3•ajaypanthagani•22m ago•0 comments

Implementing transformative role playing games : full ebook

https://books.uu.se/uup/catalog/book/55
3•bythreads•22m ago•0 comments

Cascading Tree Sitter Queries

https://github.com/jasper-lyons/ctsq
2•iovrthoughtthis•23m ago•1 comments

Ericsson CEO Ekholm to step down, be replaced by Per Narvinger

https://www.reuters.com/business/ericsson-ceo-step-down-be-replaced-by-per-narvinger-2026-06-16/
2•michalhuman•25m ago•0 comments

Is your company affected by NIS2?

https://nisd2.eu/applicability
2•cjhisey•25m ago•0 comments

Canada Is Building a Surveillance State

https://twitter.com/lucyhargreaves4/status/2066903272271544551
5•arrowsmith•25m ago•0 comments

OpalAI Got Two NASA Contracts to Build AI for Wildfire Intelligence

https://www.opal-ai.com
3•opalai•27m ago•0 comments

VTCLab Media Analyzer v0.6.0 is out

https://media-analyzer.pro/blog/posts/2026-06-16-v0.6.0/
2•ksh2u•27m ago•0 comments