A developer investigating large context sizes in opencode built opencode-leaner, a plugin with custom minimal agents that drastically cut starting context. A bash-only agent reduced context from ~10.3k to ~1.3k tokens, and a pi-like agent got it to ~5.5k, useful for local LLMs with limited context windows.
SlimToken is an open-source tool that compresses LLM context before sending it to the model, reducing token usage and costs. It runs as a proxy, SDK, or CLI, and uses real token counting with tiktoken. It solves context window limits and high token costs for developers using LLMs.
SlimToken is an open-source tool that compresses LLM context before sending it to the model, reducing token usage and costs. It runs as a proxy, SDK, or CLI, and uses real token counting with tiktoken. It solves context window limits and high token costs for developers using LLMs.
Contextray is a CLI tool that analyzes LLM context windows to identify exact duplicate chunks, such as those caused by agent loops, tool outputs, or framework bugs. It safely removes duplicates without breaking JSON or code, showing where tokens are wasted. It helps developers debugging multi-agent flows reduce token usage and costs.
Contextray is a CLI tool that analyzes LLM context windows to identify exact duplicate chunks, such as those caused by agent loops, tool outputs, or framework bugs. It safely removes duplicates without breaking JSON or code, showing where tokens are wasted. It helps developers debugging multi-agent flows reduce token usage and costs.
A plugin for the OpenCode coding agent that performs context compaction in a way that preserves the local model's prompt cache. Instead of stripping tokens from the conversation start, it keeps system prompt and tools in place and asks the LLM to write a summary, then replaces the rest of the conversation with that summary. This avoids costly re-prefilling of already cached conversation tokens when running local models.
A plugin for the OpenCode coding agent that performs context compaction in a way that preserves the local model's prompt cache. Instead of stripping tokens from the conversation start, it keeps system prompt and tools in place and asks the LLM to write a summary, then replaces the rest of the conversation with that summary. This avoids costly re-prefilling of already cached conversation tokens when running local models.
A developer built agents-context-router, a skill that splits bloated coding-agent instruction files into a small always-loaded kernel and task-specific wiki pages. It ships as a zero-dependency Python CLI and works with Claude Code, Codex, Cursor, and Gemini CLI. On three repo-maintenance tasks it scored 33/33 checks versus 21/33 without it.
A developer built agents-context-router, a skill that splits bloated coding-agent instruction files into a small always-loaded kernel and task-specific wiki pages. It ships as a zero-dependency Python CLI and works with Claude Code, Codex, Cursor, and Gemini CLI. On three repo-maintenance tasks it scored 33/33 checks versus 21/33 without it.
A user on Reddit praises OpenCode's dynamic context pruning for actively managing LLM context, contrasting it with poor experiences from KV quantization. They run Qwen3.6 27B and Gemma 4 31B models on a Jetson AGX Orin with 64GB RAM, using contexts of 120k and 80k tokens respectively for tasks like programming and personal assistance.
A user on Reddit praises OpenCode's dynamic context pruning for actively managing LLM context, contrasting it with poor experiences from KV quantization. They run Qwen3.6 27B and Gemma 4 31B models on a Jetson AGX Orin with 64GB RAM, using contexts of 120k and 80k tokens respectively for tasks like programming and personal assistance.