import json, subprocess
p='/home/hermes/.hermes/profiles/hermesvps/cron/jobs.json'
x=json.load(open(p)); items=x if isinstance(x,list) else x.get('jobs',[])
print('PATH',p,'COUNT',len(items))
for j in items:
out={k:v for k,v in j.items() if k.lower() not in {'prompt','context','skills'}}
print(json.dumps(out,ensure_ascii=False,sort_keys=True))
print('PROMPT_HEAD',str(j.get('prompt',''))[:700].replace('\n',' '))
print('CRON_RUNTIME_PROCS')
print(subprocess.run(['bash','-lc',"ps -eo pid,lstart,args | grep -Ei 'hermes.*cron|cron.*hermes|jobs.json' | grep -v grep || true"],capture_output=True,text=True).stdout)