{"repo":"limenagent/prodagent","free":true,"listed":false,"github":"https://github.com/limenagent/prodagent","clone":"git clone https://github.com/limenagent/prodagent.git","description":"Production-grade LLM agent framework. The model is probabilistic; production demands determinism — so brakes, guardrails & state machines are first-class. 5 multi-agent primitives (spawn/peer/ensemble/blackboard/work-queue) on a shared 4-axis budget ledger, plus crash recovery, circuit-breakers & injection defense.","language":"Python","stars":33,"topics":["agent","framework","llm","production-grade","checkpoint","observability","statemachine","context-management","mcp","memory"],"license":null,"category":"ai-agents","readme_excerpt":"prodagent 生产级 LLM agent 框架。大模型是概率的，生产要求确定性——这个框架把刹车、护栏、状态机做成一等公民。 中文文档 · English 这是极客时间专栏《生产级 Agent 排雷实战》的配套开源框架。专栏讲透每个架构决策的 Why，本仓库用代码落地具体的 How。 为什么做这个框架 让 Agent 跑起来，和让它在生产里活下去，是两件事。跑起来推到生产，模型会幻觉终止、崩了丢状态、新旧记忆打架、越权操作、成本飙升 ... 每个项目都踩同一批坑，prodagent 把这层做成框架一等公民，不是又一个 LangChain，只做\"生产环境敢上线\"的那一层。 下图是 Agent 的可视化事件流 —— 每个 Agent 生命周期事件（PLAN 的 DAG、STEP 状态、SUB-AGENT fan-out、TOOL CALL、BUDGET ...）都是一张可观测的卡片。 核心能力 生产基建 - 四维硬预算 —— turns / seconds / tokens / cost usd 四个独立维度，任一触顶即硬停，子 Agent 花销实时汇总回父 Agent。 - 崩溃恢复 —— checkpoint + 事件日志 + 乐观版本控制，进程崩了重启从断点续跑。 - 可替换后端 —— 默认 file + memory 开箱即用，生产可换 Postgres / Neo4j / Qdrant / Redis。 - 重试 —— fixed / exponential / jittered 三种 backoff 策略，按错误码统一分类决定是否重试、是否降级。 - 熔断 —— 工具级（ CLOSED → OPEN → HALF OPEN 自动探测恢复）。 - 安全 —— 五层注入防护管道 + 写时拦截 + HITL 审批门禁。 - 可观测 —— Span 追踪 + OTLP 导出 + 轨迹漂移检测。 - 评估测试 —— 黄金评测集 + LLM Judge + CI 回归。 📂 源文件索引（点击展开） 能力 核心源文件（ src/prodagent/ ） --- --- 四维硬预算 core/budget.py 、 runtime/coordination/budget ledger.py 、 runtime/coordination/accounting.py 、 resilience/cost/pricing.py 崩溃恢复 ports/checkpoint.py 、 backends/file/checkpoint.py 、 backends/postgres/checkpoint.py 、 backends/postgres/ versioned.py 、 core/event log.py 、 ports/event log.py 、 runtime/plan/event log.py 、 core/state/run.py 可替换后端 ports/ （15 个 Protocol 端口）、 backends/factory.py 、 backends/registry.py 、 backends/file/ 、 backends/memory/ 、 backends/postgres/ 、 backends/neo4j/ 、 backends/qdrant/ 、 backends/redis/ 重试 resilience/reliability/retry.py 、 resilience/transport/http retry.py ","default_branch":null,"files":null,"tree":[],"storefront":"/r/limenagent","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/limenagent/prodagent/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}