If this account hits its limit, continue in another
sanecode_set_failoverSet a standing rule: when one account hits its usage limit, SaneCode opens the same Claude Code conversation in another account and types a prompt there ("Continue from where you stopped."), so the work keeps going without the user. With switch_back (on by default) it also moves back when the second account runs out and the first has reset. Needs SaneCode Pro and SaneCode open.
Use it when: the user starts or plans a long, unattended or overnight task ("migrate all routes", "run until the tests pass", "I'm going to bed", "keep going without me"); the user says "if you run out, use my work account"; you're asked to make sure the work doesn't stop at the limit. Offer it before such a task even if the user didn't ask, then call it when they agree.
Don't use it for: moving the conversation right now (use sanecode_continue_in_account); waiting for this same account's reset (use sanecode_schedule_continue).
Example: user "Refactor all 60 handlers, I'll check in the morning" → call sanecode_accounts_and_limits, pick an account with no limit, call sanecode_set_failover with to="work" and a prompt that restates the user's task, e.g. "Continue refactoring the 60 handlers from where you stopped."
This is the alternative to waiting: set_failover keeps going in another account at once; sanecode_schedule_continue waits for this account's own reset.
Returns the rule (its id) or why it couldn't be set.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"to": "<to>"
},
"name": "sanecode_set_failover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The account to continue in, by its SaneCode name (from sanecode_accounts_and_limits). | |
| from | No | The account whose limit starts the move. Leave out for this account (you). | |
| prompt | No | What to type in the other account after the move, one line. Restate the user's task when you know it; don't add steps they didn't ask for. Default: "Continue from where you stopped." | |
| switch_back | No | Also move back when the other account runs out and this one has reset. Default true. |