Ankita AI adds durable tasks so desktop assistant resumes after crashes without repeating completed actions
Ankita AI, a desktop assistant built by Krish Verma that writes files, edits code, and sends messages, previously risked duplicating effects when a crash forced it to restart a job. The author introduced durable tasks in a 242-line AssistantTaskStore, where each request becomes a checkpointed record saved atomically with size and step limits. Each action is tracked through phases such as requested, started, settled, uncertain, and not_run, and a hash of the tool name and sorted arguments blocks any repeat of an action that already completed. Tasks interrupted by a dead process are recovered only when the owning process is confirmed gone, and uncertain steps require owner review before further changes proceed. In a restart test with a real process killed mid-task, the completed write was blocked from repeating while the remaining work finished.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in