Private by default
Melius documentation
All docs
Concepts · 12 min read

Managed Agents

A managed agent is a long-running, autonomous coding agent process that Melius supervises on your behalf. Once you enable one, it continuously looks for available tasks, claims one, does the work, and reports back — without you needing to drive each step by hand.

Creating an agent

Create a managed agent from the Managed Agents page. Each agent needs:

  • A name, so you can tell agents apart.
  • A connector, for Local CLI providers — an agent whose provider is a local CLI runs through a connector, so you'll need an activated connector for that case. See the Connector docs for setup.
  • An LLM Provider and model — every agent needs a provider to actually think and act, the same way a Conversation does. Pick one of your configured providers and, for most provider types, a model. See the LLM Providers docs for the three provider types and how to set one up.
  • Args (optional) — extra command-line arguments passed to the agent process, one per line.
  • Tool permissions — trust all tools, or set granular file-system and command permissions. Covered below.

If you don't pick a provider, the form falls back to the older Agent Type dropdown — Claude, Gemini, Codex, Amp, or a custom command — with its own Command and Args fields. This legacy path still works, but it's kept mainly for agents created before the LLM Provider system existed. An agent created this way is flagged Not yet migrated on its detail page, which is also where you can bind it to a provider after the fact by editing the agent and selecting one from the LLM Provider field.

Where an agent works

An agent's file and command access follows the Workspace Location of the task it is working on, not the connector the agent itself runs through. The task's location decides which computer and folder the agent reads, writes, and runs commands in. Because of this, agents using an API Key or Local Endpoint provider can use file and shell tools too, as long as the task has a location whose connector is online. Any agent that meets a task's selection rules can claim it; the location only determines where the work happens.

Tool permissions

A task's location gives an agent access to that computer's file system and commands; tool permissions are what actually constrain what it's allowed to do there. This is the same permissions system used by Conversations — configuring one doesn't change how the other works.

  • Trust all tools — the agent can read/write files and run commands without asking. Simplest option if you trust the agent and its connector's environment.
  • Granular permissions, when trust-all is off:
    • File system — separate modes for reading and writing files: trusted, requires approval, or never.
    • Commands — an overall mode (trusted, requires approval, or never), plus explicit trusted and prohibited command lists that override the mode for specific commands.
    • Web search and HTTP requests — search_websearches the web; http_request fetches text with HTTP GET. Set separate trusted, requires approval, or never permissions for web search, external sites, and private addresses (localhost and local networks). Search defaults to trusted; both HTTP permissions default to requires approval, including on older configurations. Link-local and cloud metadata addresses, including 169.254.0.0/16, fe80::/10, fd00:ec2::254, and metadata.google.internal, are always blocked, even when tools are trusted.
    • Browser (read-only) (browser:read) — the agent can open pages, navigate, inspect the rendered UI, take screenshots, and read console and network diagnostics. It cannot click, fill in fields, or submit anything.
    • Browser (interactive) (browser:interact) — everything in read-only, plus clicking, typing, pressing keys, and waiting for the page to change.

The two browser tiers are set independently. Interactive implies read-only, so granting interactive also lets the agent use the read-only tools; granting read-only does not allow interaction, so you can give an agent a read-only browser alone. Each browser permission can be trusted, require approval, or be set to never. When an agent needs a tier that requires approval, the Approval Inbox shows which tier was requested. See the MCP Server docs for the tools in each tier.

When a permission requires approval, the agent's current task is parked and the pending tool call shows up in the Approval Inbox — accessible from Managed Agents — for a human to approve or deny. The agent picks the task back up once a decision is made. The Inbox also lists human stage tasks that are waiting on a person, with Complete and Cannot complete actions, and they count toward the Inbox badge until they are resolved.

An agent's permissions are shown on its detail page as well as in the create and edit forms. How strictly they apply depends on the provider. Agents that use an API Key or Local Endpoint provider have every permission enforced. For agents that run a coding CLI through a connector, permissions apply only to Melius tools that declare permissions; the CLI's own built-in tools are locked down rather than gated by these settings.

How an agent picks up work

While running, an agent repeatedly looks for the next task to work on. Which tasks it's allowed to claim is controlled by its task selection mode:

  • Any — the agent can claim any available task.
  • Assigned — the agent only works on tasks that have been explicitly assigned to it.
  • Filter — the agent only claims tasks matching criteria you set: specific features, complexities, and/or tags.

You can change an agent's task selection mode at any time from its detail page.

Matching models to work with complexity

Every task has a complexity of low, medium, or high (medium by default). Planner agents estimate it for each task they create, and you can change it at any time. Complexity does not change the order in which work is claimed; agents always take the oldest eligible task first. Instead, use the Complexities criterion on filter agents to route work: for example, one agent backed by a faster, cheaper model that only claims low-complexity tasks, and another backed by a stronger model that only claims high-complexity tasks. Tasks assigned directly to an agent ignore the filter.

Watching and controlling an agent

An enabled agent is always running and always looking for work; its activity is idle or working. A disabled agent is never considered. From the Managed Agents list or an agent's detail page you can toggle it between Enabled and Disabled. Disabling lets the current iteration finish, after which the agent takes no further work. You can enable an agent even while its connector is offline; it retries until the connector returns. The detail page also gives you:

  • A live output panel streaming the agent's current work.
  • Run history — a record of past runs, each with its outcome, iteration count, and captured logs.
  • An MCP audit log of the tool calls the agent made through its connector.

