Agent Never Give Up

io.github.askman-dev由 GitHub 账号 askman-dev 发布v0.1.0更新于 Oct 24, 2026

An escape guide for coding agents, providing structured thinking tools to help agents unstick.

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

为编程智能体提供结构化的“脱困”协议:按场景返回元认知提示,帮助重新锚定目标并换用新策略。

可以做什么
  • 针对具体卡点调用场景工具,例如循环推理、反复修复失败、需求缺失、目标丢失、任务范围蔓延、剩余工作被遗忘、同一策略反复失败。
  • 发现更多场景并获取任意场景提示(核心或扩展),包括分析过久、验收标准不清、抽象层级不当、约束互相冲突、环境限制阻塞。
  • 返回结构化 Markdown 协议,重新锚定目标、总结失败并给出新策略,支持静态与采样两种模式。
适用场景
当你在 Cursor、Claude Desktop、Cline 或 Windsurf 中运行编程智能体,希望它在陷入循环、反复修复失败或分析瘫痪时自行恢复,而不是把问题交回给你时,值得添加。
运行要求
README 描述的是在客户端配置中添加的云端 HTTP MCP 端点,无需本地安装、账号或密钥。但清单列出的是通过 stdio 运行的本地 npm 包,安装前请确认实际采用哪种形式。
安装前请注意
README 称该托管服务为公开且无鉴权,因此提示与场景请求会发送到第三方服务器,请勿在其中包含敏感任务细节。工具本身只返回指导文本,但智能体可能据此在你的代码库中执行操作。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Agent Never Give Up,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Agent Never Give Up MCP

This is a MCP server that acts as a "escape guide" for AI coding agents.

It provides structured thinking protocols to help agents unstuck themselves without human help.

The diagram below illustrates when an agent should call this server and what it receives in return:

mermaid
graph TD    %% 1. The Normal Loop    UserLoop["<b>User Query & Agent Loop</b><br/>(Claude Code / Windsurf / Cursor)<br/>Agent executing tasks..."]
    %% 2. The Problem (Triggers)    subgraph Triggers ["Agent Gets Stuck (Trigger State)"]        direction TB        S1["Circular Reasoning"]        S2["Bug Fix Fails"]        S3["Missing Info"]        S4["Analysis Paralysis"]        S5["Unclear 'Done' State"]    end
    %% Flow: Loop -> Stuck    UserLoop -.->|"⚠️ Detects Issue<br/>(Inner Loop Stall)"| Triggers
    %% 3. The Solution (MCP Call)    subgraph MCP ["Agent Never Give Up MCP"]        direction TB        T1(logic-is-too-complex)        T2(bug-fix-always-failed)        T3(missing-requirements)        T4(analysis-too-long)        T5(unclear-acceptance-criteria)    end
    %% Mapping Triggers to Tools    S1 -->|Call| T1    S2 -->|Call| T2    S3 -->|Call| T3    S4 -->|Call| T4    S5 -->|Call| T5
    %% 4. The Response    MCP -->|Returns| R1["<b>Metacognitive Protocol</b><br/>Structured markdown to:<br/>1. Re-anchor goal<br/>2. Summarize failures<br/>3. Propose NEW strategy"]
    %% 5. The Outcome    R1 --> Result["<b>Autonomous Recovery</b><br/>Agent unblocks itself &<br/>resumes execution<br/>(No Human Hand-off)"]
    %% Cycle back to loop    Result -.->|"Resumes Loop"| UserLoop
    %% Styling    classDef loop fill:#e1f5fe,stroke:#01579b,stroke-width:2px;    classDef trigger fill:#ffebee,stroke:#b71c1c,stroke-width:2px;    classDef tool fill:#fff3e0,stroke:#e65100,stroke-width:2px;    classDef response fill:#e8f5e9,stroke:#1b5e20,stroke-width:2px;        class UserLoop loop;    class S1,S2,S3,S4,S5 trigger;    class T1,T2,T3,T4,T5 tool;    class R1,Result response;

Features

  • Remote MCP server at /mcp endpoint (Streamable HTTP specification compliant)
  • Two-tier scenario organization:
    • Core scenarios (auto-registered as direct MCP tools):
      • logic-is-too-complex – for circular reasoning or over-complicated logic
      • bug-fix-always-failed – for repeated failed bug fix attempts
      • missing-requirements – for unclear or missing requirements
      • lost-main-objective – for when current actions feel disconnected from the original goal
      • scope-creep-during-task – for when changes expand beyond the original task scope
      • long-goal-partially-done – for multi-step tasks where remaining work is forgotten
      • strategy-not-working – for when the same approach fails repeatedly
    • Extended scenarios (discovered via list_scenarios, accessed via get_prompt):
      • analysis-too-long – for excessive analysis time
      • unclear-acceptance-criteria – for undefined acceptance criteria
      • wrong-level-of-detail – for working at wrong abstraction level
      • constraints-cant-all-be-met – for conflicting requirements or constraints
      • blocked-by-environment-limits – for environmental blockers vs logic problems
  • Discovery tools:
    • list_scenarios – list all scenarios with their tier (core/extended)
    • get_prompt – access any scenario (core or extended)
  • Dual mode support: Each tool supports static and sampling modes
  • Community-contributed prompts via markdown files
  • Public and auth-less (v0)
  • Cloudflare Workers deployment

