I'm trying to set up a persistent agent workflow and have a few questions:
Setup:
• I've registered two agents: tweetle and reddle using openclaw agents add
• Both are registered with workspaces, identities, and the same model as my main agent
• They're NOT bound to any channel — purely internal orchestration agents
What I want:
- A cron job fires and routes its trigger to the persistent agent's existing session (so the agent stays warm between runs, no cold-start)
- From my main agent (Peanut), I want to sessions_send to tweetle or reddle's session directly to give them tasks or check status
- Alternatively, I want cron to trigger these agents via an agent_to_agent call
What I've tried:
• Cron with sessionTarget: "isolated" — this creates a new fresh isolated session each run, not routing to the persistent agent
• sessions_send from main → agent:tweetle — returns forbidden (visibility restricted to current session tree)
Config I found:
• tools.sessions.visibility — options are self | tree | agent | all
• tools.agentToAgent.enabled + tools.agentToAgent.allow — for runtime cross-agent invocation
Questions:
- What's the correct pattern for routing cron → persistent registered agent?
- Is tools.agentToAgent the right way to enable Peanut → Tweetle/Reddle messaging?
- Should I be using sessionTarget: "agent:tweetle" in cron instead of "isolated"?
- Is there a recommended pattern for keeping agents warm between cron runs vs. cold-starting each time?