{"slug": "did-you-guys-know-about-this-tool-s-a-g-e-cli-that-saved-me-45-in-ai-tokens-by-3", "title": "Did you guys know about this tool \"S.A.G.E - CLI\" that saved me $45 in AI tokens by compressing terminal output 93% in just 3 days of using it.", "summary": "A developer built S.A.G.E (Smart Agent Guidance Engine), an open-source CLI tool that compresses terminal output by 93% to reduce AI token usage. The tool saved the developer $45 in AI tokens over three days by processing 6,613 commands and cutting 30,000 tokens to 2,000. S.A.G.E also uses specialized agents to catch errors and secrets, and runs locally for privacy.", "body_md": "I've been using AI coding assistants (Claude, Codex, etc.) and kept hitting token limits because terminal output is SUPER noisy. A single `pytest`\n\ncommand can eat 30,000 tokens of your context.\n\nSo I started using **SAGE** (Smart Agent Guidance Engine) - it sits between your terminal and AI agents, compressing output by 93% while keeping all the important stuff.\n\nCLI install pip install psycgod-sage\n\nsage connect (Git OAuth)\n\nWhat it does:\n\n- Wraps your commands:\n`sage run -- pytest`\n\n- Compresses output in real-time (30k tokens → 2k)\n- 10+ specialized agents watch for errors, secrets, dependencies\n- ML learns your command patterns to predict failures\n- Everything stays local by default (privacy-first)\nReal numbers from my usage:\n- Processed: 6,613 commands\n- Saved: 15.3 million tokens (would cost ~$45 at Claude Sonnet rates)\n- Agent runs: 41,578 (caught secrets, predicted errors, etc.)\nWhy I'm sharing:\nIt's a open-source, free and because I figured others hit the same problem. It's MIT licensed, runs locally, and has a live dashboard showing aggregate proof (no raw data).\nRepo\n**GitHub:** /PsYcGoD/sage\nThe compression alone saves tokens, but the agents catching secrets before you commit them? That's saved me a few times already.\nQuestions welcome! Would love feedback from the community.†", "url": "https://wpnews.pro/news/did-you-guys-know-about-this-tool-s-a-g-e-cli-that-saved-me-45-in-ai-tokens-by-3", "canonical_source": "https://dev.to/psycgod/did-you-guys-know-about-this-tool-sage-cli-that-saved-me-45-in-ai-tokens-by-compressing-2df1", "published_at": "2026-07-08 19:18:48+00:00", "updated_at": "2026-07-08 19:41:51.694185+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools", "artificial-intelligence"], "entities": ["S.A.G.E", "Claude", "Codex", "PsYcGoD"], "alternates": {"html": "https://wpnews.pro/news/did-you-guys-know-about-this-tool-s-a-g-e-cli-that-saved-me-45-in-ai-tokens-by-3", "markdown": "https://wpnews.pro/news/did-you-guys-know-about-this-tool-s-a-g-e-cli-that-saved-me-45-in-ai-tokens-by-3.md", "text": "https://wpnews.pro/news/did-you-guys-know-about-this-tool-s-a-g-e-cli-that-saved-me-45-in-ai-tokens-by-3.txt", "jsonld": "https://wpnews.pro/news/did-you-guys-know-about-this-tool-s-a-g-e-cli-that-saved-me-45-in-ai-tokens-by-3.jsonld"}}