Agentskin

io.github.Shawn5cents由 GitHub 帳號 Shawn5cents 發布v4.0.1更新於 Oct 24, 2026

The Semantic Layer for AI Agents. Prunes noisy API data by 70%+ for token-efficient reasoning.

概覽

AI 產生的概覽

本機 Node.js MCP 伺服器,在 JSON、命令列輸出、純文字與抓取的網頁進入 AI 助理上下文前先行壓縮。

可以做什麼
  • 透過單一自動辨識的入口壓縮 JSON、命令列輸出或純文字
  • 抓取公開網址並套用網址專屬規則裁剪回應內容
  • 以規則驅動的縮減器精簡終端機輸出
  • 提供診斷工具:辨識網址類型、移除 ANSI 控制碼、估算 token 數量、檢視推理資訊
適用情境
適合助理需要處理龐大的 API 回應、冗長的 JSON、終端機日誌或抓取的網頁,希望在保留任務所需資訊的同時降低 token 用量的情境。
執行需求
透過 npx 以 stdio 在本機執行,需要 Node.js。可選擇以環境變數提供搜尋與媒體 API 金鑰:APILAYER_KEY、BRAVE_SEARCH_API_KEY、SERPER_API_KEY、TAVILY_API_KEY。抓取網址需要網路存取。
安裝前請注意
它會代替助理抓取公開網址;README 提到 SSRF 檢查、回應大小限制、速率限制與逾時,但抓取內容仍會離開本機。選用 API 金鑰以環境變數傳入,可能產生服務商使用費用。壓縮本身具損失性,需確認關鍵資訊未被刪除。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Agentskin,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

AgentSkin

[npm version] [License: MIT]

Context middleware for AI agents. AgentSkin removes low-value API, JSON, and terminal noise before it enters model context.

The frozen AgentSkin 5.1 offline core evaluation also has an accepted Sparse Env execution path. AgentSkin preserves the workload correctness contract while Sparse Env owns cold/warm environment selection and lifecycle; see agentskin/docs/SPARSE_ENV.md.

What it does

AgentSkin has three primary workflows:

  • compress — one front door that auto-detects JSON, CLI output, or plain text.
  • fetch_optimized_data — fetches a public URL and applies URL-specific pruning rules when available.
  • reduce — compacts terminal output using Tokenjuice's rule-driven reducers.

Five advanced tools remain for compatibility and diagnostics: apply_json_semantic, classify_url, strip_ansi, estimate_tokens, and skin_reasoning.

Quick start

bash
npx -y agentskin@latest

MCP config:

json
{  "mcpServers": {    "agentskin": {      "command": "npx",      "args": ["-y", "agentskin@latest"]    }  }}

Design rule

Fidelity first, compression second. Explicit signals and URL rules are authoritative. Generic keys such as id, name, and url are only fallback signals when no explicit rule exists.

A reduction is useful only when the information required by the task survives it.

Current verification

The release gate runs the AgentSkin-owned test suite, including MCP startup/security and live HTTP integration tests. Run it with:

bash
cd agentskinnpm cinpm test

Benchmarks are workload-specific. The test suite prints measured reductions for its fixtures instead of claiming one universal savings percentage.

Runtime

  • Node.js MCP server over stdio
  • Tokenjuice is a normal npm dependency for CLI reduction
  • URL-specific semantic pruning rules for structured APIs
  • SSRF checks for fetches, response-size limits, rate limiting, Zod validation, and processing timeouts

Development

The npm package lives in agentskin/ inside this repository.

bash
cd agentskinnpm cinpm testnpm run lintnpm pack --dry-run

Credits

AgentSkin semantic pruning and MCP integration: Shawn Nichols Sr. / Nichols Transco LLC.

CLI reduction uses Tokenjuice by Vincent Koc under its MIT license.

來源:README.md,提交 0c35b05

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v4.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。