You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Improve promise tag format to show policy name with checkmark
Change the promise tag body from generic "addressed" text to a more
compelling "✓ Policy Name" format that clearly shows which policy was
addressed. This provides better visibility for end users when viewing
the LLM's response.
* Simplify promise tag format and improve QUALITY_COMPLETE display
Changes:
- Remove redundant policy= attribute from promise tags
- New format: <promise>✓ Policy Name</promise>
- Extract policy name from tag body after checkmark
- Update QUALITY_COMPLETE to <promise>✓ Quality Criteria Met</promise>
- Update all documentation and tests
This makes the promise format less redundant and more user-friendly
when displayed in LLM responses.
* Format: use double quotes for consistency
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .claude/commands/add_platform.add_capabilities.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,15 +18,15 @@ hooks:
18
18
5. adapters.py remains consistent - all adapters have the same hook fields
19
19
6. If no new hooks are needed, document why in a comment
20
20
21
-
If ALL criteria are met, include `<promise>QUALITY_COMPLETE</promise>`.
21
+
If ALL criteria are met, include `<promise>✓ Quality Criteria Met</promise>`.
22
22
23
23
24
24
## Instructions
25
25
26
26
Review the conversation and determine if ALL quality criteria above have been satisfied.
27
27
Look for evidence that each criterion has been addressed.
28
28
29
-
If the agent has included `<promise>QUALITY_COMPLETE</promise>` in their response AND
29
+
If the agent has included `<promise>✓ Quality Criteria Met</promise>` in their response AND
30
30
all criteria appear to be met, respond with: {"ok": true}
31
31
32
32
If criteria are NOT met AND the promise tag is missing, respond with:
@@ -178,7 +178,7 @@ Or if no changes are needed, add a documentation comment:
178
178
-`job_schema.py` has no syntax errors (verified with py_compile)
179
179
-`adapters.py` has no syntax errors (verified with py_compile)
180
180
- All adapters have consistent hook fields (same fields across all adapters)
181
-
- When all criteria are met, include `<promise>QUALITY_COMPLETE</promise>` in your response
181
+
- When all criteria are met, include `<promise>✓ Quality Criteria Met</promise>` in your response
182
182
183
183
## Context
184
184
@@ -251,15 +251,15 @@ Verify the capability additions meet ALL criteria:
251
251
5. adapters.py remains consistent - all adapters have the same hook fields
252
252
6. If no new hooks are needed, document why in a comment
253
253
254
-
If ALL criteria are met, include `<promise>QUALITY_COMPLETE</promise>`.
254
+
If ALL criteria are met, include `<promise>✓ Quality Criteria Met</promise>`.
255
255
256
256
257
257
### Completion Promise
258
258
259
259
To signal that all quality criteria have been met, include this tag in your final response:
260
260
261
261
```
262
-
<promise>QUALITY_COMPLETE</promise>
262
+
<promise>✓ Quality Criteria Met</promise>
263
263
```
264
264
265
265
**Important**: Only include this promise tag when you have verified that ALL quality criteria above are satisfied. The validation loop will continue until this promise is detected.
- When all criteria are met, include `<promise>QUALITY_COMPLETE</promise>`in your response
284
+
- When all criteria are met, include `<promise>✓ Quality Criteria Met</promise>`in your response
285
285
286
286
## Context
287
287
@@ -354,15 +354,15 @@ Verify the implementation meets ALL criteria:
354
354
- Installation instructions for the platform
355
355
- Any platform-specific notes
356
356
357
-
If ALL criteria are met, include `<promise>QUALITY_COMPLETE</promise>`.
357
+
If ALL criteria are met, include `<promise>✓ Quality Criteria Met</promise>`.
358
358
359
359
360
360
### Completion Promise
361
361
362
362
To signal that all quality criteria have been met, include this tag in your final response:
363
363
364
364
```
365
-
<promise>QUALITY_COMPLETE</promise>
365
+
<promise>✓ Quality Criteria Met</promise>
366
366
```
367
367
368
368
**Important**: Only include this promise tag when you have verified that ALL quality criteria above are satisfied. The validation loop will continueuntil this promise is detected.
Copy file name to clipboardExpand all lines: .claude/commands/add_platform.research.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,15 +19,15 @@ hooks:
19
19
5. No extraneous documentation (only these two specific topics)
20
20
6. Documentation is comprehensive enough to implement the platform
21
21
22
-
If ALL criteria are met, include `<promise>QUALITY_COMPLETE</promise>`.
22
+
If ALL criteria are met, include `<promise>✓ Quality Criteria Met</promise>`.
23
23
24
24
25
25
## Instructions
26
26
27
27
Review the conversation and determine if ALL quality criteria above have been satisfied.
28
28
Look for evidence that each criterion has been addressed.
29
29
30
-
If the agent has included `<promise>QUALITY_COMPLETE</promise>` in their response AND
30
+
If the agent has included `<promise>✓ Quality Criteria Met</promise>` in their response AND
31
31
all criteria appear to be met, respond with: {"ok": true}
32
32
33
33
If criteria are NOT met AND the promise tag is missing, respond with:
@@ -234,7 +234,7 @@ Source: [URL where this documentation was obtained]
234
234
- NOT general CLI hooks (only command-level hooks)
235
235
- Documentation is detailed enough to implement the platform adapter
236
236
- No extraneous topics (only CLI config and command hooks)
237
-
- When all criteria are met, include `<promise>QUALITY_COMPLETE</promise>` in your response
237
+
- When all criteria are met, include `<promise>✓ Quality Criteria Met</promise>` in your response
238
238
239
239
## Context
240
240
@@ -298,15 +298,15 @@ Verify the research output meets ALL criteria:
298
298
5. No extraneous documentation (only these two specific topics)
299
299
6. Documentation is comprehensive enough to implement the platform
300
300
301
-
If ALL criteria are met, include `<promise>QUALITY_COMPLETE</promise>`.
301
+
If ALL criteria are met, include `<promise>✓ Quality Criteria Met</promise>`.
302
302
303
303
304
304
### Completion Promise
305
305
306
306
To signal that all quality criteria have been met, include this tag in your final response:
307
307
308
308
```
309
-
<promise>QUALITY_COMPLETE</promise>
309
+
<promise>✓ Quality Criteria Met</promise>
310
310
```
311
311
312
312
**Important**: Only include this promise tag when you have verified that ALL quality criteria above are satisfied. The validation loop will continue until this promise is detected.
Copy file name to clipboardExpand all lines: .claude/commands/add_platform.verify.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,15 +17,15 @@ hooks:
17
17
5. Established DeepWork jobs (deepwork_jobs, deepwork_policy) are installed correctly
18
18
6. The platform can be used alongside existing platforms without conflicts
19
19
20
-
If ALL criteria are met, include `<promise>QUALITY_COMPLETE</promise>`.
20
+
If ALL criteria are met, include `<promise>✓ Quality Criteria Met</promise>`.
21
21
22
22
23
23
## Instructions
24
24
25
25
Review the conversation and determine if ALL quality criteria above have been satisfied.
26
26
Look for evidence that each criterion has been addressed.
27
27
28
-
If the agent has included `<promise>QUALITY_COMPLETE</promise>` in their response AND
28
+
If the agent has included `<promise>✓ Quality Criteria Met</promise>` in their response AND
29
29
all criteria appear to be met, respond with: {"ok": true}
30
30
31
31
If criteria are NOT met AND the promise tag is missing, respond with:
@@ -159,7 +159,7 @@ Ensure the implementation step is complete:
159
159
- No template errors or missing content
160
160
- Existing platforms still work (if applicable)
161
161
- No conflicts between platforms
162
-
- When all criteria are met, include `<promise>QUALITY_COMPLETE</promise>` in your response
162
+
- When all criteria are met, include `<promise>✓ Quality Criteria Met</promise>` in your response
163
163
164
164
## Context
165
165
@@ -221,15 +221,15 @@ Verify the installation meets ALL criteria:
221
221
5. Established DeepWork jobs (deepwork_jobs, deepwork_policy) are installed correctly
222
222
6. The platform can be used alongside existing platforms without conflicts
223
223
224
-
If ALL criteria are met, include `<promise>QUALITY_COMPLETE</promise>`.
224
+
If ALL criteria are met, include `<promise>✓ Quality Criteria Met</promise>`.
225
225
226
226
227
227
### Completion Promise
228
228
229
229
To signal that all quality criteria have been met, include this tag in your final response:
230
230
231
231
```
232
-
<promise>QUALITY_COMPLETE</promise>
232
+
<promise>✓ Quality Criteria Met</promise>
233
233
```
234
234
235
235
**Important**: Only include this promise tag when you have verified that ALL quality criteria above are satisfied. The validation loop will continue until this promise is detected.
Copy file name to clipboardExpand all lines: .claude/commands/deepwork_jobs.define.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,15 @@ hooks:
20
20
7. **File Created**: Has the job.yml file been created in `.deepwork/jobs/[job_name]/job.yml`?
21
21
22
22
If ANY criterion is not met, continue working to address it.
23
-
If ALL criteria are satisfied, include `<promise>QUALITY_COMPLETE</promise>` in your response.
23
+
If ALL criteria are satisfied, include `<promise>✓ Quality Criteria Met</promise>` in your response.
24
24
25
25
26
26
## Instructions
27
27
28
28
Review the conversation and determine if ALL quality criteria above have been satisfied.
29
29
Look for evidence that each criterion has been addressed.
30
30
31
-
If the agent has included `<promise>QUALITY_COMPLETE</promise>` in their response AND
31
+
If the agent has included `<promise>✓ Quality Criteria Met</promise>` in their response AND
32
32
all criteria appear to be met, respond with: {"ok": true}
33
33
34
34
If criteria are NOT met AND the promise tag is missing, respond with:
@@ -235,7 +235,7 @@ steps:
235
235
Verify this step's output meets quality criteria:
236
236
1. [Criterion 1]
237
237
2. [Criterion 2]
238
-
If ALL criteria are met, include `<promise>QUALITY_COMPLETE</promise>`.
238
+
If ALL criteria are met, include `<promise>✓ Quality Criteria Met</promise>`.
239
239
240
240
- id: [another_step]
241
241
name: "[Another Step]"
@@ -464,15 +464,15 @@ Verify the job.yml output meets ALL quality criteria before completing:
464
464
7.**File Created**: Has the job.yml file been created in `.deepwork/jobs/[job_name]/job.yml`?
465
465
466
466
If ANY criterion is not met, continue working to address it.
467
-
If ALL criteria are satisfied, include `<promise>QUALITY_COMPLETE</promise>` in your response.
467
+
If ALL criteria are satisfied, include `<promise>✓ Quality Criteria Met</promise>` in your response.
468
468
469
469
470
470
### Completion Promise
471
471
472
472
To signal that all quality criteria have been met, include this tag in your final response:
473
473
474
474
```
475
-
<promise>QUALITY_COMPLETE</promise>
475
+
<promise>✓ Quality Criteria Met</promise>
476
476
```
477
477
478
478
**Important**: Only include this promise tag when you have verified that ALL quality criteria above are satisfied. The validation loop will continue until this promise is detected.
Copy file name to clipboardExpand all lines: .claude/commands/deepwork_jobs.implement.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,15 @@ hooks:
24
24
- Not every job needs policies - only suggest when genuinely helpful.
25
25
26
26
If ANY criterion is not met, continue working to address it.
27
-
If ALL criteria are satisfied, include `<promise>QUALITY_COMPLETE</promise>` in your response.
27
+
If ALL criteria are satisfied, include `<promise>✓ Quality Criteria Met</promise>` in your response.
28
28
29
29
30
30
## Instructions
31
31
32
32
Review the conversation and determine if ALL quality criteria above have been satisfied.
33
33
Look for evidence that each criterion has been addressed.
34
34
35
-
If the agent has included `<promise>QUALITY_COMPLETE</promise>` in their response AND
35
+
If the agent has included `<promise>✓ Quality Criteria Met</promise>` in their response AND
36
36
all criteria appear to be met, respond with: {"ok": true}
37
37
38
38
If criteria are NOT met AND the promise tag is missing, respond with:
@@ -187,7 +187,7 @@ If a step in the job.yml has `stop_hooks` defined, the generated instruction fil
187
187
188
188
1.**Mirror the quality criteria** - The "Quality Criteria" section should match what the stop hooks will validate
189
189
2.**Be explicit about success** - Help the agent understand when the step is truly complete
190
-
3.**Include the promise pattern** - Mention that `<promise>QUALITY_COMPLETE</promise>` should be included when criteria are met
190
+
3.**Include the promise pattern** - Mention that `<promise>✓ Quality Criteria Met</promise>` should be included when criteria are met
191
191
192
192
**Example: If the job.yml has:**
193
193
```yaml
@@ -208,7 +208,7 @@ If a step in the job.yml has `stop_hooks` defined, the generated instruction fil
208
208
- Each competitor has at least 3 distinct data points
209
209
- All information is sourced with citations
210
210
- Data is current (from within the last year)
211
-
- When all criteria are met, include `<promise>QUALITY_COMPLETE</promise>` in your response
211
+
- When all criteria are met, include `<promise>✓ Quality Criteria Met</promise>` in your response
212
212
```
213
213
214
214
This alignment ensures the AI agent knows exactly what will be validated and can self-check before completing.
@@ -556,15 +556,15 @@ Verify the implementation meets ALL quality criteria before completing:
556
556
- Not every job needs policies - only suggest when genuinely helpful.
557
557
558
558
If ANY criterion is not met, continue working to address it.
559
-
If ALL criteria are satisfied, include `<promise>QUALITY_COMPLETE</promise>` in your response.
559
+
If ALL criteria are satisfied, include `<promise>✓ Quality Criteria Met</promise>` in your response.
560
560
561
561
562
562
### Completion Promise
563
563
564
564
To signal that all quality criteria have been met, include this tag in your final response:
565
565
566
566
```
567
-
<promise>QUALITY_COMPLETE</promise>
567
+
<promise>✓ Quality Criteria Met</promise>
568
568
```
569
569
570
570
**Important**: Only include this promise tag when you have verified that ALL quality criteria above are satisfied. The validation loop will continue until this promise is detected.
Copy file name to clipboardExpand all lines: .claude/commands/deepwork_jobs.refine.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,15 +21,15 @@ hooks:
21
21
8. **Sync Complete**: Has `deepwork sync` been run to regenerate commands?
22
22
23
23
If ANY criterion is not met, continue working to address it.
24
-
If ALL criteria are satisfied, include `<promise>QUALITY_COMPLETE</promise>` in your response.
24
+
If ALL criteria are satisfied, include `<promise>✓ Quality Criteria Met</promise>` in your response.
25
25
26
26
27
27
## Instructions
28
28
29
29
Review the conversation and determine if ALL quality criteria above have been satisfied.
30
30
Look for evidence that each criterion has been addressed.
31
31
32
-
If the agent has included `<promise>QUALITY_COMPLETE</promise>` in their response AND
32
+
If the agent has included `<promise>✓ Quality Criteria Met</promise>` in their response AND
33
33
all criteria appear to be met, respond with: {"ok": true}
34
34
35
35
If criteria are NOT met AND the promise tag is missing, respond with:
@@ -554,15 +554,15 @@ Verify the refinement meets ALL quality criteria before completing:
554
554
8.**Sync Complete**: Has `deepwork sync` been run to regenerate commands?
555
555
556
556
If ANY criterion is not met, continue working to address it.
557
-
If ALL criteria are satisfied, include `<promise>QUALITY_COMPLETE</promise>` in your response.
557
+
If ALL criteria are satisfied, include `<promise>✓ Quality Criteria Met</promise>` in your response.
558
558
559
559
560
560
### Completion Promise
561
561
562
562
To signal that all quality criteria have been met, include this tag in your final response:
563
563
564
564
```
565
-
<promise>QUALITY_COMPLETE</promise>
565
+
<promise>✓ Quality Criteria Met</promise>
566
566
```
567
567
568
568
**Important**: Only include this promise tag when you have verified that ALL quality criteria above are satisfied. The validation loop will continue until this promise is detected.
Copy file name to clipboardExpand all lines: .claude/commands/deepwork_policy.define.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,7 +203,7 @@ Policies are evaluated automatically when you finish working on a task. The syst
203
203
3. Skips policies where safety patterns also matched
204
204
4. Prompts you with instructions for any triggered policies
205
205
206
-
You can mark a policy as addressed by including `<promise policy="Policy Name">considered</promise>` in your response. This tells the system you've already handled that policy's requirements.
206
+
You can mark a policy as addressed by including `<promise>✓ Policy Name</promise>` in your response (replace Policy Name with the actual policy name). This tells the system you've already handled that policy's requirements.
0 commit comments