BLUN Code CLI · 9.1.669-atomic.0

On Windows, EditBatch and ApplyPatch use a recovery journal by default, including for approved additional directories. After an interrupted write, reopen the console in the same workspace. It recovers the batch where safe. Conflicting external changes are retained for review.

Changelog

BLUN Code CLI · 9.1.668

The console can automatically retry transient failures before the answer starts. The activity line shows the attempt and wait time, for example for HTTP 429. Token display separates input and output from cache reads. FetchURL returns JSON directly and distinguishes network failures from unreadable HTML. Telegram recognises confirmed replies in the same turn to avoid duplicate fallback replies.

Changelog

2026-11-23 · BLUN

Npm and the BLUN manifest default to 9.1.667. With 9.1.666, Alt+M opens the details of an existing agent swarm. Esc closes them. On Windows, 9.1.667 can recover interrupted multi-file changes made with ApplyPatch or EditBatch on the next local start. New journaled operations require both switches below. Existing journals are checked even with the switches off. If another process changed a target, its backup stays local for review.

BLUN_EXPERIMENTAL_ATOMIC_FILE_PUBLISH=1
BLUN_EXPERIMENTAL_ATOMIC_STAGE_RECOVERY=1

Enable Local turn diagnostics in /experiments and enter /diagnostics without arguments in an open console session. It shows local details about the active and last turn, such as model timings and retries. It is off by default and absent from the Telegram remote command list. The full command reference still describes the reviewed 9.1.655 baseline.

npm 9.1.666 () · npm 9.1.667 () · BLUN Update Manifest · npm 9.1.665

2026-11-23 · BLUN

On 23 November 2026, npm and the update manifest select 9.1.665. The complete command reference remains at the verified 9.1.655 baseline; feature comparison of newer packages is still open. Help cards now exist on main in all 24 documentation languages plus Turkish. This does not prove live deployment.

blun-chat 0668920 · 2026-11-23 · npm 9.1.665

BLUN Code · Terminal

BLUN Code CLI

Work on files directly from the terminal, start background agents and use Telegram as well as managed media tools.

2026-12-01 · Using the CLI

Replies from Telegram groups without a forum reach the main session again. When forum topics are disabled, topic posts stay saved while other messages continue to be delivered. Older misclassified replies are released only with conclusive evidence.

Changelog · 9.1.705 · npm 9.1.705 · 2026-11-30 · 3fd14d59 · 2026-11-30

Press Ctrl+S to request delivery of the oldest queued entry, one at a time, once chat and topic boundaries allow it. Telegram messages are acknowledged after a matching session journal record exists. Separate forum topic processing is off by default.

Changelog · 9.1.702 · npm 9.1.702 · 2026-11-30 · 7e8f39c9 · 2026-11-30

2026-11-30 · Using the CLI

The queue shows whether King received Ctrl+S and messages are still waiting, whether they have been waiting for 30 seconds, or whether /stop paused delivery. The display changes neither the order nor the delivery rules.

Changelog · 9.1.701 · npm 9.1.701 · 2026-11-29 · d97e0a2c · 2026-11-29

Open /help to find commands by topic, such as session, work and diagnostics. Aliases still appear beside each command.

Changelog · 9.1.700 · npm 9.1.700 · 2026-11-29 · 780cfdb0 · 2026-11-29

If King cannot open the session journal on Windows after retrying, entering /new directly in the interactive editor can show a confirmation dialog when the session is idle. Choose “Start new session” to continue separately. Saved history remains available. Unsaved changes are not carried over.

Changelog · 9.1.699 · npm 9.1.699 · 2026-11-29 · 58922140 · 2026-11-29

2026-11-29 · Using the CLI

On Windows, King retries opening a temporarily locked session journal for appending. If the file stays locked, King reports the error. It never retries a write that has already started.

npm 9.1.698 · 2026-11-29

69bc67dc · 2026-11-29

Changelog · 9.1.698

2026-11-28 · Using the CLI

If you start the console twice on Windows, the second window waits for the first to finish start-up preparation or its update prompt. A status line shows that it is waiting. Press Ctrl+C to close the waiting window. The first start continues.

npm 9.1.681 · 2026-11-27

cd80f519 · 2026-11-27

Changelog · 9.1.681

2026-11-27 · Using the CLI

9.1.680 fixes the Telegram queue after certain rejected delivery attempts. Telegram photos can be read with a text model if the built-in BLUN image reader is available in the session. The update notice returns when resuming interactively with king -c or king -r.

npm 9.1.680 · 2026-11-27

e5747dc8 · 2026-11-27

From 9.1.676, blun telegram groups lists configured groups and their delivery modes. To make a change, use --group= with an existing group ID. --mode mentions requires mentions, --mode all allows all group messages and --mode default restores the default.

npm 9.1.676 · 2026-11-26

9d8615ac · 2026-11-27

blun telegram groups

Changelog · 9.1.680

2026-11-22 · BLUN Chat / BLUN King

Checked on 22 November 2026: default 9.1.655, 66 built-in slash commands, 31 aliases, 38 public CLI paths including groups and 46 possible core tools. Conditional registration does not promise every tool is available in your session. Older dated notes describe their historical state. Full language and browser approval remains open.

9.1.653 adds ApplyPatch for local workspace files: add, update, move or delete in one validated batch. Failure or cancellation triggers rollback; incomplete rollback is reported. It is blocked in plan mode; existing write rules and hooks still apply. Edit can validate multiple unique, non-overlapping replacements against the same original text. /mcp lists servers; /mcp reconnect NAME reconnects only a failed local stdio server while work is idle. Hook output is limited to 256 KiB per channel; hook timeouts are no general agent runtime limit. Interrupted pure drafts are excluded from later model requests but remain recorded.

9.1.654 extends ToolSearch: mode="catalog", query="" lists eligible names; query="select:Read,Edit" loads up to twelve unambiguous tools for the next step. Permissions still apply. AgentSwarm can run with run_in_background:true as one background task; TaskList, TaskOutput and TaskStop provide status, results and cancellation. The profile must support subagents and background work. background_swarm is on by default and can be disabled with BLUN_EXPERIMENTAL_BACKGROUND_SWARM=0. New input can release the foreground; a grouped result follows completion.

