usage

Muse Code 1.4.17

Tools and page contents
On this page

New 12

01

Agent Asks Before Changing Environment Settings or Background Services

Having Muse finish a small tool and install the command into your computer's path without asking is frustrating. Now, unless you explicitly asked for it, Muse stops and asks you before doing any of the following.

This includes putting a newly built program on your PATH, replacing or shadowing an existing command with the same name, editing shell startup files, or installing a background service. ⟦Think of getting a haircut: if the stylist wants to switch your shampoo or add a conditioning treatment, they always ask for your nod first rather than doing it without telling you.⟧

Original changelog

The agent asks before changes you did not request: putting what it built on your PATH, replacing or shadowing a command already there, editing shell start-up files, or installing a background service

02

Long Conversations Prevent Overflow and Suggest Starting a New Session

When a chat with AI grows long and piles up history, hitting send only to get a request-too-large error is the last thing you want.

Whenever a model's context window (the total amount a single conversation can hold) is known, Muse trims the requested reply length to fit the remaining room before sending your prompt, preventing common request-too-large errors in long chats.

If that turn's content still exceeds the model's capacity limit, the error message now tells you directly that you can start a new session instead. ⟦It is like packing an almost-full trunk: you first shrink the size of the box going in next, and if it still cannot fit at all, you simply switch to an empty car.⟧

Original changelog

When a turn does not fit the model's context window, the message now says you can start a new session

A turn on a model with a known context window now trims the output it asks for to the room the window has left, which prevents most request-too-large errors in long conversations

03

Update Before Resuming Cross-Machine Chats and Failed Workflows

When mixing older and newer versions of Muse across different devices, watch out for compatibility when resuming chats.

If a newer build connected or tried to connect to another machine to run commands, an older build cannot open that chat. If you open it in an older build by ID or through the session picker, the older build may start a new local chat on its own, read the old log, and continue the work right on this computer. Because that work may have been meant for the other machine, update the app before reopening the chat; other chats are unaffected.

Older app versions also cannot resume a workflow that recorded a failed status check, so you must update the app to resume it as well. ⟦Like an old GPS reading a new route, it might reroute a local trip on its own when it cannot understand cross-region markers, so upgrading first keeps you from running in the wrong place.⟧

Original changelog

A Muse build older than this release cannot open a chat that a newer build connected, or tried to connect, to another machine to run commands there. When such a chat is resumed by id or chosen in the session picker, that build may instead start a new local chat on its own that reads the old chat's log and continues the work on this machine; update the app before reopening the chat, because that work may have been written for the other machine. Other chats are unaffected

Older app versions can't resume a workflow that recorded a failed status check; update the app to resume it

04

Idle Sessions Return Memory Freed by Compaction Faster

Having several chat windows open after compacting logs and pausing the conversation used to leave your computer's memory usage stubbornly high. Previously, sessions often held onto the memory freed by compaction for several minutes; now, after sitting idle for about half a minute, they return that memory to the system.

Original changelog

An idle session now returns the memory a compaction freed to the system about half a minute later, instead of often holding it for minutes

05

Workflow token budgets fully count subtask usage

When a multi-step workflow dispatches a subtask that runs for several turns, the calculated usage used to come up short. Workflow token (a unit of text used for AI processing and billing) budgets and subtask consumption now count all stages of a subtask's work, rather than only its first turn.

Original changelog

Workflow token budgets and child usage now count all of a child's work, not only its first turn

06

Disabled plugin skills stay off after updating the plugin

When you manually turn off an unused skill in a plugin, the last thing you want is for it to turn back on after an update. Even if the plugin author moves that skill's folder, a skill you disabled now stays off after you update the plugin.

Original changelog

A plugin skill you turned off stays off after the plugin's author moves its folder and you update the plugin

07

Shell commands in the Mac sandbox can use ssh normally

When running terminal commands in an isolated environment on macOS, using the remote connection tool ssh used to get stuck unable to look up the current user name. This issue is fixed, so shell commands inside the sandbox (an isolated, secure execution environment) can look up the user name normally and ssh works just as it does outside the sandbox.

Original changelog

Shell commands sandboxed on macOS can look up the current user name, so ssh works as it does outside the sandbox

08

Mac login screen explains how to fix Keychain access issues

When starting Muse Code on a Mac over a remote SSH connection from another computer, it used to unexpectedly show a logged-out state with no explanation on screen of what went wrong.

