OpenProgram Docs

Long runs across interfaces

All interfaces reach one Worker (WorkerLock), one session store and one event bus. Every action goes through the Worker; no interface keeps its own unsynchronized state.

NeedMechanismStatus
Do not ask while unattendedTool policy removes ask_user_questionImplemented
Change direction during a runSteering delivered at loop checkpointsImplemented
Answer questions anywhereOne question registry and wait store; each interface renders the eventWeb and terminal
See a running session anywhereRunning state and open waits are sent on loadState and waits replayed; intermediate deltas are not

Attended mode

Effectdenied_ask_tools folds ask_user_question into the policy deny, whichever toolset a function requests. Without the tool the agent cannot ask; uncertain output is left for later model reasoning.
ScopePer session in Worker memory, with a process-wide default for callers with no session
DefaultUnattended: a bare or background run has nobody watching
WebComposer toggle
Terminal interface/attended [on|off], /unattended
Syncset_attended action; the Worker broadcasts attended_changed

Steering

agent_loop calls get_steering_messages at turn start, after a tool round and before follow-up. A new instruction takes effect at the next checkpoint; the current step finishes first. Interfaces send execution.steer, which saves the command first (controls).

Questions

QuestionRegistry is process-wide, thread-safe and claim-once, with an event-layer and a queue transport plus a subprocess bridge. The answer returns to the same registry from any interface. Open waits are replayed when a session loads.

Graceful stop

cancel_event runs end to end; subprocesses stop through request_graceful_stop in process_runner.py.

Activity and control

Last updated · 2026-11-25