Skip to content

Prevent agents from sleeping during long tasks - #67

Merged
rxdt merged 3 commits into
rxdt:mainfrom
sarthakkondawar2007:main
Sep 17, 2026
Merged

rxdt merged 3 commits into
rxdt:mainfrom
sarthakkondawar2007:main

Conversation

@sarthakkondawar2007

Copy link
Copy Markdown
Contributor

Summary

Fixes #59

  • Prevent Codex from choosing sleep during long-running work.
  • Add a Claude Bash(sleep:*) deny rule.
  • Add a Claude PreToolUse hook that blocks sleep commands with an explanatory message.
  • Preserve existing Claude hooks instead of overwriting them.
  • Add test coverage for hook merging and sleep prevention.
  • Ran harness configure-agents on macOS.

Testing

  • python -m pytest -q harness/tests/test_cli.py -k configure_agents
  • Full test suite: 244 passed, with 5 existing failures unrelated to this change.

@rxdt
rxdt merged commit e98b1ca into rxdt:main Sep 17, 2026
4 checks passed
@rxdt rxdt assigned rxdt and sarthakkondawar2007 and unassigned rxdt Sep 17, 2026

rxdt commented Sep 17, 2026

Copy link
Copy Markdown
Owner

Thank you, @sarthakkondawar2007, for this strong contribution! PR #67 adds sleep prevention for both Codex and Claude, gives Claude a helpful hook message, preserves existing hooks, and adds coverage for hook merging and sleep blocking. This addresses issue #59. The implementation is practical and thoughtful—your testing and attention to existing user configuration make this especially valuable. Great work!

@sarthakkondawar2007

Copy link
Copy Markdown
Contributor Author

Thank you, @sarthakkondawar2007, for this strong contribution! PR #67 adds sleep prevention for both Codex and Claude, gives Claude a helpful hook message, preserves existing hooks, and adds coverage for hook merging and sleep blocking. This addresses issue #59. The implementation is practical and thoughtful—your testing and attention to existing user configuration make this especially valuable. Great work!

Thank you! I would love to work with you further 👍
Again thanks.

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.

Stop agents from sleeping — they should work while long commands run

2 participants