All notable changes to this project will be documented in this file.
The format is loosely based on Keep a Changelog,
and this project adheres to Semantic Versioning
from 1.0.0 on. It covers the CLI, settings.json, mikan.env, and the state layout under
~/.mikan. The package exports no module from 1.6.0 on.
The GitHub adapter is experimental and excluded: its settings and conversation layout may
change in a minor release.
- Suggested replies on Slack (ADR 0034): a reply that hands the person something to use or choose
from ends with up to two buttons holding what they would most likely send next. A tap sends that
line as the tapping person's message and replaces the buttons with who tapped which line. The model writes them as lines
starting with
↳at the end of its reply; mikan takes those lines off the final reply on every platform, andlog.jsonlrecords the reply without them, with the lines in asuggestionsfield on Slack. The Slack system prompt gains a section for this; other platforms' prompts are unchanged. - The
bash_backgroundtool (ADR 0033): the model starts a long shell command and gets a job ID at once, and when the command exits a message with its exit code and the path of its log arrives in the same conversation for the agent to answer. It works on Slack, Telegram, Discord, and GitHub. A job is killed after 2 hours, keeps its sandbox from being stopped for idleness while it runs, and survives a restart of mikan,stop, and/new. Its files are in.jobs/<id>/in the conversation's workspace directory, and its record isjobs.jsonin the conversation's state directory. - The
subagenttool is back in a minimal form (ADR 0031): the model hands one task to a subagent and gets its answer. A subagent hasread,bash,edit, andwrite, cannot delegate, and at most four run at once in a conversation's office. Profiles,<workspace>/agents/, task graphs, per-call budgets, and the progress dashboard are not restored. 1.6.0-beta.0 removed the tool.
- Tools start in the conversation's directory (
/workspace/<office key>) instead of/workspace:bashruns there and a relative path inread,write,edit, andattachresolves there. The model is given an attachment asattachments/<file>. It used to copy the full path with the office key and sometimes mistyped it. Absolute paths work as before. - Attachments are listed to the model in
<attachments>on every platform; the tag used to be<slack_attachments>. mikanwith no--sandboxflag now runs--sandbox=oci, mikan's published sandbox image, and needs nerdctl, Podman, or Docker. It used to run the agent directly on the machine.mikan migrateno longer needs--sandbox; the flag is accepted and ignored.slack_blockkittakes the message as Markdown and its buttons or select menu as lists, and no longer takes Block Kit JSON. It refuses a message with nothing to click: a normal reply renders the same Markdown, tables included. Buttons on messages posted earlier keep working. Custom layouts built from raw blocks are no longer possible. The conversion of ordinary replies to Block Kit is unchanged.- The system prompt tells the model that only files under the workspace persist and that installed packages are discarded when the sandbox image is updated. It used to say that changes in the container persist across sessions, which stopped being true when mikan began replacing containers on an image update.
- On Linux, an unprivileged user running mikan with rootful Docker or nerdctl got a sandbox that
could not enter its office: every file read and write failed with
EACCES. mikan now checks the mounts of a container it creates and reports the cause and the two fixes: run mikan as root, or use a rootless engine such as Podman.
- Slack task threads (ADR 0032): the
start_taskandtask_statustools, the canned replies to "is it done?", and steering a running turn with a follow-up message. The model does long work in the conversation where it was asked, and a message sent meanwhile is answered after it; before, the work moved to a new thread and the conversation kept answering. Existing task threads become ordinary threads: a reply there is answered as in any thread, and a run that finishes there no longer mentions the requester or writes its answer into the requester's conversation. For work that should not hold the conversation, the model can schedule it with theeventtool or background a command with the shell; nothing tells it when a backgrounded command ends. - The
hostandcontainer:<name>sandboxes.--sandbox=hostand--sandbox=container:<name>stop mikan at startup with an error that namesoci. Every office runs in a container mikan manages, which is the only sandbox that enforced office visibility and mounted vault files. A daemon started with--sandbox=ocior--sandbox=oci:<image>runs as before. To move ahostorcontainer:deployment, start it with--sandbox=oci; credentials its people saved are left under~/.mikan/vaultsand are not read, so they sign in again with/login. - The migration
0002-actor-vaults, which renamed the vaults ofhostandcontainer:daemons. Nothing reads those vaults now. - The Slack assistant pane: the greeting, the suggested prompts, and the conversation titles mikan
set for an app with Slack's agent surface, and the example manifest
deploy/examples/slack-agent-manifest.json. Mentions, DMs, threads, and the "mikan is working" status are unchanged. mikan's manifest no longer subscribes toapp_home_opened; an app synced from a configuration token drops it on the next start, and an app configured by hand can drop it and theassistant_thread_*andapp_context_changedevents, which mikan now only acknowledges. - The
/sandboxcommand (/pi-sandboxon Slack) and thesandbox.boostsetting it applied. The agent'ssandboxtool still shows and raises a conversation's limits, and the admin portal still narrows a public channel to a private office, which/pi-sandbox visibilityalso did. Everysettings.jsonthatmikan onboardwrote hassandbox.boost: mikan ignores it, keeps it in the file, and names it in a warning at each start until you delete it. An app synced from a configuration token loses the slash command on the next start; on an app configured by hand, remove/pi-sandbox, which now does nothing. - The package interface.
import "@geminixiang/mikan"now fails withERR_PACKAGE_PATH_NOT_EXPORTED, the package ships no type declarations, and the example indeploy/examples/embedderis gone. The package is themikanCLI; a program that embedded the runtime stays on 1.6.0-beta.0 or runs the daemon instead. Nothing changes for an installed daemon. - For embedders, before the interface itself went:
SandboxResourceController.boost,getDefaultLimits, andgetBoostLimits,SandboxLimitStatus.boosted,DockerContainerManagerOptions.boostLimits,SandboxSettings.boost,ConversationRuntimeOptions.resourceController, andSlackWebApi.assistant.
This minor release has breaking changes, listed under Changed and Removed. Back up the state
directory (~/.mikan) before upgrading: once this version opens it, an earlier version cannot.
- In a Slack channel, the model can hand long work to a background task, as it already could in a direct message: mikan acknowledges at the top level and works in that message's thread, and other mentions in the channel are answered meanwhile. A mention in the task thread asks for status or, from the requester, steers the task.
readresizes and converts images it could not return before: those over 2000x2000 pixels or 4.5 MB, and formats such as BMP.
- Upgraded Pi to 1.5.2, with all Pi packages pinned to that exact version. Pi migrates the state directory's storage on first start, which is what makes the upgrade one-way. A crash now loses up to one second of streamed text instead of 100 ms, and a task cut off five times in a row ends with a failure instead of staying busy.
- The model browses with the
agent-browserCLI throughbash. Thejev_browsertool is removed, and with it the desktop page's "Take control" and hand-back; the desktop still shows the sandbox. - Each firing of a scheduled event on Telegram and Discord runs in a new session, as on Slack. Before, a periodic event carried every earlier run in its context.
- Codemode and
tool_searchare Pi's. A script survives a restart without rerunning the calls it finished, andbashresolves to{ output, exitCode }inside a script. - Model spend by the
jevtool counts toward session usage and budgets.
- The
subagenttool, its profiles in<workspace>/agents/*.md, and its progress dashboard (ADR 0028). A conversation does the work itself; Slack keeps background tasks for long work. - Memory capture, which rewrote
MEMORY.mdafter a run (ADR 0029). The agent updatesMEMORY.mditself during a run. Lines captured earlier stay as they are. - The tool loop guard, which appended a notice after repeated identical tool calls.
- For embedders:
ConversationRuntimeOptions.memoryCapture,CreateRunnerOptions.desktop,ConversationResponder.respondToolResult, and theChatToolResulttype. Delete the option or method where you pass it.
/pi-logintyped as a slash command in a Slack channel opened a link to the channel's shared vault while calling it "your vault". It now refuses and asks for a direct message, as documented.- A run that produced messages faster than the platform could show them lost some of them.
- After a restart, a tool call that was running is shown again with its arguments.
- Requests to OpenRouter no longer name Pi as the calling app.
- A clean install of 1.5.1 failed to start, because its Pi packages were declared as version ranges and a later Pi minor release removed exports mikan imports. The Pi packages are now pinned to the exact versions 1.5.1 was tested with. Nothing else changes.
- A Slack reply or task that a restart interrupts now continues after the restart instead of stopping with its progress message stuck: mikan posts "Restarted for an update; continuing." and pi-durable continues the same turn, telling the model which step was interrupted. A deploy no longer waits up to five minutes for Slack runs to finish. Tasks continue the same way, without the earlier limit of two automatic resumes. Other platforms keep the five-minute drain.
- A codemode script has no deadline unless it sets
timeout_ms, as in Pi. Before, mikan stopped every script after 60 seconds, which cut off scripts that call slow tools such asjev_browser's goal loop. A stuck script now runs until the conversation is stopped, or until the run's budget ends it where one is set, as for scheduled events. jev_browserwith onlyurlopens the page and returns its final URL and title, for example to show it on the office desktop. Before, it refused the call, and models made up a goal that ran the slower goal loop.
jev_browserno longer refuses a call because the model filledhandOffwith an empty string, as models that fill every optional field do; an emptyhandOffandframe: "main"count as not given.
/pi-desktop(/desktopon other platforms) sends a private 24-hour link to the conversation's desktop in the managedocisandbox: watch or use the browser the agent drives, open its tabs, DevTools, or a terminal. "Take control" pauses the agent's browser until you hand it back, and the agent can hand you a step such as signing in withjev_browser'shandOff, which posts the step with a link and ends its turn. The desktop starts on the first link, stops with the sandbox's idle stop, and keeps the sandbox from stopping while someone has it open. It needs the sandbox image of this release; an office whose sandbox still runs an older image gets it after the sandbox idles out. Register/pi-desktopin the Slack app manifest, or let mikan do it (next entry).- mikan creates and updates its Slack app (ADR 0026). With a Slack app configuration token,
mikan onboardcreates the app from mikan's manifest, and every start replaces the app's configuration with the manifest of the running release, so new slash commands, scopes, and events need no edit in Slack's settings. Store a token for an existing app withmikan slack token, and set the app's and bot's name and the description withmikan slack set. Settings added by hand in Slack are removed. When a release adds a scope, mikan DMs the token's owner a reinstall link. Without a token nothing changes.
jev_browsercloses only tabs it opened when it passes its three-tab limit, so tabs a person opened stay open.- The sandbox image adds
sway,wayvnc, andfoot(about 1 MB) and themikan-desktopscript. - Upgraded Pi to 1.2.0. Pi 1.2 removed an export mikan 1.4.0 imports, so a fresh install of 1.4.0
now fails to start; this release works with it. A nonzero
bashexit is now an error result that carries the output and the exit code, instead of a thrown error.
- The Slack App Home tab, which listed running tasks and scheduled jobs with force-stop buttons. mikan's Slack manifest turns the tab off; an app synced from a configuration token loses it on the next start, and an app configured by hand keeps showing an empty tab until it is turned off in Slack's App Home settings. Use the stop command or the Admin portal to stop work.
web_fetchreads a public web page or API from the host so the agent can check versions, releases, and dates against the official source instead of answering from memory. HTML is returned as Markdown without navigation; long results are bounded like MCP results, with the full text saved in the workspace. It needs no key and refuses private, loopback, and link-local addresses, including through redirects. It does not go through an HTTP proxy configured for the daemon.- The OCI sandbox runs on nerdctl, Podman, or Docker. mikan uses the first engine whose
infosucceeds, in that order, and logs its choice; setCONTAINER_ENGINEto pin one. --sandbox=ociwithout an image usesghcr.io/geminixiang/mikan-sandbox:<mikan version>, so the sandbox image upgrades and rolls back with mikan. At startup mikan pulls the configured image in the background; a failed pull logs a warning and offices keep the local image. A stopped office's container is replaced when its image changed. After any replacement, the previous image is removed once no container uses it; an image that still has another name is kept. A running container is never replaced.
--sandbox=image:<image>is now--sandbox=oci:<image>.image:still works, prints a deprecation warning, and will be removed in the next major release; existing containers and vaults are kept.mikan onboardand the PM2 template write--sandbox=oci.- Container tools run through Pi's
pi-envdaemon over one connection per container, instead of one engineexecper operation: file operations and commands take about 1 ms instead of 40–180 ms, and commands end as soon as mikan disconnects. String commands run withbashwhen the container has it, and oversized command output is saved in the container's temporary directory. - Each office with a running container keeps one
<engine> exec -iclient process on the host, the connection to itspi-envdaemon. Commands left by a version before this one are no longer swept at startup; they end when their container stops or is replaced. - Each container gets the mikan host's time zone. The sandbox image no longer sets
TZ=Asia/Taipeiand is about 390 MB smaller:vim,nano,less,bash-completion,python3-venv,gnupg, and gcloud's precompiled Python files are gone. - Existing containers are recreated once on first use after upgrading, because mikan now
identifies a container's network and image by labels it writes at creation. Workspace and vault
mounts are kept; packages installed inside the container are not. On a host running more than
one engine, mikan may pick a different engine and create new containers there; set
CONTAINER_ENGINE=dockerto keep Docker.
- With a vault resolver, a conversation has no execution environment until its first run resolves one, so a tool call that arrives earlier fails instead of running on the host.
- Container credentials reach the sandbox through the
pi-envconnection instead of command arguments or a host-side env file.
/compact [instructions](/pi-compactin Slack) summarizes a session's older messages with pi-durable's compaction to free up context, in DMs and at a channel's top level, and reports the context size before and after. Earlier messages stay in the session history. Existing Slack apps must add/pi-compactto their slash commands; the example manifests include it.- Codemode
store(key, value)andload(key)keep JSON values across scripts in a conversation, as in Pi, instead of only within one script. Values survive a restart, a thread started from a run sees the values as of that run, and/newclears them. They are kept in a pi-durable document of the conversation.
- MCP tool results reach the model through pi-mcp's
toLlmContent, so an image embedded as a resource is passed to the model as an image instead of a placeholder line; other resource, link, and audio placeholders use pi-mcp's wording. mikan migratehas a new step,0013-session-usage, that records the spend of sessions imported from 0.5.3 in pi-durable's usage ledger. Runmikan migrateafter upgrading; the daemon does not start while the step is pending.- Slack DM tasks are found, and their status and acknowledgement read, from pi-durable's task
records instead of
log.jsonl, sotask_statusand the in-thread status reply keep working after a restart with a lost or rotated log, and a status reply in a task thread no longer scans the log for task roots (0.5 s to 0.14 s with a 50 MB log). Task threads started before 1.1.0 are no longer recognized as tasks, and tasks started from 1.1.0 to 1.2.2 list without their acknowledgement.
- The Admin portal's usage views count each session's own spend: a thread started from the run that caused it no longer repeats the spend of the conversation it was started from. Session totals come from pi-durable's usage ledger, so they now include failed attempts and compaction.
/newin a DM no longer waits for running background tasks or other DM threads, and messages sent after it no longer wait with them; it resets its own session as soon as that session is idle (#158).
jev_browserwrites the text it types or selects with the conversation's chat model, the one the office'ssettings.jsonresolves, instead ofopenai/gpt-4o-minicalled directly on OpenRouter, so it no longer needsOPENROUTER_API_KEYand follows the office's provider.
- Jev uses the first of pi-ai's built-in Jev models whose provider has a key, starting with
OpenRouter and then TypeSafe, Vercel AI Gateway, Cloudflare Workers AI, and OpenCode, so it
works with
TYPESAFE_API_KEYand the other providers Pi lists, not onlyOPENROUTER_API_KEY. - A
models.jsonentry that gives a built-in provider only abaseUrland anapiKey, as Pi documents for proxies, now also redirects that provider's classifier models and uses that key. Jev reads the daemon'smodels.json, so"typesafe": { "baseUrl": …, "apiKey": … }sends Jev through a System One proxy without an OpenRouter key.
- The
jevsetting and themodels.jsonclassifier models added in 1.2.0 are removed, somodels.jsonfollows Pi's format again. To send Jev through a gateway, use the built-in provider override above.jev_browseragain writes form text withopenai/gpt-4o-minion OpenRouter, as in 1.1.0, so it still needsOPENROUTER_API_KEY.
- Jev can run on any service that speaks TypeSafe's System One protocol, such as an LLM gateway.
Set
jevinsettings.jsonto a provider and model, and declare that model inmodels.jsonwith"type": "classifier"and"api": "typesafe-system-one"; mikan sends it to<baseUrl>/systemonewith the provider's key. Without the setting Jev stays on OpenRouter.
jev_browserwrites text for form fields with the conversation's chat model instead ofopenai/gpt-4o-minion OpenRouter, so it no longer needsOPENROUTER_API_KEY.- Jev decisions go through pi-ai's classifier support instead of
@geminixiang/jev, which is removed. The model,OPENROUTER_API_KEY, timeout, and retries stay the same; requests go to OpenRouter's System One endpoint, a text state is sent as{ "text": … }, score answers no longer carry per-level probabilities, and cost is the token count at pi-ai's catalog price. - A periodic event run always posts its answer. The
[SILENT]reply that deleted the message is removed, along with the prompt rules that told the agent to use it or to react with eyes instead of reporting nothing new, because a job that kept answering[SILENT]could stall for days without anyone noticing. An event whose own text still asks for[SILENT]now posts that text; edit the event to say what it should report instead.
- A DM task resumes after a restart at most twice in a row. Before, a task whose step crashed the daemon was resumed on every restart for up to 24 hours, crashing it again each time; now the third interruption stops the task and says so once in its thread.
- A scheduled event's reply no longer ends with two signatures. The system prompt told the agent
that event messages start with an
[EVENT:<file>:…]prefix, which events stopped carrying in May, so the agent signed the reply as[event: unknown]and mikan added the real signature. An event run is now told its event file in the Event Trigger Mode instructions, and a message that starts with a typed[EVENT:marker is no longer attributed to an event.
- A DM task survives a restart. A deploy no longer waits up to five minutes for running tasks, and a task interrupted by a deploy or crash in the last 24 hours resumes in its thread with a notice. A stopped task stays stopped.
- A finished task's answer is written to the DM conversation that started it, so a later question in the DM can be answered from the result.
- Pi packages are upgraded to 1.1.0. Retryable "server busy" provider errors are retried, the
first system prompt leads the model context so tool changes keep the prompt cache, and
each tool result records how long it ran. The container sandbox implements Pi's new file
reader in one
docker execper read, as before. - Embedders:
ConversationResponderno longer hasappendResponseDeltaorfinishResponse.replaceResponsealways receives the whole main message, with{ final: true }on the final write, and a responder setsshowsPartialAnswerto receive the answer while it is written. A responder that implemented the removed methods stops receiving streamed text until it handlesreplaceResponsethis way.
- A task run is no longer offered
task_statusandstart_task, which made one of three test tasks report its own status instead of doing the work. - A reply's message no longer flickers between its text and the tool checklist. Text written before a tool call stays under the checklist until the next answer replaces it, the message is updated at most once a second, and the final answer is written once instead of three times. A Slack thread reply that has to change earlier text stops streaming and is edited in place instead of deleted and posted again.
- The
...that marks a reply still being written is removed when the reply ends, also when the final edit is first rejected. - A signature the model wrote at the end of its last line is replaced, so a reply no longer
ends with two
Triggered bylines. - A reply no longer streams with its first words missing. The first text of an answer, and sometimes its last, never reached the chat while it streamed, so the message jumped when the final version replaced it, and a Slack thread reply was deleted and posted again.
- The system prompt lists the folders already in the office's
scratch/and asks the agent to reuse an existing clone, withgit fetchorgit worktree add, before cloning again. A new thread previously could not tell a repository was already there and cloned another copy.
- A command left running in a container sandbox by a crashed or killed daemon is ended when the daemon starts again, so a resumed or repeated run does not race the old copy.
mikan onboardasks for a sandbox image instead of a sandbox mode: the publishedmikan-sandboximage (recommended),debian:trixie-slim, or any other image. It writes~/.mikan/ecosystem.config.cjswith that image and prints thedocker pullandpm2 startcommands, so the PM2 file no longer has to be downloaded. An existing ecosystem file is kept.hostandcontainer:<name>still work through--sandboxbut are no longer offered.- The README and the quick start and deployment guides, in all four languages, follow the
onboard flow: install,
mikan onboard,docker pull, andpm2 startwith the generated ecosystem file. The docs site has a new logo, favicon, hero image, and footer.
- Stopping a run, or a command timing out, now ends the command inside the container
sandbox. Before, only the host
docker execclient was killed and the command kept running in the container. Images withoutsetsidkeep the old behavior.
1.0.0 is the first stable release. It replaces the 0.5.3 runtime, which ran on
pi-coding-agent, with mikan's own harness on pi-durable and pi-ai, and gives every
conversation its own office. The 97 1.0.0-beta.* prereleases are summarized here; their
individual notes remain in the GitHub releases.
mikan migrate upgrades a 0.5.3 install in place; it is the only supported upgrade path, and
formats that existed only in 1.0.0 prereleases are not converted. The daemon refuses to start
while migrations are pending and prints the exact command to run. Follow
Upgrading from 0.5.3 in the
deployment guide, which lists what migrates, what does not, and what to check afterwards.
- Conversation offices. Each conversation gets its own directory, sandbox runtime, vault,
settings, sessions, and scheduled events, named by an office key
(
v1-<platform>-<readable-id>-<hash>) so two platforms never collide on one raw id. Offices are public or private, following the Slack conversation type, andimage:*sandboxes enforce it: a private office sees only itself plus shared knowledge.mikan office listprints them. - GitHub adapter (experimental). A regular GitHub account, bound with a fine-grained token and an organization webhook, answers mentions, assignments, and review requests; each issue or pull request is one conversation. Its settings and conversation layout may change in a minor release, and conversations from this version may not carry over.
- Durable sessions. Each office keeps its sessions in one SQLite database (
sessions.db) throughpi-durable. Sessions survive restarts, a channel's top-level session stays current until/newwith Pi compacting old context, and threads keep their own sessions. The agent'shistorytool reads the conversation's earlier sessions. - MCP servers and codemode.
mcpServersinsettings.jsonconnects MCP servers; the agent reaches their tools through Pi's codemode and searches large tool lists on demand. OpenConnector can provision a per-conversation MCP token. - Subagents. The agent delegates bounded work, in parallel or as a dependency graph, to subagents with role profiles, their own tools, and token, cost, and time budgets.
- Admin portal and session viewer.
/adminopens a 30-minute portal for model, sandbox limits, office visibility, reply mode, MCP servers, and skills;sessionopens a read-only view of the current session. - Memory capture. After each human-triggered run, durable facts go to the office's
MEMORY.md. - Jev. A small model answers yes/no decisions, such as whether a Slack message addresses the
bot in
/pi-auto-reply jevmode, and drives thejev_browsertool. - Platform rendering. Slack answers stream into native markdown and table blocks, with the
slack_blockkittool for interactive messages; Discord uses Components V2; Telegram uses rich formatting. Long answers continue in the thread instead of failing. - CLI.
mikan onboardwritessettings.jsonandmikan.envfrom a few questions,mikan envlists every environment variable and which are set, andmikan migrateapplies state migrations with--dry-run. - Observability. Standard OTLP export through the
OTEL_*variables, alongside Sentry.
- Node.js 24.15.0 or newer is required.
mikan.envholds secrets and deployment addresses;settings.jsonholds behavior. The Sentry DSN is read only fromSENTRY_DSN, so asentry.dsnsetting is ignored, and the GitHub adapter's repositories and trigger rules live undergithubinsettings.json. At startup the daemon logs each environment variable it no longer reads, with what replaces it.- State lives in
~/.mikanonly:settings.json,mikan.env,models.json, vaults, and the host-only per-conversation directories underconversations/. Per-conversation settings, sessions, and scheduled events moved out of the workspace, where sandboxes could read them. - The workspace argument is optional and defaults to
~/.mikan/workspace. - Inside a sandbox, an office's files are at
/workspace/<office-key>instead of/workspace/<conversation-id>. Paths quoted in sessions from before the upgrade point at the old location. image:<image>provisions one managed container and one vault per office, recreated from the current image when missing;/pi-sandbox boostraises its limits until it stops.- Vault directories use hashed keys instead of raw user and container names.
- Only
sessionandstopwork without a leading slash;new,model, andauto-replyneed their slash forms (/new,/pi-new, …). - Auto-reply is Slack-only and takes
on,off, orjev. A 0.5.3 channel with auto-reply rules replies to every top-level message; the rules are ignored. - The link server for the portal and credential links listens on
127.0.0.1unless configured otherwise. - The package exports only what an embedder needs:
createConversationRuntime,createWorkspace,createOfficeAddress,officeKey,createConversationEvent,createConversationMessage,defaultCommandHandlers,MikanModels, and the types they use. The@geminixiang/mikan/harnessand@geminixiang/mikan/sandboxentry points are gone.
- The
pi-coding-agentruntime and its extension loading; mikan loads no third-party code into its process (ADR 0006). Skills inskills/directories remain. - The
firecracker:*andcloudflare:*sandboxes. --state-dirand theSTATE_DIR/MIKAN_STATE_DIRvariables, and--download.- Auto-reply on Discord and Telegram, and auto-reply rules.
SENTRY_ENABLED(leaveSENTRY_DSNunset to turn Sentry off) andHTTP_IDLE_TIMEOUT(outbound HTTP streams time out after five minutes).- Provider keys in
~/.pi/mikan/auth.json; put them in~/.mikan/mikan.envormodels.json.
- Slack startup and reconnects no longer hang without a log line when Slack accepts the
connection and never answers; a socket silent for 30 seconds is dropped and retried, and the
daemon logs
Slack connection lost; reconnectingandSlack reconnected after Ns. - Stopping the daemon while it is still connecting to Slack ends in a graceful shutdown.
- When Telegram ends long polling because the token was revoked (401) or another process polls the same bot (409), the daemon logs the reason and exits with code 1 for the process manager to restart, instead of running on without receiving messages.
- A Slack message whose acknowledgement was lost during a reconnect runs once, not twice.
- Append a session-view link to event-triggered attribution messages.
- Show raw cached token counts and cache-hit rate in usage summaries.
- Use a stable, low-noise usage summary layout with token units and fixed cost breakdowns.
- Mark the auto-reply command as deprecated.
- Harden state file writes to avoid readers seeing partial state.
- Reject malformed OAuth configuration during login setup.
- Add unit coverage for utility and tool modules.
- Expand Slack end-to-end coverage and make CI Slack artifacts more reliable.
- Show the top 20 pi sessions by token usage in the admin portal, including channel labels and raw input, output, cache read, cache write, total, and cost columns.
- Render markdown as Slack Block Kit.
- Show live tool progress during agent runs.
- Add the Starlight documentation site with localized docs for English, Japanese, Simplified Chinese, and Traditional Chinese.
- Add platform adapter guides for Slack, Discord, and Telegram.
- Add a web agent-events portal for streaming agent events.
- Align adapter, runtime, and session naming around conversation terminology for clearer contributor navigation.
- Update project dependencies and bundled pi packages.
- Preserve custom Starlight theme component overrides.
- Keep the docs dev server from restarting when settings cleanup runs.
- Tighten Sentry event sanitization.
- Update bundled pi packages to the 0.79.9 line.
- Apply the recent-days and max-messages history window when syncing existing chat sessions so resuming a session no longer replays unbounded older log history.
- Always report a usage summary whenever token usage is available.
- Add coverage for capping existing chat history sync to the recent history window.
- Store Slack streamed responses as a single finalized bot log entry instead of per-delta fragments.
- Coalesce legacy Slack bot log fragments when bootstrapping chat sessions so platform history is not filled with partial words.
- Add coverage for coalescing streamed bot history and logging only finalized Slack responses.
- Rotate shared top-level channel sessions on biweekly Sunday boundaries while keeping thread sessions fixed.
- Bootstrap rotated shared channel sessions from the recent two-week chat log window and prevent older log history from being resynced into the active session.
- Harden managed Docker sandboxes with dropped capabilities, no-new-privileges, and a PID limit.
- Report usage summaries when token usage is available even if provider pricing data is missing.
- Add coverage for session rotation, thread bootstrap watermarks, sandbox hardening flags, and usage summaries without cost data.
- Require exact provider model ID matches when grouping verified admin model availability.
- Group admin model selectors by verified availability for OpenAI and Anthropic keys.
- Log the active provider and model when each agent run starts to simplify server-side debugging.
- Resolve custom providers through pi's model registry so conversation settings can select models from
models.json. - Resolve attached file paths from the sandbox runtime workspace so image sandboxes upload generated files from the correct host path.
- Update bundled pi packages to the 0.78.1 line.
- Stream Slack responses with delta-only appends to avoid duplicated message segments and streaming state conflicts.
- Include Slack streaming recipient metadata so threaded streamed replies work in Slack E2E and production workspaces.
- Add Slack streaming E2E coverage for delta appends without duplicate text.
- Add streamed response deltas across adapters so replies can update progressively.
- Add Slack reply mode configuration in the admin portal.
- Add event tool CRUD support for listing, reading, updating, and deleting scheduled events, with conversation-scoped listing by default and explicit all-event listing.
- Reorganize source modules and centralize shared type definitions for clearer contributor navigation.
- Centralize adapter conversation intake and reduce wrapper indirection across runtime, adapters, commands, config, and web modules.
- Attribute agent Sentry traces with platform and conversation context for clearer operator debugging.
- Persist global settings overrides correctly.
- Warn when invalid custom OAuth service definitions are skipped instead of silently dropping them.
- Add streamed response deltas across adapters so replies can update progressively.
- Add Slack reply mode configuration in the admin portal.
- Add event tool CRUD support for listing, reading, updating, and deleting scheduled events, with conversation-scoped listing by default and explicit all-event listing.
- Reorganize source modules and centralize shared type definitions for clearer contributor navigation.
- Centralize adapter conversation intake and reduce wrapper indirection across runtime, adapters, commands, config, and web modules.
- Persist global settings overrides correctly.
- Preserve trigger attribution in streamed agent responses so tool-written GitHub comments include the triggering user.
- Add Slack Block Kit response support and document Block Kit implementation lessons.
- Require explicit mentions before Slack thread replies trigger the bot.
- Enforce phase-one strict checks and unused export checks.
- Add source directory README guides for contributors navigating adapters, commands, runtime, sessions, sandbox, tools, login, admin, and session-view code.
- Centralize chat session bootstrapping through
ChatSessionManagerso Slack top-level and thread sessions share the same log-based history sync path. - Rename Slack branch/fork terminology to thread/anchor terminology across the adapter, session viewer, and documentation.
- Model session-view related sessions as parent/thread relationships, including fixed-path thread sessions without legacy parent metadata.
- Remove legacy thread fork and snapshot helpers from session storage.
- Anchor session-view thread links on the root turn instead of earlier bootstrapped context messages.
- Centralize chat session bootstrapping through
ChatSessionManagerso Slack top-level and thread sessions share the same log-based history sync path. - Rename Slack branch/fork terminology to thread/anchor terminology across the adapter, session viewer, and documentation.
- Model session-view related sessions as parent/thread relationships, including fixed-path thread sessions without legacy parent metadata.
- Remove legacy thread fork and snapshot helpers from session storage.
- Anchor session-view thread links on the root turn instead of earlier bootstrapped context messages.
- Make Slack bot-rooted thread session seeds loadable by storing platform-history assistant metadata.
- Add a sandbox resource limit tool for checking and temporarily updating managed sandbox CPU and memory limits.
- Isolate Slack sessions rooted at bot messages so thread replies do not inherit unrelated channel history.
- Add
/adminportal with token-protected access via/adminand/pi-admincommands. - Add admin APIs and UI for conversation settings, global settings, workspace preview, skills, events, session links, and login/vault links.
- Add model selection in the admin portal using
ModelRegistry.getAvailable()instead of free-text fields. - Share portal shell chrome across admin, session-view, and login/vault pages.
- Document admin, login, and session token boundaries in
docs/portal-auth-model.md.
- Normalize slash-command feedback into muted compact summaries.
- Align desktop layout widths across all portal surfaces.
- Add expanded command, configuration, deployment, development, session, and skill documentation.
- Add README hero and architecture diagrams.
- Add project agent development rules and Karpathy coding guidelines.
- Simplify the README overview and clarify sandbox runtime architecture documentation.
- Simplify file guards and retry helpers.
- Retry attachment downloads.
- Skip retry sleep on the final attempt and clarify retry naming.
- Renamed the project, CLI, npm package, GitHub repository, documentation, release skill, and sandbox image references to mikan.
- Changed platform credentials to unprefixed env vars (
SLACK_APP_TOKEN,SLACK_BOT_TOKEN,TELEGRAM_BOT_TOKEN,DISCORD_BOT_TOKEN) while keepingMIKAN_*aliases as fallbacks. - Changed runtime env vars such as
LINK_URL,LINK_PORT,STATE_DIR, OAuth scope overrides, and Cloudflare sandbox settings to prefer unprefixed names withMIKAN_*fallbacks. - Raised the minimum supported Node.js version to
>=22.19.0. - Updated internal variable, function, type, Docker label, sandbox image, and generated resource names to use mikan naming.
- Added manual dispatch support to the CI workflow.
- Grouped session modules under a single directory.
- Centralized command parsing across adapters.
- Removed explicit
anyusage across the type surface. - Cleaned unused dependencies.
- CI now enforces coverage thresholds.
- Session history writes now emit valid assistant messages.
- Refresh stale channel history before forking a thread.
- Separate history seeds from live sessions to prevent cross-contamination.
- Materialize channel history when the first thread is created.
- Scripts to migrate session history and repair orphan thread sessions.
- Slack: fork bot response threads from the channel session so replies inherit context.
- Vault: preserve failures when the default shared vault cannot be applied.
- Vault: seed new sandboxes from a shared profile (
sandbox.defaultSharedVault).
- Sentry: report user-facing failures.
- Auto-reply: surface configured rules in the status command.
- Slack: anchor event-fork sessions correctly (#61).
- Slack: keep session ephemerals scoped to threads.
- Agent: require history search before answering unknown replies.
- Agent: keep quiet tool errors out of chat.
- Removed cloud-logging config — log to stdout/stderr and route via your process manager.
- Sandbox: bootstrap
ghgit credentials inside managed containers.
- Sandbox: update memory swap when applying CPU/memory limits.
- Slack: preserve long replies posted in threads.
- Sentry: store env values and write a
sentry-cliconfig for richer error reports.
- Bumped
@earendil-works/pi-*packages.
- Slack: unblock startup while backfill is running.
- Config: validate JSON files with TypeBox schemas.
- Agent: attribute the trigger (mention/direct/auto-reply/…) in responses.
- Login: refresh the sandbox after copying a shared profile.
- Simplified command dispatch, token stores, and re-exports (#60).
- Login: gcloud OAuth support.
- Auto-reply: persist the resolved session key.
- Login: make Slack login ephemeral and refresh vault mounts after credentials change.
- Sandbox: update base image and tags.
- Auto-reply: channel trigger rules and a configurable judge model (
llm.autoReply). - Slack: native E2E smoke workflow under
e2e/.
- Auto-reply: use mom-compatible marker files; judge policy never throws and always logs.
- Events: validate one-shot times before scheduling; simplify fresh follow-up sessions.
- Onboard: default model is
claude-sonnet-4-6. - Separated runtime and control-plane paths.
- Session view: floating composer and per-message copy button.
- Docker sandbox: add
rgandfdto the image.
- Session view: ignore Enter during IME composition; preserve code-block contrast.
- Login: shared vault profiles.
- Session view: improved interactive chat console.
- Slack: harden socket connection and label the platform in the connect log.
- Agent:
ThinkingLeveltype on session parameters.
- Sandbox: store the image workspace mount in settings.
- Dropped
vault.jsonmetadata — directories are the only source of truth. - Refactored agent runner orchestration into smaller modules.
UserBindingStoreandbindings.jsonplumbing.- Log-to-session backfill.
- Sandbox: temporary
boostcommand for one-off CPU/memory bumps. - Slack: mute command summaries.
- Migrated
pi-*packages to the@earendil-works/namespace.
- Slack: log messages from external apps; hide bash tool diagnostics.
- Session: ignore history written before a reset.
- Agent: clarify runtime workspace paths in the system prompt.
- Commands: conversation model switch (
/pi-model …) with:thinkingshorthand. - Config: onboarding flow for global settings (
mikan --onboard). - Docs: PM2 ecosystem config and production deploy guide.
- Config: nest settings schema; align chat platform commands.
- Slack: strip only the bot's own mention from message text.
- Sandbox: Cloudflare sandbox bridge (experimental).
- Tests: unit coverage for
CommandRegistryand command handlers.
- Env: renamed
MOM_*env vars toMIKAN_*(breaking). - Vault: conversation vault directories are now the source of truth; dropped platform prefix from the conversation vault key.
- Config:
--state-diris the single source for settings. - Tightened command/runtime types and added a
postPrivatecapability.
- Hardened core writes; unified adapter retry and log helpers.
- Eliminated duplication across adapters, vault, and Slack command factories (#53).
- Session forks now anchor to raw split points.
- Adapter-specific stop logic stays in adapters.
- Slack: tighten thread reply triggers.
- Session view: Slack-aware session viewer with branching (#51).
- Login: built-in credential presets and a redesigned credential portal.
- Sandbox: image-mode container CPU/memory limits (#50), bridge network isolation,
ffmpegin the tools image.
- Discord: normalize thread sessions; queue follow-up messages; persistent channel sessions; hide usage summary by default.
- Events: restore Slack synthetic notifications (#52).
- Attachments: wait for downloads before the agent accesses them.
- Per-user vault system for actor-scoped credential isolation (#24).
- Managed image sandbox (
--sandbox=image:<image>) (#47). - Login flow wired into the runtime; credential onboarding server (#32, #34).
- Slack:
/pi-newand/pi-loginDM commands. - Events: actor-aware scheduling tool (#36, #39).
- Internal contracts unified around "conversation" naming across adapter, store, config, log, and UI layers (#38, #41, #42, #43, #44, #46).
- Telegram: handle bare
stopin shared chats; escape unsupported HTML entities. - Slack: queue follow-up messages per session.
- File-backed credential vault (#31) and per-user vault routing (#33).
- OAuth: GitHub redirect flow, scope parity with
ghCLI, gcloud OAuth. - Sandbox: separate
stateDirfromworkspaceDirto keep secrets out of sandboxes.
- Hardened vault writes, file permissions, and login flow.
- Stopped leaking secrets in
docker execargs. - Enforced vault sandbox isolation policy.
- Renamed
dockersandbox mode tocontainer(breaking). - Replaced
DockerProvisionerwithDockerContainerManager+ idle stop.
- Sentry integration for error monitoring, tracing, and metrics (#21).
- Persistent session management with in-thread replies (#18).
- Telegram: native slash commands; private-chat session fix (#15).
pi-coding-agentextension loading (#12).
For releases prior to 0.2.0-beta.0 (i.e. the 0.1.x line), see the git tag history.