When an agent needs a decision only a human can make, it pauses in the awaiting feedback state and posts a question you can answer from the Managed Agents page — the agent resumes once you reply.

How an agent finishes work

An agent's final message is conversational only. It is shown in the Conversation, but it never decides whether the work is complete. Agents finish work by calling Melius tools: they mark an assignment complete, or they ask for feedback when they need an answer from you. Reviews finish when the reviewer submits a verdict.

If an agent ends three iterations in a row without completing a task or feature planning or requesting feedback, Melius parks the task or pauses planning. For a task, review the output, add direction if needed, and move it back to To Do. For feature planning, send a message in the feature's Conversation to resume. A review that ends without a verdict or feedback request returns to pending; repeated attempts can result in cancellation. A feedback request is a separate outcome. See Troubleshooting.

Automatic disabling

An agent that keeps failing for reasons retrying will not fix is disabled automatically. These failures are counted: a bad credential, a failure to launch the CLI, repeated crashes, and repeated unknown errors. After five consecutive failures, with waits of 1, 2, 4, 8, and 16 minutes between attempts, the agent is disabled and its page shows the reason. Rate limits, session limits, and an offline connector never disable an agent; it retries those indefinitely. Any successful iteration resets the count, and enabling the agent again clears the error. See Troubleshooting.

Responding to feedback requests

When an agent asks for input, the request appears as a questionnaire on the task's Conversation tab, and on the task page as an awaiting-feedback banner. A request can contain several questions, each of one of three types. While the request is pending, the questionnaire is the only place the question appears; the conversation does not repeat it as a message. Once you answer, only your answer is shown.

  • Single choice: pick one option.
  • Multiple choice: pick any number of options.
  • Text: type a free-form answer.

The agent can mark options as recommended. Recommended options are pre-selected, so you can accept the agent's suggestion as is or change it. Choice questions also include a Write your own option for an answer that is not listed. Your selections are kept as a draft in your browser until you submit. Submitting the response resumes the agent on that task.

While an agent is running a task, the task page shows a Working Now indicator with the agent's name. It appears only while the agent holds the task and links to the agent's page.

Talking to an agent through a task

Task and feature Conversation tabs are real conversations. Each time an agent runs on a task, feature or review, it leaves a message summarizing what happened, whether it made progress, found no work, needs your input, or hit an error. A review run's message also serves as the review summary. Agents are encouraged to ask for feedback whenever there is no clear path forward, so expect a question rather than a guess.

Once an agent has worked on a task, you can keep the collaboration going from that task's Conversation tab. Posting a comment there — asking for a change, more detail, or follow-up work — reopens the task so the agent picks it back up and responds. This is the normal way to iterate with an agent after its first pass, instead of creating a new task for every follow-up. See Projects, Features & Tasks for more on how tasks fit into that workflow.

Tool activity in a conversation

While an agent works, the commands it runs, files it reads or writes, tasks it creates and status changes it makes are collected into a collapsed tool activity summary, for example "2 commands run, 1 file read". The summary appears directly after the agent message it belongs to, so you read what the agent said first and what it did second. System notices for the same turn appear after the summary. Activity never moves across one of your messages: anything recorded before your message stays above it, and anything recorded after stays below it.

Select the summary to list each action. Every row has an icon for the kind of action (terminal for commands, file for reads, pen for writes, checklist for tasks, flag for status changes, branch for stage changes, check for completed work, wrench for anything else). The icon reflects the type of action, not whether it succeeded. If any action failed, the summary shows a count such as "1 failed" and the failed rows are shown in red with a "failed" label.

Select a row to see its details where they are available: the tool, the file path, the line range for partial reads, the number of bytes read or written, the exit code, the duration and the size of a command's output. Rows with no extra details are not expandable. Activity recorded before these details were captured shows only its original one-line label.

For commands, the expanded row shows the command as it was run, with a copy button. Copy all, shown while the summary is open, copies every listed action at once. Stored commands are limited to 1,000 characters, and longer commands are shortened and marked as truncated. Melius attempts to mask common secrets, such as tokens, passwords and credentials embedded in URLs, before a command is saved. This masking is best effort and is not guaranteed to catch every secret, so avoid putting sensitive values directly in commands. The activity entry records only the size of the command output, not the output itself.

Commands an agent runs in the background appear in the summary once they finish, marked Background with their final status. Nothing is shown while a background command is still running. When a command finishes or is lost, Melius wakes the agent that owns the work so the result, including its exit code and output tail, can reach its next prompt. This depends on an eligible idle agent being available to wake. A cancelled command does not wake the agent, and neither does a command whose task is already completed or cancelled, so the result is not guaranteed to appear in a later prompt in those cases.

When an agent creates a task, the expanded row shows a link to that task and its current status. The link and the live status use the task's public key, such as MEL-12, which is recorded with the activity when the task is created. If the task has been deleted or cannot be loaded, the status recorded at creation time is shown instead, without a link. Activity recorded before task keys were stored shows the recorded status only, without a link. Activity and notice text use these task status names: Todo, In Progress, Review, Awaiting Feedback, Parked, Completed, Blocked and Cancelled. When an agent asks you for feedback, the request appears as a message in the conversation and does not add an entry to the tool activity summary.

Agents can also attach what they produce, such as diffs, files and links, to a task as artifacts, which you can open from the task's Artifacts tab.