kicode01

Context Hyperdrive — AI skill for Claude Code

AI community

Cognitive intent amplifier, AST context shrinkwrapper, and deterministic prompt cache stabilizer for AI coding agents.

How to install Context Hyperdrive

This entry records only its repository, not the path inside it, so there is no exact command to give. Open kicode01/context-hyperdrive and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Context Hyperdrive does

Cognitive intent amplifier, AST context shrinkwrapper, and deterministic prompt cache stabilizer for AI coding agents.

Alternatives in AI

  • PromptEnhance — Rewrite the following prompt to be clearer, more specific, and more effective for an AI assistant 250 ★
  • Herdr Agent Usage — Credential-scoped AI quota, context, and cache in Herdr for Claude, Codex, Grok, Agy, OpenCode, Pi, omp, Devin 131 ★
  • Ast Outline — ast-outline lets AI coding agents pull exactly the code context they need — a repo skeleton, a file outline, o 46 ★

README

context-hyperdrive

Cognitive intent amplifier, AST context shrinkwrapper, and deterministic prompt cache stabilizer for AI coding agents. Turns terse 3-word prompts into high-IQ execution briefs while cutting token volume by 75-85% and token costs by 90%.

[![Token Savings](https://img.shields.io/badge/Tokens-75%25--85%25%20Reduction-06b6d4.svg)](scripts/shrinkwrap_ast.py) [![Prompt Cache](https://img.shields.io/badge/Provider%20Cache-90%25%20Discount-10b981.svg)](scripts/cache_aligner.py) [![Agent Ready](https://img.shields.io/badge/Agent-Antigravity%20%7C%20Claude%20%7C%20Cursor-8b5cf6.svg)](SKILL.md) [![License](https://img.shields.io/badge/License-MIT-059669.svg)](LICENSE)


![Architecture](./assets/architecture.svg)


Why this exists

Modern AI coding agents face two massive token bottlenecks:

  1. The Reasoning Tax: When users give short, 3-5 word prompts (e.g. "fix checkout crash"), "High Reasoning" models (o1, Claude 3.7 Thinking, Gemini Thinking) burn thousands of hidden tokens "guessing" what to look at, causing 30-second delays and rapid 429 Rate Limit exhaustion.
  2. Context Window Bloat & Cache Misses: Agents routinely dump raw 2,000-line source files into the prompt. Furthermore, dynamic timestamps and shifting file orders constantly invalidate prompt caches, forcing developers to pay full price for millions of input tokens.

`context-hyperdrive` executes a 7-pillar local optimization in under 3 milliseconds:

  1. Intent Amplification: Converts small prompts into structured, mathematically precise execution briefs using local Git diffs and stack traces (scripts/intent_amplifier.py).
  2. Multi-Language AST Shrinkwrap: Native syntax tree and grammar parsers for Python, TypeScript/TSX, Go, and Rust, keeping target functions in full detail while collapsing irrelevant code into lightweight stubs (75% to 85% token volume reduction via scripts/shrinkwrap_ast.py).
  3. Deterministic Cache Pinning: Formats system instructions