Build on Malini
Agent tools
The tools the agent gets in a Malini chat - a browser it shares with you, secrets it asks you for by name, files it opens for you to fill in, widgets it makes for your board, MCP servers it adds, your repositories and workstreams, your automations and events - how often they ask, and where you see every call.
Open as markdownIn a Malini chat, the agent has Claude Code's own tools plus Malini's.
Malini's tools reach Claude Code through an MCP server named malini, so their full names start with mcp__malini__.
Every prompt carries the browser tools a chat uses on most pages.
The rest, such as browser_hover and every tool past the browser, load through Claude Code's tool search the first time the agent reaches for one, so a chat that never needs them never pays for them.
Browser
The agent drives the same browser tabs you see in the inspector, and the tabs it opens show up beside yours.
A tab shows up as soon as the agent starts opening its page, and a page that does not load says why, such as ERR_CONNECTION_REFUSED while your dev server starts.
Pages see Chrome running in Electron: its user agent names Electron but not Malini, so a Cloudflare check lets the page through without a click.
A site that takes Electron for its own desktop app, such as Microsoft Teams, may send the tab there instead of showing its web page.
A link that asks for a new tab, a Cmd-click, a middle-click or a Shift-click opens a new tab beside its page, in the same profile. A Cmd-click or a middle-click opens it behind the page, as in Chrome, and the others bring it to the front. A sign-in window, such as the one Continue with Google opens, becomes a tab too, still talks to the page that opened it, and closes its tab once it is done. While the agent acts on a page, a link it clicks opens in the same tab, so the agent sees where it went. A right-click on a page shows the menu Chrome shows there: Back, Forward and Reload, the link and image items, Cut, Copy and Paste, spelling suggestions, Search Google for the selection, and Inspect Element, which opens DevTools in a window of its own. While a Malini menu is open, the page shows as a still, and a click on it closes the menu. Open in your browser in the toolbar opens the page in your default browser, and a file from the worktree opens as the file itself, never one outside the worktree. The address field shows the page's host and path, and a click in it brings back the whole address, with the caret where you clicked, so a drag selects text and never drags the address out.
| Tool | What it does |
|---|---|
browser_open |
Opens a web page or a file from the worktree. |
browser_snapshot |
Reads the page and its iframes as text, with a ref such as @e3 for each element it can use. |
browser_screenshot |
Captures the view, the whole page, or one element. |
browser_click |
Clicks an element with the mouse. |
browser_hover |
Moves the mouse over an element, for menus and tooltips. |
browser_type |
Types into a field or picks an option, optionally pressing Enter. |
browser_press |
Presses a key or a shortcut, such as Escape or Meta+a, or holds a key down, as games need. |
browser_scroll |
Scrolls the page or the element under the mouse. |
browser_wait |
Waits for text or an element to show or go, or for a number of seconds. |
browser_evaluate |
Runs JavaScript in the page and returns the result. |
browser_console |
Reads what the page logged to its console since it loaded. |
browser_upload |
Picks files from the worktree for a file field, or for the button that opens a file chooser. |
browser_dialog |
Answers the alert or confirm dialog the page waits on: OK or Cancel. |
browser_back |
Goes back one page. |
browser_forward |
Goes forward one page. |
browser_reload |
Reloads the page. |
browser_resize |
Sets the page's width, and its height while you do not see the tab. |
browser_close |
Closes the tab it opened, and its page. |
Every tool works while you do not see the tab, look at another workstream, or keep Malini behind other windows.
The agent names an element by a ref from its last browser_snapshot or by a CSS selector.
An element inside an iframe gets a ref such as @f1e3, from the same site or another one, and every tool reaches it there.
A click, a hover or a scroll moves the real mouse in the page, so the page sees the same events as from you.
Malini waits up to 5 seconds for the element to show and hold still, and when something else covers it, such as a cookie banner, the agent hears what.
A select or a date field opens a picker outside the page, so the agent picks the option or types the date with browser_type instead.
A file field opens a file chooser outside the page, so the agent picks the files with browser_upload, from inside the worktree only.
A click that opens a file chooser any other way closes it, and the agent hears to use browser_upload.
An alert or confirm dialog on a tab you do not see, or while the agent acts on it, waits for the agent.
The tool that opened it returns its message, the other browser tools wait until browser_dialog answers it, and showing the tab hands it to you.
On a tab you see while the agent does nothing there, the dialog shows to you as before.
A page that asks to stay before you leave lets the agent leave.
Electron does not support prompt(), so a page that calls it gets an error, in Malini as in every Electron app.
When a page is too narrow or too wide for what it checks, the agent calls browser_resize with the width the page should get.
While you see the tab, Malini moves the divider between the chat and the inspector, the one you drag, and the width stays until you drag it back.
The chat and the inspector keep their minimum widths, so the page may end up narrower or wider than asked, and the agent hears how wide it got.
While you do not see the tab, it takes the width and height the agent asks for, such as 390 by 844 for a phone, and fits the inspector again once you open it.
While Malini is minimized with the tab open, its size stays and the agent hears why.
Malini's browser replaces agent-browser, Playwright MCP, Puppeteer and any Chrome an agent launches to look at a page.
Malini tells the agent so, since a Chrome inside Malini's sandbox cannot start its own sandbox and asks you for access it does not need.
A browser MCP server you set up, such as Playwright MCP or Chrome DevTools MCP, stays out of every Malini chat: the agent does not get its tools, and the MCP panel lists it as Hidden.
Your claude in the terminal keeps it.
In Bash, agent-browser, a Chrome binary, Playwright's open, codegen and screenshot, and open on a page do not run, and the agent hears which browser tool to use instead.
A project's own tests, such as playwright test, and iOS and Android simulators run as before.
Once a page has served its purpose, such as after the agent checked or captured it, the agent closes its tab with browser_close, and the page closes with it.
It closes only the tab it opened, never one of yours, and the tab stays closed after Malini restarts.
A page you should look at or use, such as a prototype or the variants the agent asks you to pick from, stays open.
You can also pick a part of a page for the chat. Pick an element in the toolbar starts pick mode: click an element, or drag an area where the page has no elements to click, such as a game's canvas or a video. Escape leaves pick mode. A small box at the pick takes your comment, and Add to chat, or Cmd+Return, puts the pick in the composer of the chat you have open, without sending it. Escape or a click outside the box goes back to picking. Each pick is one chip in the composer, and its × removes it before you send. The agent gets a screenshot of the pick, the page address and your comment, and for an element also its selector, its tag, its text and the start of its markup. On a web site, the personal data in that text and markup is hidden from the agent as everywhere else, and gray boxes cover it in the screenshot. On a web site, gray boxes cover the personal data in that screenshot, as in the agent's own screenshots. A page that asks for your microphone or camera asks you first, and Malini remembers your answer until it quits. A page can lock your cursor when you click it, as games do, and Escape unlocks it. Pinch the trackpad to zoom a page in, up to 3x, as in Safari or Chrome, and pinch out to go back. While a page is zoomed, a map in its top right corner shows the whole page at 100% with your view framed, and fades out when you stop. Drag in the map or scroll over it to move the view, and Reset or a double-click on it goes back to 100%. The agent's screenshots work while Malini is hidden, minimized, or behind other windows, so you can keep working elsewhere. The agent reads a copy at the page's own size in CSS pixels, at most 1,280 on its long edge, and the file it embeds in the chat keeps every pixel.
Pages side by side
Drag a browser tab onto the right half of the page you see: the page makes room, a dashed column shows where the dragged page lands, and the drop puts the two side by side in one tab. A tab that already shows pages side by side brings all of them. Without a drag, right-click the tab, or reach it with the arrow keys and press Shift+F10, and pick Move beside the page you see. Each page keeps its own address bar, and its close button closes only that page. Closing the shared tab closes every page in it.
A page beside another one keeps its own cookies, so it can be signed in to the same site as another account. The drop gives it a copy of the cookies of your other tabs, so it starts signed in where they are. From then on it keeps its own: sign it in as someone else, or sign it out, and your other tabs stay as they were. No two pages beside others ever share cookies, in any workstream, and the copy stays after a restart. Closing the page drops its cookies; the next page you drag beside another gets a fresh copy. A copy is a copy of the cookies, not of the account: a site that ends your session on sign-out ends it in every tab that held that session, and you sign in again in the one that stays. It copies cookies only, so a site that keeps its sign-in elsewhere starts signed out there. The agent's browser tools work on a page beside another one as on any tab, and the agent never puts pages side by side itself.
Screenshots in your theme
Screenshots come out in the theme you see Malini in: Settings > Look & sound > Theme, or your system's when that is set to System.
Pages in the browser follow it through prefers-color-scheme.
The agent is told the theme too, so it switches anything else it captures, such as your app's window or a simulator, before it takes the shot.
Commands the agent runs see it as MALINI_THEME, light or dark.
Any other screenshot, recording, or image the agent makes goes under .context/ in the worktree, which Malini keeps out of git, so it shows in the chat and stays with the workstream.
The agent gives each capture a new name and leaves it there, and Malini keeps its own copy of whatever a chat shows until the workstream is deleted.
Dark pages
While Malini is dark, a white web site in the browser turns dark too, in Malini's own background and text colors.
A cream or gray page lands on the same colors, not a brown or blue cousin of them.
A page with its own dark theme keeps it.
A dark logo on a clear background turns light, and a photo keeps its colors.
The contrast button in the browser toolbar, Dark pages, turns it off or on for the site you see, and Malini remembers your choice after it restarts.
It starts on for web sites and off for local addresses, such as localhost, a .local or .test name, or a private IP, since that is usually your own app.
In Malini's light theme, every page looks the way its site made it.
A page inside an iframe stays light, and a site with unusual styles can come out a little rough.
Forms that fill themselves
Save your details once in Tools > Autofill: your name, email, phone, company, job title, address, website, LinkedIn and GitHub. Malini seals them with your Mac's keychain and keeps them on this Mac. Click an empty field that asks for one of them, or press the Down arrow in it, and Fill in my details shows under it, with the fields it fills. Pick it, and Malini fills every empty field of that form it knows. The page gets nothing before you pick it. Right-click a field for Fill In My Details in the page menu too.
When you send a form on an https site with details that differ from the saved ones, a bar above the page asks Save these details?, each value partly hidden. Save keeps them, Not now keeps nothing, and Never on this site stops asking there. Tools > Autofill lists those sites, and Ask again undoes it. Malini does not ask on a local address, a plain http page, or a form with a password, card or code field, and it keeps only what you typed yourself.
The agent never fills a form with your details and never teaches Malini new ones, and it reads them as [your details hidden] on every page.
Passwords and payment cards are not part of autofill.
A form inside an iframe gets no help, and neither does one a site sends without submitting it.
Personal data the agent does not see
On a web site, the agent does not see the emails, phone numbers, card numbers or IBANs on a page.
It also does not see what a field holds when the field asks for a name, an address, a birthday, an ID number, a card, a username or a password.
The page you see stays as it is: only what the agent reads changes.
In text, the agent reads a marker instead, such as [email hidden] or [address hidden]: in a snapshot, a script's result, the console, a dialog, and a page's title and address.
In a screenshot, a gray box covers each one, in the image the agent reads and in the file it saves, and the agent hears that the boxes are there.
Pages inside an iframe get the boxes too, and an iframe Malini cannot read is covered whole.
When Malini cannot find them on a page, it takes no screenshot, and the agent hears to try again.
The details you saved for autofill stay hidden on every page.
A local address, such as localhost, a .local or .test name, or a private IP, shows the agent the rest, since it is usually your own app on made-up data.
The eye button in the browser toolbar, Hide personal data from agents, turns it off or on for the site you see, and Malini remembers your choice after it restarts.
The agent hears that you chose this, that it must not work around a hidden value, and that it asks you when the task needs one.
Malini reads text, so text drawn in a canvas or an image shows, and a script can still rebuild a value piece by piece.
Browser autopilot
An account to make, an API key to get, an OAuth app to register, a DNS record, a plan, an order: the agent can open the site and do it, in the profile that keeps your sign-ins, instead of handing you the steps.
Settings → Agents → Browser autopilot says who runs them.
Ask, the default, has the agent ask in the chat when it spots one, with Yes, always, Yes, this once, No, I'll do it and No, never; a prompt that sends it to the site is a yes.
Yes, always and No, never move the setting to Always or Never, with settings_set, so it never asks again, and Settings moves it back.
While the agent runs an errand, it stops for the one step only you can take, a password Malini does not hold, a one-time code, your personal details, a payment, a CAPTCHA or a key to copy, leaves the tab open on it and names it in Needs:; your next message sends it on from there.
A key the page shows stays yours to copy: the agent asks for it on a secrets card with the tab open on the value, and never reads it into the chat or a file.
On Never, the agent gives you the link and the step in Needs: instead, and asks for a key on the card at once.
| Tool | What it does |
|---|---|
settings_set |
Keeps your answer about browser autopilot, Always or Never, and changes no other setting. No approval. |
Settings
Ask the chat where a setting is, or how to make Malini behave differently, in whatever words come to mind: "how do I get fewer variants", "stop asking me about the browser", "can it stay awake with the lid closed". The agent reads Malini's settings and points you to the one you mean, with its path, one line on what it does and a link. The link opens Settings on that row, lit for a moment, or the page a setting lives on, Tools, Automations, Brain or Profile. The agent changes nothing: only browser autopilot has a tool, and only for an answer you gave.
| Tool | What it does |
|---|---|
settings_list |
Lists every setting: its path, such as Settings → Agents → Variants, what it does, the words people use for it, its value where Malini keeps one, and its link. No approval. |
The same list is what Settings searches and what ⌘K lists under Settings.
Secrets
A secret, such as an API key, is a name to the agent. It never sees the value, and you never deal with a file or a path.
| Tool | What it does |
|---|---|
secrets_request |
Asks you for secrets by name, on a card in the chat, and says why. It returns to the agent at once. |
- When browser autopilot runs the errand, it gets you to the value first: it opens the site in its browser, signed in as you, takes every step up to the page that makes or shows the key, and asks on the card with that tab open, so you copy and Save.
- The card shows a password field for each name, over the composer, and takes the focus unless you are typing.
Paste a value and Save.
Paste
NAME=valuelines, from a.envfile for example, anywhere in the chat, and they fill every field they name instead of landing in the composer. A value of several lines, such as a private key, keeps its line breaks. - Malini seals the value with your Mac's keychain, for the chat's repository.
From then on
$NAMEis set in every command the agent runs there, including workstreams you start later and after you archive this one. - Malini tells the agent what you saved, and which names you left empty, which wakes it when it waits.
- Every output the agent sees, a failing or background command's included, shows the value as
[secret], and so does the transcript. A value shorter than eight characters is set but not masked. - Dismiss closes the card without saving anything.
- Tools, Secrets lists the names you saved, by repository, with Replace and Delete. Values never show.
- Commands get the secrets through Claude Code's shell prefix, after permissions are checked, so your Always allow rules and auto mode see each command as the agent wrote it.
- Masking catches a value as it is, not an encoded one, so an agent that sets out to leak a secret can; what stops that is what it may run without asking.
A secret you paste in the composer
Paste a token into the composer and Malini seals it in your keychain, for the chat's repository, and puts a name such as $PASTED_GITHUB_TOKEN in your prompt where the token was.
The agent reads the name, and its commands get the value, as with a secret you save on a card.
- Malini knows the shape of GitHub, GitLab, Anthropic, OpenAI, Stripe, Slack and Google API keys, and of a private key block.
A
NAME=valueline counts too when its name says secret, such asAPI_KEYorDB_PASSWORD, and its value is no placeholder. - Every name Malini makes for a paste starts with
PASTED_, so a pasted token never stands in for a variable a tool reads, such as theGITHUB_TOKENthatghsigns in with. - A token already saved for the repository keeps its name.
A new token whose name is taken gets the next free one, such as
PASTED_GITHUB_TOKEN_2, and never replaces a saved value. - A row over the composer says where the token went. Undo puts the token back in your prompt as you pasted it, deletes the secret it saved, and marks the token, so you send it on purpose. Hide it seals it again.
- The token never reaches your draft or the disk, only the keychain, unless you press Undo.
- Malini catches what you paste, not what you type.
Files you fill in
Some files only you should write. The agent never reads or writes those, so it opens the file for you instead.
| Tool | What it does |
|---|---|
files_open |
Opens a file in a tab beside the chat, where you edit it, at the line the agent names if any; while you type a draft, the tab opens behind the chat. |
- The path is absolute, under
~/, or relative to the worktree, and the agent says in its report what goes in the file. - The tab opens kept, not as a preview, so the next file you open never replaces it.
- A file that does not exist yet opens empty, and Malini creates it. Outside the worktree it is private to you: the file is readable only by you, and so is a folder Malini creates for it.
- The agent gets back the path and whether Malini created the file, never what the file holds.
- A tab can read and save a file outside the worktree only after an agent opened that file in that workstream, and it keeps that access after you quit and reopen Malini.
- While streamer mode hides personal data, a secrets file or a file from outside the worktree stays hidden behind a Show button that names it.
Widgets
The agent makes a widget for your board when you ask for one, or for numbers you want to keep an eye on.
| Tool | What it does |
|---|---|
widgets_save |
Saves a widget in your own widgets, puts it first on your board, two cells by one, and reads it at once. |
- The widget names an
httpsource, one request to a service's own API, or agithubsource, agh apipath, each with an optional jqselect. - An
httpsource that needs a sign-in namesoauthwith read scopes, and you press Connect on the tile. The agent never puts a key or a token in a header, and Malini refuses an API with no OAuth sign-in. - A
commandor anmcpsource is refused: widgets run no scripts and call no MCP tools. - The agent learns the answer's shape from the API's docs, or from the service's MCP server, so its
selectfits it. - The agent gets back the widget and its first reading.
- An id the repository already shares from its default branch is refused, since that widget changes through a pull request.
- The chat shows the widget as a card with the live tile, On your board and Remove.
MCP servers
The sandbox keeps ~/.claude.json closed, so claude mcp add fails in a chat.
The agent adds a server with Malini's tool instead.
| Tool | What it does |
|---|---|
mcp_servers_add |
Adds an MCP server to Claude Code's user config: a command with args and env, or a url with headers. |
- Malini connects the server in the chat's running Claude Code first, so the agent uses its tools in the same turn, with no restart.
- Malini saves it with
claude mcp add-json --scope useronly once it connects or waits for a sign-in; a server that fails is neither saved nor kept, and the agent gets its error. - A saved server of the same name is replaced, and put back when Claude Code cannot save the new one.
- Every other open chat loads it on its next prompt, and so does
claudein your terminal. - A server that needs a sign-in opens its sign-in page in your browser, and the call waits up to 5 minutes for you to finish, so the agent uses its tools in the same turn. Closed the page? Sign in in the MCP panel opens it again.
- Some servers connect without a sign-in and ask for one only on some tools, such as Product Hunt's account tools. The first call that fails for that reason opens the sign-in page the same way, waits up to 5 minutes, and the agent calls the tool again once you finish. That call's row reads "Sign-in needed. Done", "Sign-in needed. Not done in 5 minutes", or why the sign-in could not start.
- The card shows what the server runs or reaches and the names in
envandheaders, never their values. - An automation that cannot reach the internet cannot add one.
Repositories and workstreams
The agent can do in Malini what you do from the sidebar, short of removing anything.
| Tool | What it does |
|---|---|
repositories_list |
Lists your repositories: id, owner/name, default branch, whether Malini has cloned it, and whether it is hidden. |
repositories_clone |
Adds a repository by owner/name or git URL and clones it, or shows a hidden one again. |
repositories_hide |
Hides a repository from the sidebar. Its clone and workstreams stay, under Hidden. |
workstreams_list |
Lists your workstreams: id, name, repository, branch, base branch, the chat that started each one, and which one the chat runs in, with whether each merged. It adds the archived ones this chat started. |
workstreams_create |
Starts a workstream of a repository, cloning it first when needed, with a chat that gets the agent's prompt; with wake: true, the turn that prompt starts reaches this chat as a report. |
workstreams_send |
Sends a prompt into the chat of a workstream this chat started, as a prompt from this chat, once that chat ends its turn; wake: true works as it does on workstreams_create. |
workstreams_archive |
Archives a workstream, keeping its branch and uncommitted work under Recently archived, where you can restore it. |
workstreams_list also says whether a chat in each workstream is on a turn, and the Outcome: and Needs: its last turn stated, so a chat sees where the work it started stands without reading its code.
In an automation that does not see every chat, Outcome: and Needs: are always empty.
A clone that takes longer than 40 seconds keeps going in the background, and the agent waits for it by calling repositories_clone again.
A workstream the agent starts opens on its new chat, and the sidebar shows it Setting up while Malini updates its branch and installs its dependencies.
Name chats names the workstream from the agent's prompt before workstreams_create returns, so the agent gets that name back.
Once it is set up, Malini sends the agent's prompt as that chat's first message, with the model and settings of the chat that asked, and Name chats names the chat from it.
The agent cannot archive the workstream its own chat runs in, and no tool removes a repository or deletes a workstream.
Malini remembers which chat started each workstream. The sidebar lists the workstream under its repository like any other; its first prompt says Prompt from and names the chat, and its agent learns which workstreams that chat started besides, whose checkouts it may read. A chat that starts workstreams in several repositories works through these tools: it lists the repositories, clones the ones Malini lacks and starts a workstream for each change.
Work it started runs on its own
A workstream a chat started asks you itself, in its own chat, and its turns do not reach the chat that started it.
The agent reads where that work stands with workstreams_list.
When its next step needs a result, it passes wake: true to workstreams_create or workstreams_send, and the turn that prompt starts reaches the chat as a report, through the Deliveries rule: its Outcome:, its Needs:, the rest of its report, and the pictures it embeds.
A wake answers one turn: a turn Malini cut and continued after a restart still answers it, and a turn you stop drops it.
A turn that ends while only background commands run reports at once that it waits on them, by name.
Reports that arrive while the chat works wait, and come as one prompt once its turn ends.
workstreams_send reaches only the workstreams the chat started.
A prompt for a chat on a turn waits until that turn ends, and survives a restart of Malini, so the agent never sends it twice.
It sends one workstream at most six prompts after your last message; past that, the agent asks you whether to go on.
Malini may wake the chat the same way when an automation it ran finishes or fails, or when a merge in work it asked for stops on conflicts while Resolve conflicts is off; that report says "work you asked for moved on" and needs no workstreams_send.
It never wakes a chat only because the chat works in the workstream where something happened.
Other Malini chats are reachable only through these tools, since Claude Code's own ListAgents and SendMessage see only its own agents.
To change code in another repository, such as your fork, the agent clones it with repositories_clone and starts a workstream there with workstreams_create.
The workstream starts from the default branch origin names at that moment, or from the tag, branch or commit the agent names in base, such as the release you run, v0.17.5.
Malini fetches that from the repository's origin, and the workstream's pull request still targets the default branch.
When it reaches for git checkout or git worktree instead, Malini refuses the command and names those tools.
A git clone still runs, for reading code, and Malini reminds the agent to start a workstream before it changes any.
Automations and events
| Tool | What it does |
|---|---|
automations_list |
Lists your automations: id, name, instructions, where they run, model, effort, skills, when with its mode, then, and what each one sees and reaches. |
automations_save |
Creates an automation, or changes one by id: its skills, its when trigger, and its then automation included. |
automations_run |
Asks Malini to run an automation, in the chat's workstream or another one, such as one it started, with optional extra context, and returns at once. |
events_list |
Lists every event Malini emits: its channel, what it means, and its payload type. |
when is an automation's event trigger or schedule, and then names the automation that runs next, by id or exact name, such as Open draft or Merge.
events_list returns the same data as the events reference.
The agent uses it to write an on <channel> trigger and its where clause.
A run the agent starts waits in its chat's composer tray until it finishes, wherever it runs.
No tool changes what an automation sees and reaches, and automations_run refuses extra context for an automation that does not see your chats, so an agent cannot hand an automation more than you let it see.
Tools and automations
A tool does one thing at once, such as cloning a repository. An automation is a process with steps: Merge waits for checks, runs Fix checks and Resolve conflicts when it has to, and only then merges. So the agent clones, hides, starts and archives with tools, and opens drafts and merges by running the Open draft and Merge automations.
Shipping is your call
Malini owns commits, pushes, and pull requests, so the agent cannot commit, push, open a pull request or merge one from its shell.
The agent opens the first draft or runs Merge, or sets either as an automation's then, only when you explicitly asked for it in the chat.
Finished work, passing tests and green checks are never a reason for it to ship on its own.
When you ask it to ship, it runs Open draft and goes on with its turn.
Once the turn ends, Malini commits with the turn's Commit: line, pushes the branch, and opens the draft under its Pull request: title, the same way Draft in the top bar does.
When the workstream already has an open pull request, Malini pushes the new work to it instead.
A failure shows in the top bar, where pull request problems always do.
Once the draft is open, pushing to it is the agent's call. After each round of follow-up work it runs Open draft again without asking you, Malini pushes the work to the draft, and GitHub runs its checks on it. A draft reaches no reviewer and merges nothing. Mark the pull request ready on GitHub and the next push asks you again, since a ready pull request reaches reviewers.
Workstreams it starts
When the agent hands work to workstreams it starts with workstreams_create, and you asked it to ship or merge that work, it ships each one from your chat instead of asking that workstream's chat to.
Right after it starts a workstream, it runs Open draft or Merge there with automations_run, so you approve it in the chat you are in, and Always allow for that chat covers the rest.
Malini holds each run while that workstream sets up and its chat works, then does what Draft or Merge in its top bar does once the chat ends its turn.
So a chat that starts five workstreams and merges them leaves you five merged pull requests and five archived workstreams, not five drafts to click through.
Until it finishes, the run waits in your chat's composer tray as a row that names the workstream it runs in, such as Merge · Automation in Fetch command. Merge still waits for checks, fixes what fails and resolves conflicts first, and a problem shows in that workstream's top bar.
You decide how often it asks
- The read tools,
automations_list,events_list,repositories_list,settings_listandworkstreams_list, run without asking, and so dofiles_open, which only opens a file for you,widgets_save, which only changes your own board,secrets_request, which only asks you,settings_set, which only keeps what you answered about browser autopilot,workstreams_createandworkstreams_send. - Nothing inside the chat's own work asks: archiving a workstream it started, or one those started in turn, and running an automation in its own workstream or in one it started go through without asking.
- Merge, Open draft that opens a pull request, and any automation whose Thens reach either always ask, since shipping is your call. Open draft that pushes to the open draft of a workstream in the chat's own work runs without asking.
- Every other Malini tool asks in the chat the first time: Deny, Allow once, or Always allow for this chat, this workstream, or everywhere.
- Always allow remembers one action: cloning repositories, hiding them, archiving workstreams, adding MCP servers, saving automations, or running one automation. Always allowing Release notes to run never lets the agent run any other automation.
- Settings > Agents > Always allowed lists everything you always allow, and Revoke takes it back.
- A trigger the agent adds starts Off: the automation never runs on its own until you turn it on from the Automations page.
See what the agent did
A chat is an automation without a preset, so Automations > Activity lists both as runs, by day: automation runs marked Automation and chat turns marked Chat. A chat turn shows when its agent called Malini's tools; turn on Every chat turn to list the latest ones too.
- N calls on a run folds open every call its agent made to Malini, in order: what it was, how it was approved, and when it finished.
- Open a call to see what the agent called it with and what came back, or the error, and Open chat to read the turn that made it.
- A call you denied shows too, as You denied it.
- An automation an agent started with
automations_runreads Started by an agent, and its own calls fold under it.
Edits you review
An automation runs without asking when it is built in, when you always allow it to run, when its trigger is not Off, or when it is the Then of such an automation. When the agent changes such an automation, Malini shows you the change instead of saving it, and Always allow never skips this.
- Each changed setting, such as the model, the When, or the Then, gets its own row with Accept and Reject.
- The instructions show as a diff you can edit, and each change in them has its own Accept and Reject, with Accept all and Reject all above.
- Save keeps every change you did not reject, plus your own edits, and the agent gets the version you saved.
- Reject keeps the automation as it was.
Example
Every time one of my pull requests merges, update the docs and open a draft PR.
The agent can read events_list, find pull-requests:ship-changed, and save an automation:
{
"name": "Docs after merge",
"instructions": "Bring the docs up to date with the pull request that merged.",
"when": "on pull-requests:ship-changed where merged is set",
"then": "Open draft"
}You approve the save, and its trigger starts Off. Turn it on from the Automations page, as Ask me first or On its own, when you trust it.