usage

Muse Code 1.4.21

Tools and page contents
On this page

New 6

01

/resume Marks Chats Waiting for Input Live

When picking up where you left off, you used to have to open each session one by one to see which one had paused for your reply. Now, when you run /resume to open the list, sessions that need your input are marked directly, and their status updates live whenever it changes.

Analogy

In a messaging app, you used to have to open each chat one by one to see who was waiting for a reply, whereas now the list lights up with a badge and refreshes live.

Original changelog

/resume now marks sessions that need your input and updates them live

02

Startup Environment Variable Keeps Key Out of Shell and Monitor

When running agent commands or background monitoring, you may not want your META_API_KEY read along with the execution environment. Starting Muse with the environment variable (a background setting passed to a program) MUSE_SHELL_DROP_META_API_KEY=1, or setting it to true or yes, blocks this key. Once set, commands run by the agent, ! commands, and Monitor commands will not receive META_API_KEY.

If you connect to an already running Muse server, the session follows that server's setting directly. Any Muse instance started by one of those three command types will not receive the key from them either.

Analogy

When lending a friend a keycard to grab something from the basement, you used to have to hand over your whole keyring with your front-door key on it, whereas now you take the front-door key off first.

Original changelog

Start Muse with MUSE_SHELL_DROP_META_API_KEY=1 (or true or yes) to keep your META_API_KEY out of commands the agent runs, ! commands and Monitor commands; a session on an already running Muse server follows that server's setting, and a Muse started by one of those commands gets no key from them

03

Away Recap and Background Task Prompts Appear Sooner

After stepping away from a chat or letting a background task finish on its own, you used to have to send two more messages before seeing a progress recap.

Now the away recap appears as soon as you return to a session with at least one message, and again after a background result adds new replies, without waiting for two more messages from you.

Turns started by a background agent, scheduled task, or goal result now also display the "Worked for" elapsed-time line when they finish.

When a reply is triggered by a Monitor event, its dim source label row now stays visible even when the reply streams in over several seconds, instead of appearing only when it arrives all at once.

Analogy

Picture asking a helper to simmer soup in the kitchen: before, you had to ask twice to get a status update, whereas now a progress card sits by the table as soon as you glance back or they bring out a new dish.

Original changelog

The away recap now appears when you come back to a session with just one message, and again after a background result adds new replies, instead of waiting for two more of your messages

The "Worked for" line now also appears after a turn started by a background result, such as a finished background agent, a scheduled task or a goal

A reply that a Monitor event started now keeps its dim source label row when the reply streams in over several seconds, not only when it arrives all at once

04

Lower Resource Use When Idle, Long-Running, or Reopening

Leaving a chat idle, running long tasks, or refreshing lists used to quietly burn extra CPU and memory.

On Linux, memory freed by compacting or resuming a session now returns to the system within a few seconds instead of about half a minute. Longer-running sessions also keep less in memory for finished shell commands and Monitors.

When a session is idle and updating its saved-chat list, each check now reads file details once instead of three times, cutting CPU overhead. When the sessions folder path is not valid UTF-8 (a common text encoding format), the resume picker no longer re-reads and re-derives every row from scratch on each refresh.

Where sitting idle or handling old logs used to waste system resources, CPU and memory usage are now lower and freed memory returns to the system faster.

Original changelog

The resume picker no longer re-reads and re-derives every session row on each refresh when the sessions folder path is not valid UTF-8

On Linux, memory freed by a compaction or a resume returns to the system within a few seconds instead of about half a minute

An idle session uses less CPU keeping its saved-session list current: each check reads a saved session's file details once instead of three times

A long session keeps less in memory for shell commands and Monitors that have finished

05

Missing Unix Commands on Windows Now Return PowerShell Alternatives

When you run command-line tasks through an agent on Windows, PowerShell lacks Unix commands like head, tail, grep, or wc, so calling them fails immediately. Now, when this kind of failure happens, the returned result directly names which PowerShell command to use instead, letting the agent fix the command and rerun it in one step.

Original changelog

On Windows, when a command fails because PowerShell has no Unix command such as head, tail, grep or wc, the result names the PowerShell command to use instead, so the agent fixes the command in one step

06

Leftover Process Cleanup Added for Specific Windows Shell Operations

When running ! commands or unsandboxed terminal-mode sessions on Windows, background programs often kept running after you hit stop.

Now, when cancelling a ! shell command on Windows, the programs it started are shut down before it shows as cancelled. When stopping an unsandboxed terminal-mode tty PowerShell session, any programs it left behind now exit along with it, even if the shell inside had already exited.

Analogy

Shutting off the kitchen's main breaker used to leave the range hood spinning in the background; now, pressing the stop button cuts power to every small motor wired to it and stops them together.

Original changelog

On Windows, stopping a terminal-mode (tty) PowerShell session run without the sandbox, after its shell already exited, now also ends the programs it left running

On Windows, cancelling a ! shell command now also stops the programs it started before it shows as cancelled

Fixed 17

07

Prompt Appending and Plugin Instruction Limit Updates

To add your own instructions alongside the built-in prompt or trim the background statements the model sees, this release adds and relaxes several controls.

run.system_prompt_append appends your text after the built-in system prompt, up to 64 KiB, without overwriting the original text. Sessions can also set their own values, which stay intact when resumed or forked.

prompt.surfaces can now also turn off five fixed statements: workspace root, permission mode, sandbox policy, capability policy, and code-mode profile. Turning them off changes only the text the model sees, without touching the actual sandbox (an isolated area that restricts command permissions), approval flow, or tool access.

The instructions file limit for plugin reminders increases from 16 KiB to 32 KiB, and larger files are still skipped with a diagnostic.

Analogy

Instead of rewriting an entire page just to tweak standard instructions, you can now stick a note at the end of the manual and cross out any fields you do not want read aloud.

Original changelog

The run.system_prompt_append setting adds your text after the built-in system prompt instead of replacing it (up to 64 KiB). A session can also set its own value, and it keeps that value when it is resumed or forked

prompt.surfaces settings can now also turn off the five context statements that were always kept (workspace root, permission mode, sandbox policy, capability policy and code-mode profile); turning one off changes only what the model is told, never the sandbox, approvals or tool access it describes

A plugin reminder's instructions file can now be up to 32 KiB instead of 16 KiB; a larger file is still left out with a diagnostic

08

Language Pinning Kept for Muse Models and Across Compaction

When chatting with non-Muse models such as Claude, GPT, or Gemini, language-pinning instructions are no longer forced into requests. When switching to these external models, even if a reply switches to another language or script, Muse no longer regenerates it automatically; only Muse's own models keep both behaviors.

When a Muse model has an English pin and visible output accidentally slips into another script, it used to simply resend the exact same request once. Now it retries with a corrective prompt restating the pin, up to two corrections per step, and delivers the final attempt as-is if it still slips.

Once a session language is set or requested, Muse keeps that pin through context compaction into later turns instead of guessing it again solely from the compacted messages.

Analogy

Think of an interpreter taking notes on a trip abroad: before, they had to guess which language you wanted on every new page, whereas now they remember your choice throughout and correct themselves on the spot if they slip.

Original changelog

When your session language pin is English and Muse's visible output slips into another script, the harness now retries with a correction restating the pin (up to two corrective retries per response step, then the last attempt is delivered as-is) instead of re-issuing the identical request once

Muse keeps your session language pin across context compaction: a session that established or requested a language before compacting keeps it on later turns, instead of re-deriving it from the post-compaction messages alone

On models other than Muse models, such as Claude, GPT and Gemini, Muse no longer adds an instruction naming the session language to the request or regenerates a reply whose visible text switches language or script; Muse models keep both

09

Windows Sign-In and Trust Files Restrict Other Accounts

When multiple people share the same computer, config folder permissions used to be inherited directly, giving others on the same machine a chance to open them. Where the drive supports file permissions, newly created auth.json and trust.json files now allow only your account, SYSTEM, and Administrators to open them.

Each Windows account must use its own config folder by setting XDG_CONFIG_HOME to store files separately. If another account can no longer open the original file as a result, simply delete that file and sign in again.

Analogy

Moving your bankbook and seal from a living room drawer into a small safe that only recognizes your fingerprint keeps other family members from casually opening them, though everyone now needs their own drawer.

Original changelog

Security: On Windows, where the drive supports file permissions, auth.json and trust.json are now created so only your account, SYSTEM and Administrators can open them, instead of inheriting the folder's permissions. Each Windows account needs its own config folder (set XDG_CONFIG_HOME); if another account can no longer open the file, delete the file and sign in again

10

Fixes for Git Symlink and Linux Sandbox Vulnerabilities

When running shell and sandboxed commands, writing through a swapped Git directory link is no longer allowed. In unrestricted network mode, the Linux sandbox also no longer exposes environment variables on bubblewrap's command line.

If a Git directory is swapped for a symlink (a shortcut file pointing to another location) during a session, writing through that link is now blocked, and shell commands run without it.

When running sandboxed commands on Linux in unrestricted network mode, environment variables used to appear directly on bubblewrap's command line, where other processes on the same machine could read them with ps. Now the command line no longer shows those variables, while the command itself still receives the same environment.

Analogy

Before, swapping a door sign for a fake arrow let someone walk right in, and taping a password to the outside of an envelope let others peek; now both holes are sealed so only those inside receive mail as usual.

Original changelog

Security: A Git directory swapped for a symlink during a session is no longer writable through the link; shell commands run without it

Security: On Linux, the environment of a sandboxed command no longer appears on bubblewrap's command line in the unrestricted network mode, where any process on the machine could read it with ps; the command receives the same environment as before

11

Fixes for Concurrent Linux Sandbox Commands and Path Cleanup

When the same Linux user runs multiple sandboxed commands side by side, denied paths and temporary directories now stay within their own boundaries.

If a sandboxed command starts without XDG_RUNTIME_DIR set, or with it set to an empty string, it falls back to /run/user/<uid> and shares the same placeholder registry. That way, other commands from the same user cleaning up at exit will not accidentally lift a path denied by another command.

When two overlapping sandboxed commands block the same missing path at the same time, they no longer leave an empty placeholder folder behind in your project after exiting.

Issues where overlapping commands or missing environment variables could accidentally lift blocks or leave empty folders behind are now fixed.

Original changelog

On Linux, a sandboxed command started without XDG_RUNTIME_DIR now finds /run/user/<uid> and shares the placeholder registry with commands that use it, so another command of the same user cleaning up at exit no longer lifts its denied path

On Linux, an empty placeholder folder no longer stays behind in your project when two overlapping sandboxed commands block the same missing path

On Linux, a sandboxed command whose XDG_RUNTIME_DIR is set but empty now shares the placeholder registry under /run/user/<uid> with the other commands of its user, so its exit cleanup no longer lifts a sibling command's denied path

12

Fixes for Chat Compaction and Context Meter Display

When compacting long chats or switching between cloud models, the context meter used to stay stuck or the compaction command would fail.

After automatic compaction takes effect, the context meter in session-protocol client interfaces now drops immediately to the compacted actual usage instead of continuing to count the summed tokens (the text units AI processes and bills by) from the whole run. When switching between cloud models, the context meter's limit also updates to use the new model's quota.

Chats started with developer instructions and reopened in a terminal without run.developer_prompt set can now run /compact normally instead of reporting that no compactable run is available.

If a compacted chat still mentions a finished subagent, reopening it no longer marks that subagent's worktree (a Git feature for opening multiple parallel copies of the same project) as read-only with a warning. It is now handled normally just like an uncompacted chat.

Analogy

After vacuum-sealing winter coats in a suitcase, the dial scale used to stay stuck on the old pre-compression number, whereas now the needle drops to the actual weight right away and switches markings when you change suitcases.

Original changelog

After an automatic compaction, contextUsage now reports the compacted context instead of the run's summed tokens, so a session-protocol client's context meter drops as soon as the compaction installs

Reopening a chat after it compacted no longer marks a finished subagent's kept worktree read-only with a startup warning when the compacted chat still mentions that subagent; it is handled as it would be without compaction

The context meter now follows the selected model's limit when switching between cloud models

/compact works again in a chat that was started with developer instructions and reopened by a terminal without a run.developer_prompt setting, instead of answering that no compactable run is available

13

Fixes for Workflow Startup Replies, Timing, and Names

When starting or pausing and resuming a Workflow, an agent's opening reply, elapsed time, and card attempt numbers used to mismatch.

The agent now sends you a reply before starting a background Workflow, instead of ending its turn blank.

After pausing and resuming a Workflow, elapsed time no longer jumps back or resets to zero, and agents that finished before the pause continue counting time and keep their model and token records. A rerun agent's conversation now displays the correct attempt count matching its card, such as attempt 2/2, and lists the earlier round instead of wrongly showing attempt 1/1.

In editors connected through muse acp, a named Workflow agent keeps its original name after starting instead of being replaced with the agent's ID.

Issues where pausing and resuming or viewing progress in an editor showed mismatched numbers and IDs are now fixed.

Original changelog

After you pause and resume a Workflow, a rerun agent's conversation now shows the same attempt number as its card (for example attempt 2/2) and lists the earlier attempt, instead of attempt 1/1

The agent replies before it starts a background workflow, instead of ending its turn with no answer

After you pause and resume a workflow, its elapsed time no longer jumps back or restarts at zero, and agents that finished before the pause keep counting and keep their model, tokens and time

A named Workflow agent keeps its name after it starts, so editors connected through muse acp no longer switch its line to the agent's id

14

Workflow Stop Status and No-Relaunch Notice

Manually stopping an entire Workflow used to leave key reasons missing from both the screen and the completion notice sent to the model.

Now, cancelling an active Workflow no longer mistakenly tells the model that an agent that had already finished has no result. Any agent still running at the time shows "Stopped with the workflow before this agent finished." instead of a blank outcome.

If you stop a Workflow from the Tasks drawer or by running /workflows, it now tells the agent you stopped it and not to relaunch, rather than saying the runtime cancelled it.

Finished agents are no longer reported as having no result, and agents are clearly told you stopped them and not to relaunch.

Original changelog

Cancelling a workflow no longer tells the model that an agent which had already finished has no result

Cancelling a whole Workflow now shows "Stopped with the workflow before this agent finished." for each agent that was still running, instead of an empty outcome with no reason

Stopping a Workflow from the Tasks drawer or /workflows now tells the agent you stopped it and not to relaunch it, instead of saying the runtime cancelled it

15

TypeScript SDK Connection Control and Type Upgrades

For developers integrating the TypeScript SDK, this release strengthens connection startup, type checking, and session resumption.

Starting a connection now supports cancellation or timeouts, shutting down a host that takes too long to start instead of leaving it idling in the background. A session unloaded by the host while idle can reload in place, keeping its state, handlers, and pending turns without starting over.

Commands, requests, and raw-connection notification listeners are now typed from the protocol schema. Calls whose parameters do not match a listed method's type, or method names that mix listed and unlisted names, are marked deprecated first. The same applies to generic method names on a raw connection; these will become compile errors later, so widen the name to string to keep sending untyped.

When muse serve exits, the SDK reports the exit even if a process it started still holds the output stream, instead of waiting forever.

Analogy

Just like sending a courier package, if nobody answered before you could only wait around, whereas now you can cancel on timeout and resume with the same tracking number if disconnected.

Original changelog

The TypeScript SDK can cancel or time out MuseClient.spawn with a signal option, for example AbortSignal.timeout(10_000); a host that never finishes starting is shut down instead of left running

The TypeScript SDK types command and request from the protocol schema, and a raw connection gains addNotificationListener for typed per-method notifications: results are typed, and a call whose params do not match a listed method's type is marked deprecated, ahead of becoming a compile error in a later release; so is a method name that mixes listed and unlisted names, or a generic one on a raw connection (widen it to string to keep sending it untyped)

In the TypeScript SDK, session.reload() catches up a session the host unloaded while idle, keeping its state, handlers and pending turns instead of starting a new session

The TypeScript SDK now reports a muse serve exit even when a process it started still holds its output, instead of waiting forever

16

Subagent Support and Duplicate Fixes in SDK Event Streams