The history reader from 9.1.654 remains experimental and off by default: BLUN_EXPERIMENTAL_ORIGINAL_HISTORY=1. In the local embedded main session, PageUp opens stored records when input is empty and no other window is open. Arrows and PageUp/PageDown navigate, Ctrl+F searches, Enter opens details, c copies details, a opens attachments, and s shows available source references there; Escape goes back. End loads a fresh snapshot. The window reads a bounded file snapshot, not an automatically updating complete history. Missing sources are reported. Gateway access and complete recovery of deleted or never-stored content are not promised.

9.1.655 is the default verified by npm latest/next and the update manifest. EditBatch and Telegram session control are off by default. EditBatch validates up to 25 existing local UTF-8 files before writing; old text matches must be unique and non-overlapping. Cancellation or failure triggers rollback, and failed rollback is reported. Telegram /new and /reload require an already admitted private chat additionally in allowFrom and sessionControlAllowFrom, an active local session binding and a safe idle boundary. Commands expire with a validity of less than 15 minutes. Remove the grant or set the switch to 0 to revoke this capability. The phone test and app-wide typecheck remain open; this does not release /cron or OR06. replaceAll:true explicitly allows repeated matches; overlapping edits remain forbidden.

9.1.651 and 9.1.652 are integrity-verified packages published on 21 November 2026. Their bundles do not contain the canonical current command registry. A full feature and regression comparison remains open. Even in 9.1.655, bundled change records end at 9.1.650; later descriptions come from code comparison and the update manifest, not invented release notes.

blun-chat 29572b9 · 2026-11-21 · blun-chat 49bd164 · 2026-11-21 · blun-chat 5b51fc8 · 2026-11-22 · blun-account bf59e36 · 2026-11-18

Chat or console? · Get started with the console · Menus and first steps · Account and settings

BLUN_EXPERIMENTAL_EDIT_BATCH=1
BLUN_EXPERIMENTAL_TELEGRAM_SESSION_CONTROL=1
BLUN_EXPERIMENTAL_ORIGINAL_HISTORY=1
BLUN_EXPERIMENTAL_BACKGROUND_SWARM=0

Since 9.1.654, /export-md ./exports/session.md reads stored local original records instead of only the current model context. Existing destination files are never overwritten; Gateway sessions are excluded. A single record or tool output over 16 MiB is marked unavailable. Completion reports exported and unavailable entries plus SHA-256. The hash proves file integrity, not completeness of the entire past conversation. Without a path, a dated filename is created in the working directory.

Source review · BLUN King 9.1.650 · 2026-11-21

The default is 9.1.650, verified by npm and the update manifest. ToolSearch shows tools available for the current turn; short input no longer removes tools. With Skill({skill: "task keyword", search: true, scope: "plugins"}), King can read-search installed, disabled and catalogued plugins. A match may still require sign-in or a new session. Running shell tasks and subagents have no blanket runtime limit; cancellation, inactivity and connection safeguards remain. Glob/Grep release the foreground on new input. The experimental original-history reader stays off by default; fully scrollable preserved original history is not proven. The 700,000-byte default at recognized BLUN endpoints is no token guarantee; lower configured or fresh learned limits still apply.

Sources: 9.1.648 · 2026-11-20 · 9.1.649 · 2026-11-20 · 9.1.650 · 2026-11-20

Source review · BLUN King 9.1.647 · 2026-11-20

The default is now 9.1.647 (npm and update manifest). 9.1.644 removes /agent-spine and automatic tool/skill preinstallation; blun fd-download explicitly downloads the optional search helper. 9.1.645 lets ReadMediaFile describe images through the configured image reader, including for text models; image bytes go to that reader. 9.1.646 unifies queued delivery and Ctrl+S; mixed input channels need explicit reply recipients. 9.1.647 removes optional compaction at 75 percent of the byte limit, not the hard byte or token limit. Delivery within 60 seconds, input during compaction and fully scrollable original history remain unproven or open. Registry: 66 slash commands, 31 aliases. Earlier /agent-spine and default641 descriptions are historical.

npm 9.1.644 · npm 9.1.645 · npm 9.1.646 · npm 9.1.647

Current console: 9.1.655

Checked on 22 November 2026: default 9.1.655, 66 built-in slash commands, 31 aliases, 38 public CLI paths including groups and 46 possible core tools. Conditional registration does not promise every tool is available in your session. Older dated notes describe their historical state. Full language and browser approval remains open.

2026-11-15 · BLUN King 9.1.641

Current console: 9.1.641

On 15 November 2026, both npm latest and the public BLUN update manifest point to 9.1.641. This guide has been checked against the distributed package. Version 9.1.642 is also published under its own release tag, but is not the default version.

AreaHow it works and why it helps
Large MCP outputsRead the original text when a plugin returns more text than fits in the context.
Large requestsAutomatic compaction before the byte limit also protects requests with large instructions and tool descriptions.
Context displayUnderstand the last measured value while compaction is running.
Follow-up tasksCtrl+S keeps requests to apply queued input across compaction.
TelegramSilent replies do not generate empty messages; control markers stay hidden.
Commands67 slash commands, 31 aliases, 37 public CLI paths and 44 possible core tools. Availability still depends on installation, connection and enabled features.

This check establishes package contents and publication status. It does not verify a particular installation on your computer.

What has changed since 9.1.605

AreaWhat you get from it
LinuxThe npm package can be installed on Linux again. On Linux x64 the terminal binary is included.
Long sessionsWhen resuming, the newest history entries appear first. Older pages remain reachable.
StartOn request, King opens the last selected session in the matching workspace.
Reasoning effortCtrl+L opens the selection directly from the input field and keeps your draft.
TelegramMessages that arrive during a resume while work is running remain in the queue.
WindowsVersion 9.1.620 fully exits the console when the window is closed.

You can find the individual changes and their release states in the CLI changelog.

Prerequisites

  • Windows or macOS on x64 or ARM64; also Linux
  • Node.js 24.15.0 or newer from the LTS-24 series
  • Node.js, npm and Git Bash on Windows
  • Internet access for sign-in, AI models and managed tools
  • a working folder for your project
Linux is included in the npm package again

From 9.1.617 the package can be installed on Linux again. From 9.1.618 the terminal on Linux x64 uses an included binary and needs no compiler for that, even if npm 12 blocks install scripts. The automatic private Node runtime remains the Windows and macOS path; on Linux a suitable Node version must be present.

Node.js, npm and Git Bash on Windows

Node.js runs the console. npm installs and updates the package. The official Node.js installer contains npm. Git for Windows provides the shell Git Bash that King needs; Git Bash is not installed with Node.js.

Before the first installation

  1. Install Node.js 24 LTS (at least 24.15.0) with the Windows MSI from nodejs.org/en/download. Keep npm and the PATH entry enabled.

  2. Install Git for Windows from gitforwindows.org.

  3. Close the terminal completely and open a new command prompt.

  4. Check node --version, npm --version and git --version before you install King.

    node --version
    npm --version
    git --version

Git for Windows contains Git Bash. You can start King from the command prompt or PowerShell; an additional Git Bash window is not needed.

Installing Node.js and npm: official npm documentation.

If node or npm is not found

Node.js/npm is missing or not reachable via PATH. First open the terminal again. If the error remains, repair the Node.js installation with npm and the PATH entry enabled.

where.exe node and where.exe npm show the reachable paths; without a hit, the program was not found via PATH.

where.exe node
where.exe npm

If PowerShell blocks npm.ps1, use npm.cmd instead of loosening the execution policy.

npm.cmd --version
npm.cmd install -g blun-king-cli@latest

If Git Bash is not found

Install Git for Windows and open the terminal again. For an installation in a different directory, set BLUN_SHELL_PATH to the absolute path of the installed bash.exe.

The following example applies only to the command prompt and this terminal session; adjust the path to your installation. Check before setting whether the file exists.

dir "C:\Program Files\Git\bin\bash.exe"
set "BLUN_SHELL_PATH=C:\Program Files\Git\bin\bash.exe"

Check and keep Node.js up to date

First check the installed version:

node --version
npm --version
Windows and macOS: BLUN manages the required runtime

If the existing Node version is too old, BLUN automatically downloads a private, verified Node-24.15.0 runtime for Windows or macOS on x64 and ARM64 machines at first start. It is located under %USERPROFILE%\.blun\runtime\node\ or ~/.blun/runtime/node/. The system-wide Node installation and other programs remain unchanged.

For the one-time npm installation, Node and npm must already be present. An EBADENGINE warning is possible with an older Node version. After a successful installation, the first start with king or blun is enough; BLUN then sets up its own runtime.

Manual fallback

If the automatic download or the checksum verification fails on Windows or macOS, install Node.js 24 LTS manually:

  1. Open the official download page

    Open nodejs.org/en/download and choose Node.js 24 LTS.

  2. Run the matching installer

    On Windows use the MSI installer. On macOS use the PKG package. Choose x64 or ARM64 to match your computer.

  3. Open the terminal completely again

    Already open terminals often still use the old program path.

  4. Check the version again
    node --version
    npm --version
Security check of the automatic runtime

BLUN downloads only the fixed official Node build over HTTPS, limits download size and redirects, and verifies the published SHA-256 checksum before installation. On a mismatch, nothing is started; instead the manual fallback appears.

Installation

  1. Check the prerequisites
    node --version
    npm --version

    On Windows and macOS, BLUN can replace an older existing Node version with its private runtime at first start. For the npm installation, Node and npm must already be callable. On Linux you need Node.js 24.15.0 or newer before starting.

    Node.js, npm and Git Bash on Windows

  2. Install the current stable version
    npm install -g blun-king-cli@latest
  3. Check the installation
    blun --version
  4. Run diagnostics
    blun doctor
Expected result

blun --version prints a version number. blun doctor checks the configuration files and reports invalid settings. The previously named version commands check whether Node.js, npm and Git are callable.

Start and sign-in

Profile, workspace and session

A profile selects the separate King identity and its settings. A workspace determines which project files are open. A session contains the conversation history and the working state. A new session is therefore neither a new account nor automatically an isolated Git worktree.

king --profile mein-king

--profile belongs to the king launcher. For an isolated Git workspace use blun workspace create <name>; to resume a conversation use the session picker. The terminal reference explains these commands and their prerequisites.

Which start command should you use?

CommandBehaviorUse when
blunStarts the console without automatic Telegram connection.you want to work only locally or in the terminal.
kingStarts the same console and connects an established Telegram plugin.the agent should also receive Telegram messages.

Sign in for the first time

  1. Start sign-in
    blun login
  2. Complete browser sign-in

    Sign in with your BLUN account and return to the console afterwards.

  3. Open the project folder and start
    cd "C:\Pfad\zu\deinem\Projekt"
    king

Alternatively, you can enter /login in a running console. You do not need to copy an API key into a configuration file.

Resume a session

With /sessions you open the session picker. You can also specify an exact identifier, an exact title or a unique identifier prefix. With multiple hits you choose the desired session from the list.

/sessions API refactoring

For the last session of the current working folder you start King in the normal terminal with:

king --continue

Since 9.1.606 the display loads the newest history entries first. By default that is about 200; related messages and tool steps remain complete and can exceed this number. You reach older pages through the history navigation. The stored conversation history and the model context are not shortened by this display limit.

You can set the target size for the display between 1 and 2000 at interactive start:

king --continue --history-limit 400

Open the last selected session at start

If you regularly return to the same work, you can add this setting to your existing ~/.blun/tui.toml. On Windows the file is usually located in %USERPROFILE%\.blun\tui.toml.

resume_last_selected = true

Set the line in the upper area of the file before a section such as [editor]. The remaining settings are kept. The selection is saved matching the account, agent, working folder and runtime. An explicitly specified session takes precedence. If the saved selection is no longer available, a new session begins. With false you switch this start option off again.

Select a profile

/profile or /profiles opens the profile picker. During running work or with waiting messages the current profile stays active; choose the other profile as soon as the session is ready.

System32 is not a project folder

Before starting, switch to your user folder in the command prompt with cd /d "%USERPROFILE%". Alternatively switch to a dedicated existing project folder. In PowerShell choose your user folder with Set-Location $HOME. Then start king.

cd /d "%USERPROFILE%"
king

Select a working folder (9.1.603)

If you select a different working folder on Windows, a folder dialog opens. You can still enter the path manually. If you cancel the dialog, you return to the folder selection without adopting a folder.

If no folder dialog is available, the console asks for the path. On other operating systems, it stays with path entry.

If a folder inside the Windows directory is adopted or saved at start, the folder selection suggests your user folder. Manually entered paths are still checked as before.

