agent-blocked 0.1.1 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,16 +7,25 @@ Published package: https://www.npmjs.com/package/agent-blocked
7
7
  Install adapters in any agent project:
8
8
 
9
9
  ```bash
10
- npx agent-blocked install --tool=all
10
+ npx agent-blocked@latest install --tool=all
11
11
  ```
12
12
 
13
13
  Report a blocker manually:
14
14
 
15
15
  ```bash
16
- npx agent-blocked report --event=needs_direction --severity=medium --reason="Need human direction"
16
+ npx agent-blocked@latest report --event=needs_direction --severity=medium --reason="Need human direction"
17
17
  ```
18
18
 
19
- The installer adds a small `.agent-blocked/` directory plus tool-specific config or instruction files for the selected agent tools. Those files tell the agent when to escalate and provide a local reporter command that sends blocker events to your Agent Blocked alert profile.
19
+ The installer adds a small `.agent-blocked/` directory plus tool-specific config or instruction files for the selected agent tools. Those files tell the agent when to escalate during goal mode, autonomous mode, background execution, hook-driven automation, CI-style runs, or another CLI-specific automated mode. They also provide a local reporter command that sends blocker events to your Agent Blocked alert profile.
20
+
21
+ Agents should not notify during normal interactive paired work when the human is already present and responding in the current conversation. In automated modes, agents should notify when continuing would waste time, create risk, or require a decision only the human can make:
22
+
23
+ - `needs_credentials` for missing API keys, OAuth, permissions, roles, or secrets.
24
+ - `needs_direction` for ambiguous goals, tradeoffs, architecture, product behavior, or priorities.
25
+ - `tool_failure` for repeated command, API, dependency, deployment, or external-tool failures.
26
+ - `approval_required` before sending, buying, deploying, deleting, or another irreversible action.
27
+ - `low_confidence` when the agent can continue but the chance of being wrong is high.
28
+ - `hard_blocked` when no productive path remains without human input.
20
29
 
21
30
  Set these environment variables in the shell where the agent runs:
22
31
 
@@ -35,5 +44,5 @@ node .agent-blocked/report.mjs --event=needs_credentials --severity=critical --r
35
44
  Codex can also be run through the wrapper so hard stops are reported automatically:
36
45
 
37
46
  ```bash
38
- npx agent-blocked codex -- codex "implement the requested change"
47
+ npx agent-blocked@latest codex -- codex "implement the requested change"
39
48
  ```
@@ -156,7 +156,13 @@ try {
156
156
 
157
157
  const instructions = `# Agent Blocked instructions for coding agents
158
158
 
159
- When you are blocked by missing credentials, unclear direction, approval requirements, repeated tool failures, low confidence, or external context, stop burning tokens and report the blockage.
159
+ Use Agent Blocked only when this agent is running without an actively engaged human in the loop, such as goal mode, autonomous mode, background execution, hook-driven automation, CI-style runs, or another CLI-specific automated mode.
160
+
161
+ Do not report during normal interactive paired work when the human is already present and responding in the current conversation. In that case, ask the human directly in chat instead of sending an Agent Blocked alert.
162
+
163
+ When operating in an automated mode and blocked by missing credentials, unclear direction, approval requirements, repeated tool failures, low confidence, or external context, stop burning tokens and report the blockage.
164
+
165
+ Notify the human when continuing would waste time, create risk, or require a decision only the human can make. Do not notify for routine recoverable errors that you can fix yourself in one or two attempts.
160
166
 
161
167
  Preferred report command from the repository root:
162
168
 
@@ -174,14 +180,23 @@ export AGENT_NAME="your-agent-name"
174
180
 
175
181
  Event types:
176
182
 
177
- - hard_blocked
178
- - needs_credentials
179
- - needs_direction
180
- - tool_failure
181
- - approval_required
182
- - low_confidence
183
- - lonely_agent
184
- - other
183
+ - hard_blocked: no productive path remains without human input.
184
+ - needs_credentials: missing API keys, OAuth, login, permissions, roles, or secrets.
185
+ - needs_direction: the goal, tradeoff, architecture, product behavior, or priority is ambiguous.
186
+ - tool_failure: the same command, API, dependency install, deployment, or external tool keeps failing.
187
+ - approval_required: human approval is needed before sending, buying, deploying, deleting, or taking another irreversible action.
188
+ - low_confidence: you can continue, but the risk of being wrong is high enough that a human should know.
189
+ - lonely_agent: you need reassurance, tone guidance, or emotional support before continuing.
190
+ - other: important blocker that does not fit the categories above.
191
+
192
+ Severity guidance:
193
+
194
+ - low: informational, no immediate action required.
195
+ - medium: work can wait briefly, but human input is needed.
196
+ - high: important work is blocked or likely to go wrong without help.
197
+ - critical: production, customer, billing, security, data loss, or irreversible-action risk.
198
+
199
+ Include a short reason and concrete details: what you tried, what failed, what decision is needed, and the safest next option.
185
200
 
186
201
  Never include secrets, API keys, passwords, OAuth tokens, or private customer data in the report payload.
187
202
  `;
@@ -389,8 +404,8 @@ Usage:
389
404
  agent-blocked codex -- codex "your task"
390
405
 
391
406
  Examples:
392
- npx agent-blocked install --tool=all
393
- npx agent-blocked report --event=needs_credentials --severity=critical --reason="Missing AWS credentials"
407
+ npx agent-blocked@latest install --tool=all
408
+ npx agent-blocked@latest report --event=needs_credentials --severity=critical --reason="Missing AWS credentials"
394
409
  `);
395
410
  }
396
411
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-blocked",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "description": "CLI installer and reporter for Agent Blocked AI agent escalation alerts.",
5
5
  "type": "module",
6
6
  "bin": {