Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityNighthawk M7 Pro im Test: Flexibler, aber teurer 5G-Router(21.09.2026 um 10:30 Uhr)
Sichere ProgrammierungNeue Gmail-Funktion: So sparst du jetzt Zeit bei Einmalcodes(21.09.2026 um 10:00 Uhr)
Sichere ProgrammierungYour GIF exporter is fine — the container is the problem(21.09.2026 um 10:01 Uhr)
Sichere ProgrammierungCSS, Motion, or GSAP? I Choose by Who Owns the Animation(21.09.2026 um 10:12 Uhr)
Windows Tipps & SecurityNighthawk M7 Pro im Test: Flexibler, aber teurer 5G-Router(21.09.2026 um 10:30 Uhr)
Sichere ProgrammierungNeue Gmail-Funktion: So sparst du jetzt Zeit bei Einmalcodes(21.09.2026 um 10:00 Uhr)
Sichere ProgrammierungYour GIF exporter is fine — the container is the problem(21.09.2026 um 10:01 Uhr)
Sichere ProgrammierungCSS, Motion, or GSAP? I Choose by Who Owns the Animation(21.09.2026 um 10:12 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

I built a tool that cuts Claude/ChatGPT token usage by 97% — here's how it works

The Problem You're debugging a bug. You open Claude. You paste 10 files. You hit the context limit. Or worse — you paste the wrong files and Claude gives you a useless answer. This happens because most repos have hundreds of files but y…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

The Problem



You're debugging a bug. You open Claude. You paste 10 files. You hit the context limit.

Or worse — you paste the wrong files and Claude gives you a useless answer.



This happens because most repos have hundreds of files but you only need 10-15 for any given task.



What I Built



ContextOS — it scans your entire repo, ranks files by relevance to your current task, and exports a perfectly-sized context pack. Secrets are automatically redacted. No cloud. No accounts.



Real Numbers



Tested on FastAPI (2,811 files):







bash
git clone https://github.com/tiangolo/fastapi
cd fastapi
pip install rm-contextos
contextos scan
contextos pack --task "add rate limiting to auth endpoint"

Output:
Without ContextOS : ~284,000 tokens (2,811 files)
With ContextOS : ~7,998 tokens (15 files)
Saved : ~276,002 tokens (97% reduction)

How It Works

1. contextos scan — indexes every file: imports, exports, symbols, purpose
2. contextos pack --task "your task" — ranks files using:
- Keyword matching against your task description
- Import graph centrality (files imported by many others rank higher)
- AST symbol extraction (matches function/class names)
- Git churn scoring (recently modified files rank higher)
3. Fills the token budget greedily, redacts 14 secret patterns, exports

MCP Server

It also runs as an MCP server so Claude Desktop/Code can call it directly:

pip install "rm-contextos[mcp]"
contextos serve --stdio /path/to/project

Claude then has tools: pack_context, list_files, get_file, churn_report.

Install

pip install rm-contextos # base
pip install "rm-contextos[all]" # + MCP + AST + headroom compression

GitHub: https://github.com/Rohithmatham12/ContextOS
Docs: https://Rohithmatham12.github.io/ContextOS/

Apache-2.0. Fully local. PRs welcome.


Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I built a tool that cuts Claude/ChatGPT token usage by 97% — here's how it works

Thematisch verwandte Begriffe: built, tool, that, cuts · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94030 | A security vulnerability has been detected in SerenityOS up to 3d83e4509…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick