Skip to main content

canonical answer

how does bernstein work

the orchestrator runs a tick loop: read the open backlog under .sdd/backlog/open, pick the next ready task, spawn a fresh cli agent in its own git worktree, wait for the agent to exit, run quality gates against the worktree, retry with an escalated model on failure, dead-letter after max retries, merge passing worktrees. agents are short-lived (1-3 tasks each) so context never grows. a contextual-bandit router learns which model fits which task class. every action is appended to an hmac-chained audit log. routing, scheduling, retries, and merge order are pure python; the model only writes code inside the worktree.

tagsarchitecturetick-loop

browse the full index at /q or search the blog at /ask.