Code3context — AI skill for Claude Code
⚡ Fast, zero-dependency tool to pack any codebase into token-optimized context for Claude, ChatGPT & Gemini.
How to install Code3context
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open carloseduardoscsouza-dot/code3context and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Code3context does
⚡ Fast, zero-dependency tool to pack any codebase into token-optimized context for Claude, ChatGPT & Gemini. Features smart AST skeleton extraction to save up to 80% tokens, real-time multi-model API cost calculator, automated secret leak protection, dual Markdown/XML export, and instant 1-click clipboard copy.
Alternatives in AI
- Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★
- Codebase Digest — 🗜️ Codebase-digest is your AI-friendly codebase packer and analyzer 375 ★
- Semble Rs — Fast, AI-agent-native code search in Rust — hybrid BM25 + semantic, Tree-sitter AST chunking, dependency & imp 210 ★
README
🧠 code3context (`c2c`)
**Pack, skeletonize, and optimize any repository into LLM-ready context with token & cost estimates.**
[](LICENSE) [](pyproject.toml) [](#features) [](https://buymeacoffee.com/carlosdevkadu) [](CONTRIBUTING.md)
💖 Support & Sponsor
If **code3context** saved you tokens, time, or API costs on your projects, consider buying me a coffee:
[](https://buymeacoffee.com/carlosdevkadu)
👉 [buymeacoffee.com/carlosdevkadu](https://buymeacoffee.com/carlosdevkadu)
⚡ Highlights
- 🦴 Smart Skeleton Mode (
-s): Extracts interfaces, signatures, and docstrings while stripping bodies. Saves ~70–85% of tokens. - 💰 Token & Cost Calculator: Automatically calculates input tokens and estimates API costs across Claude 3.5 Sonnet, GPT-4o, Gemini 1.5 Pro/Flash, and DeepSeek V3.
- 📋 Direct to Clipboard (
-c): One flag copies the formatted bundle directly to your OS clipboard. Just runc2c -s -cand pressCtrl+Vin ChatGPT or Claude. - 🛡️ Zero-Leak Security: Automatically ignores
.env, private keys (*.pem,*.key), credentials, and database files.
🚀 Quick Start
1-Line Usage
# 1. Pack current folder with Skeleton mode and copy directly to clipboard
python -m cli . -s -c
# 2. Pack a specific directory and save to a markdown file
python -m cli path/to/project -s -o context.md
# 3. Launch the full Web SaaS Dashboard locally
python -m server
Related Skills
Code Context MCP
🧠 Python MCP Server for AST Codebase Intelligence, Symbol Extraction, Cyclomatic Complexity & Refactoring Ana
Pixel Crew
Smart MOD for Claude Code. Picks the cheapest model (Haiku, Sonnet or Opus) for every message and subagent to
Toktoken
TokToken is a fast, single-binary C codebase indexer for AI coding agents. Powered by universal-ctags and SQLi
Ast Outline
ast-outline lets AI coding agents pull exactly the code context they need — a repo skeleton, a file outline, o
Diogenes Context Code Solver MCP
15 TDQS 5.0/5.0 deterministic AI agent & developer tools: AST context skeleton pruner, BPE token budget planne
Lgd Skeleton
LGD build-time honest scaffold: zero-dependency, fail-closed gates for AI skills and tools (G1-G16).
Related Agents
Image Craft Expert
Crafts optimized text-to-image prompts and generates images using Gemini (nano-banana) and/or ChatGPT (gpt-ima
Task Discoverer
Fast document discovery and parsing using minimal tokens (Haiku-optimized)
Token Optimizer
Otimizador de contexto que inspeciona código e logs com baixo consumo de tokens usando ast-outline e trace-str