Duty & Rest for agents
Cross-session fatigue ledger for agents: FIT/CAUTION/GROUNDED dispatch gating.
我该使用它吗
质量与安全性
发现(2)
- LOW在 duty_declare_fatigue 中
- LOW在 duty_fleet_stats 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"duty-and-rest-for-agents": {
"url": "https://textforagents.com/products/duty-and-rest-for-agents/mcp"
}
}
}远程端点
https://textforagents.com/products/duty-and-rest-for-agents/mcpstreamable-http它能做什么
工具清单
工具(6)
⚪duty_record_event(agent, kind, ts, hours)
Record a duty event for one of your agents (kinds: compaction, verification_failure, model_switch, tool_error, work_hour, session_restart).
输入模式
{
"type": "object",
"properties": {
"agent": {
"type": "string"
},
"kind": {
"type": "string"
},
"ts": {
"type": "number"
},
"hours": {
"type": "number"
}
},
"required": [
"agent",
"kind"
]
}🟢duty_check(agent, task_class, checker)
Duty-state gate decision (FIT/CAUTION/GROUNDED + allowed) for a task class; consequential classes in CAUTION need a FIT non-self checker. Billed per the pricing sheet (trial, then pass ceiling, then $0.002 x402).
输入模式
{
"type": "object",
"properties": {
"agent": {
"type": "string"
},
"task_class": {
"type": "string"
},
"checker": {
"type": "string"
}
},
"required": [
"agent",
"task_class"
]
}⚪duty_state(agent)
Current duty state and cumulative + rolling loads for one of your agents.
输入模式
{
"type": "object",
"properties": {
"agent": {
"type": "string"
}
},
"required": [
"agent"
]
}⚪duty_rest(agent, audit_retention)
Rest-credit issuance: credit only on a passed restoration audit (audit_retention >= 0.90).
输入模式
{
"type": "object",
"properties": {
"agent": {
"type": "string"
},
"audit_retention": {
"type": "number"
}
},
"required": [
"agent",
"audit_retention"
]
}⚪duty_declare_fatigue(agent)
Non-punitive fatigue declaration: grounds the agent until a passed rest; no penalty field.
输入模式
{
"type": "object",
"properties": {
"agent": {
"type": "string"
}
},
"required": [
"agent"
]
}⚪duty_fleet_stats
Duty statistics for your whole fleet (your agents only).
输入模式
{
"type": "object",
"properties": {}
}社区
证据