More screenshots
Works with the AI Agents you already use
agentcontext
Compress large files and command outputs locally to save tokens while retaining the ability to recover full details.
Free
agentcontext
Example session with this skill installed
Use AgentContext to read test-output.log and tell me which tests failed, why, and what warnings appeared.
- Read your context and instructions
- Compiled the agentcontext
I read test-output.log through AgentContext: 2,734 instead of 22,049 tokens (87.6% saved). Only exact repeats were collapsed, so every error and warning is still visible.
Compressed log (excerpt)
2026-11-23T10:00:00Z INFO [db] pool size=10 idle=8
[... s1: repeated 719 more times (lines 7-11, 14-19, 22-27, ... (+117 more))]
2026-11-23T10:00:06Z INFO [http] GET /health 200 2ms
[... s2: repeated 119 more times (lines 20, 28, 37, ... (+116 more))]
FAIL src/billing/invoice.test.ts > computes totals with tax
AssertionError: expected 118.5 to be 118.05 // Object.is equality
at src/billing/invoice.test.ts:42:19
---
[agentcontext] log-compressor: 2734/22049 tokens (estimated), 87.6% saved.
Result: 2 of 942 tests failed (118 of 120 files passed).
| Test | Error | Location |
|---|---|---|
| invoice.test.ts › computes totals with tax | AssertionError: expected 118.5 to be 118.05 | src/billing/invoice.test.ts:42:19 |
| session.test.ts › refreshes expired tokens | TypeError: Cannot read properties of undefined (reading 'expiresAt') | refresh in src/auth/session.ts:88:23 |
Warnings: punycode DeprecationWarning ×40, WARN [cache] eviction rate high ×12. No ERROR/FATAL log lines besides the failures.
Next steps
- Check the tax/rounding logic behind the invoice total (off by exactly 0.45, not a floating-point issue).
- Guard against a missing session in
refresh()or fix the test fixture. - Need an omitted line?
retrieve_contextwith the contextId and{"type":"segment_id","value":"s1"}returns it exactly.
Connects securely to your tools. The creator never sees your data.
About this skill
Context window exhaustion is a constant friction point when working with large logs, massive JSON responses, or legacy codebases. LLMs often truncate important data or hallucinate details when overwhelmed by high token counts. AgentContext solves this by moving the heavy lifting to a local server, ensuring your agent only sees a compact, intelligently compressed version of the data while keeping the full source reachable.
What it does
- Deterministic compression collapses identical log lines, duplicate paragraphs, and unchanged diff context without using LLM tokens.
- Selective reading extracts specific line ranges, JSON paths, or semantic sections from massive files.
- Lossless recovery allows the agent to fetch the exact text replaced by markers using specific IDs or keywords.
- Command output capture processes long-running build or test outputs through the server to prevent context overflow.
- Context optimization takes existing long strings and compresses them for repeated reference during a session.
How it works
- Read through the server using
read_fileto get a compressed version of a local file with markers for omitted sections. - Analyze the compact result to identify specific areas of interest, such as failing test cases or specific function definitions.
- Retrieve missing context by calling
retrieve_contextwith acontextIdand a selector like a line range, JSON path, or marker ID. - Execute commands via
execute_command(if enabled) to pipe high-volume terminal output directly into the compression engine.
Frameworks & tools
Requires Node.js 22.13+ and the @agentcontext/mcp-server package. It works within allowed project directories and supports JSON, Markdown, source code, and unified diff formats.
Why this beats prompting it yourself
Standard prompting relies on the LLM to ignore irrelevant data, but you still pay for every token sent. AgentContext physically prevents those tokens from entering the context window, reducing latency and cost while providing a deterministic way to recover omitted details that a simple "summarize this" prompt would lose.
Use cases
- Debugging thousand-line test logs where only unique stack traces matter.
- Navigating large documentation files or READMEs without hitting token limits.
- Inspecting deep JSON API responses for specific nested values.
- Reviewing large PR diffs by collapsing unchanged boilerplate code.
Known limitations
Edits require reading verbatim text through standard tools as compression may omit necessary characters. Content stored by the server can expire, requiring a re-read if NOT_FOUND occurs.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 12 days ago
- Free with an Agensi account
- Software
- @agentcontext/mcp-server
Node.js 22.13+
Install the MCP server first: npx -y @agentcontext/mcp-server (Windows: cmd /c npx -y @agentcontext/mcp-server).
Permissions
Read Files: the MCP server reads files inside the project only. Write Files / Terminal: the skill may redirect long command output to .agentcontext/ in the project so it can be read compactly. Network: npx downloads @agentcontext/mcp-server from npm on first use. The server itself makes no network calls and sends no telemetry.
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.