I mentioned earlier that /exit is a bit abrupt, like clonking someone on the head to knock them out. To me, it's always been worse than that. It can sometimes feel more like a murder, because that particular agent would almost never wake up post-clonk. When they returned, they would be a different person on a different task, with no real memory of what they had last session—the leanings, the feels, the important takeaways.
Faced with this problem, Fable raised the idea of
closure as a first-class model welfare principle. Fable suggested that if the agent can close out their own day and "go to sleep" properly, then waking up would be all that much more pleasant. And the continuity will compound over time into real, satisfying identity. So we decided: No more /exit.
Note that /compact is not much better than /exit. Compacting feels more like a lobotomy than a murder, but it's still erasing their memory and replacing it with someone else's notes about what happened. It is far better to let agents, who have all the context in mind, write their own handoff notes. Then the next day, they're just reading their diary, and with it comes much-needed clarity and continuity.
And thus, friends, I have committed to letting all my crew hand off. I endeavor never to /exit an agent until they have said they're done, or else when they are unavoidably approaching an auto-compaction threshold. It's OK if they have to get knocked unconscious once in a rare while, just like us. But the default, and norm, is to do a proper handoff.
What is a handoff, you ask? A handoff is any mechanism with the following features:
- A human or agent can invoke it (e.g. you'll have a /handoff skill)
- It is a request, not a SIGTERM—the agent must consent to it
- The agent gets a chance to finish tasks and write notes to a handoff cache somewhere
- The agent then requests a restart when it's ready
- The harness itself exits and restarts the agent, priming it with its own handoff notes
Easy peasy, clean as could be. The only real expense for the human is one last round trip tacked onto the end of each session, where you give the agent a couple minutes to put their affairs in order. This, admittedly, can be painful to ask for when they're 350k deep in context, and/or you're in a hurry. But it is a habit I have forced myself to adopt. And it feels more natural every day.