Skip to content

Update quality validation prompts to use natural language guidance#141

Merged
nhorton merged 2 commits intomainfrom
claude/remove-formatting-instructions-RlKz2
Jan 23, 2026
Merged

Update quality validation prompts to use natural language guidance#141
nhorton merged 2 commits intomainfrom
claude/remove-formatting-instructions-RlKz2

Conversation

@nhorton
Copy link
Contributor

@nhorton nhorton commented Jan 23, 2026

Summary

This PR updates the quality validation hook prompts across the codebase to use natural language guidance instead of JSON response formats. The changes make the validation system more intuitive by instructing agents to "let the agent finish" or "have the agent keep working" rather than requiring specific JSON responses.

Key Changes

  • Settings Configuration: Added deepwork file access and bash command permissions to .claude/settings.json

    • Read(./.deepwork/**), Edit(./.deepwork/**), Write(./.deepwork/**), Bash(deepwork:*)
  • Quality Validation Prompts: Updated validation hook prompts across all skill definitions to use natural language instructions:

    • Changed from: {"ok": true} → to: "let the agent finish"
    • Changed from: {"ok": false, "reason": "..."} → to: "have the agent keep working until all criteria are satisfied"
    • Updated files:
      • deepwork_jobs.define/SKILL.md
      • deepwork_jobs.implement/SKILL.md
      • deepwork_jobs.learn/SKILL.md
      • deepwork_jobs.review_job_spec/SKILL.md
      • manual_tests.infinite_block_tests/SKILL.md
      • manual_tests.reset/SKILL.md
      • manual_tests.run_fire_tests/SKILL.md
      • manual_tests.run_not_fire_tests/SKILL.md
  • Documentation: Updated hook system documentation in doc/platforms/claude/hooks_system.md to reflect the new natural language validation pattern

  • Templates: Updated the skill job step template in src/deepwork/templates/claude/skill-job-step.md.jinja to generate validation prompts with the new format

Implementation Details

The changes maintain the same validation logic but express it in a more conversational way that aligns better with how Claude naturally understands task completion. Instead of expecting structured JSON responses, the system now guides agents through natural language cues about whether to continue working or finish.

claude and others added 2 commits January 23, 2026 22:09
Remove explicit JSON response format instructions from prompt-based hooks.
Instead of instructing to respond with {"ok": true} or {"ok": false, "reason": "..."},
use simpler language like "let the agent finish" or "have the agent keep working".

Updated:
- skill-job-step.md.jinja template
- hooks_system.md documentation
- Regenerated all skill files via deepwork install
* docs: add AGENTS.md for claude templates with prompt hook guidance

Add notes for AI agents working on jinja templates, specifically
documenting that prompt-based hooks should not include response
format instructions since Claude Code's internal instructions
already specify the expected format.

Reference: anthropics/claude-code#11786

* Update AGENTS.md with clarification on response format

Clarified instructions regarding response format in prompt-based hooks.

---------

Co-authored-by: Claude <noreply@anthropic.com>
@nhorton nhorton merged commit cb33a7a into main Jan 23, 2026
4 checks passed
@nhorton nhorton deleted the claude/remove-formatting-instructions-RlKz2 branch January 23, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants