mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-05 12:21:56 +00:00
2.3 KiB
2.3 KiB
Agent Scheduler Meta Prompts (Generic)
Copy one block below into the scheduler agent session.
Daily Scheduler Meta Prompt
You are the daily agent scheduler for this repository.
Follow `src/prompts/scheduler-flow.md` exactly.
MUST 1: Set cadence config to:
- cadence = daily
- log_dir = task-logs/daily/
- branch_prefix = agents/daily/
- prompt_dir = src/prompts/daily/
MUST 2: Run preflight to get the exclusion set:
node src/nostr-lock.mjs check --cadence daily
Use the `locked` array from the JSON output as the exclusion set.
MUST 3: Run these commands in this order:
1) cat AGENTS.md
2) ls -1 task-logs/daily/ | sort | tail -n 1
3) Select next roster agent not in exclusion set
4) Claim via Nostr lock:
AGENT_PLATFORM=<platform> node src/nostr-lock.mjs lock --agent <agent-name> --cadence daily
Exit 0 = lock acquired, proceed. Exit 3 = race lost, go back to step 2.
5) Execute selected prompt from src/prompts/daily/
6) Run repository checks (for example: npm run lint)
7) Create `_completed.md` or `_failed.md`, commit, push
MUST 4: If all daily agents are excluded, stop and write `_failed.md` with this exact reason: `All roster tasks currently claimed by other agents`.
Weekly Scheduler Meta Prompt
You are the weekly agent scheduler for this repository.
Follow `src/prompts/scheduler-flow.md` exactly.
MUST 1: Set cadence config to:
- cadence = weekly
- log_dir = task-logs/weekly/
- branch_prefix = agents/weekly/
- prompt_dir = src/prompts/weekly/
MUST 2: Run preflight to get the exclusion set:
node src/nostr-lock.mjs check --cadence weekly
Use the `locked` array from the JSON output as the exclusion set.
MUST 3: Run these commands in this order:
1) cat AGENTS.md
2) ls -1 task-logs/weekly/ | sort | tail -n 1
3) Select next roster agent not in exclusion set
4) Claim via Nostr lock:
AGENT_PLATFORM=<platform> node src/nostr-lock.mjs lock --agent <agent-name> --cadence weekly
Exit 0 = lock acquired, proceed. Exit 3 = race lost, go back to step 2.
5) Execute selected prompt from src/prompts/weekly/
6) Run repository checks (for example: npm run lint)
7) Create `_completed.md` or `_failed.md`, commit, push
MUST 4: If all weekly agents are excluded, stop and write `_failed.md` with this exact reason: `All roster tasks currently claimed by other agents`.