This usually happens because the Keychain cannot be used at startup. Now in this situation, the login screen explains the cause and includes the fix, reminding you to run security unlock-keychain and then restart Muse Code. ⟦Suppose your keycard fails to open the office door: before, the reader only flashed red and treated you as absent, whereas now the screen tells you the card is demagnetized and shows which machine to use to re-encode it.⟧

Original changelog

On a Mac where Muse Code cannot use the Keychain at startup, such as over SSH, the login screen now says why and how to fix it (run security unlock-keychain and restart Muse Code) instead of looking logged out with no explanation

09

Session protocol adds subagent stop and result status notifications

For teams building custom frontend interfaces: previously, external views could not easily tell whether a background task was stopped by the user or had already handed its output back to the main thread, and this release fills in that real-time sync.

The session protocol adds an experimental request that stops subagents in a session just like pressing stop in the terminal UI, letting the main agent know the user stopped them.

Whenever a session reads a subagent's result, the client receives a result item with its current status—completed, failed, or cancelled—at that point, so finished subagents can be shown where the parent read the result.

When a subagent starts a new attempt after an older result, that older result is marked as superseded by the newer attempt, allowing clients to read the subagent's current status directly from its control state.

Original changelog

The session protocol gains an experimental subagent/workStop request that stops a session's subagents the way the terminal UI's own stop does, so the agent is told the user stopped them

Session-protocol clients get a subagentResult item each time a session consumes a subagent's result, at that point in the session, with the result's status (completed, failed or cancelled) when the view saw it, so a client can show each finished subagent where its parent read the result

A subagent item's result in the session protocol now carries superseded: true once the subagent started a newer attempt after that result, so a client can take the subagent's status from its control state

10

Session protocol adopts new view cursors and rebuilds old caches

For developers integrating remote clients: continuing to use reading progress or cached records left over from older versions after an upgrade could cause views to silently miss or misread events, so this release actively intercepts and refreshes them.

Session-protocol view cursors are now issued in a new format; an older-format cursor is refused once with the standard reopen without a cursor guidance asking to reopen without a cursor. Any view cache saved by an older version is automatically rebuilt on first use. ⟦At a renovated reading room, old bookmarks no longer work: the attendant asks you to reopen the book from the start and reprints the old index sheet tucked inside so you do not miss any chapters.⟧

Original changelog

Session-protocol clients: view cursors are now minted in the v10: spelling; a cursor in an older spelling is refused once with the standard "reopen without a cursor" guidance, and a view cache saved by an older build is rebuilt on first use, so no client silently skips or misreads events

11

muse serve supports mixing skills and videos in a single turn

If your project integrates a muse serve client, putting a skill and multiple videos into the same turn for analysis previously had to be split apart.

Now when starting a single turn, clients can send skill parts together with video parts. Each video's [Video #N] label is appended to the skill's arguments in order, working the same way as existing image labels.

Original changelog

muse serve clients can send a skill part together with video parts in one turn/start; each video's [Video #N] label joins the skill's arguments in order, as image labels already do

12

SDKs add session event streaming and generic requests

For developers using the TypeScript and Python SDKs who want finer-grained state tracking or to call unwrapped interfaces, this release fills in several key capabilities.

In the TypeScript SDK, extension hooks can now observe custom notifications during session folding as well as host-wide events.

In both the TypeScript and Python SDKs, a new event-streaming interface sends the changes each incoming event makes to a session in real time, letting clients update their UI incrementally.

Both SDKs also add a generic query request method for queries not yet wrapped by the client; and when the experimental API option is enabled at client startup, both regular commands and generic requests can call experimental methods.

Original changelog

TypeScript SDK: FoldExtension hooks observe custom notifications in the session fold and host-wide events

In the TypeScript and Python SDKs, session.events() streams what each incoming event changed in a session, so a client can update its view incrementally

The TypeScript and Python SDKs add MuseClient.request for queries the client does not wrap, and command and request send experimental methods when the client is spawned with experimentalApi: true

Fixed 18

13

Improved Agent Blocker Reporting and Build Debugging

When development tasks run into a blocked network, a behind branch, or a form, Muse now responds in a different order.

Whenever a network policy blocks a download that a step needs, it asks you right away before running other steps, instead of trying other sources or waiting until the final report to mention it.

If your branch is behind and its build fails, it builds and tests on the up-to-date branch instead. If the failure output mentions a fix, it also keeps working until that fix is applied or offered to you.

When interacting with browser app forms, they now return results directly from your click instead of waiting for a background step to finish. ⟦Picture bringing documents to a copy shop and running into a paper-size restriction: instead of trying a different paper on their own or telling you only at the end, the clerk stops and asks you right away.⟧

Original changelog

Muse asks you right away, before the other steps, when a network policy refuses a download a step needs, instead of probing other sources or naming the block only in its final report, builds and tests on the up-to-date branch when your checkout is behind and its build fails, keeps working until a fix the failure output names is applied or offered, and makes browser app forms return their result from your own click instead of waiting on a background step

14

Browser Games Follow Your Specified Tech Stack

When you wanted to build a small browser game with a specific framework, Muse used to always make plain HTML files no matter what you asked for. Now, as long as you name the tech stack you want in your request, it implements the game using what you specified.

Original changelog

Browser games follow the stack the request names instead of always using plain HTML files

15

Content Check Reports List Draft-Only Items Separately

When you ask the Agent for a check report that separates published from unpublished content, assets that only appear in drafts used to be easily mislabeled as unused or left out altogether.

Now, before reporting that it is done, the Agent is prompted to rerun the check and list items used only by unpublished content under a dedicated draft-only heading, instead of calling them unused or leaving them out.

Original changelog

When you ask for a checker or report that separates published from unpublished content, the agent is now prompted to rerun it and list items used only by unpublished content under their own draft-only heading, instead of calling them unused or leaving them out, before saying it is done

16

Block Hidden Terminal Control Codes in /goal Summaries

When tracking tasks with /goal, model-generated text could previously change the window title, clear the screen, or move the cursor.

This security issue is fixed: invisible terminal control characters are now stripped before the /goal summary prints, so model text in the summary can no longer alter the terminal title, clear the screen, or move the cursor. ⟦Take a sticky note on a bulletin board: hidden marks on it used to trick someone into changing the board's title, but wiping those marks off first leaves it as a plain-text notice.⟧

Original changelog

Security: The /goal summary no longer lets goal text written by the model change the terminal title, clear the screen, or move the cursor; invisible terminal control characters are removed before the summary prints

17

Fix Session Resume Failures and Picker Selection Issues

Pulling up an in-progress session to resume used to break anywhere from the picker list to loading state, and those breakpoints are now fixed.

When a resume fails and returns to the session picker, the session you just tried is selected as soon as the list shows it, so pressing Enter no longer opens a different one by mistake.

When a session has to continue in a new session, resuming no longer fails even if its newest checkpoint was written between turns, and the conversation content is kept.

After compacting and reopening a session, saved workflows remain available to resume.

When reopening with --resume, --continue, or /resume, if a subagent (a separate helper that handles subtasks) cannot have its state read, expanded history no longer shows it twice.

Reopening a session no longer fails when saving setup failed on an earlier turn and the next turn reused the same rules or instructions.

If a forked session ran before recording its workspace, it claims that workspace on its next resume, and the picker lists it under the current workspace instead of hiding it.

Original changelog

After a resume that fails and reopens the session picker, the session you tried is selected as soon as the picker lists it, so pressing Enter right away no longer opens a different session

Resuming a session that has to continue in a new session no longer fails when its newest checkpoint was written between turns; the conversation is kept

Keep saved workflows available to resume after compacting and reopening a session

Reopening a session with --resume, --continue or /resume no longer repeats an earlier subagent in expanded history when its saved subagent state could not be read

Reopening a session no longer fails when saving a turn's setup failed and the next turn reused the same rules or instructions

A forked session that ran before recording its workspace now takes the workspace on its next resume, so the resume picker lists it under the current workspace instead of hiding it as missing metadata

18

Session Listings Stop Holding Logs Open and Label Side Chats

Checking your saved session list no longer locks up files while running, and how conversations relate to each other is clear at a glance.

Session listings now run in two phases by default, so long lists no longer keep log files open while running; the displayed list stays the same, though old log files that have already grown very large do not shrink yet.

When you run muse sessions, parked side chats are now labeled as branches of their original conversation instead of appearing beside it as unowned sessions. ⟦An inventory clerk at a library now copies catalog entries in two passes instead of propping the archive door open and blocking the aisle the whole time, while also labeling any side volume set aside with the main series it belongs to.⟧

Original changelog

Session listings now run in two phases by default, so a long listing no longer holds the session log open while it runs; listings are unchanged, and logs that are already very large do not shrink yet

muse sessions shows a parked side chat as a side chat of its conversation (sideOf) instead of an anonymous session beside it

