npx skills add majiayu000/claude-skill-registry --skill deepagents-hitl --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# deepagents-hitl (JavaScript/TypeScript) ## 概述 HITL 中间件为工具调用添加人工监督。执行暂停以等待人工决策:**批准**、**编辑**或**拒绝**。 需要 checkpointer 在中断期间保存状态。 ## 基本设置 ```typescript import { createDeepAgent } from "deepagents"; import { MemorySaver } from "@langchain/langgraph"; const agent = await createDeepAgent({ interruptOn: { write_file: true, // 允许所有决策 execute_sql: { allowedDecisions: ["approve", "reject"] }, // 不允许编辑 read_file: false, // 无中断 }, checkpointer: new MemorySaver() // 必需 }); ``` ## 决策表 | 工具类型 | 配置 | 决策 | 使用场景 | |-----------|--------|-----------|----------| | 破坏性 | `true` | 批准/编辑/拒绝 | write_file、delete | | 关键 | `{allowedDecisions: [...]}` | 仅批准/拒绝 | deploy、SQL | | 安全 | `false` | 无 | read_file | ## 代码示例 ### 示例 1:基本审批 ```typescript import { createDeepAgent } from "deepagents"; import { MemorySaver } from "@langchain/langgraph"; import { Command } from "@langchain/langgraph"; const agent = await createDeepAgent({ interruptOn: { write_file: true }, checkpointer: new MemorySaver() }); const config = { configurable: { thread_id: "session-1" } }; // 步骤 1:调用(触发中断) let result = await agent.invoke({ messages: [{ role: "user", content: "将配置写入 /prod.yaml" }] }, config); // 步骤 2:检查中断 const state = await agen
- 概述
- 基本设置
- 决策表
- 代码示例
- 示例 1:基本审批
- 示例 2:执行前编辑
- 示例 3:拒绝并提供反馈
- 示例 4:自定义中间件
- 边界
- Agent 可以配置的内容
- Agent 不能配置的内容
- 注意事项
- 1. Checkpointer 是必需的
- 2. 需要 Thread ID
What does the deepagents-hitl skill do?
在 Deep Agents 中实现人工审批工作流,使用 interruptOn 参数对敏感工具操作进行人工干预。
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill deepagents-hitl --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