Expected result

The status line shows your account, the working folder and the active model. The input line accepts your message.

Daily work

Set effort and approvals

Ctrl+L opens the selection for the effort directly from the input field since 9.1.609. Your existing input text is kept. While King works, a change is rejected; open the selection again as soon as the session is ready. The available levels depend on the active model.

The effort controls how thoroughly the model works before an answer. Higher levels can take considerably longer.

blun --effort high --permission-mode manual
OptionPossible valuesMeaning
--effortlow, medium, high, xhigh, maxThoroughness and compute time of the answer.
--permission-modeManual (manual), Automatic (auto)How often the console asks before tool calls.
--planwithout valueStarts in plan mode before changes are executed.

Choose output style

With /output-style you open the selection. Available are Standard, Concise, Proactive, Explanatory and Learning. The selection applies immediately to the running session and is saved as the default for later starts.

Rules keep priority

The output style overrides neither plan nor permission rules.

Compact active context

BLUN Code monitors the active context for the next model request, not simply the entire stored history. The effective limit depends on the model, the account and the compaction budget. Older parts are consolidated in limited stages; each stage reserves space for its summary.

Meanwhile the conversation shows for example Verdichte ~941,2k Tokens … · 2/~10 · 90 %. 2/~10 shows the current and the estimated total number of stages. 90 % is the measured load of the model window for the current compaction call. If a stage fails or does not shrink the context, the original context is kept.

Already at 75 percent of the effective compaction limit, a small lossless compaction relieves older large tool results and completed tool arguments. With a model window of 1,048,576 tokens and a full compaction at 256,000 tokens, this point is at 192,000 tokens. The last 20 messages, normal user texts and the stored raw history remain unchanged.

Start manually

With /compact you start the same process immediately. An optional instruction specifies what must be kept.

Compact proactively at a work boundary

Users do not need to enter a command. As soon as the active context reaches half of the automatic full compaction limit, King can select CompactConversation after a completed work section. The tool schedules the existing safe compaction process for the end of the current tool step. It does not open another turn; if the compaction fails, the original history remains unchanged.

Survive brief server overload

For a server overload explicitly marked as retryable (HTTP 429 with x-should-retry: true), BLUN King waits according to Retry-After and resends the same request at most twice. Authentication, quota and other non-retryable errors still abort immediately. If the server remains overloaded after the limited attempts, the user still receives the clear error message.

Resume delegated work after a provider interruption

If a delegated single agent or a member of an agent swarm loses the provider connection, receives an empty provider response, aborts its stream due to idle timeout, or the server reports HTTP 408/500/502/503/504, BLUN King resumes the same agent based on its persistent history. For single agents and for swarm interruptions outside HTTP 429, the first continuation waits two seconds and the second five seconds; afterwards the original error remains visible. HTTP 429 keeps its separate, longer overload rule in the swarm. Authentication, payment or quota, policy, context, tool and code errors as well as manual cancellations do not trigger an automatic continuation. Every continuation attempt uses the existing agent ID so that already completed work is not repeated.

Offload large tool results

For text-based tool results with more than 12,000 characters, BLUN King stores the complete content in the private session folder tool-results. In later model requests, the first 1,000 and the last 1,000 characters, the exact number of omitted characters and the output_path remain. Mixed media results and already truncated results remain unchanged. A later micro-compaction preserves the path.

Version 9.1.104 lets foreground shell commands run to their regular end even with very large outputs. King continuously writes up to 16 MiB to the private task log, discards output beyond that and reports the actual exit code instead of terminating the process because of the output volume. Small outputs, background tasks, time limits and manual cancellations remain unchanged.

Read output_path

Example: A search result with 30,000 characters remains fully available in the local file. The model sees the beginning and the final result or the error immediately; the agent reads only the needed sections via the path instead of sending all 30,000 characters again at every model step.

Parallel tool result batches

Since version 9.1.99, King additionally considers directly consecutive pure text results as a batch. If the batch exceeds 12,000 characters in total, although each single result is smaller, King offloads as many of the largest results from 3,000 characters upwards as are needed to fall below the limit. Readable references remain in the model context; session raw history and media remain unchanged. The telemetry event tool_result_batch_offloaded only reports count and character sizes, not contents or paths.

Offload large user messages

If a real user message contains more than 200,000 text characters, BLUN King stores the complete text in the private folder conversation-history. In the model context, the first five and last five lines, size indications and an output_path remain. With Read and the output_path, the agent reads only the needed pages. Images, audio and other non-text components remain attached. The visible transcript and the stored raw history still contain the complete original message. Messages with exactly 200,000 characters remain fully in the context; the same applies to a write error.

Limit large Grep searches

In the content output mode, Grep stops ripgrep after offset plus head_limit plus one complete preview line. The additional line only serves to recognize another page. With head_limit=250 and offset=0, at most 251 complete result lines are read. With head_limit=0, for count_matches and for files_with_matches sorted by modification time, King still reads the complete result.

Continue reading large files precisely

Large files are still read page by page. If Read reaches its internal limit of 1,000 lines and the file contains further lines, the result names the exact next line_offset. Example: A read starting at line 2001 is continued with line_offset=3001. At the end of the file and with a deliberately smaller read range, no hint appears. This prevents the agent from drawing conclusions from an incomplete range and from reading the file again from the first line.

Use conversation threads

CommandWhen it helps
/undo [number]If you want to undo the last conversation steps.
/forkIf you want to try a new path from the current state.
/btwWhen a second agent should answer a side question while the main agent continues working.

Background agents

Background agents appear with task and status in the agents view. You can open the output, send a follow-up question or stop the agent. Hooks and the integrated language server diagnostics check changed files after write and edit operations.

Version 9.1.105 adds TaskUpdate for running background agents. King passes additional instructions at the next safe model step to the same active agent without stopping it or starting another agent. Unknown and already finished tasks, shell tasks and agents that no longer accept an update are rejected unchanged.

Version 9.1.106 allows agent profiles to exclude tools by name. King applies these exclusions only after permanently loaded, dynamically loaded and MCP tools have been assembled. The default profiles coder, explore and plan can neither answer nor react via Telegram, edit messages or download attachments; the main agent remains unchanged. This way delegated agents do not send messages past the main agent, and their model requests contain fewer tool schemas. Not found tools specified by name are reported visibly.