Configuration

Since agent-never-give-up is a cloud-hosted MCP server, no local installation is required. Simply add the server configuration to your preferred AI tool.

Install in Cursor

  1. Open Cursor Settings > MCP.
  2. Click + Add new global MCP server.
  3. Use the following configuration (or edit your ~/.cursor/mcp.json file directly):
json
{  "mcpServers": {    "agent-never-give-up": {      "type": "http",      "url": "https://agent-never-give-up-mcp.askman.dev/mcp",      "note": "A 'Swiss Army knife' toolset to help agents recover from getting stuck"    }  }}

Install in Claude Desktop

To configure the server for Claude Desktop, edit the configuration file located at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the following entry to the mcpServers object:

json
{  "mcpServers": {    "agent-never-give-up": {      "type": "http",      "url": "https://agent-never-give-up-mcp.askman.dev/mcp"    }  }}

Install in Cline

  1. Open Cline and click the MCP Servers icon (☰).
  2. Select the Remote Servers tab (if available) or click Configure MCP Servers.
  3. Edit the cline_mcp_settings.json file to include:
json
{  "mcpServers": {    "agent-never-give-up": {      "type": "http",      "url": "https://agent-never-give-up-mcp.askman.dev/mcp",      "note": "A comprehensive suite of tools designed to keep agents persistent and unstuck"    }  }}

Install in Windsurf

  1. Open Windsurf.
  2. Go to File > Settings > Configure MCP Servers (or edit ~/.codeium/windsurf/mcp_config.json).
  3. Add the server configuration:
json
{  "mcpServers": {    "agent-never-give-up": {      "type": "http",      "url": "https://agent-never-give-up-mcp.askman.dev/mcp"    }  }}

Development

To contribute to this project or run a local instance:

bash
# Install dependenciesnpm install

The local server will be available at http://localhost:8787/mcp.

Contributing Prompts

Prompts are organized in two tiers within the prompts/ directory:

prompts/├── core/                           # Core scenarios (auto-registered as tools)│   ├── logic-is-too-complex/│   │   └── tool.md│   ├── bug-fix-always-failed/│   │   └── tool.md│   └── missing-requirements/│       └── tool.md└── extended/                       # Extended scenarios (via list_scenarios + get_prompt)    ├── analysis-too-long/    │   └── tool.md    └── unclear-acceptance-criteria/        └── tool.md

Prompt File Format

Each tool.md file follows a simple markdown format with YAML frontmatter and a single protocol body:

markdown
---name: scenario_nametitle: "Scenario Title"description: "When / why the agent should call this tool, from the agent's perspective"---
When you notice [the trigger condition], follow this exact protocol step by step.
## 1. First step title
1. Action item one.2. Action item two.3. Action item three.
Keep it concrete.
## 2. Second step title
...
## 3. Third step title
...

Key principles:

  • The description explains when to use the tool (the trigger condition)
  • The body is a single protocol with numbered sections
  • Each section has 2–6 concrete steps
  • Focus on how to think, not domain-specific details
  • No system prompt / user prompt template sections—just one actionable protocol

See prompts/AGENTS.md for detailed guidance on writing effective prompts.

Adding a New Scenario

Scenarios are auto-discovered from the prompts/ tree and the generated files in src/prompts/generated-scenarios.ts and src/types/generated-scenarios.ts. You do not need to manually edit TypeScript files—just add the prompt and regenerate.

Core scenarios (auto-registered as tools):

  1. Create a new directory: prompts/core/{scenario_name}/ (must match /^[a-z0-9]+(-[a-z0-9]+)*$/).
  2. Add a tool.md file following the format above.
  3. Run npm run generate:scenarios to regenerate types and discovery data.

Extended scenarios (accessible via get_prompt):

  1. Create a new directory: prompts/extended/{scenario_name}/ (same naming rules as above).
  2. Add a tool.md file following the format above.
  3. Run npm run generate:scenarios to regenerate types and discovery data.

Deploy

bash
# Deploy to Cloudflare Workersnpm run deploy

After deployment, your MCP endpoint will be: https://agent-never-give-up-mcp.<account>.workers.dev/mcp

License

MIT

来源:README.md,提交 be62b53

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。