More screenshots

    Works with the AI Agents you already use

    agentcontext

    by Yohannes Bekele

    1

    Compress large files and command outputs locally to save tokens while retaining the ability to recover full details.

    Free

    Security scanned
    agentcontext

    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).

    TestErrorLocation
    invoice.test.ts › computes totals with taxAssertionError: expected 118.5 to be 118.05src/billing/invoice.test.ts:42:19
    session.test.ts › refreshes expired tokensTypeError: 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

    1. Check the tax/rounding logic behind the invoice total (off by exactly 0.45, not a floating-point issue).
    2. Guard against a missing session in refresh() or fix the test fixture.
    3. Need an omitted line? retrieve_context with 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

    1. Read through the server using read_file to get a compressed version of a local file with markers for omitted sections.
    2. Analyze the compact result to identify specific areas of interest, such as failing test cases or specific function definitions.
    3. Retrieve missing context by calling retrieve_context with a contextId and a selector like a line range, JSON path, or marker ID.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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-serverNode.js 22.13+

    Install the MCP server first: npx -y @agentcontext/mcp-server (Windows: cmd /c npx -y @agentcontext/mcp-server).

    Permissions

    Read Files
    Write Files
    Network Access
    Terminal / Shell

    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.

    Listed12 days ago

    What's inside

    Frequently Asked Questions

    AgentContext uses a local server to deterministically compress logs, code, and JSON data before it reaches your LLM. It replaces repetitive or low-value text with unique markers, allowing the agent to "see" the structure of a massive file without consuming thousands of tokens.

    This skill is built on the Model Context Protocol (MCP) and is compatible with any AI agent or IDE that supports MCP servers, such as Claude Desktop, Cursor, or any agent using the @agentcontext/mcp-server package.

    Unlike LLM-based summarization which can hallucinate or omit details permanently, AgentContext is a deterministic, lossless system. All compressed sections are assigned a `contextId`, enabling the agent to fetch the exact, original text whenever it needs to dive deeper into a specific section.

    You will need Node.js 22.13 or higher installed on your machine. The setup involves installing the @agentcontext/mcp-server package and white-listing the specific project directories you want the agent to be able to access.

    Yes, the server supports `execute_command` (when enabled), which pipes high-volume terminal output—like build logs or test suites—directly through the compression engine to prevent your terminal history from flooding the AI's memory.

    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.

    Free