Tracking agent progress in the TypeScript and Python SDKs previously hid individual subagent actions and could repeat messages or hang on reconnect. This release expands event streaming for developers integrating either SDK.

When subscribing to session events, you can now enable subagent tracking so the stream delivers each subagent's actions step by step, tagged with the subagent each event belongs to.

After filling in missed events, or after reloading and replaying in TypeScript, the stream no longer emits the same event twice; when the client closes, the event stream ends with it instead of waiting forever.

Analogy

Watching a live broadcast of a team at work used to leave you guessing which helper did what and replaying old footage on reconnect, whereas now everyone's actions are clearly labeled without repeats.

Original changelog

In the TypeScript and Python SDKs, session.events({ subagents: true }) (Python: session.events(subagents=True)) also streams what each sub-agent does, step by step, tagged with the sub-agent it belongs to

In the TypeScript and Python SDKs, session.events() no longer repeats an event after the SDK fills a gap in delivery (or, in TypeScript, after session.reload() replays it), and an event stream now ends when the client closes instead of waiting forever

17

muse serve Timeout and Listing Fixes

Hosting conversation services in the background with muse serve previously risked false errors or missing data on slow commands or custom models.

When a request to start or steer a turn takes over 30 seconds to respond, muse serve now waits to return the real result as long as the turn is still running, instead of throwing an internal error.

When passing a --model name on the command line that is not listed in a catalog, its row in the model list now clearly shows its provider's profile name, just like other entries from that provider.

Sessions created by a muse serve host now record the build that created them, so running /export trajectory later includes that build info.

Analogy

Calling a remote counter with a long task used to mean they hung up with an error once a deadline passed without a reply, whereas now they wait until the job is done and report back.

Original changelog

muse serve now answers a turn start or steer that takes more than 30 seconds to acknowledge with its real result, instead of an internal error while the turn still runs

In muse serve, the model list row for a --model choice that no catalog lists now names its provider's profile, like that provider's other rows

A session created by a muse serve host now records which build created it, so /export trajectory for such a session carries session_build

18

Recovery Guidance for Unreadable Settings and Trust Files

Getting locked out of Muse because of broken JSON, an unsupported version, or insufficient permissions used to leave you at a dead end.

Now, when such an error occurs, the message ends with a Recovery: line naming the file and the next step; this covers malformed JSON, a directory occupying the config path, or an unsupported file version.

If unreadable permissions on settings.json prevent startup, the next line lists the fix: add permissions with chmod u+r, delete the file, or move the file blocking the config directory. If settings.json does not exist at all, Muse starts with defaults.

Analogy

Previously, when a car wouldn't start, the dashboard only lit a red warning light and left you guessing; now it shows which part is loose and which wrench to grab so you can follow along and get running.

Original changelog

When a settings or trust file cannot be used — malformed JSON, a directory in its place, or an unsupported version — the error now ends with a Recovery: line naming the file and the next step, instead of leaving the start at a dead end