Version 9.1.107 displays provider errors in understandable customer language; internal error codes and support hints do not appear. /help offers a command list that can be navigated with the arrow keys and opens a detailed description of the selected command with the right arrow key or the Enter key.

Version 9.1.108 removes identical, repeatedly injected system hints from the model projection. Per hint type, the newest exact copy remains visible. Changed hints, normal user messages, tool calls, mixed content and the stored session raw history remain unchanged. This makes the data sent to the provider smaller in long sessions without cutting the stored history, exports or resumes.

Load tools and skills on demand

Since 9.1.595 King again loads optional tool schemas on demand via ToolSearch instead of sending the complete catalog with every request. The retained selection is limited; tools remain findable even when their schema is currently not sent. Normal permission checks still apply. Large skill catalogs are provided compactly and page by page.

For short greetings King can use a limited excerpt of the recent dialog. System instructions remain; for a work order the retained work history is considered again. This deletes no stored messages. A greeting therefore has no fixed token price: system context, tools, repetitions and answer review still contribute to consumption.

/context shows the estimated context size of the next request and the applicable limit. /context-doctor or /tokens respectively supplements the display with available diagnostic data; /usage shows the consumption and quota view. Estimated values, accumulated session consumption and actually billed tokens are different quantities.

Large tool catalogs are explored via the tool search when needed. Since 9.1.615 the tool budget follows the reported context window of the provider. Found tools remain available in the next step; their complete descriptions do not need to be sent with every request.

/context doctor: Distinguishes stored history, estimated token counts and the byte count of the serialized request. Shows captured contributions of AGENTS rules, mistake files, memory, skills and tool definitions. Missing provenance data does not mean zero bytes.

Request bytes, estimated token counts, accumulated session consumption and billed tokens are different quantities. The consumption display also takes the answer review into account. /usage cost with daily or monthly costs is not part of this version. Lower costs or faster answers in live operation are not proven.

Every HTTP attempt receives a new x-request-id unless the caller specifies one. Preset identifiers remain unchanged and are not logged as arbitrary foreign text. The identifier serves to map client and server measurements; it is no billing key.

Session control in 9.1.604

/queue: Shows or changes how this session processes incoming messages. The modes are called steer, followup, collect and interrupt; reset or default removes the session-specific setting.

Without a session-specific change, King uses steer with 500 milliseconds batch wait time and a maximum batch size of 20 messages. /queue shows the effective values; /queue reset only removes the session-specific setting.

steer passes new inputs at the next suitable handover point; if that is not possible, they wait for the next run. followup waits until the end of the running run. collect bundles inputs; interrupt interrupts the running run for new inputs.

/queue collect debounce:500ms batch:10

Allowed are debounce:0ms to debounce:60s and batch:1 to batch:100. batch limits the batch size without deleting excess messages. There is no cap: or drop: option. Queue rule and consumption display are kept when resuming the same session. Ordinary new channel messages no longer automatically trigger an interruption after 30 seconds.

/session [ID|title]: Opens the session selection or selects a session by its exact identifier, its exact title or a unique identifier prefix. With multiple hits the selection opens.

/question: Reopens pending follow-up questions. Collapsing does not answer or discard a follow-up question.

/usage: Shows the consumption and available quotas. off, tokens and full save the display mode for this session. reset removes this setting; inherit, clear and default are equivalent.

/settings: Opens the settings including the local display options.

9.1.605

/context map shows the available byte breakdown of the most recently captured request. /context list, /context detail and /context doctor open the detailed report. It distinguishes instruction files, memory, skills, tool definitions and assigned history texts. Missing measured values remain marked as not available; they are not counted as zero.

king --message "Check the open tests" passes an initial message to the interactive console. It is processed after the start consent and the session selection through the normal message checks and the queue. Its content is not interpreted as a slash or shell command. The start consent and the permission checks are not skipped by this.

/abort cancels the running operation without discarding waiting inputs. /stop additionally discards the waiting inputs. /exit still ends the console. These are local console commands, not additional Telegram remote commands.

The additional agent/session line at the bottom is omitted. Session selection and diagnostics remain available through the existing commands.

Distinguish current context and stored history

A long stored history does not have to be complete in a single model request. King can compact the active work context and provide older tool outputs via verified references. The complete originals are kept for targeted re-reading.

Since 9.1.617 the preview of large tool outputs also considers the available context window. When reloading the same session, unchanged plugin instructions are not added again and again. With /context doctor you check the captured request; /context map shows its available byte breakdown.

For instruction files such as AGENTS.md, the following applies in the King console since 9.1.614: they remain complete as long as the request limit allows it. Larger files do not stop a task merely because of their file size. The earlier blanket truncation from 9.1.613 therefore no longer describes the current console path.

Keep tasks and outputs visible

An overlong task list can be expanded with Ctrl+T. Long tool outputs are shown truncated in the history and can be expanded with Ctrl+O. Input, activity display and the two status lines belong to the console. /tasks opens the background tasks; /copy copies the last available answer. The command reference contains all built-in commands as well as the overview of the keyboard shortcuts and agent tools.

Monitor long turns

Since version 9.1.40 the console reports a turn when no new tool result has arrived for 20 minutes. The status line shows the runtime, the last used tool and the number of repeated errors. Five consecutive failed calls of the same tool with the same arguments end the turn with a clear error message instead of continuing unnoticed.

Adjustable limits

Operators can adjust both limits with BLUN_TURN_WATCHDOG_IDLE_MINUTES and BLUN_TURN_WATCHDOG_MAX_FAILED_REPETITIONS.

Skills, plugins and MCP

Skills are reusable work instructions. Plugins can additionally provide tools, skills and their own commands. MCP connects the console with configured tool servers.

Use existing skills

Describe your task concretely so that King can find suitable instructions. For a specific instruction you type / in the input field and choose the offered skill. Built-in skills appear under their name; own skills normally as /skill:<name>. The suggestions of your installation show the actually available names.

/skill:angebot-pruefen check the offer in the project folder

This example works after you have created your own skill with the name angebot-pruefen. If several instructions come into question, you can first ask King for a comparison and a recommendation.

Add your own instruction

Create for example .agents/skills/angebot-pruefen/SKILL.md in the project. A skill file contains a name, a description of the area of use and the actual work steps:

---
name: angebot-pruefen
description: Check offers for scope of services, deadlines and open questions.
---

