{
  "id": 6164023,
  "title": "Measure a context plugin on your own repository before you install it",
  "url": "https://urgent.news/2026/09/07/measure-a-context-plugin-on-your-own-repository-before-you-install-it",
  "topic": "ai",
  "section": "AI",
  "published": "2026-09-07T20:01:51.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/arcticfoxz_255bbe944bc015/measure-a-context-plugin-on-your-own-repository-before-you-install-it-2hf6"
  },
  "original_language": "en",
  "account": "Before installing any plugin, it is crucial to measure its context cost on your own repository. This ensures you understand what the plugin will inject into your agent's context and how it will modify the redacted data. The \"chamnan-measure\" tool allows you to do just that without any server, API key, or uploading of code. It works in five languages and provides a fifty-turn simulation over the repository's own files. The tool downloads the plugin source into your browser tab and runs Pyodide modules over it to report the potential context injections and redactions. The key finding from the 13 pre-measured repositories is that while the injected block size remains between 6.2 and 6.7 KB, the source code grows nearly seventy-fold. This ratio indicates compression rather than compression, as the index is rolled up into a token budget. This project found one recurring defect in commits across fourteen places, including issues with path handling, rule file reading, sort keys, zero-width characters, and file lock timeouts. The Windows CI matrix revealed five issues, including a concurrency defect that went unnoticed until measured. The tool now includes a permanent check for this defect on every platform. The measurement process is a standard library-only process, with no additional dependencies required. This tool provides a valuable first step before installing any plugin, ensuring you understand the potential impact on your agent's context.",
  "summary": "Every plugin in this category tells you it reduces context cost. None of them let you check on your own code first, so I built the page that does, and it is the first thing chamnan 1.23.1 ships. arcticfox2029.github.io/chamnan-measure Paste a public GitHub repository URL. The page downloads the source into your browser tab, runs chamnan's actual modules over it through Pyodide — mapper , rollup ,…",
  "key_points": [
    "Measure plugin context cost before installation",
    "Chamnan-measure tool assesses without server",
    "13 pre-measured repos show 6.2-6.7 KB injected block size"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}