Compress Claude Code context and manage agent skills with tq-forge
To address the high token consumption of resident skill definitions and model compatibility issues in Claude Code, developers built the open-source tool tq-forge. It enables lossless context compression, structured scoring, model compatibility checks, and automated skill generation from user intent, reducing resident tokens from 7,337 to 3,121.
DEV.to #claudecode
Claude Codetq-forge
Added 2026-11-14 · originally published Fri, 13 Nov 2026 16:52:18 +0000
Steps
- 1Add the plugin via the Claude Code plugin marketplace using /plugin marketplace add tanishq286/tq-forge, or run via the npm CLI: npx tq-forge install
- 2Run the lossless context optimizer with the /savings command to compress resident skill context while keeping MCP servers available
- 3Run structured scorer assertions and check model compatibility using /tq-forge-test and /tq-forge-promote
- 4Generate or learn skills and 5-file sub-agents from a one-line prompt, documentation page, browser workflow, or technical thread using /tq-forge-skill, /tq-forge-agent, or /tq-forge-learn
Copy-ready prompt
Please help me generate a structured SKILL.md file or a 5-file sub-agent based on the following requirements: [enter your requirements, technical thread, or documentation link], ensuring it features clear reusable steps and model compatibility.
#AI Agent#Claude Code#Token Optimization#Open Source Tool
Related use cases
Summarized by AI from the original source - refer to the original post for details. Copyright belongs to the original author.