{"record":{"id":"f9c26ccab7b8ec64","repo":"NousResearch/hermes-agent","slug":"no-agent-true-requires-a-script-with-no-agent-an","errorCode":null,"errorMessage":"no_agent=True requires a script — with no agent and no script there is nothing for the job to run.","messagePattern":"no_agent=True requires a script — with no agent and no script there is nothing for the job to run\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"cron/jobs.py","lineNumber":1563,"sourceCode":"    \"\"\"Shared create/update validation for job execution-mode invariants.\n\n    ONE owner for the class: create_job and update_job both call this so an\n    invariant enforced at create time cannot be violated through the update\n    door (monitor jobs silently degrading when no_agent is flipped on, etc.).\n    \"\"\"\n    if monitor_script and monitor_url:\n        raise ValueError(\n            \"monitor_script and monitor_url are mutually exclusive — a job \"\n            \"can only have one monitor source.\"\n        )\n    if (monitor_script or monitor_url) and no_agent:\n        raise ValueError(\n            \"monitor_script/monitor_url cannot be combined with no_agent=True — \"\n            \"the whole point of a monitor job is to suppress or wake the AGENT \"\n            \"based on source changes. Use a plain no_agent script job instead.\"\n        )\n    if no_agent and not script:\n        raise ValueError(\n            \"no_agent=True requires a script — with no agent and no script \"\n            \"there is nothing for the job to run.\"\n        )\n\n\ndef create_job(\n    prompt: Optional[str],\n    schedule: str,\n    name: Optional[str] = None,\n    repeat: Optional[int] = None,\n    deliver: Optional[str] = None,\n    origin: Optional[Dict[str, Any]] = None,\n    skill: Optional[str] = None,\n    skills: Optional[List[str]] = None,\n    model: Optional[str] = None,\n    provider: Optional[str] = None,\n    base_url: Optional[str] = None,\n    script: Optional[str] = None,","sourceCodeStart":1545,"sourceCodeEnd":1581,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/cron/jobs.py#L1545-L1581","documentation":"Error \"no_agent=True requires a script — with no agent and no script there is nothing for the job to run.\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at cron/jobs.py:1563 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a script for the no_agent job, or set no_agent=False so the agent runs."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c896c09c42910c584c4c7d2325b58c14713ea42c","analyzedAt":"2026-08-14T17:18:01.089Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}