技能潮 SkillTide 提交收录
官方说明7 个来源MCP 服务8 天前
context-rot-detection

context-rot-detection

📇 🏠 - Monitors agent context health: token utilization, context quality degradation and session fatigue, with…
在 GitHub 查看 ↗直链 · 无中转页
官方说明📇 🏠 - Monitors agent context health: token utilization, context quality degradation and session fatigue, with 0-100 health scores and recovery recommendations.
配置模板(请按你的客户端调整)
claude mcp add context-rot-detection -- npx -y context-rot-detection
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
13 ★ · milos-product-maker/context-rot-detection · 取自 GitHub 搜索 API · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 7 个来源列出
评分构成
综合分 703 · 13 ★ · 7 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 milos-product-maker/context-rot-detection;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

Context Rot Detection

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

MCP service that gives AI agents self-awareness about their cognitive state.
Every long-running AI agent suffers from **context rot** — measurable performance degradation as the context window fills up. Research from Chroma, Stanford ("lost-in-the-middle"), and Redis confirms this is the #1 practical failure mode in production agent systems.
An agent experiencing context rot doesn't *know* it's degrading — it just starts making worse decisions. This tool gives agents **real-time visibility into their own cognitive health**.
Features
- **Health score (0–100)** based on token utilization, retrieval accuracy, and session fatigue
- **Model-specific degradation curves** for 15+ curated models (Claude, GPT, Gemini, o-series)
- **Auto-resolves any HuggingFace model** — pass a repo ID like meta-llama/Llama-3.1-70B and the context window is detected automatically, with results cached in SQLite
- **Lost-in-the-middle risk scoring** based on Stanford research
- **Tool-call burden** and **session fatigue** analysis
- **Actionable recovery recommendations** — compact context, offload to memory, checkpoint, break into subtasks
- **Per-agent health history** tracking (SQLite)
- **Service-wide utilization statistics**
Quick Start
npx (zero install)
npm (global install)
MCP Client Configuration
Claude Code
Add to .mcp.json in your project root:
Claude Desktop
Add to claude_desktop_config.json:
Docker
Configuration
| Environment Variable | Description | Default |
|---|---|---|
| HEALTH_HISTORY_DB | Path to SQLite database for health history. Use :memory: for ephemeral storage. | :memory: |
| LOG_FILE | Path to append structured JSON log lines. Omit to disable file logging. | *(none)* |
Tools
check_my_health
Analyze the current context window health. Call this periodically during long sessions or before critical decisions.
**Parameters:**
| Parameter | Type | Required | Description |
|---|---|---|---|
| token_count | integer | Yes | Current estimated token count in context window |
| model | string | No | LLM model identifier — a curated name (e.g., claude-opus-4, gpt-4o), a HuggingFace repo ID (e.g., meta-llama/Llama-3.1-70B), or any string (falls back to conservative defaults) |
| session_duration_minutes | integer | No | How long this session has been running |
| tool_calls_count | integer | No | Number of tool calls made in this session |
| context_summary | string | No | Brief summary of current task and recent actions |
| agent_id | string | No | Unique agent identifier for history tracking |
**Example response:**
get_health_history
Retrieve health check history for a specific agent.
**Parameters:**
| Parameter | Type | Required | Description |
|---|---|---|---|
| agent_id | string | Yes | Unique agent identifier |
| limit | integer | No | Max records to return (default: 20, max: 100) |
get_service_stats
Get service-wide utilization statistics. No parameters required.
Returns total calls, unique agents, average health score, model distribution, status distribution, and recent activity (last hour / last 24h).
Supported Models
来源
awesome · https://github.com/milos-product-maker/context-rot-detection
按领域浏览
MCP 服务
Traction
13 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引