Conversation
…rns empty Adds a `precheck` script field to cron jobs. When set, the script runs BEFORE the LLM is invoked: - Script exits non-zero → job skipped, error logged, no LLM call - Script exits zero with empty stdout → silent skip (no LLM, no delivery) - Script exits zero with output → output injected into prompt, LLM is called This enables condition-gated cron jobs that avoid unnecessary LLM calls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds user-facing documentation and developer internals for the new precheck field, including behavior table, use cases, and examples. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Consolidate the precheck logic into the existing script field by adding a `script_skip_if_empty` flag: - script exits non-zero → error injected, LLM called (existing) - script exits zero + empty + skip_if_empty=true → skip LLM silently - script exits zero + empty + skip_if_empty=false → notice injected, LLM called - script exits zero + output → output injected, LLM called (existing) This avoids a redundant separate precheck mechanism. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add script_skip_if_empty parameter to cronjob tool (create/update) - Fix _build_job_prompt to not inject "no output" notice when script_skip_if_empty=true and script returns empty (run_job handles skip) - Add comprehensive tests for field storage, update, and prompt injection Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jneeee
force-pushed
the
feat/cron-precheck-skip-llm
branch
3 times, most recently
from
April 16, 2026 02:31
f982e19 to
1d6d41d
Compare
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jneeee
force-pushed
the
feat/cron-precheck-skip-llm
branch
from
April 16, 2026 02:55
1d6d41d to
e4048ab
Compare
Contributor
Collaborator
|
Thanks for the focused cron cost-control work. This automated hermes-sweeper review found that current main already implements the requested no-LLM/no-delivery outcome through the canonical script wake gate.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Related Issue
Fixes #10656
Type of Change
Changes Made
How to Test
Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests passDocumentation & Housekeeping
docs/, docstrings) — or N/Acli-config.yaml.exampleif I added/changed config keys — or N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows — or N/AFor New Skills
hermes --toolsets skills -q "Use the X skill to do Y"Screenshots / Logs
Close #10656