19

Fix background-task approvals and layout issues after stopping tasks

After handing work off to a background task and letting it finish or stopping it manually, on-screen controls now behave much better.

Session messages sent after a background task finishes can now be approved normally. Pending approval cards also show the background task trigger separately from the sender.

After stopping a task from the Tasks drawer or with /stop all, a second prompt row no longer appears under your next message.

Original changelog

Session messages sent after a background task finishes can be approved normally. Pending approval cards show the background task trigger separately from the sender

Stopping a task from the Tasks drawer or with /stop all no longer adds a second prompt row under your next message

20

Fix queued prompts arriving empty when triggering hooks

While the previous turn is still running, you can submit your next prompt to queue it. Previously, UserPromptSubmit hooks (small programs triggered by specific events) received an empty prompt in this case. This issue is fixed, and queued prompts now pass into the hooks with their original text.

Original changelog

A prompt queued behind a running turn now reaches its UserPromptSubmit hooks with its text instead of an empty prompt

21

Reading incomplete JPEGs now reports a damaged file

If you accidentally add a half-saved JPEG image that is cut off at the end to a conversation, the app used to send that broken image straight to the model, causing the whole request to be rejected. Reading an incomplete JPEG now fails immediately with the message "the file may be damaged or invalid", instead of sending the damaged image to the model.

Original changelog

Reading a JPEG that is cut off before its end now fails with "the file may be damaged or invalid" instead of sending the broken image to the model, which rejected the request

22

Clearer guidance when settings.json lacks a version number

If settings.json on your computer was created by another tool, it often lacks a format version number, and opening Muse used to report only a cryptic parse error.

Now when schema_version is missing, it clearly tells you to add this line to the configuration file:

```json { "schema_version": 1 } ```

Original changelog

When settings.json has no schema_version (for example, another tool created it), Muse now says to add "schema_version": 1 instead of reporting a bare parse error

23

Startup blocking rules when settings.json cannot be read

If you accidentally lock down permissions on settings.json so nobody can open it, this release draws clearer lines around how startup behaves in each scenario.

When muse serve hits this while reading the hooks list, it no longer reports zero hooks and instead refuses with the read error and a fix suggestion. Resuming a session with muse resume <id> or muse exec --session-id <id> also stops at startup for the same reason.

A fresh muse or muse exec run keeps its existing permission-profile refusal. Commands that run no hooks continue using defaults after showing a single warning. ⟦When a construction site's safety manual gets waterlogged and unreadable, crews that must follow the manual no longer pretend there are no restrictions and start work—they halt first and include troubleshooting steps, while tasks unrelated to the manual log a reminder and finish as usual.⟧

Original changelog

muse serve's hooks catalog read (hook/list) on a settings.json nobody could read now refuses with the read error and a recovery line instead of reporting zero hooks, and a resumed start (muse resume <id>, muse exec --session-id <id>) stops with the same refusal; a fresh muse or muse exec start keeps its permission-profile refusal, and commands that run no hooks keep continuing on defaults with the one warning

24

Sessions still open when trust.json cannot be read

When checking workspace trust through muse serve, if the file recording the trust list was damaged or blocked by permissions, opening used to fail outright. This issue is fixed: when trust.json cannot be read, the session still opens normally, with any extra workspace folders left untrusted.

Original changelog

A session that asks muse serve for workspace trust now opens with its extra workspace folders untrusted when trust.json cannot be read, instead of failing to open

25

Windows sandbox setup now names the step where it failed

Running muse sandbox windows setup on Windows, or letting the first launch create the sandbox automatically, can sometimes fail mid-way. Previously, the screen only reported that the setup marker was missing, leaving you with no clue what went wrong.

Now the failure message points directly to the specific step that got stuck—such as a company machine or local policy refusing sign-in for the sandbox account—so you no longer have to guess the cause.

Original changelog

On Windows, a failed muse sandbox windows setup, or the setup a first start runs, now names the step that failed, such as a sign-in the machine's policy refuses for the sandbox account, instead of only reporting that its setup marker is missing

26

Fixed "Access is denied" when attaching images in a Windows sandbox

When working in a session folder on Windows that does not allow hard links, such as inside a sandbox environment, trying to attach an image to a conversation failed with an "Access is denied" error. This issue is now fixed, so images attach normally even when the folder does not support hard links.

Original changelog

Attaching an image no longer fails with "Access is denied" on Windows when the session folder does not allow hard links, for example inside a sandbox