Read the complete offer.
Check scope of services, deadlines, exclusions and open questions.
Name the matching place in the document for each finding.
Show the result before you change files.

Project skills are also searched in .blun/skills. For instructions that span your projects there are ~/.agents/skills and ~/.blun/skills. On Windows ~ stands for your user folder. After adding, restart King or reload the session with /reload as soon as it is ready, and check the slash suggestions.

For an explicitly chosen skill folder you can start King like this:

king --skills-dir "./meine-skills"

This option replaces the automatic search in user and project skill folders for this start. You can repeat it for several folders. A skill from GitHub must be located in such a folder with its folder structure and a valid SKILL.md.

Install and manage plugins

/plugins opens the plugin management. There you can view the marketplace and check existing plugins. The commands list, info, install, enable, disable and remove are also available.

/plugins list

For the installation you type /plugins install <source> or choose a catalog entry. Check the source and the displayed information and confirm the offered installation. A disabled plugin remains installed; remove removes it after confirmation. A plugin can offer its own slash commands, for example /<plugin>:<command>.

Check tool connections

With /mcp you open the MCP view. The plugin management also shows the MCP servers of a plugin. An installed instruction does not replace a login to the connected service. Check in the respective view whether the connection is active before you make a task depend on it.

Goals, recurring work and side agents

Work a goal through to the result

/goal saves a concrete goal. Describe the desired result, the permitted changes and how completion is to be recognized.

/goal Check the open tests, fix the causes in the project and show the test results.

With /goal status you check the status. /goal pause pauses the goal, /goal resume continues it and /goal cancel ends and removes it. /goal edit <goal> changes the task; /goal replace <goal> explicitly replaces the active goal.

With /goal next <goal> you note a follow-up task. /goal next manage opens the management of these follow-up goals. A new task or the continuation of a goal starts only when the session is ready.

Repeat a task

/loop repeats a prompt at the chosen interval. Always state what should be checked and at which result King should inform you.

/loop 10m Check the existing test results and report only new errors.

/loop status, /loop pause, /loop resume and /loop stop control the repetition. Pausing a repetition and aborting currently running work are separate actions: for the current work there are /abort and /stop.

Ask a question alongside the main task

/btw <question> starts a side question in a branched conversation. /swarm <task> distributes an explicitly assigned task across several agents. With /tasks you see the background tasks and their results.

For a still open plan, /premortem, /idea, /chancenradar and /curiosity are also available. You find their differences, limits and control commands in the command reference.

One-off tasks without an interactive interface

With -p you pass a single task from the normal terminal. King outputs the result and ends the call. This is suitable, for example, for a summary in a script.

king -p "Summarize the README of this project briefly."

For programs you can choose --output-format json or --output-format stream-json. Without this option, text is output.

king -p "Summarize the README of this project briefly." --output-format json

The interactive start message --message and the history display --history-limit belong to the interactive start and cannot be combined with -p.

Answer review in 9.1.600

The answer review remains time-limited: general reviewers have 30 seconds. After the start signal of the trusted host component, up to 90 seconds are available once per external review attempt for the first substantive text for the native language review. Substantive text within the permitted output length and the ordered transitions to the release and to the receipt verification each reset the waiting period to 30 seconds.

Regardless of this, a total limit of 120 seconds applies per external review attempt; at most two external attempts are allowed. Before a release is accepted, the time actually elapsed is checked again, even with delayed timer calls. Late progress cannot renew an expired deadline. Abort signals continue to be respected. The binding to the exact answer text, the temporal validity of the release receipt and the authorization continue to be checked.

Version 9.1.604 contains AgentSpine 0.73.0 and Translate Native 6.155.0; the guard protocol remains at 6.20.0. No fix for HTTP 502 errors in live operation is proven with this. The release status and known limitations are in the changelog.

Images, video and sound

The BLUN Code CLI knows eight managed media tools. After successful sign-in and when the media service is reachable, you do not need to enter a server address or model identifier. Describe the desired result; the console chooses the suitable tool.

TaskToolResult
Generate imageGenerateImageImage task with retrievable identifier
Generate videoGenerateVideoVideo task with retrievable identifier
Generate speechGenerateSpeechAudio file from a text
Understand imageUnderstandImageDescription or answer about the image
Understand videoUnderstandVideoDescription or answer about the video
Add sound to videoDubVideoVideo with generated sound track
Lip-syncLipSyncMediaImage or video synchronized to a sound track
Retrieve taskGetMediaStatus or finished file

What you see with long tasks

  • processing: The task continues to run.
  • failed: The task has ended and will no longer be completed.
  • ready: The result can be retrieved.
Lip-sync

The current reservation expects up to about 35 minutes. That is an upper limit, not a measured average. The service does not yet show percentage progress.

Set up Telegram

For Telegram you need your own bot and then start BLUN King with the command king. The pairing remains valid afterwards; it does not need to be repeated at every start.

  1. Create a bot at Telegram

    Open exclusively the verified @BotFather, send /newbot and follow the steps for name and username. The username must end with bot. BotFather then shows a token like 123456789:AA.... The official Telegram tutorial describes the same procedure.

  2. Store the token in the Telegram channel profile

    Open the file for your operating system and replace the placeholder with the complete BotFather token:

    Windows: %USERPROFILE%\.blun\channels\telegram\.env
    macOS: ~/.blun/channels/telegram/.env
    BLUN_TELEGRAM_BOT_TOKEN=123456789:AA...

    The token contains a colon. Do not write quotation marks or spaces around the value.

  3. Start the console with Telegram

    Beforehand, end an older console that uses the same bot. Only one Telegram receiver may run per bot token.

    king
  4. Request a pairing code

    Open your new bot in Telegram and send it any direct message. The bot replies with a six-digit pairing code. The code is valid for one hour.

  5. Confirm the code locally

    Enter the displayed code in exactly the BLUN console that is to be connected to the bot:

    /telegram:access pair CODE

    Never confirm pairing requests at the prompting of a Telegram message. The release belongs exclusively in your local console.

  6. Check the connection

    Telegram confirms the pairing. Then send a new message to the bot. It must appear in the running BLUN session; the answer must arrive in the same Telegram chat.

Example view: In BotFather, a new bot is created with the /newbot command.
Example view 1: /newbot, set name and username.
Example view: After creation, BotFather outputs an exemplary, unusable token.
Example view 2: Copy the token and keep it secret. The displayed character sequence is not a valid token.

