技能潮 SkillTide 提交收录
官方说明开源项目7 天前
Devpaul-01/agent-broker

Devpaul-01/agent-broker

Redis-backed TypeScript library for coordinating retries, cost budgets, and delegation depth across independent processes calling a shared LLM provider. Under active development.
在 GitHub 查看 ↗直链 · 无中转页
★ 数取值
0 ★ · Devpaul-01/agent-broker · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-10-10 · 最近见到 2026-10-10 · 共见到 2 次 · 被 1 个来源列出
评分构成
综合分 103 · 1 个来源 · repo
安装
npm install agent-broker
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是 npm install agent-broker。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 Devpaul-01/agent-broker;我们收录于 2026-10-10;最近见到 2026-10-10。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

agent-broker

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

**A Redis-backed coordination gate for multi-process agent and LLM-calling systems.**
agent-broker answers one question, correctly, under real concurrency, across real process boundaries: *"Is this call allowed to happen right now?"* — accounting for shared budget, delegation depth, in-flight concurrency, and recent failure history against the target you're about to call.
It does **not** make the call for you. It is a pure permission gate: you ask before, you report after, you stay in full control of how the actual request happens.
---
Why this exists
If you run more than one process — or more than one agent, or more than one user session — against a shared downstream resource (an LLM provider, a rate-limited API, anything with a cost and a failure mode), you eventually hit three problems that don't show up until you're running at real concurrency:
1. **Correlated retries.** Every process retries sanely on its own. Collectively, ten processes retrying twice each just sent a downstream service a burst of 20 near-simultaneous requests it had no way to anticipate.
2. **Budget races.** Two processes both check "do I have enough budget left?" a few milliseconds apart. Both see yes. Both spend. The shared pool goes negative, and neither process did anything wrong in isolation.
3. **Unbounded recursive delegation.** An agent spawns a sub-agent, which spawns another. Nothing about any single node in that tree can see or limit how deep the *whole tree* has gotten — depth is a property of the tree, not of any one process.
Each of these looks fine from inside any single process and only becomes a problem in aggregate — which means no single process can fix it by being better-written. You need a shared point of coordination. agent-broker is that point, using Redis as the thing every process actually has in common.
What this is not
To save you a wrong assumption: this is **not** an LLM gateway in the sense of Portkey, LiteLLM, or Cloudflare AI Gateway. Those sit *in* the request path — they route, cache, and proxy the actual call to the provider. agent-broker never touches the provider at all. It solves a narrower, different problem: cross-process safety coordination, not request routing. See docs/agent-broker-architecture.md for the full boundary discussion, and docs/positioning.md for how this fits (and doesn't yet fit) into agent-framework workflows.
It is also not a security boundary against a malicious caller. It protects against *accidental* and *architectural* bypass — not against a process owner willing to lie to it. See Trust model below.
---
Installation
Requires Node.js 22 or later, and a reachable Redis instance (local, containerized, or managed).
ioredis is a peer dependency — you bring your own Redis connection; the library never manages one itself (see ADR-0006).
Quick start
Delegating to a sub-agent
Handling a transient failure
---
Core concepts
| Concept | What it means here |
|---|---|
| **Agent** | A node in a delegation tree. Not a reasoning loop or a prompt — just an identity, a depth, a parent, and a budget key. Broker-issued, never caller-chosen. |
| **target** | An opaque string you choose to represent "which downstream thing is this." Convention: provider:model (e.g. "anthropic:claude-opus"). The broker doesn't parse it — it only groups shared state by it. |
| **budgetKey** | Scopes a shared spending pool. Defaults to the root agent's own ID (private by default). Pass the same key across unrelated roots to intentionally share a budget. |
| **Reservation** | A hold placed on estimatedCost at admission time, reconciled against actualCost once you report back. |
| **Circuit breaker** | Shared, cross-process failure tracking per target. Trips to open once recent retryable: true failures cross a threshold; recovers via a small trickle of probe calls. |
来源
github · https://github.com/Devpaul-01/agent-broker
按领域浏览
开源项目
收录于
7 天前

更多开源项目

查看开源项目全部 731 条 →

所属领域与标签

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

浏览全部领域 →

← 返回索引