27

Fixed protection and startup failures for concurrent Linux sandbox commands

Running multiple sandboxed shell commands at the same time on Linux, or hitting a scheduled system temp-file cleanup, previously caused startup failures or dropped protections.

When the ~/.config directory does not exist yet and two sandboxed shell commands start together, the second command no longer fails with exit 125.

The shared lock that stops sandboxed commands from undoing each other's protection no longer lives in a file that a temp cleaner can delete mid-run.

If the sandbox's placeholder records are deleted by a /tmp cleaner or similar tool, protection for missing paths like ~/.config no longer disappears even when another command sharing it finishes first.

When another sandboxed command starts in the same workspace, deny rules inside a missing protected folder (such as .git) are no longer lost.

Original changelog

On Linux, when two sandboxed shell commands start at the same time while ~/.config does not exist yet, the second no longer fails with exit 125

On Linux, the shared lock that keeps sandboxed commands from removing each other's protection of a missing denied path no longer lives in a file a temp cleaner can delete out from under a running command

On Linux, a sandboxed shell command no longer loses the protection of a missing path such as ~/.config when another command sharing it finishes first after the sandbox's placeholder records were deleted, for example by a /tmp cleaner

On Linux, a sandboxed shell command no longer loses a deny inside a missing protected folder such as .git when another sandboxed command starts in the same workspace

28

Fixed shell command failures in Linux worktree subdirectories

On Linux, many users create a worktree (a Git feature that lets you check out multiple parallel copies of the same project) with git worktree add. Previously, starting Muse from a subfolder inside such a directory caused every shell command to fail with a "Not a directory" error. That issue is now fixed, and shell commands run normally from subdirectories.

Original changelog

On Linux, shell commands now run when Muse starts in a subdirectory of a Git worktree created with git worktree add, instead of every command failing with a "Not a directory" error

29

Fixed inaccurate save-error reporting for subagent commands

For teams integrating the session protocol or muse serve, screens and responses previously labeled any unhandled subagent command as unable to save, misleading people about the real cause.

When a session log file is deleted or replaced outside Muse and the protocol refuses an interrupt, stop, close, or result-read request for a subagent, it now reports the exact reason for the refusal instead of only saying changes cannot be saved.

On a muse serve session, sending a command to a subagent after resume while its history is still being rebuilt now replies that it is busy and can be retried. Even when the session cannot be saved at that moment, it no longer reports a save failure for a command that never ran. ⟦A front-desk clerk who used to slap an "unable to save" label on any rejected filing now states plainly whether the master copy is missing or the counter is still sorting old paperwork and asks you to try again.⟧

Original changelog

After a session log is deleted or replaced outside Muse, a subagent interrupt, stop, close or result read that the session protocol refuses now says why instead of saying the change can't be saved

On a muse serve session, a command sent to a subagent while its history is still being rebuilt after a resume now answers that the subagent is busy and can be retried, even when the session cannot be saved, instead of reporting a save failure for a command that never ran

30

Fixed SDK host-crash error reporting and retry behavior

When developing with the TypeScript and Python SDKs, error details and retry behavior for host disconnects or busy states have been fixed in this release.

When a call fails because the host process exited, the error cause now includes how it ended (exit code or signal, plus the tail of its error output). Such failures can be reported up to 2 seconds later while the SDK waits for the process to exit, and this cause does not mean the session can be resumed.

If a command receives an overload or backpressure pushback marked as not retryable, the SDK no longer resubmits it automatically; without that flag, it still retries.

Feedback submission calls no longer attach a command ID and no longer retry after an overload or pushback response, making each call a single submission.

In SDK error messages about the Muse Code host, the compatibility link now points to the right compatibility page instead of opening a broken one.

Original changelog

In the TypeScript and Python SDKs, a call that fails because the host process died now says how it ended (exit code or signal, and the end of its error output) in the error's cause; such a call can fail up to 2 seconds later while the SDK waits for that exit, and the cause does not mean the session can be resumed

Python and TypeScript SDKs: a command answered overloaded or backpressured with retryable: false is no longer resubmitted automatically; without the flag it still retries

The compatibility link in the SDK errors about the Muse Code host now opens the compatibility page instead of a missing page

Python and TypeScript SDKs: submitFeedback / submit_feedback no longer attaches a commandId to feedback/submit or resubmits it after a backpressured or overloaded answer; each call is one submit, as the wire defines it