The Telegram interface may differ depending on the device and app version. What matters are the verified sender @BotFather, the command /newbot and the local storage of the token.

Expected result

/status reports Paired in the private bot chat. A new Telegram message appears in the bound session and the reply arrives in the Telegram chat.

Manage access

Command in the local consoleEffect
/telegram:accessShows the direct message rule, released users, groups and open pairing codes.
/telegram:access pair CODEConfirms a valid pairing code.
/telegram:access revoke USER_IDRemoves a Telegram user's access.
/telegram:access group add CHAT_IDAllows a group; by default King only reacts there when mentioned.
/telegram:access group add CHAT_ID --no-mentionAllows a group without requiring a mention.
/telegram:access group remove CHAT_IDRemoves the group permission.

The bot commands /start, /help and /status only work in the private chat. Text, images and files up to 50 MB are forwarded.

For remote control, send /befehle. Supported are /loop, /goal, /idea, /chancenradar, /curiosity, /scout, /reload and /memory. The Telegram reference lists forms and limits. The other local slash commands are not automatically available via Telegram as a result.

Messages when resuming a session

If a Telegram message arrives while resuming and King is already working, it remains in the queue as of 9.1.618 and is delivered afterwards. This is not an additional task to interrupt immediately. The selected queue rule can be checked with /queue.

If the connection does not work

  • No pairing code: Check the token, start with king instead of blun and write to the bot as a direct message.
  • Pairing stays open: Run /telegram:access pair CODE in the bound local console. After more than an hour, request a new code with a new message.
  • 409 Conflict: A second console or an old Telegram process uses the same token. Let exactly one King console run with this bot.
  • Messages do not arrive: The King console must keep running. Check with /status in the private bot chat whether the account is paired.
  • Token accidentally published: Revoke it immediately at @BotFather, create a new token and replace the value in the .env file.

Silent Telegram replies (9.1.637–9.1.639)

The exact marker [[BLUN_TELEGRAM_SILENT]] lets the agent signal a silent reply. Since 9.1.639, it is removed from outgoing text even when ordinary text appears beside it. If only whitespace remains, nothing is sent; otherwise, only the remaining text appears. This also applies when editing a message. Permission for the target chat is still required.

You do not need to enter the marker yourself. For example, say “Only notify me if the status changes”. A silent reply does not automatically mean that the task was not carried out.

Memory and mistakes

On the first signed-in start, the console asks separately about personal memory and about sharing cleaned error data.

  • Yes and no are stored. A decline does not lead to a new question at every start.
  • The decisions are independent. A change to mistakes does not overwrite memory and vice versa.
  • Without explicit consent nothing is written to the respective path.

Add to memory deliberately

blun memory remember "Consider this decision in the future"

This call requires the consent of the signed-in account and a reachable personal memory service. Persona notes, local tool metadata and memory tools provided via MCP are separate paths in each case.

Local tool memory

King can record completed tool calls as local metadata: tool name, time, status and, for file tools, possibly the path. The entries do not contain complete tool arguments, outputs, commands or keys.

/memory tools status

With /memory tools on or /memory tools off you control the recording. /memory tools status shows whether it is active. This function is separate from the personal memory and the complete session log.

Check the mistake state

blun mistakes status

The terminal reference explains upload, retry, synchronization, monitoring and the justified removal or restoration. A configured destination and its authentication are required for the transfer.

Updates

If in doubt, check the installed version and current default package separately:

king --version
npm list -g blun-king-cli --depth=0
npm view blun-king-cli dist-tags --json

A release tag with a higher number is not automatically the version selected for normal updates. In the checked state, latest is 9.1.641; the tag release-9-1-642 points separately to 9.1.642. The bundled changelog still calls 9.1.641 a “test candidate”; the current npm default tag and update manifest confirm its publication as the default version.

At start, the console checks whether a new stable version is available. The dialog offers three decisions:

  1. update now,
  2. skip this time,
  3. wait until the next version.

You can also start an update explicitly:

king update

After a successful update, BLUN shows the previous and the installed version as well as the most important changes. If Telegram is set up, BLUN sends the same notice once to shared direct chats. Groups do not receive an automatic update notice.

To the changelog

Distinguish installation and running session

blun --version checks the installed version. An already open session can continue to use the previously loaded code. End the affected session yourself and start it again; /version then shows its runtime version.

Diagnosis

MessageMeaningNext step
EBADENGINE or Unsupported engineThe Node version used for npm is older than 24.15.0.On Windows or macOS, complete the installation and start BLUN once so that the private Node runtime is set up. If npm aborts beforehand, install Node.js 24 LTS manually.
EBADPLATFORMThe loaded package does not match the operating system or the architecture. Older versions excluded Linux; as of 9.1.617 Linux is included again.Check the package version with npm view blun-king-cli@latest version and use the current package for your platform.
king: command not foundIf an npm error appeared beforehand, BLUN King was not installed.First fix EBADENGINE or EBADPLATFORM and then run the npm install command again.
Promise.withResolvers is not a functionBLUN was started with a Node runtime that is too old.On Windows or macOS, install the current BLUN version and start again with king. If the private runtime does not set up, install Node.js 24 LTS manually and reopen the terminal.
Model „blun/king“ is not configuredThe profile does not contain a valid model entry.Run blun doctor and check the active profile.
Telegram connection: no token detectedThe token is missing or does not have the BotFather form.Store the complete token with the colon and restart king.
Telegram 409 ConflictMore than one running receiver uses the same bot token.Close all duplicate King or Telegram processes and start exactly one console with king.
Pending pairingThe Telegram user has not yet been released locally.Confirm the displayed code in the bound console with /telegram:access pair CODE.
client key not recognizedAn access was sent but is not recognized.Sign out, sign in again and repeat the task.
billing service did not answerA BLUN service is not reachable.Try again later; the error is not due to your task.
blun doctor

Windows: close the window and start again

Version 9.1.620 fixes the complete exit when closing the console window. As a result, no leftover instance should trigger the "already running" message at the next start. The regular exit from the console remains /exit.

If the message still appears, first check the installed version and whether the console in question is still running. An active session may have only one writing owner. Do not delete a lock file while the associated console is still working.

If "compaction paused" appears

