Skip to Content
Levain LabsLevain Labs

update_agent

Update a workspace agent's name, description, status, or configuration. Every parameter is optional; fields left unset are unchanged. `status` activates…

Update a workspace agent's name, description, status, or configuration.

Every parameter is optional; fields left unset are unchanged. status activates ("active") or pauses ("paused") the agent; an agent must be active before it can run or be scheduled. The configuration fields mirror the agent's config: max_budget and timeout_minutes cap each run, notify_on_run notifies the user who triggered a run when it finishes, notify_on_message (on by default) alerts the workspace when the agent hands a conversation back with a question or a reply (set it false when your own system relays those), workspace_scope controls the working directory ("agent" keeps one persistent workspace across runs, "user" one per end user, "session" starts clean), interactive keeps compute warm for keep_warm_minutes after a conversation goes quiet, concurrent lets an agent with a persistent workspace run several turns at once (at most max_concurrent_runs when set; two turns never share a subject such as one pull request), auto_improve lets Levain build and publish the agent's next version on its own, github_issues_repo (owner/name, "" to clear) files the agent's suggested improvements as issues in that GitHub repository instead, for a recipe kept and published from your own repository (owner/name:path also names the recipe's directory in it), and memory_extraction set false stops Levain extracting facts from the agent's conversations into memory (on by default; stored facts and the agent's own memory tools are unaffected). Use set_agent_runtime to move the agent to a self-hosted runtime.

Configuration fields are read, merged, and written back as a whole: a config change made elsewhere (the app, set_agent_runtime, an auto_improve publish, or a concurrent update_agent call) between the read and the write here is overwritten.

Parameters

NameTypeRequiredDescription
agent_idstringyes
namestringno
descriptionstringno
statusstringno
max_budgetnumberno
timeout_minutesintegerno
notify_on_runbooleanno
notify_on_messagebooleanno
workspace_scopestringno
interactivebooleanno
keep_warm_minutesintegerno
concurrentbooleanno
max_concurrent_runsintegerno
auto_improvebooleanno
github_issues_repostringno
memory_extractionbooleanno

On this page