The start refusal for an unreadable settings.json now names its recovery on the next line (make the file readable with chmod u+r or remove it, or move a regular file out of the config directory's place; an absent settings.json runs on defaults)

19

Checkpoint Saving Resumes After Freeing Full Disk

Running out of disk space while saving or settling a subagent message used to stall all subsequent checkpoint saves.

If the disk fills up while saving a message for a subagent, the session now resumes saving checkpoints normally once space is freed, without needing to reopen the session.

Even if you later retry that failed message, or close the subagent after hitting a full disk during message settlement, the session no longer skips all later checkpoints.

When the disk fills while saving or settling a subagent message, freeing space now lets saving continue, and retrying the message or closing the subagent no longer halts checkpoints.

Original changelog

After the disk fills while a message to a subagent is being saved, the session keeps saving checkpoints once the disk frees, instead of skipping them until it is reopened

After the disk fills while a message to a subagent is being saved, retrying that message no longer makes the session skip every later checkpoint

After the disk fills while a subagent message is settled, closing that subagent no longer makes the session skip every later checkpoint

20

Fixes for Session Reopening, Forking, and Switching

Starting a new thread mid-chat, clearing to start over, or pulling up an old log to continue used to drop a turn, freeze the view, or kick you back to the terminal.

When reopening a session, a turn that reused rules or instructions from before a mid-session checkpoint is no longer left out. Even if a single turn makes hundreds of tool calls, the session's saved view still updates normally instead of becoming unavailable after reopening.

When reading a session log written by an older build, a tool call that had already returned its result before a crash keeps that result in the view instead of being replaced by a crash notice.

When forking a new session after a background monitor wake, the new chat only carries its own startup context and no longer pulls in the parent session's startup context as well. Running /new or /clear to switch chats no longer exits to the shell even if the previous session is still closing.

Where switching or reopening chats used to hit missing pages or sudden exits, both chat history and switching now continue smoothly.

Original changelog

Reopening a session no longer leaves out a turn that reused the same rules or instructions as a turn from before a mid-session checkpoint

A turn with hundreds of tool calls no longer stops a session's saved view from updating, which left the view unavailable after the session was resumed

In a session log written by an older build, a tool call that had returned its result before a crash keeps that result in the session view instead of having it replaced by the crash notice

Forking a session after a background monitor wake no longer carries the parent session's startup context into the new session beside its own

/new and /clear no longer exit to the shell when the previous session is still closing

21

Cross-Version Chat Log Permission and Evaluation Compatibility

When different versions of Muse read the same saved chat, field changes must not widen permissions or prevent new prompts from being accepted.

This release prepares the storage format for an "allow for this session" choice on commands that run on another machine, though no chats write this field yet. Going forward, if a version that does not recognize the new field reads such a record, it refuses to load it rather than misreading a narrowed permission as a wider grant.

Chats generated by automated evaluation runs now record how each run was set up. Earlier versions skip this record, while much older versions may refuse new prompts after switching models, which updating Muse resolves.

Analogy

Imagine a new form adding a restriction column: if an old printer doesn't recognize that column, it simply refuses to print rather than turning "recipient signature required" into "anyone can pick up."

Original changelog

Prepares saved chats to store an "allow for this session" choice for commands that run on another machine: a version that reads these records refuses one with a field it does not know instead of reading a narrowed permission as a wider one; no chat contains them yet

Chats from automated evaluation runs now keep a record of how each run was set up; earlier versions skip that record, and much older versions may refuse new prompts in such a chat after switching models; updating fixes it

22

Session Deletion Cleanup and Log Trimming

Keeping Muse open for tasks or running commands repeatedly used to pile up old-version history and redundant logs on disk.

When deleting a session, reaching session_retention_days expiry, or cleaning up an empty session, Muse now removes the saved history for that session left by other versions as well, instead of leaving it on disk.

The session index's write-ahead log (a record of changes saved before updating the index) now defaults to a 256 MiB cap so it stops growing on always-on machines, while listings stay unchanged.

Skill reminders no longer save a decision record when they have nothing to suggest, and model calls and background reminders no longer write scheduled records. This saves space for sessions and stops muse exec --json from printing those two extra lines.

Where long-running use used to leave old remnants and empty records on disk, both storage and output are now much leaner.

Original changelog

When Muse deletes a session, at session_retention_days expiry or when it cleans up an empty session, it also removes the saved history that other Muse versions kept for that session, which used to stay on disk

The session index now caps its write-ahead log at 256 MiB by default, so the log stops growing past that size on always-on machines and listings stay unchanged

Sessions take slightly less disk space: the skill reminder no longer saves a decision record when it finds nothing to suggest, so muse exec --json no longer prints that line

Session logs are a little smaller: a model call and a background reminder no longer write a scheduled record, so muse exec --json no longer prints that line for them

23

Fixed Right Border Misalignment Caused by Arabic Text on Cards

You might open the status, usage, or MCP (a protocol for connecting AI to external tools) info cards. Whenever a line inside contained a phrase with a lam-alef ligature, the right border used to shift out of line. That layout issue is now fixed, so the right border stays neatly aligned in a straight line when displaying this kind of Arabic text.

Original changelog

Status, usage and MCP cards keep their right border in line when a row holds Arabic text with a lam-alef pair