Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Crash-proof LLM pipelines. Resumes from failure without a database.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"dagpipe": {
"command": "uvx",
"args": [
"dagpipe-core"
]
}
}
}在终端中运行这条命令
claude mcp add dagpipe -- uvx dagpipe-core粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"dagpipe": {
"command": "uvx",
"args": [
"dagpipe-core"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"dagpipe": {
"type": "stdio",
"command": "uvx",
"args": [
"dagpipe-core"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 devilsfave 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.2.3)于8个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
NeurIPS 2025 research analyzing 1,642 real-world multi-agent execution traces
found a 41–86.7% failure rate across 7 state-of-the-art open-source systems.
The root cause: cascading error propagation, where one failed node corrupts all downstream nodes.
DagPipe makes cascade failure structurally impossible.
Every node's output is independently validated and checkpointed before the next node executes. A failure at node 4 cannot corrupt nodes 1, 2, or 3. Delete nothing. Just re-run. DagPipe resumes exactly where it stopped, automatically.
Pipeline: research → outline → draft → edit → publish
↑ crashed here
Re-run → research ✓ (restored) → outline ✓ (restored) → draft (re-runs) → ...
Zero infrastructure. Zero subscription. Runs entirely on free-tier APIs.
pip install dagpipe-core
Requirements: Python 3.12+ · pydantic >= 2.0 · pyyaml · A free Groq API key (no credit card)
For developers: install the library and build crash-proof LLM pipelines in Python:
pip install dagpipe-core
For non-coders: describe your workflow in plain English, receive production-ready crash-proof pipeline code as a downloadable zip. No coding required: 👉 Pipeline Generator on Apify ($0.05/run)
For AI agents and IDE users: connect directly via MCP. Use DagPipe from Claude Desktop, Cursor, Windsurf, or any MCP-compatible client without writing any code: 👉 DagPipe Generator MCP on Smithery
The generator outputs DagPipe pipelines, as every generated zip already has crash recovery, schema validation, and cost routing built in by default. No other LLM pipeline framework ships this.
| 🔴 Without DagPipe | 🟢 With DagPipe |
|---|---|
| Pipeline crashes = start over from zero | JSON checkpointing: resume from last successful node |
| Paying for large models on every task | Cognitive routing: route easy tasks to free-tier models |
| LLM returns malformed JSON | Guaranteed structured output: auto-retry with error feedback |
| Tight coupling to one provider | Provider-agnostic: any callable works as a model function |
| Fragile sequential scripts | Topological DAG execution: safe dependency resolution |
| Silent bad data passes through | Semantic assertions: catch structurally valid but wrong output |
v0.2.3 adds the official MCP Registry metadata and identifier to the package repository, enabling one-click discovery on the official MCP Registry.
v0.2.2 improves PyPI discoverability with optimized metadata, a clearer project description, and enhanced AI agent categorization.
v0.2.1 brings crucial generator reliability fixes and a highly requested DX feature:
verbose=True to the PipelineOrchestrator to get real-time, per-node CLI progress updates with execution times, node descriptions, and running costs.model=None positional argument, guarantee exact YAML topological dependency key lookups (DEPENDENCY_NODE_ID), and support native .csv, .xml, .html, and .md save nodes out of the box.v0.2.0 was a significant architectural upgrade. All features are opt-in and fully backwards compatible, meaning existing v0.1.x pipelines run without changes.
The router automatically selects which AI model to use based on task complexity. Simple tasks go to fast, free models. Hard tasks escalate to more capable models. If a model fails or rate-limits, it tries the next one, automatically.
router = ModelRouter(
low_complexity_fn=gemini_flash, low_label="gemini_flash", high_complexity_fn=llama33_70b, high_label="llama_70b", fallback_fn=gemini_flash, fallback_label="fallback", complexity_threshold=0.6, )
A self-maintaining database of free-tier model availability and pricing. Refreshes every 24 hours automatically. If a model goes offline, the registry marks it unavailable and the router stops routing to it, without any manual intervention.
Beyond schema validation, nodes can declare semantic rules. If the LLM returns structurally valid but logically wrong data, the assertion catches it and forces self-correction:
DAGNode(
id="revenue", fn_name="calculate_revenue", assert_fn=lambda out: 0 < out.get("revenue", 0) < 1e12, assert_message="Revenue must be a realistic positive number", )
Nodes only receive outputs from their declared dependencies. A node processing untrusted web data cannot access credentials or outputs from unrelated pipeline branches.
When a node exhausts all retries, DagPipe saves the complete failure context to .dagpipe/checkpoints/{node_id}.failed.json, including what was passed in, what error occurred, and instructions for manual correction. No failure context is ever lost.
Swap out filesystem storage for Redis, S3, or any custom backend by implementing the CheckpointStorage protocol.
from pathlib import Path
from dagpipe.dag import PipelineOrchestrator, DAGNode, FilesystemCheckpoint from dagpipe.router import ModelRouter from dagpipe.constrained import constrained_generate
def research(context, model): prompt = [{"role": "user", "content": f"Research: {context['topic']}"}] return {"summary": model(prompt)}
def write_draft(context, model): summary = context"research" prompt = [{"role": "user", "content": f"Write an article based on: {summary}"}] return {"draft": model(prompt)}
def publish(context, model): print(f"Publishing: {context'write_draft'[:100]}...") return {"status": "published"}
import groq from google.genai import Client
groq_client = groq.Groq() def llama33_70b(messages): return groq_client.chat.completions.create( model="llama-3.3-70b-versatile", messages=messages ).choices[0].message.content
gemini_client = Client() def gemini_flash(messages): return gemini_client.models.generate_content( model="gemini-2.5-flash", contents=messages0 ).text
router = ModelRouter( low_complexity_fn=gemini_flash, low_label="gemini_flash", high_complexity_fn=llama33_70b, high_label="llama_70b", fallback_fn=gemini_flash, fallback_label="fallback", complexity_threshold=0.6, )
nodes = [ DAGNode(id="research", fn_name="research", complexity=0.4), DAGNode(id="write_draft", fn_name="write_draft", complexity=0.7, depends_on=["research"]), DAGNode(id="publish", fn_name="publish", depends_on=["write_draft"], is_deterministic=True), ]
orchestrator = PipelineOrchestrator( nodes=nodes, node_registry={ "research": research, "write_draft": write_draft, "publish": publish, }, router=router, checkpoint_backend=FilesystemCheckpoint(Path(".dagpipe/checkpoints")), max_retries=3, on_node_complete=lambda node_id, result, duration: print(f" ✓ {node_id} ({duration:.1f}s)"), )
result = orchestrator.run(initial_state={"topic": "AI in African fintech"})
Crash mid-run? Delete nothing. Just re-run. DagPipe reads the checkpoints and skips completed nodes automatically.
Your Tasks (YAML or Python list of DAGNodes)
│ ▼ ┌──────────────────┐ │ Topological │ resolves execution order, │ Sort │ detects cycles before running └────────┬─────────┘ │ ┌─────────▼──────────┐ │ Checkpoint │ restores any completed nodes │ Restore │ from previous runs └─────────┬──────────┘ │ ┌───────▼────────┐ │ For each node │◄─────────────────────────┐ └───────┬────────┘ │ │ │ ┌─────────▼──────────┐ ┌────────────────┐ │ │ ModelRouter │───▶│ low / high / │ │ │ (complexity score)│ │ fallback fn │ │ └─────────┬──────────┘ └────────────────┘ │ │ │ ┌─────────▼──────────┐ │ │ Constrained │ forces valid output │ │ Generator │ retries on failure │ └─────────┬──────────┘ │ │ │ ┌─────────▼──────────┐ │ │ Checkpoint Save │ writes result to disk │ └─────────┬──────────┘ │ │ │ crash here = resume from ✓ next node
dagpipe.dag: The OrchestratorThe central engine. Loads a DAG from a Python list or YAML file, sorts nodes by dependency, and executes them with checkpointing and retry.
from dagpipe.dag import PipelineOrchestrator, DAGNode, load_dag
nodes = load_dag(Path("my_pipeline.yaml"))
nodes = [DAGNode(id="step_a", fn_name="fn_a", complexity=0.3)]
dagpipe.checkpoints: Crash RecoverySaves node output to disk after every successful execution. On resume, completed nodes are skipped entirely.
New in v0.2.0: the
CheckpointStorageProtocol, allowing you to swap the default filesystem backend for Redis, S3, or any custom store:
from dagpipe.dag import C只显示了开头部分;其余内容请在仓库中阅读