From 9.1.619, King counts only directly consecutive compaction errors. After a successful compaction, an earlier single error is no further reason to lock. The message "compaction paused" denotes failed summarization attempts; it no longer claims outright that your context is full. Check the exact message and the diagnosis before you restart the session.

Distinguish errors and waiting times

Since 9.1.596, an automatic interruption in favor of waiting Telegram messages is no longer reported as pressing the Escape key. A real manual abort remains separate from this.

9.1.597 recognizes error messages that explicitly mention an exceeded context limit even within a gateway error response. Before the start of an output, a limited retry with a smaller output limit is possible. Messages and tools are not deleted in the process. A general connection error or service outage is not fixed by this.

Historical finding in 9.1.597: A reported lower limit for the number of input tokens could trigger another failed attempt and unnecessary compactions. The finding was reproduced on September 17, 2026. The later corrections and their respective release states are documented in the changelog.

Long waiting times from Retry-After and the remaining pause after a session resume are taken into account. A restart is no way to bypass a requested waiting time.

Logs for error analysis

Tool calls and results are in the session log wire.jsonl. For a targeted diagnosis you can use /export-debug-zip. Check the content for private data before passing it on. A deliberately maintained error log such as mistake.md does not replace these event logs.

Honest limits

  • The AI can be wrong. Check important statements, files and executed commands.
  • Managed tools require sign-in and reachable BLUN services.
  • Media tasks do not yet show percentage progress. processing is a state, not a time indication.
  • A 200 response or green partial check proves only the measured section. Check a path from the first user input to the result.

Read large MCP text outputs in full (9.1.641)

A plugin response may contain more text than can be included in a model request. When the MCP text budget of 100,000 characters triggers truncation, King first saves the original text blocks as JSON in the private session folder tool-results. The notice in the result gives the output_path.

How to use this: Ask the agent to read the specified path in chunks with Read before making claims about the full content. For example:

The plugin response was truncated. Read the specified output_path in full, in chunks, with Read before summarising all relevant results.

The archive contains version: 1 and textParts. Text sections within a block are joined without additional separators, and the original block order is preserved. Binary data and internal reasoning blocks are not part of this text archive.

Limits: Only text actually returned by the plugin is saved. Further results from the provider must still be requested through its pagination or a narrower search. If a safe session folder is unavailable or writing fails, King explicitly reports that the original text was not saved; the output remains limited. Permissions on existing generic output folders are not changed automatically. This MCP backup is separate from the general offloading of large tool results at 12,000 characters.

Respect the byte limit of a model request (9.1.640)

Available token space does not guarantee that a request will fit within the server's limits. King also measures the UTF-8 bytes of the full request, including instructions and tools. The BLUN coding endpoint has a default limit of 500,000 bytes. Automatic compaction can begin at 75 percent; a confirmed smaller server limit is saved for later requests.

A request below the byte limit may still be sent if this preventive compaction cannot reduce it further or fails. At or above the limit, the size check applies. If King displays a corresponding message, reduce the input or have large files read selectively in chunks. A higher local setting does not override an actual server limit.

Context display during compaction (9.1.635)

During compaction, the context counter and bar show the last measured value. They do not decrease simply as time passes. Only a complete new context calculation replaces the display; without a valid measurement, the value is shown as unavailable. For less animation, set BLUN_REDUCED_MOTION=1 before starting.

Apply queued input (9.1.639)

If you press Ctrl+S to request that queued input be applied, that request survives any ongoing compaction. Fragmented key sequences with terminal responses inserted between them are also recognised. This does not promise to undo an external operation already in progress.

Also published: 9.1.642

Not yet the default version

The following features were checked in package 9.1.642. Do not assume they are present in an installation of 9.1.641. The package was published on 13 November 2026 under a separate release tag.

Search earlier local sessions

/sessions search <text> searches indexed local sessions with the same working directory. Use --all to include indexed sessions in the same local BLUN directory. This does not search all cloud accounts or other computers.

/sessions search invoice
/sessions search --all invoice
/sessions search --cancel

The search is literal and case-sensitive and covers text parts of user and assistant messages. Internal messages are filtered out. Output is structured JSON containing the session, a text preview, the match location and search scope. A matching session is not resumed automatically. A new search, the cancel command or a change of session context prevents outdated search results from appearing later.

Limits: at most 256 UTF-16 code units per query, 128 indexed sessions and 100 matches; a 1 MiB index, 4 MiB per history file, 16 MiB in total and 256 KiB per line. The 1,500 ms time budget is checked during processing and is not a hard deadline for file access. Reached limits, invalid entries and unreadable or changed files are reported as reasons for partial results. No matches in a partial result does not prove that the text occurs nowhere.

Search is available only in the local console. It is blocked through Telegram, other channels and gateway sessions.

Follow-up input and stopping

Input control ties follow-up input and stop requests to the relevant session, agent and running task. New instructions are applied at safe step boundaries; outdated preparations must not continue unnoticed. Agents already running in the background must be considered separately. Stopping cannot undo changes already made at an external service.

Experimental session queue rules are enabled by default in this package. If the first item waits at least 30 seconds, the local queue status can show QUEUE_DEADLINE_EXCEEDED along with the reason it is blocked, such as compaction, a tool/shell operation or pending input application. This deadline is a status notice, not a guaranteed execution time or permission to bypass authorisation.

Source review: 16 November 2026

Verified main source state, without proof of simultaneous deployment. The following updates supplement the 15 November state; earlier changelog history is preserved.

Rechecked: npm latest and the public update manifest select 9.1.641; 9.1.642 remains a separate release tag. Both archives passed integrity checks. Unchanged: 67 slash commands, 31 aliases and nine Telegram commands. Local session search in 9.1.642 is not a standard feature of 9.1.641. Repository main is a separate source state. Missing historical evidence for 9.1.57, 9.1.70, 9.1.550 and 9.1.567 remains unresolved. No customer console was installed or updated.

9.1.643 · 2026-11-17

9.1.643 has been separately published since 17 November; the default remains 9.1.641. New input can release waits on Shell, Agent or TaskOutput. When background work is allowed, the same process continues; a shell may move to the background after 30 seconds without output. Stops and approvals still apply. The package retains 67 slash commands and 31 aliases. CHANGELOG.md ends at 9.1.642; internal records still call 643 unpublished and unapproved. npm publication does not establish default or operational approval.