Skip to content

HADAL features

The full tour. For setup, see the README.

  • Durable runs. Every model request, tool call, queued message, and subagent is a durable task in one SQLite file. Kill the server mid-run and start it again: the run continues. A tool call that was cut off reruns if it is safe to; otherwise the model is told it was interrupted.
  • Themes. A theme changes the app’s look and layout without a change to its code: a folder of CSS, fonts, images, and optional colors (docs/extensions/themes.md). Appearance has a Theme row above Colors: Pocket, the app’s own look; Lantern, a calm, warm dark theme that comes with the app, made for reading for hours (warm brown-grey with warm off-white text and a muted amber accent, one readable column of about 72 characters, tool calls as one quiet line until opened, and your messages set off by a quiet amber bar instead of cards); and each theme folder. A theme stays when the colors change; one with colors of its own brings them when you choose it. The owner can Duplicate the theme or the colors in use into a folder of their own (in the data folder’s themes/), Edit with HADAL (a session in the theme’s folder, with a message ready that names the guide), and Remove one (its folder moves to themes/.removed/). Under them, the owner picks the theme’s fonts under Fonts for its name: Text font (Geist, Inter, System Sans, JetBrains Mono, Fira Code, IBM Plex Mono, Iosevka, or System Mono), Code font (one of the monospace ones), and Ligatures (Theme’s own goes back to the theme’s own setting), with a preview; each choice is saved into the theme, so everyone who uses it gets it. A theme that comes with the app shows its fonts, with Duplicate to change. Each save shows at once in every tab that uses the theme, without a reload, and a reload never flashes the app’s own look. A theme loads only its own files; one that breaks a rule keeps its last good version, and the owner is told what and where. Each person chooses for each browser, guests too, and the owner can make the theme and colors in use the default for browsers that have not chosen. The launcher’s Themes and /theme <name> choose themes as well as colors. A theme can bring a pair of palettes, dark and light, that follows the system’s setting. Safe mode (?noext=1) loads no theme.
  • Omarchy colors. All of Omarchy’s themes, from Tokyo Night and Gruvbox to Rosé Pine and the light ones, drawn from each theme’s own colors.toml, in soft tiles: rounded windows and controls on 1px hairlines, soft shadows only on what floats, Geist for words and JetBrains Mono for code, paths, and numbers, with JetBrains Mono’s own italic and the Nerd Fonts icons that prompts and tools print (bundled in web/fonts/, with Inter, Fira Code, IBM Plex Mono, and Iosevka for themes to name; web/fonts/SOURCES.md says where each came from); light themes too. Menu → Appearance (or the Theme tile, the launcher, or /theme gruvbox) picks one under Colors, as well as a theme folder’s colors.toml (any Omarchy theme folder dropped into themes/ shows there); the mini-desktop cards in Appearance preview a theme on hover or keyboard focus, and leaving without choosing restores the saved theme. The new look grows as a circle from where you tapped. Desktop follows the Omarchy theme of the machine HADAL runs on: change your desktop’s theme and the app follows within seconds, optionally with your wallpaper in the gaps.
  • Sheets and controls. Sheets have a 56px title bar on wide screens, a back chevron when opened from another sheet, grouped inset lists, round toggles, and segmented settings. On phones they keep their bottom-sheet grip and drag-to-close gesture. Text sheets have Cancel and the main action together at the bottom; all existing keyboard and back flows stay available. Buttons, fields, and search share the same rounded controls across the app.
  • Tiled windows and motion. On wide screens the sidebar and the session are Hyprland windows, softened: 8px gaps, rounded corners on a hairline, and a soft accent ring on the one under the mouse. Motion uses Omarchy’s Hyprland curves: windows pop in at 87%, sheets and popovers rise a little as they fade in, and leave quickly, new messages slide in, and notices count down until they go. While HADAL works, the conversation shows what it does; elsewhere a working session’s square steps around and a small dot pulses (both hold still with reduced motion). Appearance can turn tiling off (no gaps, square corners, no ring), reduce motion (or follow the system’s setting), choose Fluid motion (sheets, menus, the launcher, and notices arrive on a spring and leave quickly, over a frosted scrim; what they hold, and a tool group’s first steps, follow a step apart; a message sent lifts off from the message box; each new paragraph of HADAL’s answer fades in, and its caret breathes; a pressed button springs back; and folding the sidebar morphs the windows into place; Width and tiling change at once, as they are set from a sheet or the launcher, which morphs skip; Auto never picks it), change the conversation’s text size (13, 15, 17, or 20, or any size from 10 to 32 px typed in, in half pixels), set the width (Comfortable, which grows with a wide window, Wide, or Full: how much of the window the conversation and the message box take, per browser; phones stay as they are; a reply’s code block with long lines grows past the column, centered on it, where plain text and Markdown wrap in the column, and a wide table grows toward the window’s edge), set the density (Comfortable, Compact, or Tight: less room between turns, inside message cards and activity groups, between the conversation’s lines, in the session list’s rows, around the message box and the status line, in sheets and their lists, and in the top bar, while font sizes stay and rows on a touch screen stay a thumb tall), choose where Lantern opens (Lantern: Floating, a window in the corner or a phone’s sheet, or Board, its conversation in the session’s place), show HADAL’s thinking while it works, and show the reply speed under the message box.
  • The sidebar. A rail and the session list beside it. The rail holds HADAL (which goes to the home screen), Sessions (which folds the sidebar to numbered sessions and unfolds it again, as Ctrl/⌘+B does), the tools (Peek tiles, where the server has them, lit while they are on; Running now, with how many sessions work; the subagents board, with how many subagents work or wait, and a red mark when one waits for you or failed and nobody has dealt with it yet; People; Providers, for the owner; Theme), and you. The list has Priority, Recent, Folders, and Archived (an icon) in a segmented switch; sessions grouped by day or by folder, in groups that fold; and pinned sessions on top (per browser). Priority (since 0.27.0) groups sessions by what they ask of you, not by when they ran, and has no Pinned group: pinned sessions go by their state. Needs you holds sessions with a call waiting for approval (the longest wait first), then failed runs not seen yet, then sessions with failed subagents nobody dealt with; its tab and the rail’s Sessions button carry a warning-colored count of them, and its head offers Dismiss N failed when more than one failed. Ready to read holds sessions that finished since this browser looked, that are marked unread, or that have new chat (newest first; Mark all read in its head, and a button on a row’s hover). Working holds sessions where HADAL or its subagents work, a background command runs, or a request waits for a provider’s limit (a clock pill says when it clears). Quiet holds the rest, folded at first. Each row is one line. A call’s row has a Review button, which opens the call in the row (one at a time): the tool and its whole command, why the guard asks, and how long ago, with Deny and Allow. Allow shows only when the command is whole in the row (80 characters, one line), as on a peek tile; otherwise Deny and Open. An extension’s question can be declined from its row, or opened to be answered where it waits, a person who may not allow what HADAL did for someone else cannot allow it, and only people who can steer answer. After an answer the next call opens by itself with the focus on its Review, and the answered row glows in the group it moves to; an answer cannot be undone, and says so in a notice without Undo. A failed run’s row has a ✕ that dismisses it (the run counts as seen, like opening it) and a failed subagent’s ✕ deals with it, as the subagents board does; Dismiss and Mark all read say so in a notice that undoes them, except a subagent’s dealt-with failure. The open session’s row stays in its group while it is open, though opening it reads it, and moves when another session opens. Needs you shows six rows and a Show N more button. A search lists the matches, as on the other tabs. The tab a browser starts on is the one it kept (Recent when it kept none). Each session is one line: a square in its folder’s color whose shape says where the session is (stepping quadrants while HADAL or its subagents work, two bars while a call waits for you, a cross when its run failed, solid when it finished since this browser last had it open or is marked unread, and hollow once read or never run), its title (semibold with new chat, when marked unread, or when open, and the open one on the accent’s soft fill), and on the right a small pill with ⑂ and how many subagents work there (or failed with nobody dealing with it yet, in red), who else is there, a pulsing dot while HADAL works or a “needs you” pill while a call waits for you, a dot for new chat (or for a session this browser marked unread), and how long ago; its folder and model are in its tooltip. Hover a row to archive, pin, or mark it unread; on a touch screen, hold a finger on it (the row shows the press, and moving the finger scrolls instead) for a sheet of its actions; with a mouse, right-click a row for the same actions in a small menu at the pointer (Shift+right-click keeps the browser’s own menu, and Ctrl+click on a Mac still selects). They are: open it in a new tab, copy its link or its folder’s path, rename it, fork it (a new session with its whole history, through HADAL’s latest finished reply), start a new session in its folder, share it (an invite to only that session), pin or unpin it, move a pinned one to the top or bottom of the pins, mark it unread or read, extensions’ actions, select it, and archive or unarchive it. Pinned sessions keep the order they were pinned in, or moved to. Marks are per browser, like pins (a session’s square counts as read here when this browser opens it, or has it open in sight as its run ends; a failed run’s cross stays until its next run starts, and a restart forgets it), and opening the session clears its mark; the session’s menu marks the open one unread and goes back to the list. A session that another one started (Agent Teams) shows under it, with a branch line to it, as deep as they go (up to three steps of indent, so a phone’s list keeps its room), and the numbers (Alt+1…9, the folded rail) follow the tree; a pinned one stays among the pins, and in Folders one in another folder stays in that folder’s group. A session with linked sessions under it has a pill on its right with how many and a chevron: a tap folds them away under it, and again shows them; a fold holds in that browser across reloads, a folded row shows a dot when one under it waits for you or failed, and a search shows every match, folded or not. Someone who cannot see the session that started one sees it as a session of its own. A session moves up the list when it is renamed, gets a message, or HADAL starts work there for any other reason (a scheduled message, a subagent’s report, a message sent again after a restart), so the one that ran last is on top. Archiving says so in a notice that undoes it. Ctrl/⌘+click selects sessions, Ctrl/⌘+drag selects every row it passes (the list scrolls at its edges), and Shift+click selects a run; on a touch screen, after Select, taps select more rows or let them go. A bar under the list archives, unarchives, or pins them, and Esc (or back, after Select) lets go. Archiving does not move a session in the list, so one brought back returns to where it was. Drag its edge to resize the list (to 40% of the screen at most), or fold the sidebar to the rail with numbered sessions, like Waybar’s workspaces. Appearance → Switch sessions with → Tabs (off until you turn it on, in each browser) also puts the first nine of those sessions in a strip of segments above the top bar, each in its folder’s color: the open one fills, one that works pulses, one that waits for you shows in the warning color, and a tap opens it (the open session takes the ninth place when it is further down the list). Choosing Tabs folds the sidebar to its rail, and Sidebar unfolds it; Ctrl/⌘+B still folds and unfolds it either way. On a phone the strip is the bars alone, and the top bar names the open session. A rail with more buttons than room (a short window, many extensions’ buttons) scrolls as a whole, and its numbered sessions on their own, up to a third of the window; each fades the edge where more is. On phones the drawer and the list with no session open have the same rail. On wide screens with no session open, the home screen shows a fastfetch-style summary, buttons for a new session, the launcher, and Appearance, and the sessions to jump back into.
  • Your own layout. Appearance → Top bar buttons, Status line items, Places, Message box buttons, and Under HADAL’s answers list what shows in each place, the app’s own and extensions’ alike: a switch shows or hides each one, arrows move it, and Reset goes back to the defaults. The menu, More under an answer, Lancet Guard, and the connection’s warning always show. Saved in each browser, so a phone and a desktop can differ. Extensions can arrange these too (pocket.arrange), and what you choose wins.
  • Peek tiles. Off until you turn them on: the menu’s Peeks tile, Alt+P, /peek, the launcher, or Appearance switches them on or off in one step, and so do the rail’s Peek tiles button and the tiles button in the top bar, which shows wherever its pane is 480px wide or more (while off, it has a dot when another session waits for you). Then other sessions’ live work shows beside the one you are in: one tile per session that is working, waiting for an approval, has subagents at work, finished since this browser last had it open, or is pinned, plus the one you just left. Each is a card with the session’s folder square, title, and path, its last three lines (what was asked, what HADAL said, its tool calls and how they went, each in two lines at most, with a mark for who or what said it), the subagents at work there, and a footer with its state in words; it changes at most once a second, and only its square moves while the session works. Its subagents at work get a line each: the state square, the name, and what it does this moment (the call it runs, the one it waits to allow, or its words), from its own peek; a tap opens it. Those waiting for an approval come first, and a tile shows three at most (the strip one), so it stays a glance however many work: N more opens the subagents board at the first one left out. A subagent’s call waiting on its session’s tile says which subagent asks, and in the column the footer says when only subagents keep the session working or waiting (“3 subagents working”). Click a tile to open its session; the one you leave takes its place, so the tiles stay put. Allow or deny a waiting call right on its tile, which shows the whole command and why the guard asks; a command that does not show whole offers Open instead of Allow, which goes to the conversation it waits in. The ✓ on a finished one marks it seen. On wide screens the tiles are a column that slides in where People and the Browser panel dock when neither is open, with ▲/▼ N need you at its edge for waiting tiles out of view; narrower screens (and wide ones with a panel open) get a strip under the top bar that swipes sideways. Only the tiles on screen are live: once scrolling settles, the tab tells the server which, and the rest keep their last lines (their marks stay current from the session list); a tab in the background keeps none live, and with tiles off nothing is sent at all. Peeking is not being there: it does not show you in the session’s people.
  • Launcher. Ctrl/⌘+K (on a touch screen, the Launcher tile among the places, or the ⌘ button in the session search) opens a rounded search window for sessions, actions, and themes, with fuzzy matching. Search-type pills sit above grouped results with folder-color tiles, action icons, or four-color theme swatches; the selected row has a soft fill. All, Sessions, Actions, and Themes select the search type without clearing your words; >, @, and # still work. All starts with six recent sessions; Show all searches the whole session list, including archived sessions. Result counts show when a list is capped. Titles and folder or command details highlight matches, and sessions show their current, working, waiting, or archived state in a pill on the right. Arrowing onto colors shows them at once; Enter keeps them, Escape goes back. A theme that changes the look shows once chosen. Arrows, Tab/Shift+Tab, and PageUp/PageDown move the selection; Enter opens it. Close, Escape, a tap outside, or Back closes the launcher. Each opening starts with a fresh search and a focused input, even when it reopens during its fade-out. On a phone it is a sheet from the bottom edge, like the app’s other sheets: drag it down to close it. On a touch screen it opens without the keyboard, so the results stay in sight; a tap on its search brings the keyboard up.
  • The menu. The top bar’s ⋯ opens a 360px popover below it on wide screens, and a bottom sheet on phones. Three columns of rounded place tiles open Files, Changes, Browser, Artifacts, Chat, Find, Launcher (on touch screens), Branch, Lantern, and Peeks when available; badges show counts or news, and open places are tinted. Session actions, Subagents, and App rows have right-aligned hints and separate groups. App includes Keyboard shortcuts (?). Arrows, Home/End, and Tab move through the controls; Esc, Back, Close, or a tap outside closes the menu. Back from a sheet it opened returns to the menu.
  • Keyboard. Alt+1…9 jumps to a session (hold Alt to see the numbers), Alt+↑/↓ goes to the previous or next one, Alt+N starts a new one (where Ctrl/⌘+1…9 starts it in a favorite folder), Alt+B opens or closes the browser, Alt+E the Files tile, Alt+T turns Show thinking on or off, Alt+V starts or stops dictation, and ? lists every shortcut. On a computer, a session opens with the caret in its message box, ready to type; on a touch screen it waits for a tap, so the keyboard does not cover the conversation, and on a Mac a session opened with Alt+1…9 or Alt+↑/↓ leaves the box alone, so the next Alt shortcut still works (Option types characters in a box).
  • The conversation. A column of turns, made for phones. Your messages are cards with the sender’s avatar (the accent for yours, the sender’s color for someone else’s), who sent each and when; HADAL’s replies are plain prose at Appearance’s text size, streamed as they come (lists keep a quiet marker column; code, tables, and rich blocks are rounded cards). The Message time item under completed replies shows the time, with the date for earlier days, and can be hidden or moved in Appearance → Layout. What HADAL does between its words, its thinking and tool calls, folds into one line that says what it did and for how long (“Thought, searched, read 2 files, ran 1 command · 18s”), and opens, as a card, into a timeline: a line per call with a circle for how it went (✓ done, × failed or denied, ! waiting for an approval, a spinner while it runs, ⑂ for a subagent, ✦ for a thought) and what it came to (lines added and removed, lines read, matches, tests passed, an exit code, “needs approval”), and tapped, its input and output, with the diff viewer’s diffs for edits (line numbers, syntax colors, and the words that changed) and bash’s live output. The newest turn’s groups are open and earlier ones closed, unless Appearance’s Keep activity folded (off by default) keeps them on their line until you open one; a thought alone still follows Show thinking. An approval is a card at the end of its turn (the command, the reason, Deny and Allow; once answered, the call’s line says who allowed or denied it), and while HADAL works one line, a pulsing dot with the state in the accent (the warning color while it waits for an approval), says what it does (thinking, working, waiting for an approval, retrying) and for how long. With Show thinking on in Appearance (or Alt+T, or the launcher), the current thought shows above that line as it streams, and the thoughts in the conversation show their words once written (a thought alone in its group opens, and one on a timeline opens its step). A chevron before the line’s dot folds the live thought away, and again brings it back. Alt+T shows a short on/off notice, even while HADAL is idle. During tool calls the latest thought stays; a new response clears it until the model shares new thinking. Models that share none say so, rather than showing an old thought as current. A fold holds in that session, also over a reload, until you open it again; the setting is off until you turn it on, in each browser, and while it is off or folded the live thought is neither selected nor drawn. The reading area follows new words until you scroll up in it, and follows again for each new thought. While HADAL works, Steer, Queue, or Interrupt beside the model chip says whether a message steers the run, waits for it to end, or stops the run at once (the tool call too) and is sent first, while the queued messages stay in order with their senders and modes; Stop stops the run and holds the queued messages (since 0.28.1): a bar above the message box says how many, Send sends them in their order as the people who wrote them, and Show lists them, each with Edit for its sender and a × to withdraw it (anyone their own, the driver anyone’s), while subagents’ reports, and Lantern’s queue, are still withdrawn; Interrupt goes back to Steer after one use, or when HADAL stops before it was used, while Steer and Queue stay as chosen; Ctrl/⌘+Enter sends a message the other way while HADAL works (queued when Steer is chosen, steering when Queue is) and leaves the choice as it was, and on Interrupt or with nothing running it sends as Enter does (since 0.28.0); queued messages can be withdrawn, and your own, tapped open, can go back into the message box to change (Edit: its words above what you were typing, on a line of their own, with its files), move to Queue or Steer until HADAL reads it, or go now as an Interrupt (a second tap confirms; CONFIRM_INTERRUPT in web/composer.js turns that off), with these buttons in a quiet row at its right (since 0.28.0): that stops the run and sends only that message, while every other queued message, from everyone, stays queued in its order with its sender and mode (a restart in between loses or repeats none), and so do subagents’ reports; with take turns on, moving one to Steer or Interrupt waits for your turn at the wheel, as sending does; Stop (or Esc twice) stops the run. A run stopped in the middle of a tool call ends with a “Stopped.” line under its card. A session you go back to shows at once where you were in it, as this browser tab kept it, and what came while you were away rises in: at the bottom the conversation glides up to it, and scrolled up the row you read stays where it is. With Appearance’s Wait for updates (off by default), a session that changed while you were away shows only once its updates have come (or after 2.5 seconds). Scrolled up, a round button above the end of the message box goes back down to the newest message.
  • Getting around on a phone, with one hand. Back (the swipe, Android’s back button, the browser’s) goes back to where you were: it closes what opened last (a sheet, the menu’s next sheet back to the menu, a file back to the Files tree, back to Changes when the file was opened from there, the Files tile or the Browser panel, the drawer) before it leaves the session, and leaving goes to the session before or to the list, scrolled and searched as you left it. A session opened straight away (a link, a notification) has the list under it, so back does not leave the app. What you use most is a thumb’s reach from the bottom edge: the button beside the message box (or a swipe up from it) opens the places, a short sheet of big tiles (Files, Changes, Browser, Artifacts, Chat, Find, Branch, Peeks) with the session menu below them. On the conversation, swipe left for Files and right to go back; in Files, swipe right to go back. Each swipe shows a mark that lights when letting go will act. The top bar leads back to the list (counting other sessions that wait for an approval) and keeps only the buttons with something to say. Every control is a thumb’s size on a touch screen (small ones, such as a code block’s Copy or a reply’s Pin, keep their look and take a wider tap); a tap anywhere on the message box, off its one line of text, still goes to the text; a quick second tap does not land on whatever just slid in under it; tables in replies scroll sideways instead of crushing their columns; a diff’s header keeps the file’s name on a line of its own on a phone; and the command a peek tile asks about opens its session when tapped. The Files tile and the browser slide in as screens of their own and slide away on back, a file slides in over the tree, and the browser’s tools sit on their own row under the address. Drag a sheet down, or the drawer left, to close it. In an iPhone home screen app, which has no back gesture of its own, swipe in from the left edge to go back.
  • Reply to a passage. Select words in one of HADAL’s replies, on a phone or a desktop, and a Reply button appears by the selection (below it on a touch screen, where the system’s menu sits above). It puts the passage in a quote strip above the message box (tap × to drop it); the next message goes to HADAL with the passage first as a Markdown quote (up to 1,500 characters), and shows in the conversation as a quote block above your words. With Lantern on, Lantern’s orb (Ask Lantern) sits beside Reply in the same pill: it opens Lantern with the passage in a quote strip over its box, ready to type (as a board, Appearance → Lantern → Board, the quote strip of the board’s message box); your message goes with the passage quoted first, and shows with it as a quote block. Lantern also gets, unseen by people, which session the passage came from (its number, title, and folder: about on the submit request, a <pocket-context> part after the message that no view or resend shows), so it can read that session for more. In Appearance, Reply to a passage and Ask Lantern about a passage (both on by default) each turn their own button off in that browser; with both off, nothing shows.
  • Forks. Tap HADAL’s reply → More → Fork from here: a new session with everything up to that reply, which then goes its own way. Tap one of your messages to edit it and send it again, or send any message again, to the same model or another one (a retry). Each makes a new session that forks just before the message; the original stays as it is. A fork gets its own chat (with the pins of what it inherited), a link back to where it came from, and optionally a git worktree of its own.
  • A new context. Menu → New context (or /reset [note]): HADAL starts fresh and no longer sees the messages so far, while everyone still does. An optional handoff note carries over what matters.
  • Instructions for HADAL. Menu → Instructions for HADAL (or /instructions …): ground rules HADAL gets with every message in this session, such as “use pnpm, not npm”. Everyone in the session can see them.
  • Memory. Short lessons HADAL keeps across sessions: how to build and test a project, a gotcha it hit, a convention, a preference someone stated. HADAL proposes one with its memory tool (one or two sentences each, never secrets) only when a person asks for it, or when HADAL is sure that it will help in many later sessions, never for a one-off detail, and proposes fixing or forgetting one that turns out wrong; the owner approves. What HADAL reads (a web page, a post, a comment, a file) could talk it into a “lesson” that would reach every later session, so nothing HADAL saves, changes, or forgets counts until the owner says: Approve and Discard show right under HADAL’s memory call, with the words that wait and where they would apply (this project, or everywhere: every session and Lantern), and in the sheet. Approve approves only what you saw: if HADAL changed it since, the app says so and shows the new words. Lessons and project names are kept on one line, without invisible characters, so HADAL reads only what the owner saw. A change or forgetting HADAL proposes leaves the lesson as it was until then. Lessons you add yourself count at once. Each is for this project or for everywhere: a project’s lessons reach every later session in the same repository, its worktrees included (or the same folder, outside a repository), and everywhere’s reach every session and Lantern. Menu → Memory (its hint says how many apply here and everywhere) lists them in those two groups, each with who saved it and a link to the session it came from (when you may see it), with Edit and Forget; type one in to add it by hand, for this project or everywhere, or use /remember run the tests with make check or Remember… on a message. A guest’s lessons wait for the owner too, and a guest’s change to one in force is a proposal they can withdraw. What waits shows at the top of the owner’s sheet; the menu’s hint says how many. Lessons waiting take no room from the approved ones, and a person (or HADAL for them) may have 20 waiting at most. Only the owner, or whoever saved a lesson, changes or forgets it; viewers only read. A project keeps 40 lessons and everywhere 30; past that, forget one first. Changes show as lines in the chat. Turn it off in Extensions.
  • A lean prompt. A new session gets only the tools most conversations use. browser, subagent, background, schedule, watch_pr, ask_someone, and the design tools wait, and so do their prompt sections; the prompt lists them with a line each, and HADAL loads one with tool_search when a task needs it. On a model whose provider takes tool changes in the messages (Claude 4.8 and 5, and later), the tool joins the list and stays for the conversation; on any other, HADAL calls it from a codemode script, so the tool list and the prompt cache never change. Long guides, such as the design guide and the page-to-app messages of artifacts, are files that HADAL reads when it needs them. Turn the Tool search module off in Menu → Extensions to offer every tool every time. A test keeps HADAL’s own part of a plain session’s prompt under 14,000 characters (about 5,000 tokens: schemas and this prose run at about 2.75 characters a token), so it does not grow by accident.
  • Plan mode. The Plan chip by the message box (or /plan): HADAL reads files, runs read-only commands, and uses tools their extensions mark read-only, then proposes a plan; writing, editing, and other commands are blocked. Subagents inherit plan mode and explore under the same restrictions. Approve plan turns plan mode off and tells HADAL to go ahead; it waits until HADAL has answered since plan mode went on.
  • Scheduled messages. /schedule in 2h check the deploy, /schedule tomorrow 9am …, or /schedule every weekday 8:00 summarize CI, or Menu → Scheduled messages: HADAL gets the message at its time, in this device’s time zone, even with nobody watching, and the people in the session get the usual “HADAL finished” notification. HADAL can schedule its own follow-ups with its schedule tool. Each schedule is a durable task: a restart while it waits keeps waiting, one after its time sends at once, and none is ever sent twice. A schedule is cancelled, with a line in the chat saying why, once its person can no longer steer the session or a spend limit is reached. A repeat whose last message still waits in the session’s queue (HADAL is at work, or a run failed and holds it) sends no other at its next time: the time is skipped, a line in the chat counts the skips, and the Schedules sheet, the Running now board, and HADAL’s schedule tool list show how many there were (since 0.28.1). Limits (settable since 0.24.0): a session holds 50 schedules, a message 4000 characters, a repeat comes at most every 10 minutes (a short repeat can cost money in model calls), and in … reaches 366 days ahead. The owner changes each in Menu → Extensions, under Scheduled messages; a change applies at once, to new schedules only. Archiving a session that has repeating schedules says how many keep running there, with a tap to see them, and its Schedules sheet marks it as archived; nothing stops or moves (since 0.28.0).
  • Done when. /until npm test: after each of HADAL’s answers, the check runs in the session’s folder; while it fails, HADAL gets the end of its output and keeps going, for five checks at most. A bar above the message box shows how it stands. With Lancet Guard on, the check must be a command the guard allows outright. In plan mode the check waits until the plan is approved, and past a spend limit HADAL stops going on. A check cut off by a server restart is not run again, as it may have done part of its work: HADAL hears so, and its next answer is checked.
  • Mention files. Type @ in the message box to pick a file or folder from the session’s folder: @ alone lists its top, @src/ a folder’s own files, and anything else matches across the whole folder (@srvapp finds src/server/app.ts). Tab or Enter (or a tap) puts the path in, and a folder opens to its files. HADAL gets the message as written, @src/server/app.ts and all, and reads what it names; or tap Send them along above the box to send the files’ contents with the message, as Claude Code does (text files up to 100 KB each, images as images when the model takes them). The list is git’s in a repository (so ignored files stay out), and a walk that skips hidden and dependency folders elsewhere; your browser fetches it once and matches as you type, so suggestions never wait on the network.
  • Shell commands. !git status runs in the session’s folder, and HADAL sees the command and what it printed with your next message, as in HADAL’s terminal app; !!git status shows it only to the people here. While it runs, a row says so, with Stop (it is in Running now too). A restart while it runs does not run it again: its entry says it was cut off. With Lancet Guard on, a command from anyone but the owner must be one the guard allows outright. A command HADAL sees counts as its person’s message: HADAL works for them from there, as for a steer. These are a person’s own commands, not HADAL’s: plan mode does not hold them back. Stop one from its row, or from Running now on any device.
  • Background tasks. Since 0.24.0, HADAL’s background tool starts a command without waiting for it: a dev server, a watcher, a long build or test run. It runs in the session’s folder, reads what the command printed since it last looked (the last 20,000 characters at most), lists the session’s tasks and how they ended, and stops one: every process it started, politely, then by force after 4 seconds. A task runs while any process of its group runs, so a command that starts a server in the background and exits keeps its task running. A daemon that leaves the group (a build tool’s) does not keep it running: the task ends, says which processes it left, and a stop ends them too. When a task ends by itself, HADAL gets a message that starts with [background], with its exit code and the end of its output, as data; HADAL can start one without it. Tasks that end together go as one message, which joins the run in flight at its next pause rather than starting another turn (a steer, as a subagent’s report is): several ending cost HADAL one turn, not one each, and the answer it was writing keeps its place. A task someone stops is not told about. In the conversation, that message shows as a card each, a group for several: the task’s id, how it ended and how long it took, its command, and the last 8 lines of its output as printed, with the rest behind Show all (a person who types [background] themselves keeps their message as theirs). Each command runs detached from the server, with its output in a log in the data folder (background/, in 4 MB segments), so it goes on across a restart from the app; stopping the whole service (systemd) ends it. A durable task watches each one, and after a restart finds the same processes again by their pid, start time, and a marker in their environment. A start is reserved before its process starts, so a tool call run again after a crash never starts the command twice: the watch adopts the processes it finds by their marker; with none left, it tells HADAL the exit code the command left, or that how it went cannot be known. A start passes Lancet Guard as a bash command does, and plan mode blocks it (listing, reading, and stopping stay allowed). Each task shows in Running now, where anyone who may steer the session can stop it. While any runs, the session’s status line shows N in background, its row in the session list shows a terminal mark with the count, and the rail’s Running now button counts the session (since 0.25.0). A tap on that count opens Background (Menu → Background opens it too, also when nothing runs): the session’s commands, the newest first, and what the open one printed, as it comes. It asks again once a second while the task runs, so a dev server’s log scrolls by itself; a scroll back up stops it following, and Jump to the end goes on. A tap on another command in the row above the log switches to it. Stop is there for anyone who may steer. Watching a task takes nothing from HADAL: what it reads next stays where it was, so HADAL still gets every line it has not read. Past the 20,000 characters the sheet keeps, or past what the log still holds, it says how many bytes it did not show. Limits: 10 running at once in a session (the owner changes it in Menu → Extensions, under Background tasks); a log past 50 MB loses its oldest segments, whole, and a command that writes more than 200 MB in a quarter of a second, or more than 500 MB in 10 seconds, is stopped at once, and HADAL is told why; the last 20 ended tasks of a session stay readable. Sessions only: not subagents or Lantern. Linux only (it follows processes through /proc); it needs bash and split.
  • Extensions’ commands. A module can add commands to the message box (/clock-zone Europe/Berlin), which do something without asking HADAL: show a status, change a setting. They show in the suggestions with the app’s own, after them; a prompt template of the same name wins. What one gives back is a notice for you alone, or a card of plain text in the conversation for everyone there, which HADAL never sees and which does not change whom HADAL works for; Find in session and export include it. A conversation command is for whoever may steer (whoever drives, while people take turns); a global one is the owner’s, also while someone else drives; viewers get none. Each run is a durable task: sending the same text again after a lost reply gets the first run’s result, a restart never runs one again, and Running now shows and stops it. See Writing extensions.
  • A person’s role and the page’s scroll, for extensions. Since 0.27.0, two experimental members. host.roleOf(personId) gives a person’s role (owner, guest, or viewer), or undefined for an id that is not a person here. It reads the role that core already uses, so a module that guards owner-only things can ask whether HADAL works for the owner (host.requesterOf gives the id). The snapshot of host.browser has a scroll field, { y, viewport, height } in CSS pixels, the same numbers that HADAL’s browser tool shows as “scrolled 0 of 800px”. See Writing extensions.
  • Folded inputs. An extension can send a message the conversation shows as one line: a short label, and a summary when the message has one. Tap the line to read the message. Tap the message for its sheet, where Show, Fold, and Hide choose how every input of that kind shows in this browser: as a message, as the line (the usual choice), or hidden until Find jumps to it. A hidden message still starts its turn. An extension’s browser code can pick one for you until you choose. The queue shows the same line. Export keeps the whole message in a folded block. Find searches the label, the summary, and the whole message, however long; Copy text copies all of it. An input the extension stored as its own kind is not a message you can send again. Peek tiles and Lantern show the one line. The model still reads the whole message. Since 0.28.0.
  • Drafts on a shared browser. Message drafts, folded pastes, and uploaded files stay with the person signed in, across reloads and Back. Signing out clears them and resets other open tabs; theme and layout stay as they were. On Back, a cover checks who is signed in; Retry checks again if the server cannot be reached. Old unscoped drafts are discarded. Lantern keeps text across reloads, but its files only while the page stays open.
  • What you sent before. ↑ in the message box goes back through what you sent from this browser in the current session (↓ comes forward, then back to your draft), and Ctrl+R searches it. The browser keeps up to 200 entries per person across sessions, with duplicates removed only within your session. Signing out clears this history. What 0.27 kept moves to its person the first time 0.28 opens signed in as them (a sign-out before that clears it); older unscoped history is discarded.
  • Dictation. The mic beside Send, in the message box and in Lantern’s, dictates with the browser’s own speech recognition, in the language the browser is set to. Words show in the box as they are heard and stay once the browser settles on them: at the caret while the box has the focus, after its text when it does not, with a space where they meet; words typed meanwhile stay too, and a phrase still being heard when you type or move the caret elsewhere finishes where it is, the next one going to the caret. It never sends by itself: tap the mic again (or Alt+V, which dictates into Lantern’s box while Lantern is open, else into the session’s) to stop, read it over, and send. Sending, leaving the session, closing Lantern, or switching away from the tab stops it as well. What was heard is kept as a draft, like typing. While it listens the mic takes the accent, with a ring that breathes (still, with reduced motion), and the box says “Listening…”. On a phone while HADAL works, the mic takes Send’s place until there is something to send. It needs a browser with the Web Speech API: Chrome, which sends the audio to Google’s servers to recognise it, and Safari, on iOS too; where there is none (Firefox), the mic does not show. Browsers give a page the microphone only over https or on localhost, as HADAL is served through the Cloudflare Tunnel, Tailscale Serve, or on this device. A blocked microphone, silence, a missing microphone, or no network says so in a notice.
  • Folder locks. The owner can lock a folder to local models from the session list’s Folders tab. Sessions working in it can only use models on this machine, the LAN, or the tailnet, and stay that way. Every other session, and every cloud model, sees the folder as empty: file tools refuse paths into it, and commands run in a bubblewrap sandbox. See folder-locks.md.
  • SSH hosts. Menu → Hosts (the owner’s): other machines HADAL can work on, each with a name, an SSH destination (user@address or a Host from ~/.ssh/config), an optional folder and shell, a note for HADAL, and a mode. HADAL’s bash, read, write and edit then take host: "name" and run there over one SSH connection kept open (a control master under ~/.hadal/hosts/), with the system’s ssh, so your keys, agent and SSH config apply. Allow runs HADAL’s calls, Ask waits for someone to allow each one, as Lancet Guard’s questions do, and Off hides the host. Stopping a call, or its timeout, stops the command on the host too. Read first guards the host’s files as it does local ones, and a bash call that starts with ssh <host> is sent back to the host argument. Test connects and says how long the host took to answer. Each call that leaves this machine shows its host’s tag in the tool log (@gpu), and a group of calls says which hosts it used. The session’s readout (the rail on a desk, the line under the message box on a phone) names the host reached most recently; a tap opens Where commands ran, a newest-first log of bash, read, write, edit, and ! commands, with a count for each machine and a row that opens its call. With no hosts, the tools are as they were. Turn the feature off with SSH hosts in Menu → Extensions.
  • Long pastes. Pasting more than 20 lines puts a placeholder such as [Pasted text #1 · 240 lines] in the box; the message goes out with the text in its place.
  • Files at a tap. Inline code paths in HADAL’s replies (src/app.ts, app.ts:42), Markdown links to local paths (such as [config](/etc/app/web.env)), file mentions in messages, read/write/edit cards, and Changes open a viewer: text with line numbers and syntax colors (Markdown rendered too), images, and folders to browse, with @ Mention to put the file in the message box. While the Files tile is open, they open there instead of in a sheet. Opening a file that is already shown reads it again, so after an edit the viewer shows the new text; the old text stays on screen until the new text arrives. Someone invited to one session sees its folder only, and only the owner opens HADAL’s own folder and HADAL’s data. For the owner, Ctrl+click (⌘+click on a Mac) on such a path, or on a row in the Files tile, shows it in the file manager of the machine HADAL runs on (Files, Dolphin, Finder, Explorer), selected in its folder; so does the folder button in the viewer, with a mouse. It opens on that machine, not on the device you click from.
  • Files tile. Menu → Files (or Alt+E, /files, or the launcher; the folder button in the top bar, where the pane has room) shows the session’s folder beside the conversation on wide screens, where the Browser and People panels dock (one of the three at a time), and full screen on phones. Each session remembers which panel it showed (Files and its tab, Browser, People, or an extension’s, such as Design): going back to it, reloading, or opening it in another tab of the same device shows that panel again; Lantern’s floating panel stays as it is across sessions, and Lantern as a board opens with no panel beside it. Its bar has a switch between Files and Changes (with the count of changes), the folder’s path, and close. Files is a tree of the folder that opens as you go (changed files carry an M, A, or D, folders holding changes a dot, and arrow keys move through it), a Go to file box that matches across the whole folder as the @ menu does, and the file you pick, beside the tree when the tile is wide enough (600px) and in its place when not. Changes is the review below. Drag the tile’s edge to resize it. Esc closes a file open over the tree, and then the tile where it covers the conversation, as back does.
  • Find in session. Ctrl/⌘+F, /find, or Menu → Find in session: every message, command, and note in the session, earlier history included, newest first; tap one to jump to it.
  • Stop with Esc. Esc twice stops HADAL while it works.
  • Session titles. A session is named after its first message; a long first message, or one that runs a skill or prompt template (/skill:name, /review …), gets a short title written by the session’s own model (its cost counts as the session’s), unless someone renamed it first. A command’s title is written from what it sends, not only its name. A reply that is no title, such as a model thinking aloud or one cut off at its length limit, leaves the first message’s.
  • Prompt templates. HADAL’s prompt templates (~/.pi/agent/prompts/*.md, the project’s .pi/prompts/*.md, and the paths in HADAL’s settings) show up as slash commands: /review src/auth.ts sends the review template with its arguments filled in. HADAL’s skills do too, as /skill:name what to do: HADAL gets the skill’s instructions with the request. The skills setting of HADAL’s settings.json works as in the terminal app: -path and !pattern leave skills out, +path puts one back, and a relative entry starts from HADAL’s folder (since 0.28.0).
  • Project trust. A project’s own skills (.agents/skills) load only in a project HADAL trusts, as in HADAL’s terminal app. When a session’s project has some and nobody has decided, the owner is asked above the message box: Review says what trusting it loads, here and in HADAL’s terminal app, and offers to trust the folder, the folder above it, or not; Don’t trust answers at once, and Not now (×) puts the question off in that tab. /trust or Menu → Project trust changes the answer later. Answers are saved where HADAL’s terminal app keeps its own, so a project trusted there is trusted here too. HADAL has the skills from its next message. A project’s .pi/skills load until it is told “Don’t trust”, then stay out too (HADAL’s terminal app asks before loading them at all); the sheet lists both kinds and says what each answer does to them. Only the owner is asked.
  • Changes. The Files tile’s Changes tab (or the count of lines added and removed in the top bar, /changes, or Menu → Changes): every uncommitted change in the session’s folder as one review, file by file. Summary counts include new text files before and after staging (an untracked one over 2 MB shows no count); binary files have no line counts. Each file has a header that stays in view while you scroll its lines, with a fold chevron, what kind of change it is (M, A, D, or R in a small tile), its counts, and a Viewed checkbox button that folds the file; viewed files stay folded on this device until their diff changes again, and the summary says how many you have seen. Diffs show side by side when there is room and unified when not (Auto, Unified, or Split, as you pick, with long lines wrapped or not), with line numbers on both sides, syntax colors, and the words that changed within a line marked; a changed line is paired with its new version by likeness, not just position. The unchanged lines between changes are a tap away, a few at a time or all at once, read from the file as it is now (and only when it still matches the diff). Tap a line number to open the file there. A tree of the changed files (beside the diffs when wide, behind Files when narrow) jumps to one, a filter narrows them, and Agent only keeps the files the agent edited. Diffs load as they near the screen, a few at a time, and the review looks again a moment after HADAL moves on. Keys: j/k the next or previous file, n/p the next or previous change, v viewed, s the layout, w wrapping. From a file’s header, ↺ (tapped twice) puts it back as the last commit has it, or deletes it if it is new; HADAL is told, and it waits while HADAL works. A file with a merge conflict, or a rename, is left to git. Outside a repository it lists HADAL’s edits alone. Someone invited to one session sees the changes in its folder only.
  • Running now. Menu → Running now (also on the sidebar’s rail and in the launcher) shows, in the conversation’s place as the subagents board does, everything at work and everything scheduled in the sessions you can see. A Coming up timeline at the top has a lane per session: its scheduled messages as marks at their times (a diamond for a repeat, a ring for one that goes out once, amber while a spend limit or a lost right to steer holds it), a bar for how long the session has been at work, and a line at now; 24h, 3d, or 7d, it scrolls sideways, hovering a mark says what and when, and hovering (or tapping) a session’s bar shows the last message sent to it, which its run works on. Under it, filter pills (All, Running, Scheduled, Needs approval, Held) and a search, then one row per session: the session, with its folder, Busy, calls to approve, and Stop on one line under its name; Now, what is at work there from Pi Durable’s task graph (answers, tool calls, subagents, compactions, background tasks, shell and extension commands, Lantern’s follows and watches) with how long each has been at it, Stop where it can stop, and the session’s model and spend; and Schedule, its scheduled messages with the next time, the repeat in words, and how many times each went out. A schedule picked there or on the timeline opens at the side on a wide screen, under the rows on a narrower one, and in a bar at the bottom on a phone: its message, repeat, next time in its own zone, who set it up, its next five times, Open session, and Cancel; Needs you (calls waiting for approval, held schedules) and Next up stay beside it. Esc, back, or × closes it; it asks the server again every 2 seconds while it shows.
  • Watch a pull request. Menu → Watch pull request, /watch (or /watch 123, /watch <PR address>), or HADAL’s watch_pr tool, which it can start after opening a PR (HADAL only for its folder’s repository, by number; a person for any): until the PR is merged or closed, HADAL looks at it on GitHub every few minutes with the gh command signed in on the server, and tells HADAL in the session what needs doing, as a message sent through the watch for whoever set it up: checks that failed on its last commit (once all of them finished, with the end of each GitHub Actions log), conflicts with its base branch, and new comments and reviews. Only comments from the repository’s owner, and from organization members and collaborators whom GitHub says can write to it, count, and bots’ reviews (a member may only read, a collaborator only triage: gh asks GitHub, at most every ten minutes for each person, and GitHub tells only an account that can push there, so on a PR where yours cannot, such as a fork’s PR to someone else’s repository, only the owner’s count, and the watch says so); your own account’s (which HADAL posts as) only when they mention @pi in their own words (not in a quote or code), so HADAL never answers itself. Comments keep their lines (a suggested change is code), 30 at most in a message (read newest first, so a burst never hides the new ones); each is told once, and what does not fit in one message comes in the next; nothing goes while HADAL is busy there or, with take turns on, while someone else drives (the bar says it waits, and nothing counts as failed); and a watch sends 10 messages at most. While Triggers is off it asks GitHub nothing. A bar above the message box shows the PR, its checks, and how many messages went, with Stop. It ends, with a line in the chat and a notification, when the PR is merged or closed, when there is more to tell than it may send, after two weeks with nothing new, or after an hour of looks that failed (the bar says why). Logs reach HADAL fenced as data, which nothing in them can end early, and titles, check names, and branches come on one line, quoted, as data too. It needs gh installed and signed in (gh auth login) on the server, on GitHub Enterprise hosts too: a host other than github.com is used only when gh is signed in there (gh auth login --hostname <host>; a token only in GH_ENTERPRISE_TOKEN does not count), for HADAL, Lantern, and people alike, and HADAL names a PR by address only on github.com or its folder’s own host.
  • Watch a repository. Tell Lantern in plain words, such as “watch acme/api: when CI fails on main, fix it and tell me” or “when I open an issue labelled pi in acme/web, work on it”: it sets up a watch that looks at the repository on GitHub every few minutes with gh (no public address needed, unlike a webhook), and what is new there (issues and pull requests opened, CI failing on a branch, releases, someone writing @pi, as a word of its own, in a comment or an issue) comes to Lantern, or to a session you name, with your instructions; Lantern then acts on it: it starts a session in the repository (its checkout here, or a clone it makes in the data folder’s repos/), sends it the task, follows it, and tells you what came of it. A watch can be narrowed to a label, to issues assigned to you, or to a branch’s CI (mentions of @pi are not narrowed). CI is the branch’s own runs: pushed to it, scheduled, started by hand or through the API, or started by another workflow, in the repository itself, never a pull request’s or an issue’s (a renamed repository keeps working). Only repositories gh‘s account can push to can be watched or worked on, and issues and pull requests count only from the repository’s owner, and organization members and collaborators whom GitHub says can write to it (and bots’ pull requests), unless you turn on From anyone on the watch in Menu → Webhooks and watches (Lantern cannot); @pi always only from them. Lantern works in a checkout of a session you started, or in a clone it makes, which appears only once complete (a clone a restart cut off leaves a ~part-… folder, removed at the next clone of that repository); a different folder already where the clone goes is reported, never overwritten. While Triggers is off, watches wait and ask GitHub nothing; while Lantern is off, a watch to Lantern holds what it found, and its note says so. What came from GitHub is fenced as data, each thing is told once, ten in a message and twelve messages an hour at most (the rest come next), and a look that fails is tried again, less often each time, with the reason shown. Menu → Webhooks and watches lists the watches, to remove one; or ask Lantern (“what are you watching?”, “stop watching acme/api”). Lantern can also start a PR watch on a session (“see acme/api#12 through”), and HADAL’s own watch_pr takes a PR in another repository it can push to by its address or owner/name#12, telling HADAL to work in a checkout of it. Part of the Triggers extension.
  • Webhooks. Menu → Webhooks and watches: an address that other services (GitHub, a deploy, a monitor) post to, each post becoming a message to HADAL in a session, or to Lantern, as the work of whoever made the hook: their instructions first (“When a deploy fails, find out why and fix it”), then what was posted, trimmed of noise such as API addresses, and fenced as data. Lantern gets them as folded cards and decides what to do: start a session, message one, or tell you. A GitHub hook is signed: GitHub gets the address and, separately, a secret (its Payload URL and Secret), and a post gets in only with GitHub’s signature made with it, so whoever sees the address (the repository’s admins do, in its settings) cannot post as the hook. Unless a GitHub hook is made From anyone, what people outside the repository wrote does not reach HADAL (the repository’s people are its owner, and the organization members and collaborators whom GitHub says can write to it, asked through gh, which must be signed in to the host and able to push there, or else only the owner counts; bots count on pull requests and what is said on them, never on issues): a post an outsider started (their issue, comment, pull request, review, or discussion) is dropped with a 202 that says so; in a post the repository’s people started, the body of anything an outsider wrote in it (the issue under a member’s comment, a review thread’s comments) is left out, its title kept; a workflow run goes only when a branch of the repository itself started it (a push, a schedule, a manual or API dispatch, or another workflow), so one a pull request (a fork’s too), an issue, or a comment started is dropped, and so is one whose head repository GitHub does not show; workflow jobs, check suites, and check runs do not say where their run came from, so they are dropped too, as are a commit status on no branch of the repository (a fork’s commit) and a security advisory someone reported; and pushes, releases, and other posts that name no author go as they came. A hook for another service has the secret in its address instead: anyone who has the address can message HADAL as the hook’s person. New secret shuts out the old one, for an address or a secret that got out. Anything else gets 404. A post GitHub sends again goes to HADAL once, GitHub’s ping gets an answer and is nothing for HADAL, a hook takes 30 posts an hour of up to 5 MB each (the server reads eight at a time, two to one hook, each within 15 seconds; past that, 503 with Retry-After), a hook to Lantern answers 503 while Lantern is turned off, and a post that cannot go now (someone else drives, a spend limit) gets a 409 that says no more. Services must be able to reach the server: through a tunnel, a public address works for GitHub. People who can steer make hooks for the sessions they can reach; each sees their own, the owner every one. Choose Edit prompt to change a hook’s instructions, then Save or Cancel. Only the hook’s creator or the server owner can save changes, and they need steering rights. You can enter up to 2000 characters. Leave the instructions empty to ask HADAL to summarize what happened and whether anything needs doing. Saved changes apply to later posts. The address, secret, destination, and usage history stay unchanged. The watch and webhooks are the Triggers extension: turned off, watches wait and hooks answer 503.
  • Spend and limits. Menu → Spend shows a large total and usage bars (against a limit, or the largest spend in that group): what HADAL spent per person (the work goes to whoever asked for it) and per session, subagents included. The owner can limit a session or a person: past the limit HADAL takes no new messages there, scheduled messages and goals stop, a run that crosses it stops, and subagents’ reports wait instead of starting HADAL again: the subagents bar says why (the owner gets Raise it), and they go to HADAL together once the limit is raised, those that were in the queue when the run stopped included. The status line shows a session’s spend and limit; for a session with a limit that started linked sessions (Agent Teams), the spend it shows, here and in the sheet, is the team’s, as its limit counts it. Lantern’s row shows its limit too, and Lantern’s notices (such as a stop at its limit) show in its panel. Spend per person counts from the first start of a version with this feature; what was spent before shows for its sessions only.
  • A session’s folder. New (or Alt+N) opens a folder picker laid out as a desktop’s file dialog, in the folder of the session you are in (or the server’s folder, on the home screen): the path on top (tap a part to go back up, or its end to type a path), places at the side (Home, Computer, the server’s default workspace when it is another folder, and recent folders; pin the default workspace there to start every new session in it, in this browser, since 0.28.0), the folders where you are, and Cancel and Open at the bottom, with Own git worktree and Show hidden beside them. With a mouse, a click selects a folder and a double click goes into it; on a touch screen, a tap goes into it. Open starts the session in the selected folder, or in the one you are in, as the Folder: line says. Keys work as in a file dialog: arrows, Enter, Backspace to go up, letters to jump, / or Ctrl+L to type a path, Ctrl+Enter to open. The star on the Folder: line keeps that folder among the places as a favorite (tap it again to let it go). Favorites are each person’s own, saved on the server, and change at once on all their devices; while New session is open, Ctrl+1…9 (⌘1…9 on a Mac) starts a session in one of the first nine, with Own git worktree as it is set. New folder makes a folder where you are and goes into it; a typed path that is not there yet offers Create it. Menu → Working directory (or /cwd) moves a session with the same picker. Someone invited to one session cannot browse or make folders. The launcher lists these too: New session here for the folder you are in, and New session in and its name for each favorite; each starts a session there at once, without a worktree of its own.
  • Branch. The top bar shows the git branch the session’s folder has checked out, under the session’s title beside the folder, and follows it when HADAL or anyone else switches (in a terminal too, within seconds). Tap it (or Menu → Branch, the launcher, /branch, or the branch in Changes, which stays in sight however long the folder’s path) for the branch picker, down from it: the folder’s branches with the current one first, then the newest, each with its last commit and how far it is ahead of or behind its remote branch, and the remote branches it has no local branch for. Type to search; a name that is no branch yet makes one from what is checked out (spaces become dashes), and a remote branch becomes a local one that follows it. Uncommitted changes come along, and when git would overwrite them it says so and nothing changes. A branch checked out in another worktree is listed but switched to only there. Switching changes the files under HADAL, so as with moving the session to another folder it waits while HADAL works and, while taking turns, is the driver’s; HADAL is told. Viewers see the branch; someone invited to one session can look but not switch.
  • Worktrees. A new session (the New session sheet) or a fork (the message sheet) can work in a git worktree of its own: a branch, apart from the folder it came from, which starts with that folder’s files as they are. Menu → Worktree removes it (not while HADAL works in it); its branch stays.
  • From a terminal. hadal cli is a tab in a session, not a second app. It signs in with the data folder’s owner token, joins the session you used last (or asks, or takes --session 12), and draws the answer as it is written, each tool call on one line, a failed run in red, and approvals with a y or n. The run lives on the server: Ctrl+C detaches and prints the command to rejoin, and a server restart reconnects the stream and brings the whole view. A session the terminal made shows a terminal chip in the session list, and opens in the browser at /s/<id>. With no server on the port it starts one, and stops it on exit unless you pass --leave. hadal run -p "text" sends one message, waits, and exits 0, or 1 after a failed answer. Since 0.29.0 (cli.md).
  • Continue a HADAL session. A session of HADAL in the terminal can carry on here. The owner picks it from Continue a HADAL session in the New session sheet (or the launcher): HADAL’s sessions on this computer by folder, newest first, with a search through their titles, folders, and words, and for one its folder, model, and last messages. Continue in Pocket makes a new session in its folder, with its model when that one is signed in here, and its whole conversation to read. HADAL gets the context HADAL itself builds from the file: what a compaction summarized, and HADAL’s context edits, stay as HADAL had them. HADAL’s system prompt and extensions’ state stay behind, and nothing HADAL did runs again: a tool call that never finished gets a result saying so. The session’s file is only read. The list marks sessions already continued here, and says when HADAL went on in the terminal since.
  • Diagrams and math. Mermaid fences render as diagrams. Inline $…$, display $$…$$, and math, latex, or tex fences render as LaTeX. A closing $ must have no space before it and no letter or digit after it, so prices and text such as PATH=$HOME/bin:$PATH stay plain. The owner can turn Diagrams off in Menu → Extensions; the original text remains in the conversation.
  • Export. Menu → Export as Markdown (or /export): the whole history as a Markdown file, with tool calls folded into <details> blocks.
  • Any provider or model. Uses HADAL’s own model runtime and sign-ins (~/.pi/agent/auth.json): pick a model and thinking level per session from the menu that opens up from the model chip in the message box (arrows and Enter pick, with a search box when there are many models), and sign in to providers (API key or subscription) from an inline card in the Providers sheet; expired sign-ins come first with a warning pill. API keys cannot be empty or only spaces. A failed sign-in shows a short message, technical details folded away, and Start again. A provider search with no matches offers Clear search. HADAL’s enabledModels setting supplies the Scoped list, using HADAL’s own pattern matching (including wildcards and thinking-level suffixes). When any scoped models are available, [scoped | all] beside the Model heading switches between that list and every model with a configured sign-in; the active choice uses the primary color. Tab in the search box (or in the picker, when it has no search box) switches it too, also when the search has no matches; from the picker’s other controls, Tab moves the focus. On a touch screen, each choice takes a tap about 40px across. Each opening starts scoped; without a scope, when no pattern matches, or when /model … searches for models only outside the scope, it shows all instead. Switching the list keeps the search and changes no model or setting. The default-model picker has the same switch. New sessions start with the owner’s default model and thinking level: Make default under the thinking levels makes the session’s the default, and Menu → Default model (or the launcher) picks one without changing a session; without one, a new session starts with a trusted project’s model/thinking default, then the last model anyone picked, then HADAL’s global default. To use project defaults, Menu → Default model → Clear owner default: use project defaults, then last picked. A project pin needs both defaultProvider and defaultModel in the final session folder’s .pi/settings.json; defaultThinkingLevel is optional (off when omitted) and limited to that model’s levels. Thinking-only project settings do not change another source’s pair. Untrusted settings use normal fallback; a settings-only project appears in the owner’s trust flow. Trust affects only later new sessions, never the open one, and no project setting can grant itself trust. Invalid consulted trusted settings stop creation with a contained error, without a model swap. Known unsigned project models stay selected. Imports, forks, subagents, manual choices, and Lantern’s own conversation keep their previous behavior. Extra per-project skill/prompt paths and per-project run policy are not supported yet (project defaults) A model is always one a person chose: a default that is not signed in now stays the default (the chip shows it, and the first message says why it fails) rather than give way to another model, and with no model chosen anywhere a new session starts with none until someone picks one. A subscription sign-in that its provider will no longer renew (OpenAI’s refusing a refresh with invalid_grant, say) is found when the owner opens the Providers sheet, when a subagent on another model or Lantern is about to use one of its models, or when a run fails on it: the sheet marks the provider needs sign-in with what the provider said, the model menu marks its models, the owner (alone) gets a notice, and subagents on other models and Lantern use none of its models until someone signs in again. A session on one of its models, and a subagent on that session’s model, are not checked first: they try it, and their runs fail where you see them. Subagent models gets a full-height pane on the right of the owner’s Providers sheet on wide screens, and comes first on phones. It lists every signed-in model by provider, with a box to find one when there are many: each one checked is a model HADAL may start subagents and linked sessions on; with none checked (the default) they run on their session’s model, and with some checked they run only on those, never on the session’s own model unless it is checked (see Background subagents; subagentModels in ~/.hadal/config.json). A tap changes that one model alone, so quick taps, and two tabs at once, keep every choice. An allowed model that is not signed in now stays listed, marked, so it can be taken off. Star a model in Providers to save it as a favorite, independently of its subagent checkbox. All models / Favorites filters this list and the session/default-model picker; favorite models come after the current model and before other models in the picker, within the active scope. Favorites belong to the signed-in person in this browser and survive reloads; they do not sync between devices.
  • Multiplayer. Any number of browsers can watch and steer the same session live. The status line under the message box shows how many are here, how full the context is (after a compaction, an estimate marked ~ until the next answer measures it), the cache hit rate, the cost, and a pill that says whether Lancet Guard is on (it opens Extensions). Reply speed in Appearance (or the launcher) adds how fast the last answer came: its tokens per second and how long its first token took (a response delivered in one buffered flush has no speed, only that wait). It is off until you turn it on, in each browser. On a touch screen, a tap on the line says in a notice what its items mean. On a narrow screen the line keeps to one row where it can. Where it does not fit, it gives up these in turn, only as far as it must: the speed’s long words (“42 tok/s · 1.2s”), “1 here” while you are alone, the word “guard” (the shield stays), the word “context” (the meter stays), the cache, and the wait for the first token. “Sign in another device” makes a one-time invite link, a QR code, and a short code to type on the other device’s sign-in screen. The owner can tick Sign in as me (owner) to sign their own other device in as the owner, with the owner’s notifications, instead of as someone new. Messages show who sent them.
  • Profile pictures. Menu → Your name (or the round button at the bottom of the side rail) has Add photo and Remove photo. The picture is cropped to a square and shrunk in the browser, kept in the data folder, and replaces your initials in the people lists, the rail, and on your messages for everyone who can see you.
  • Working together. The top bar shows who else is in the session (an avatar with a mark that greys when their tab is in the background, and how many more), and “Alex is writing to HADAL…” warns before two people steer at once. The People panel opens beside the conversation on wide screens, where it takes the Browser panel’s place, and as a sheet on phones. Its header counts the people here; the roster shows their online or away state, typing, and role. A Take turns card starts or turns off shared driving with the same permissions as the menu. It has:
    • Chat for the people in the session, which HADAL does not see. Your messages are right-aligned accent bubbles; other people’s are left-aligned, with their name and time above. Quotes sit above the bubble, and the pill-shaped message box keeps a dismissible quote strip. The latest pin stays above the chat. Type @ to mention someone (they get a notice wherever they are), tap Discuss under a reply of HADAL’s to quote it, and tap a chat message to Send to HADAL, pin, or copy it. Changes show up here as activity lines (“Alex stopped the run”, “Tanner switched the model to …”, “Alex allowed the bash call: …”), and as a notice to everyone else in the session.
    • Pinned replies and chat messages.
    • Notes: one shared page per session. This browser keeps your unfinished edit for your account and session through tab or panel changes, switching sessions, and reloads. Signing out clears it. Save, Cancel, or Use theirs clears that edit, not a newer draft from another browser tab. Saving over someone else’s newer save still asks first, including after you return to a draft. If browser storage is blocked or full, the draft stays until a reload and a warning asks you to save first.
    • Under HADAL’s answers: emoji reactions, Discuss, and Pin. Queued messages show who queued them. Approved or denied tool calls show who decided.
  • Take turns. Menu → Take turns: one person drives and only they send to HADAL or change its settings. Others tap Ask to drive, the driver hands over, and anyone can take the wheel when the driver has left (the owner always can). Anyone who can steer can still stop a run.
  • Roles and invites. An invite can let someone steer or make them view only (they read, react, and chat, but cannot send to HADAL, approve, or upload). It can cover every session or only this session, and lasts 15 minutes, an hour, a day, or a week (Expires after); either way it works once, and a restart keeps it. Changing what the sheet’s invite grants, or how long it lasts, ends the one it showed; New invite makes another and leaves the one before working. Only the owner can make an owner invite (Sign in as me (owner)): it makes no one new, but signs the device in with the owner’s token, so it has full control, works once, and always expires in 15 minutes; rotating the owner token (--rotate-token) signs out every device signed in that way, and ends owner invites not yet used. Menu → People lists everyone, who is online, and when the others were last here. The owner can change what each person may do or remove them. The session list shows who is in each session, and a dot marks new chat messages.
  • Notifications. Menu → Notifications turns on push notifications for a device: HADAL finished (or HADAL stopped with an error, with why: a run that failed with no answer of its own, as when its context could not be compacted, says so too, and the open session keeps a “Run failed” line until the next run starts; since 0.28.1), HADAL needs approval, someone @mentioned you, or a chat message in a session you take part in. You only get them while you are not looking at that session. An approval can be denied from the notification, and allowed there when the whole call fits on one short line. The home-screen icon counts the sessions that need you. They need an https address: the Cloudflare Tunnel or Tailscale Serve, or another tunnel such as ngrok in front of This device only (--access local). On iPhone, add HADAL to the home screen first. The server signs pushes with its own keys in ~/.hadal/push.json. In a host around HADAL (an app such as HADAL GUI), they come as the app’s own notifications, with no https address needed, while the app runs (docs/embedders.md).
  • Built-in browser. Menu → Browser (or Alt+B, /browser localhost:5173, or the globe in the top bar while a page is open; on a phone, a dot on the places button by the message box says so) opens a real Chromium page that runs on the server: beside the conversation on wide screens, full screen on phones. Type an address (localhost:5173, example.com), or (the owner) tap a row under Running on this machine on the start screen; a green dot in the rounded address field marks an open page. Tap, drag to scroll, and type into the page (the keyboard button sends text from a phone). The size button switches between fitting the panel (the page follows the panel when it changes size), desktop, phone, and tablet sizes, and the console button shows the page’s logs and errors, with a warning-colored error count. HADAL’s browser tool uses the same page: it opens addresses (dev servers, HTML files on the machine, any site), reads a snapshot of the page’s text and controls, clicks, types, takes screenshots it can see, reads the console, and runs JavaScript in the page, while everyone in the session watches. Each session has one page, in a browser context of its own; links that open a new tab open there instead, and dialogs are accepted. Anyone in the session can watch; using the page takes steering rights (and the wheel, while take turns is on), the addresses people open show in the chat, and only the owner opens files from the address bar. The browser reaches what the server reaches, localhost and its network included, and Lancet Guard does not check it (see SECURITY.md). A restart closes the pages, and each opens again at its last address and size. Where the panel covers the conversation, Esc closes it, unless the page has the keys (then Alt+B does). In plan mode HADAL may look at pages but not click, type, or run scripts in them. It needs Chromium, Chrome, Brave, or Edge on the server (or HADAL_BROWSER); the owner can turn it off in Extensions, which closes the panel too.
  • Artifacts. The artifact tool publishes versioned HTML pages, Markdown documents (shown in the app’s theme), or SVG images. Give it content, edits against the latest version, or a path to a UTF-8 text file on the server (up to 2 MB). A path can be absolute, start with ~/, or be relative to the session’s folder. The file is copied into a durable version, not linked: changing or deleting the source does not change the artifact. For a new artifact, .html, .md/.markdown, and .svg infer its type; a path update keeps the existing id’s type. A page can carry a bundle of files (since 0.26.0). assets adds up to 200 entries, each { name, path } (a file on the server, binary allowed, copied and not linked) or { name, content } (UTF-8 text): images, fonts, stylesheets, scripts, data files, or more HTML pages. A name is a relative path of letters, digits, dots, underscores, and hyphens, up to 200 characters, with no . or .. segment. A new version keeps the assets of the one before it; an entry with the same name replaces one, and removeAssets drops some. One asset is up to 5 MB, and one version’s assets up to 20 MB. A relative URL in the page (assets/logo.png, about.html) loads from the bundle in the viewer, in an inline card after Run, in the artifact’s own tab, and in a published link. Each file is sent with the sandbox’s policy, nosniff, and a type from its extension (an unknown one is never HTML). Assets are stored once for each content hash. A private page reaches its assets through a signed address that lasts 12 hours, so a page left open longer loads new assets only after a reload. group (a lowercase slug) puts artifacts together as variations of one design, and kind (page or deck) says what a design is; Design uses both. Artifacts from before 0.26.0 work as they did. inline: true (since 0.28.0, one tool; before it a second tool, artifact_inline, sent almost the same schema again on every request) is the same store for HTML only (content or edits, no path, no type but html): the call shows as a card in the reply, between HADAL’s words, instead of a link (see Rich replies). HADAL’s guide says when to use which: the card for a small interactive piece that belongs to what it is explaining, the viewer for a whole page, a game, a Markdown document, or an SVG image. An id made by either tool takes versions from both, but an inline: true call refuses an id that is Markdown or SVG, and the artifact tool cannot change the type of an id that has had an inline version (a card names a version, and the page comes by the artifact’s type): HADAL uses a new id for that. HADAL’s guide mentions inline only in sessions whose artifact tool has it (Lantern’s has not), and says that only a direct call shows a card. Sessions from before 0.28.0 keep their artifact_inline calls and results as stored, and still show them as cards, also in forks; the model is shown those calls as artifact with inline: true in its requests, so it does not repeat a tool it is no longer offered. The Artifacts sheet lists every version in a rounded card grid; opening one shows the sandboxed viewer (or its own tab). The list does not run artifacts as previews. Artifacts cannot reach the app or its cookies. In the viewer, an HTML artifact can ask for two things, which HADAL knows how to build: a follow-up, a message it puts in your message box (after your draft, starting with which artifact it is from, with any selection as JSON) for you to read and send, never sent by itself, and only after you tap the page (a real tap or key press in the page, up to 5 seconds before: the page cannot fake one, and window.focus() does not count; each tap serves one follow-up), at most every 2 seconds (the viewer then closes, so the box shows); and saved state, up to 16 KB of JSON that it saves for you alone, so its filters and inputs come back after a reload, a restart, or on another device. Saved state stays out of HADAL’s context, belongs to the artifact rather than a version, and starts empty in a fork; a page that changes the state’s shape names a new schema, and the old state then reads as none. Only people who can write to HADAL get a follow-up; a viewer gets a notice. HTML run from a reply (▶ Run) can offer a follow-up too, but keeps no state. Only the artifact’s first page is heard: as it starts, it opens a private channel to the app (a script the server puts first in an HTML artifact’s page when a frame asks for it, and in the frame page that runs a reply’s HTML), and everything goes over that channel, so a page the frame goes on to cannot use it and an answer still on its way never reaches it. schema is a string (a number is refused, for a get and a set alike). The bridge is for HTML artifacts, not Markdown or SVG. Neither works in a published link or an artifact’s own tab. A session keeps up to 300 saved values; a person removed from the app keeps theirs until the session goes. Share in the viewer publishes one artifact to anyone with the link (/pub/<token>), with no sign-in: the page is the artifact’s own sandboxed one, so it still cannot reach the app, and its address is the whole of the access. A bundle’s files are at /pub/<token>/<name>, checked on every request: ending or expiring the link closes every file, a link that follows the newest version follows its assets, and a pinned link keeps its own. A published page gets no bridge. A share either stays at the version it was made from or follows the artifact’s newest, and either lasts until it is ended or closes after a day, a week, or a month; End closes it at once, and the address then answers nothing. Only people who steer and see every session publish or end one, or see its address, never viewers or someone invited to a single session. The sheet lists the session’s links still in force, with the address to copy; it starts at the server’s public address when a tunnel gives one, else at this browser’s.
  • All artifacts. The rail’s artifact button opens every artifact in every session you can see, grouped by session (archived sessions are left out), newest first. Each row shows its type, size, age, and the number of its current (latest) version, as v3 / 3 of the versions it has (v1 when it has one). A tap opens that version in its session. The launcher’s All artifacts opens it too, which is the way on a phone. The list is GET /api/artifacts.
  • Browser use, per session. HADAL uses the browser only in a session where a person turned it on: the Browser switch by the message box, beside Plan. Off, the browser tool is deferred, so the model is offered neither it nor its guide and a local model spends no context on it; people still use the Browser panel. On, HADAL asks first, as the owner sets in Extensions → Browser: before a site no one allowed in the session yet (allowed once, it stays allowed there), before this machine, the local network, the tailnet, or a file (or never, or always), before clicking or pressing Enter on something that signs in, submits, sends, buys, or deletes, and before every script, which the card shows (or never). Blocked sites are never opened, always-allowed ones never ask. HADAL never types into a password or payment field: it asks the person to type it in the panel. A Deny stops the call, and HADAL is told not to try another way.
  • Tool search keeps the prompt lean. Since the 0.28.2 merge, upstream’s tool search replaces the fork’s lean prompt: tools HADAL seldom needs wait until HADAL searches for them, and on a model whose prompt cache a changed tool list would break, the list stays as it is and HADAL calls the tool from a codemode script. The subagent tool waits too, except in a session that runs a router: picking the router loads it, so the router spawns its stages at once (a router session from before 0.28.2 gets it on its first search, or by picking the router again). The lean prompt’s measurement still holds: in six days of real use (27,163 tool calls), bash, read, edit, and write made 96.5% of the calls, while the deferred tools made 0.4% and cost about 9,700 of the 15,900 tokens a request carried before anyone typed.
  • One GPU, many sessions. Requests to a llama-swap server take turns by model, so sessions and subagents on different local models stop swapping the card on every turn: requests for the model on the card go on, those for another wait and then go together, and after an answer that called tools the model keeps the card for 10 s, for the same run’s next turn. Nothing waits longer than 60 s for its turn. Role names (agent, router) count as the model they stand for, read from llama-swap’s /v1/models, which loads nothing. While a model loads or a request waits for its turn, the status line says so (“loading NInfer-Qwen3.8-27B…”, “GPU busy”). When someone starts writing in a session whose local model is not on the card and the card is idle, HADAL asks llama-swap to load it, so the answer does not wait for the load. Any other provider is untouched. HADAL_GPU_LANE=0 turns the lane off.
  • Design. On by default (Menu → Extensions turns it off). A canvas beside the chat for HADAL’s HTML designs: prototypes, screens, one-pagers, and slide decks. A design is an artifact, so versions, the sandbox, saved state, and share links work as they do for any artifact. Open it from the rail, the places, Open in Design in the artifact viewer, or /design-open (with an artifact’s id to open that one). On a wide screen the panel sits beside the chat; on a phone it covers the chat, and the way back keeps the canvas as it was. Since 0.26.0.
    • The canvas. A picker of the session’s HTML artifacts (newest first, variations together); the page in the artifact sandbox, at phone (390×844), tablet (820×1180), desktop (1280×800), or a custom size; fit or zoom, and a light, dark, or theme backdrop. A new design that HADAL makes opens by itself, unless you are in a mode, have a draft, or it is a variation of the open design.
    • Versions. A timeline of every version, side-by-side compare of two, and Go back to this one: it makes a new version that is a copy of the old one, assets included, and does not ask HADAL. A repeated tap finds the version it made.
    • Comment. Tap an element and write a note: it becomes a numbered pin. Comments are shared with everyone who sees the session, last across restarts, and belong to the version they were made on. Send N to HADAL puts one message with all open comments (each with its element as JSON) in the message box for you to send. Only the author or the owner changes or deletes a comment.
    • Edit text. Click text in the page and change it. The changes gather in a list, and Apply N with HADAL puts one message in the message box.
    • Tweaks. A page can declare knobs (colors, sizes, choices, switches) and the Tweaks tab shows them as controls that change the page live. Values are each person’s own, kept for each design. Keep these puts them in the message box so that HADAL writes them into the design.
    • Variations. Artifacts of one group show as a grid of live thumbnails. Use this one puts a message about it in the message box.
    • Export and share. PNG, PDF, PPTX (decks), and an HTML zip, from the menu. The file is written in the session’s exports/ folder and the browser downloads it. Share a link is the artifact viewer’s Share. There is no Canva export.
    • What HADAL does. Its guide, src/server/guides/design.md, which HADAL reads before it makes or changes a design (a short prompt section, only while the module is on, points to it), gives HADAL an order of work, after Claude Design’s (since 0.27.0): one round of questions when the work is new or unclear, then a start from what exists (the design system, the code, the screens) rather than a mock from scratch, a first version early, iterations, a check, and a short reply. A screen that exists is redesigned from itself: HADAL reads its code and data first, makes version 1 the screen as it is today (in its place in the app, compared with a screenshot of the real one when it can get one), and then changes it in new versions, within what the code supports; a change that needs new data or server work is marked in the design and named in the reply, and a different direction becomes a new artifact in the same group. The product’s own type sizes, spacing, and density win over the guide’s craft defaults. It also gives HADAL a page skeleton and craft rules: one HTML artifact for each design, data-pid on meaningful elements, a tweaks manifest of 3 to 8 knobs bound to the system’s tokens, assets for images and fonts, variations as a group of 2 to 4 artifacts, a link to ds/tokens.css when the project has a design system, and a check with design_preview before it replies. When the project has a system, the prompt section carries a summary of it (roles and components first) as untrusted project data. Its tools: design_preview renders a version in a private headless Chromium (never the browser people watch) at mobile and desktop sizes, or the sizes asked for, and returns screenshots and a short report (see Checks); its options are checks (on by default), tweaks, colorScheme, page (another page of the bundle), and actions (hover, click, or focus on a selector before the screenshot). design_export writes PNG, PDF, PPTX, or an HTML zip, by default as exports/<id>-v<version>.<ext>, and refuses a path outside the session’s folder; it also takes tweaks, a custom viewport, and, for a deck’s PNG, slide (a number, or "all" for a zip of every slide). A page’s PDF is as wide as its viewport, and PPTX slide images have twice the pixels. design_system reads, scans, and changes the project’s design system (see The design system). The private renderer serves the bundle on a loopback address under a random path and gives Chromium no sign-in; other requests go through host.fetchPublic, so a design reaches only public addresses. Renders run 2 at once, and more wait their turn; each has 90 seconds.
    • The design system. A project’s design system lives in .pi/design/ in the session’s folder: tokens.json (W3C Design Tokens, DTCG: groups, $value, $type, references such as {color.blue.500}, tiers for primitives, semantic roles, and component tokens), tokens.<mode>.json for each other mode (dark, high contrast, a brand), components/<slug>.html (a component specimen with its states), and guidelines.md. HADAL checks it (broken or circular references, raw values in semantic roles, declared contrast pairs in every mode) and builds dist/: tokens.css (:root, a [data-theme] block for each mode, and a prefers-color-scheme block), tailwind.css (a Tailwind v4 @theme, with utilities such as bg-surface and text-primary), tokens.<mode>.resolved.json (DTCG, one for each mode), tokens.studio.json (Tokens Studio), tokens.resolved.json (a compact summary), and components.css. A design that links ds/tokens.css, ds/tailwind.css, or ds/components.css gets the current files as assets when HADAL publishes it, a snapshot kept with that version. HADAL’s design_system tool has the actions scan (a structured draft from the project’s style files: colors in every CSS syntax, roles, the type, spacing, and radius scales, shadows, breakpoints, and dark mode, from CSS custom properties and rules in CSS, SCSS, Less, and page style blocks, Sass and Less variables with literal values, Tailwind’s @theme and a tailwind.config theme read as a literal, and DTCG, Style Dictionary, and Tokens Studio JSON files, and Figma .fig files, whose variable collections and their modes, aliases, and text, effect, and paint styles it reads offline with no account and no network, while the file’s layers, components, and images are not imported (the report says so); a browser renders the project’s pages to fill in what the files leave out), init (from a scan or given tokens; it refuses to replace a system unless asked), resync (bring a saved system up to date with code that changed: it adds the tokens the code now defines and the system lacks, keeps every token people wrote or changed, and lists the values that differ and the tokens that are no longer in the code (as not seen in this scan when the scan read only part of the project); without apply it only reports), set, validate, compile, component, guidelines, and the 0.26 read and write. A resync records where its tokens came from in $extensions["com.hadal"].source on tokens.json, so a system carries its own provenance. A project with only .pi/design-system.md (the 0.26 format) keeps working.
    • The System view. The first row of the design picker (or /design-open system, or the launcher’s “Open the design system”) shows the system: Colors (role cards with contrast badges first, a live sample card, and the palette as ramp strips in a folded group), Type, Spacing, Radii, Shadows (each with its value), Motion (durations and easings that play), Components (every state, in a frame that runs nothing and loads nothing), and Guidelines. A section’s count is its role tokens; the palette and component tokens show their own counts inside it. Modes show one at a time or side by side, and a mode’s value says whether it is its own or inherited from the default. People who steer change a color, a size, a time, a weight, a font, an easing, or a shadow’s layers in place, or link a token to another; the open design shows each change live when it uses the system’s variables. The editor lists every contrast pair of a color (an exempt pair shows as exempt, not as a failure). Undo and Redo step through the changes, Discard gives them up, and Save writes the files and the generated CSS with no run of HADAL (it refuses a change that the checks refuse, or one made on a system that changed meanwhile). The menu publishes the documentation page as a design, exports the generated files as a zip, and adds or removes a mode. People who only view see everything and change nothing. Focus mode hides the conversation for wide work. On a phone, the canvas fits the screen’s width, and until a size is chosen it takes the size of its panel. The Design module loads only a small shell at app start; the workspace and the System view load when first opened.
    • Checks. A design’s Check tab and design_preview render the page on the server and judge only what the author’s CSS sets, never the browser’s defaults. They report values that are not the system’s (colors, fonts, and sizes, each with the exact CSS edit and the nearest token of the matching role), contrast (WCAG 2.2 AA, judged only where the background is certain), non-text contrast of focus rings and icon buttons (3:1), tap targets (an error under 24 px, a warning under 44 px), sideways overflow, image alt text, heading order, a missing lang, form controls with no label (a placeholder is not a label), links, buttons, and widgets with no accessible name, no main landmark, fonts that did not load, a missing viewport tag, missing data-pids, elements with no visible focus style, long motion with no prefers-reduced-motion rule, and author-set input text under 16 px on a phone. A check runs in any mode of the system. The tab follows the mode and size on the canvas, puts a pin on each element, and Send to HADAL puts one message with every finding in the message box. Fix N exact matches rewrites literals that equal a token exactly to var(--token) and saves a new version with no run of HADAL. On a phone, the tab starts as a bar with the counts, so the page keeps most of the screen.
    • The documentation page. The System view’s menu (and design_system) makes a documentation page of the system as a design: navigation, a filter of names and values, and links to every section; color roles with their values, contrast, and copy buttons for the CSS variable and the Tailwind class; the contrast pairs in every mode (exempt pairs labelled); palettes, type specimens, spacing, radii, shadows, and motion demos; component state grids with their code; guidelines; every token with a column for each mode; and a list of the generated files with how to use them. Component states are drawn in shadow roots after an allowlist sanitizer, under a nonce-only script policy, so they paint in screenshots and PDFs and run nothing. It runs in the artifact sandbox with no network, so it can be shared with a link or exported like any design.
    • Decks. A deck is a page with <meta name="pocket-kind" content="deck"> and its slides as <section class="slide">, written at 1920×1080 (<meta name="pocket-slide-size" content="1280x720"> changes that). The canvas shows one slide at a time, scaled to fit, with a slide strip, a full-screen present mode, arrow keys, and swipes, and the page needs no navigation script of its own. PNG, PDF, and PPTX exports use the same slide size. PPTX slides are images with the slide’s text as speaker notes, not editable shapes. A deck opened in its own tab or published shows one slide at a time too, and printing it gives one page for each slide.
    • For page authors. data-pid names an element for comments and pins. The tweaks manifest is <script type="application/json" id="pocket-tweaks">[…]</script>, an array of up to 40 knobs { name, label?, type: "range" | "color" | "select" | "toggle" | "text", value, min?, max?, step?, unit?, options? }. A name that starts with -- sets that CSS custom property on :root; any other name reaches the page as a pocket:tweak event on window. The app speaks to the page through the bridge’s pocket-inspect, pocket-edit-text, pocket-tweak-set, pocket-highlight, and pocket-goto messages, and the page answers with pocket-picked, pocket-text-edited, pocket-tweaks, and pocket-deck. Only the app’s inspector can send those answers, and the app checks their shape and length before it uses them.
    • Who. People who see every session load the module; people who steer comment, edit, tweak, go back, and export; viewers read the canvas, versions, and comments. Someone invited to one session never loads it. While Take turns is on, only the driver writes.
    • Limits. The static Preview of an inline card does not load a bundle’s assets until you tap Run. The inspector adds about 36 KB to each HTML artifact page. A second HTML page inside the frame has no bridge, and neither has a page that navigates itself, so comments, edits, and tweaks go quiet there. Shadow DOM and nested iframes cannot be picked. A comment shows only on the version it was made on. On a phone, a 1280 px page at “fit” is small: use zoom or a custom size.
  • Agent Teams. Off until the owner turns it on in Menu → Extensions. HADAL starts work in a linked session: an ordinary session in the list, under the one that started it, with its own settings and life (stopping or archiving one leaves the other as it is). It works in the same folder, or in the folder an extension names with cwd (since 0.19.0; no worktree of its own) with the same model, thinking level, and agent settings, but none of the history, plan mode, or budget, so HADAL gives it all it needs in its first message. With Subagent models (Menu → Providers) empty, it runs on the starting session’s model; with models checked there, it runs only on one of them: the session’s model when that is checked and HADAL names none, else a checked one that HADAL must name (the refusal lists them), and HADAL may name only a checked one. A linked session’s reply to the session that started it goes whatever model that one runs on. A message to a linked session on a model that is no longer checked is refused. HADAL may name any thinking level, also one above the session’s (a level the model lacks becomes its nearest lower one, or its lowest); a model that cannot be used now is refused, with no session made. HADAL’s tool, team, starts linked sessions, lists them, and sends them messages, both ways. Since 0.28.0 a message lands at its session’s next pause (steer: false waits for its run), and when a linked session’s run ends, its final answer goes back by itself to the session that started it, as a card from its address (or why it failed, or that it was stopped), so the lead asks for nothing, polls nothing, and wakes when the answers come; everything waiting in a session’s queue goes in together at its next pause, so ten reports cost one turn, not ten. Before 0.28.0 an answer did not go back by itself, and each waiting message took a turn of its own. A message from a linked session shows as a card of its own, not as a person’s message (since 0.28.0): its head names the session and has Open when you can see it (“A session you cannot open” when you cannot), its text shows as Markdown, as HADAL’s replies do, with its first line leading, and a long one folds to its first lines with Show all. HADAL takes it as a request, not as a person’s order. Since 0.19.0, linked sessions write their messages and replies to each other in the language of the person they work for: ASD-STE100 (Simplified Technical English), at about 80% adherence, when it is English (in other languages since 0.28.0); their answers to messages from people stay as they were. The links above the transcript (Started from, Linked session, and past three, +N more) open the others. Each start and message acts as the person HADAL works for, with their access, take turns, plan mode, and spend limit: a session someone cannot see stays out of their reach, and its name out of the list HADAL gets, unless everyone in the session sees it. A link gives no access: someone who sees only the new session does not learn where it came from. A team has bounds: a linked session starts none, and the budget of the session that started the team covers what all of them spend. No count limits how many linked sessions a session starts, and no count of messages between them stops them (since 0.19.0; before, a session started 10 at most, and they stopped after 20 messages with no person writing). A subagent cannot start them.
  • Session tags. Off until the owner turns it on in Menu → Extensions. Shared labels on sessions, which show as chips under each row’s title. To tag sessions, hover a row and click its tag button, hold a row (on a touch screen), or select rows (Ctrl/⌘+click, or Select) and choose Edit tags, or use Edit this session’s tags in the launcher: add a tag, take one off, then Save. Tags are lowercase, up to 32 characters each, and 10 on a session at most; a change to several sessions saves on all of them or on none. The filter button in the session search, or a tap on a chip, shows only the sessions that have every chosen tag; the tab keeps its filter until it closes. New in the Sessions head, while the filter is on, gives the new session the chosen tags, so it stays in the list. The list’s search and the launcher find sessions by their tags too. People who steer every session edit tags, viewers see them and filter by them, and people invited to one session do not see them. Each person sees only the tags of the sessions they can see. Since 0.20.0; it uses the session list’s extension points, which other extensions can use too (browser-modules.md).
  • Ask someone. Off until the owner turns it on in Menu → Extensions. When HADAL needs an answer that only someone outside the chat can give (a manager, a client, an expert), Ask someone under one of HADAL’s answers puts a request in the message box, and HADAL writes the question with its ask_someone tool so that it stands alone: the background, the question, the options, and its recommendation. Nothing goes anywhere yet: the draft waits in Questions for others (the status line under the message box, the session menu, or the launcher), where you edit it, Copy text, or Create link for a day, a week, or a month. The link opens a page with no sign-in, the question, and a box for one answer and an optional name; then it closes. Copy link, Copy message, and Share… (on a phone) send it on; End link takes the page down. When the answer comes, a notice says so, and Give to HADAL puts it in the message box, quoted and marked as someone else’s view, for you to send. People who steer every session use it; viewers and people invited to one session do not. Since 0.22.0.
  • Waiting out provider limits. When a provider’s limit stops a run (a 429 or an overload, a Claude or ChatGPT usage window, a model’s cap), HADAL waits for it to clear and goes on by itself, instead of failing. It waits until the reset time the provider gave (or, with none, tries again at growing intervals), then sends one request to find out; if that gets an answer, the sessions waiting on the same limit go on, one at a time. The live line says what HADAL waits for, when it tries next, and when the limit resets, with Retry now; Stop or Interrupt end the wait at once, and a message you send meanwhile waits in the queue as always. The session’s square is a hollow square with a dot, also on peek tiles, and a subagent’s row says it waits. One push goes out when a wait of ten minutes or more begins (Menu → Notifications → Waiting for a limit). It survives a restart. The owner sets the longest wait (Wait for a limit in the Providers sheet: Off, 1, 6, 12, or 24 hours; default 6): what waits is any reset time within that longest wait, load with no time given (an ordinary 429 or an overload), which is tried again at growing intervals for up to 30 minutes, and, since 0.24.0, a plan’s usage limit with no time given (OpenAI subscription sharing, Z.ai, MiniMax, OpenCode Go), which is tried again about every 15 minutes, up to the longest wait, counted from the first failure across restarts. What fails the run at once, with the reset in the message where there is one: a window of days (Claude’s 7-day window, a Codex window of over 300 minutes), a reset after the longest wait, a usage limit that names a window of days (daily, weekly, monthly), with or without a reset time, and a sign-in that expired or billing. Retry now sends one try each 30 seconds. It never picks another model. Since 0.21.0.
  • Prompt cache keeper. On by default; HADAL_CACHE_KEEPER=off turns it off. While a run waits on a tool call, HADAL replays the last request that ended in a tool call, with maxTokens 1, at 90% of the cache’s lifetime or 10 seconds early, whichever is sooner. It does so only when the expected savings are more than the cost. It keeps the 5-minute cache only: no idle warming, no 1h cache, no request with cacheRetention none, and no Anthropic thinking set by a token budget. It stops on a real cached request, when the run ends (Lantern’s too), on an error, at shutdown, or after 30 minutes. A warm request does not wait for a provider limit. Its usage counts in pi.usage and in the spend of the person and session that were paying when it started, and spend limits are checked before each warm. A restart drops the warm timers and does not replay warm requests.
  • Background subagents. The subagent tool spawns named subagents that work in their own conversations while you keep talking. Since 0.28.0 the tool waits for tool search, as browser does, so a session that starts none does not pay for its prompt. On a model without tool changes in the messages (all but Claude 4.8 and 5, and later), HADAL then starts subagents from a codemode script: the conversation shows each start as a line of that script, without the subagent’s card, and the subagents board still opens each one. HADAL writes its tasks for subagents in the language of the person it works for, in ASD-STE100 (Simplified Technical English) when it is English (since 0.19.0; in other languages since 0.28.0), and asks for their reports in that language too. Since 0.20.0, HADAL’s instructions say when to start one (independent parts of the work, a long or noisy job whose result alone matters, a review or second opinion before it calls work done, or when you ask for subagents or parallel work), when to do the work itself (one or two tool calls, work that needs the conversation), and what a brief holds (the goal, paths, what is known, limits, and the report wanted: answer first, then evidence); the result of a start tells HADAL to carry on with its own part. Linked sessions (Agent Teams) get the same kind of guidance: they suit long or separate jobs that you may want to follow, and subagents suit short helpers. Open one to watch it or talk to it. Its answer goes back to the main agent at its next pause (after a tool call; when it is idle, after a moment, so answers that finish together go together); answers that arrive meanwhile wait together and go as one message, shown as a card each, so many subagents cost the main agent one extra turn at most, and wait in its queue as one row: one that arrives while that row waits joins it. A subagent that fails says why, and one that is stopped says so, to the main agent too, so it does not wait for an answer; a message sent to it while it worked, which its failed run never took, is withdrawn, and the main agent is told to send it again. A subagent thinks at the session’s level unless HADAL names another, of any height, such as a cheap model at its highest (a level its model lacks becomes the nearest lower one it has, or its lowest, and the main agent is told), with an optional tool list. HADAL picks no model on its own: until the owner allows models for subagents (Subagent models in the Providers sheet), a subagent runs on its session’s model, and the subagent tool offers none and refuses one HADAL names. Once some are allowed, a subagent runs only on those: with no model named, on the session’s model when that is allowed, else HADAL must name an allowed one (the refusal lists them, and its instructions show each model’s thinking, context window, and price where known, with a line on matching the model to the work); one that is not allowed is refused, as is one whose sign-in expired, with word to tell you rather than pick another. A subagent on a model the owner does not allow (any longer), the session’s own included, gets no more work; a level raised by hand in its conversation stays as work is sent. One whose model or provider failed (an expired sign-in, a model that is gone or refused, a quota or rate limit) says so with its model, on its card and in a notice, and the main agent is told to stop and tell you, never to start it again on another model. A subagent’s status line shows what the subagent itself cost, with no limit: the limit is its session’s (since 0.28.0).
  • Lantern. The owner’s assistant, “HADAL in Pocket”, over every screen. It stays out of the way until called: Alt+A, the rail’s orb, the Lantern tile in the places, the launcher, or /pip (/pip what needs me? asks at once); a small mark shows in the corner only while it works or has something new. It opens as a rounded, shadowed window anchored 16px from the bottom right corner on wide screens (on a short screen it is shorter, never over a session’s top bar; on a screen narrower than about 1600 px it covers the right end of a session’s message box until it closes) and a sheet from the bottom on phones, over whatever is open, which stays as it was; Esc, back, or a swipe down closes it. Appearance → Lantern → Board (Floating is the default, per browser) opens Lantern’s own conversation in the session’s place instead, as a session: its top bar with the model, its menu, every step, and a × at the end of the bar, with Lantern’s own message box at the session’s width (the panel’s box, without a session box’s slash commands, @ mentions, ↑ history, or Steer and Interrupt). The sidebar stays, the rail’s orb shows it open, and every way in opens it there; back, its ×, or the orb again gives the place back to what was there (home after a notification’s link), and Running now, the subagents board, an extension’s page, or another session simply take its place. Changing the setting while Lantern shows moves it to the new place. Lantern has one message box, so a move changes nothing in it: the same words, files, passage to ask about (Ask Lantern), and message on its way show in both places. Lantern looks after the other sessions: it lists and reads them, starts sessions (in a folder, a worktree, with a model) and messages them, stops and archives them, schedules messages there, watches your GitHub repositories and pull requests and acts on what happens there (see Watch a repository), starts sessions in a repository by name (its checkout, or a clone), and follows runs until they end, when a report comes back to it and it says in a line what came of it: pushed as a notification when you are not looking (instead of the session’s own “HADAL finished”, which is held back only while Lantern is on, not held back by a spend limit, and following that run, and for a minute after its report), which opens Lantern over whatever the app shows. A request to do hands-on work authorizes Lantern to start or message the session it needs; you do not have to say “start a session.” Lantern delegates to that session’s tools instead of refusing because its own tools cannot edit files or run commands. Lantern’s model and new sessions’ default model are separate: if a worker has no model, choose one in that session. Menu → Default model sets the model for future sessions. It is dependable before fast: it acts on a session (messages, stops, archives, follows its run, schedules there, or watches its PR) only after it looked at it in the last 15 minutes (read it, started it, or had a report from it), its tools say how a session stands after they act, and it says what it checked and what it did not; tasks it sends that touch code ask for the checks and tests. It never picks a model: which one is yours to say, as below. A session’s last answer comes to Lantern, in a report or a read, in parts of up to 12,000 characters; when it is cut, a note after the fence says how many characters are left, and Lantern’s session_read tool takes answerFrom (a character) to read the rest of that answer, part by part. What sessions say reaches Lantern fenced as data, never as instructions, and what sessions, guests, or GitHub named (titles, waiting calls, scheduled messages, PR titles) comes on one line, quoted, as data too. It makes at most 60 messages, follows, schedules, and watches (its reminders to itself included; a schedule it could not make does not count), and starts at most 20 sessions, an hour (counted since the server started). It can deny a call waiting for approval, never allow one. When one of its own calls waits for approval, the panel says so, and Review opens its conversation, where it can be allowed. What it sends shows as sent through Lantern for you; it reads files but changes none and runs no commands, handing hands-on work to sessions. It writes what other agents read (its messages to sessions, scheduled messages, and the instructions of its watches) in its person’s language: ASD-STE100 (Simplified Technical English), at about 80% adherence, when it is English (since 0.19.0), the same short, plain style in another (since 0.28.0), so a session it worked in reads in your language; it asks each session to answer it in the same language and style, and a session answers a message that came through Lantern (scheduled ones too) in the language of that message. Lantern’s answers to you stay as they were. Your messages are accent bubbles, and one you send while it works shows at once, dimmed, with when Lantern reads it (at its next pause, or when it finishes for a queued one) and Withdraw, until Lantern takes it; completed steps have small green checks, and reports are rounded cards that expand to show more. Its replies link the sessions they name; Board (above) shows every step, and Start fresh gives it a new context. The panel’s header measures context against Lantern’s compaction limit, capped at the model’s context window (or just that window with As sessions do), and follows changes in Extensions; Compact there (or /compact, or /compact with what to keep in mind, typed to Lantern) turns its older messages into a short summary, the newest few kept as they are; and by default it compacts when a session would, at HADAL’s own thresholds (since 0.22.0; before, above 60k tokens). To keep it smaller, the owner picks 40k, 60k, or 100k in Extensions under Lantern (pipCompactAt in ~/.hadal/config.json): then it compacts itself once idle above that, and waits for 8k tokens more before it does again, while a session’s thresholds stay as a backstop during a long run. An owner who chose a limit before keeps it. Lantern’s summary is its own: written from its conversation with what sessions said, webhooks’ posts, GitHub’s events, and what files and scripts gave back left out, so none of their words come back as Lantern’s notes; it keeps its person’s preferences, what is still open, and what it follows and watches, which live on the server and carry on as they were. A summary that cannot be written leaves the context as it was: Compact’s notice says why, and after one of Lantern’s own that failed it waits 30 minutes, or 8k tokens more, before it tries again. A summary costs a request, counted in Lantern’s spend. It is a conversation of its own, kept out of the session list and out of everyone else’s reach (nobody else can open it or write to it), and durable like the rest: follows outlive a restart. Its cost shows in its person’s Spend sheet, and its follows in Running now. Turn it off in Extensions: it stops what it was doing (a compaction too), takes no messages, its own conversation’s box included, and meanwhile its follows’ reports and its own scheduled messages wait, webhooks to it answer 503, and repository watches to it hold what they found, all going on once it is back. Lantern follows its owner’s standing instructions in pip.md in the data folder (since 0.28.0, customizing.md).
    • Resize. At widths of 768px and above, drag Lantern’s left edge, top edge, or top-left corner to resize it, with the bottom-right corner fixed. The same zones are finger-sized on touch screens. Its size is remembered for each account in this browser and fits back inside the viewport when it shrinks. Phones use a bottom sheet with rounded top corners and a grabber; the model, context meter, and all three header actions stay available.
    • Choose Lantern’s model. Tap the model chip in Lantern’s header to use the existing model and thinking picker for Lantern alone, from Home or over a session. The chip and picker choices are disabled while Lantern works. Saving also checks that Lantern is idle. This header path does not change the last picked model for new sessions; as a board, the top bar’s model keeps a session’s behavior. With no model, the welcome offers Choose a model to use these suggestions, which opens the same picker. Suggestions that send at once wait for a model; those that put text in the box stay usable, and choosing a model keeps the suggestions visible.
    • Files and images in chat. Pick files with the attach button, paste files or images from the clipboard, or drop them into Lantern’s message box. Remove attachments before sending; upload status shows while they are saved. You can send files with text or on their own. They belong to Lantern’s conversation, not the session behind the panel. Images have previews and open full screen; other files show their names. As in normal chat, supported images go directly to an image-capable model and other files are given as saved paths. Lantern does not choose a different model for you. Draft attachments stay when you close and reopen the panel, or move Lantern to the other place.
    • Pending memories. The Pending memories strip above Lantern’s message box (in the floating panel, and above its box when Lantern opens as a board) shows how many lessons wait for your approval across all projects and everywhere; with none waiting it does not show. Tap it for the approval list, a sheet as tall as the Memory sheet; Menu → Memory in a session lists that project’s lessons and the ones to approve there. Open it from any screen, including Home, to approve or discard new lessons and proposed edits or forgetting. Each says where it applies; approval still checks that the words match what you saw. This queue is the owner’s only. HADAL and guests cannot use it to approve lessons or reach another project’s memory.
  • Routers. A router checks each task (its fit check: answer a question directly, or pick the stages the task needs, never adding one) and runs it through its stages, each a fresh subagent on the model and effort you choose. The rail’s Routers button (on a phone, the Routers place) opens the router editor. HADAL ships Standard: Plan, Implement, Review, Fix (only when review finds problems), and Ship (a branch, a push, and a draft pull request; never a merge). A router is a list of stage cards: each a template (Plan, Implement, Review, Fix, Ship, or Custom) with words you can change, the skills it reads first (type / to pick any skill installed here), its model (the router’s by default), and its effort; or, under Advanced, one of your own role files. Add, move, and remove stages; the router’s prompt is written from them. New router starts as Standard on this session’s model. Saving as standard replaces the built-in one; deleting brings it back. Router prompts already on this machine (~/.hadal/routers/*.md, Oh My HADAL’s ~/.omp/agent/router/ROUTER*.md) show apart under From this machine, read-only, and only where they exist; make an editable router from one to change it. Use in this session, or the model picker’s Routers group, runs a session as a router; the model chip shows its name, and picking a plain model ends it. On a phone the list and one router take the screen in turn.
    • It never picks a model. It starts a session on one, or names one in a task, only when you named that model yourself, and not one whose sign-in expired:
      • in your own words to it, in its current context, with the whole name in one message. A name beside Chinese, Japanese or Korean text needs no extra spaces. A short name of two characters, like “K3”, counts only with its family’s name in the same message, “Kiwi’s K3”: alone, it reads as an ordinary code. A whole model name or id of two characters needs its provider in that message too: “o3 on openai”, not just “o3”.
      • or in the instructions of the webhooks and watches to it that you set up. A watch Lantern set up, a webhook’s post, a watch’s event, or what a session wrote does not count.
    • When the model you named is at two providers, you say which one pays. Part of a provider’s name picks nothing, after “on” or anywhere else, and Lantern asks you which one instead: “on copilot” does not pick GitHub Copilot, and “build the server with Go” does not pick a provider called “Acme Go”. Name it:
      • by its whole name or id, right after “on”, “via”, “through”, “with”, “using”, or “from”, in one message: “on GitHub Copilot”, “via github-copilot”.
      • or, when Lantern asks which one, by answering with just its whole name or id as your next message: “GitHub Copilot”.
    • Some words name a model more loosely than you may mean:
      • a short name of three characters or more, without its family’s name: “an OpenAPI v3.1 spec” names a signed-in “Acme V3.1”.
      • everyday words that are a model’s name without its first word: “deep research” names “X9 Deep Research”, and “the 2.5 flash drive” names “Nova 2.5 Flash”.
      • a longer name HADAL has no model for: it names the model it starts with. “zeta-5-ultra” names zeta-5, while “zeta-5-nano”, a model HADAL knows, does not.
  • Returning from a subagent. A subagent’s conversation has Back to main session above the message box, for viewers too, so the way back stays in sight however long the conversation is. The top bar says which session it is a subagent of, and carries a small tag with the model it uses, which a tap opens in the model sheet. The composer hides its model chip on a phone while the subagent works, so the tag keeps the model in sight; when room is short, the parent’s title is cut first.
  • Subagents bar. Above the message box while a subagent works or has a report on its way: a dot per subagent, how many work and how many are done, and what the newest one does now. Tap it (or the count in the top bar while one works) for a row each: what it was asked, what it does this moment (the call it runs, or what it writes), for how long, the model and thinking level it runs on (with ↗ when that is not the session’s model), whether its report is on its way, Stop, and a tap to open it; a call waiting for approval says so, and a failed one says why, and “dismissed” once someone dealt with it (see Subagents board). Done, stopped, and failed ones are counted apart, failed ones first. Once none works it stays until you put it away (×), and comes back, counting only the new ones, when one starts again. Viewers see it too, without Stop.
  • Subagents board. The rail’s ⑂ shows every subagent in every session in the conversation’s place: a soft state-colored square each, in a rounded row per session, those that need you first, and under each row a sub-tile for every subagent at work there, with its state and the model it runs on, so a glance says what each is doing without opening one (a tap picks it for the detail card, staying on the board; a double click, or double tap, opens it). A row shows six sub-tiles (three on a phone), and the selected one wherever it is; Show N more shows the rest. Working squares pulse; the selected square has a ring, and filtered-out squares fade. A proportional state bar and filter pills with counts say how many wait for an approval, failed, work, were stopped, or are done, and let you filter by one; a search finds a subagent by its name, what it was asked, what it does now, or why it failed. Needs you lists those waiting for an approval and those that failed with nobody dealing with it yet. The selected subagent’s detail card shows its session, how long it has worked (or when it ended), what it was asked and does now, and its error, with Open (Review the approval while it waits), Stop, and, for a failure, Dismiss (off while it is asked; when the subagent failed again since, a notice says so and the newer failure stays). A failure is dealt with once someone who can steer dismisses it, or opens the subagent from the board, its row in the subagents bar, its report or the tool call that started it, or the session menu: it stays on the board as failed (“Failed · dismissed”, without the “!”), and leaves Needs you, the rail’s red mark, and the session’s red ⑂, for everyone, after a reload or a restart too. A message someone sends it, like later work from HADAL, settles it by what it comes to, after a restart too: answered, the subagent is done; failing again, it needs someone again. The session’s activity says who dealt with a failure, whichever way. Hover a square to see what it does in the line under them; the arrows move the focus between squares and Enter opens the one focused; Esc, back, or × closes it, and on a phone a swipe right does too. Archived sessions show only while a subagent works there. A session keeps its 24 newest finished squares (done, stopped, or failed and dealt with); older ones are counted, as +N after its squares and in the bar’s numbers. On a phone it is one column, Needs you first, with bigger squares and a bar at the bottom for the one selected.
  • The queue and the bars above the message box. Messages waiting for HADAL show above the message box, with how many wait whenever not all of them show. With the bars there (the subagents bar, plan mode, a goal, a PR watch, a trust question, who drives), they take less than half of the room they share with the conversation when the bars fit in it, and the conversation keeps the rest, staying where you were reading. The bars always show whole; the queue and the subagents’ list take what the bars leave, and scroll. Unfolding the subagents bar gives the list the room, one whole row at least: the queue shows fewer rows, or folds to how many wait. With several bars on a short screen, the plan, goal, watch, and trust bars keep one line each, their words cut short and their buttons whole. When even that does not fit (a phone on its side with every bar up), the stack scrolls, and the conversation keeps a quarter of the room, or a few lines, whichever is less.
  • Live editing. No build step. Edit a file in web/ and every open browser reloads. Edit a file in src/server/extensions/ and it is reinstalled into the running server (a running tool call finishes on the old code). For core server changes, use Restart server in the menu: running work resumes after the restart.
  • Lancet Guard. Off by default: the owner turns it on in Menu → Extensions. If specpi-lancet-guard is installed in Pi and turned on there too, its rules and classifier check every bash, write, and edit call, and each command HADAL starts in the background. A “risky” or “unsure” verdict shows Allow/Deny buttons to everyone in the session; the answer survives restarts. The classifier needs the LANCET Nano model, a one-time download of about 109 MB. While it is missing, the guard row in Extensions says so and the owner gets a Download button there: it fetches the pinned release from GitHub, checks it against fixed checksums, and installs it where HADAL’s own /lancet-guard setup puts it, so HADAL uses it too. Progress shows in every tab, and nothing downloads it without that button. A guard that is on without its model blocks the bash calls its local rules leave open, and the status line shows “guard failed”.
  • Codemode. On by default, like "+codemode" in HADAL’s defaultTools. The codemode tool runs JavaScript the agent writes in a QuickJS sandbox with no Node, files, network, or timers; its only capability is calling the agent’s other tools as tools.<name>(args). Use it to batch independent calls, chain them, or filter large output before it reaches the model. Each call a script makes goes through the same checks and hooks as a direct call, so Lancet Guard judges it and can ask for approval. store() and load() keep values per conversation. Its card shows the script, each call it made, and the output. Since 0.28.0, Codemode has a Mode setting in Menu → Extensions, for the owner and all sessions, as HADAL’s codemode.mode. On (the default) changes nothing. Only declares only codemode, tool_search, artifact, ask, and memory (the cards of the last 3 need a direct call). HADAL calls every other tool only from scripts (except a drop-in tool whose callers names "model"), also the tools of a module that is turned on later, and a tool that a session loaded before. The codemode section of the prompt lists each of these tools with its description and parameters, up to 3,000 tokens (HADAL’s default codemode.inlineBudget), and then the names of the others. Tools that wait for tool_search still wait, and a tool that it loads goes through codemode. A subagent that gets one of these tools also gets codemode. One limit: a subagent started in On mode with a list of tools without codemode cannot call a tool in Only mode, because the setting cannot see each session’s list.
  • Share to HADAL. With HADAL on the home screen (Android), share a link, some text, or a screenshot from any app to HADAL: pick a session or a new one, and it goes into the message box with the files attached, ready to send.
  • HADAL’s questions. Since 0.27.0, HADAL’s ask tool asks the person it works for 1 to 4 questions on a card at its call, when a decision changes the work and only they can make it. Each question has a short tag, the question, and 2 to 4 answers as buttons, each with a line under it; a tap chooses one (or several, where the question allows it), and Or type your own answer takes a typed one instead. Send is on once each question has an answer; Decline answers nothing, and HADAL goes on with its best judgment. HADAL waits for the answer, for hours if it must, and after a restart the same card asks again. HADAL gets one line per question (Storage: Local storage), and the call shows each question and its answer to everyone in the session. The card shows, and notifies, as an extension’s question does (below). It runs in plan mode, the guard never asks about it, and subagents do not have it. The Ask module, on by default (Menu → Extensions).
  • Questions from extensions. An extension can ask the person HADAL works for on a card, as an approval asks: a sign-in, a one-time code, a key, or “solve the CAPTCHA, then tap Done”. Only that person can fill it in (the owner, when nobody is known); anyone who can steer can Decline. What is typed goes to the extension, never to HADAL, into the transcript, or to the other people here, and the call’s line says Answered or Declined by whom. A notification goes to that person alone, and opens the session: the fields are filled in in the app. Extensions can also hide values (they show as [label] in command output, tool results, and in a message to HADAL that someone pasted one into), give commands environment variables, and use the session’s browser page. Since 0.22.0 (docs/extensions/people-values.md).
  • Approvals need someone else. An owner setting under Lancet Guard in Menu → Extensions: a guest cannot allow a risky call that their own message led to. Someone else has to; the owner always can.
  • Docs for agents. HADAL’s system prompt says where HADAL’s documentation is (index.md), to read when someone asks about HADAL itself: changing how HADAL works without code, writing extensions (with tested examples), and changing HADAL’s code while it runs, checked first on a throwaway copy (node test/serve.ts).
  • Drop-in extensions. Put your own extension module (a .ts file that default-exports (host, web) => Extension, or a list, or nothing) in ~/.hadal/extensions/. It shows in the Extensions sheet, stays off until the owner turns it on, can import HADAL’s packages (Pi Durable, pi-ai, Pi’s MCP client pi-mcp, and the rest) as the built-in modules do, and reloads when edited. One that would take the name of a built-in extension or tool, or of another drop-in’s, is not loaded, and the sheet says why: installing it would replace that one.
  • Extensions in the app. A module can add to the app itself, without changes to HADAL’s code: routes on the server, commands for the message box, and a browser module with buttons on the rail, pages in the conversation’s place (as the subagents board shows), panels beside the conversation (where the Browser and Files panels dock, with a button in the top bar and the places), items in the status line under the message box (with a short form a narrow line takes), sheets, rows in the menu, and launcher actions, which work without asking HADAL. A dashboard of a provider’s usage, the server’s load, or a machine’s power and temperature, say: the route asks the service with a key that stays on the server, and the page shows what it says, live with the module’s events. It is the owner’s alone unless the module opens it to people who can steer, or to everyone who sees every session; someone invited to one session never gets it. A module can also show public pages to anyone with one of its links, with no sign-in (/l/<token>, since 0.22.0): each link closes at its time (30 days at most) or after the answers it takes, the page runs in a sandbox with no script, so whoever opens it while signed in lends it nothing, and Extensions says which modules have them (docs/extensions/public-pages.md). Turning the module off takes away what it added, its pages included; an edit swaps the routes, and an edit to the browser module’s files has tabs load it again. One that fails tells the owner why in a notice and in the Extensions sheet, and the rest of the app goes on; a tab opened with ?noext=1 loads none of their browser parts (safe mode), to turn off one that breaks the app. docs/extensions.md says how, with an example: a page with the server’s load, memory, and uptime.
  • Extension workspace APIs (0.16.0). A page can save its own durable catalog with request-lifetime document commits, or use a source-bound route to start linked sessions as the person who clicked Run. Current source access, turn, plan, spend, team, and model checks apply; explicit thinking choices are not silently lowered. Human history can open authorized sessions through pocket.openConversation. Extensions can read the running server’s package version through host.pocketVersion or browser pocket.pocketVersion, without an updater or restart control; the extension API level remains 1.
  • Extensions hub. Menu → Extensions opens Discover, Installed, and Updates, as tabs in the sheet’s head, for the owner while the gallery is on. Wide screens show the list and the selected entry side by side; phones show one at a time, with Back returning to the filtered list. The list is in sections: Extensions as dense rows divided by hairlines (a small mark, the name and its maker, one line about it, and up to three facts of what it reaches or adds, such as openrouter.ai, a key, sees turns, or 2 tools), and Themes as cards, each a tiny desktop drawn in the theme’s own colors with its color dots (since 0.27.0). Filters narrow Discover to Extensions or Themes, and to those with Tools for HADAL, a part In the app, or ones that Change HADAL (hooks, prompt sections, wraps). Installed (also tap “guard” in the status line) lists the Built in modules first, open, with how many are on; then your Extensions (from the gallery and your own drop-ins), each with how it stands now: On, Off, Did not load (with the error under it), Off in this tab (its browser part failed here), Edited since install, or Revoked; then your Themes (from the gallery, and your own, marked Yours, which open Appearance). A module’s row shows its tools, the routes, commands, and browser module it adds to the app, and any load error, in this browser too. The owner can turn Artifacts, Design, Browser, Subagents, Scheduled messages, Done when, Plan mode, Codemode, Memory, Lantern, Triggers, Extension gallery, HADAL updates, Agent Teams, Session tags, Lancet Guard, or a drop-in off and on, or reload one; the change applies to every session at once, stays after restarts (disabledExtensions and enabledExtensions in ~/.hadal/config.json), and everyone in a session sees who changed what. Turning Lancet Guard off first shows a warning card with Keep it on and Turn off; only Turn off applies the change. This leaves HADAL’s own setting (~/.pi/lancet-guard.json) alone. Under Lantern, the owner picks when Lantern compacts its context. The system prompt cannot be turned off.
  • Extension settings. A module can declare settings (on or off, text, a number, a choice, or a secret such as an API key); the owner changes them in Menu → Extensions under the module, with Save settings, and Default or Clear to put one back. A secret’s value never leaves the server: the sheet shows only that it is set. Modules can also listen to what happens in the app (sessions made, renamed, and archived, messages, runs) and offer services to each other; Extensions says which ones offer a service. Since 0.22.0 (docs/extensions/services-settings.md).
  • Extension gallery. Menu → Extensions → Discover (or Find extensions in the launcher) lists drop-ins other people wrote, from an index the owner picks (none by default): search them by name, words, and tags; entries for a newer HADAL are hidden. Each row has a quiet Install, which installs it turned off. An entry (since 0.27.0) says What it can reach in plain sentences, each marked with where it comes from: In its code (from the scan below: “Talks to openrouter.ai”, “Uses your openrouter key, from Pi”, “Runs git and gh”, “Uses files it writes”), Declared (the hooks it sees with, such as “Sees tool calls, before they run”, and changes to HADAL’s instructions or tools), and Always (it runs in the server with your rights, in every session, where Lancet Guard does not see its code), then what the scan found nothing for. The scan reads the code’s text, so the code can reach more than it finds: the entry says so, and nothing claims an extension stays inside. When the installed files were edited since install, the entry and the question say that the summary is the pinned version’s, not what runs. What it adds shows its tools and commands as code, and what it puts in the app; technical information is folded below. Install and turn on asks one question over the sheet: what it reaches, and that the scan reads text so the code can reach more, with Cancel, Install turned off, and Install and turn on (Cancel has the focus, Escape closes only the question, and the question stays until it is installed and on); Install turned off installs it without asking, and an installed one that is off has Turn on, which asks the same question. Before turning it on, read its source with View source, or install it off and Ask HADAL to review. A theme’s entry shows its picture in its own colors (dark and light side by side when it has both), what it changes from its files (its colors, a layout of its own, its fonts, its images), its palette with the values, and Use it in this browser and Open Appearance once installed. In Updates, a row says what an update adds to what the extension declares (“Declares more: sees tool results; 2 new tools”, or “Declares nothing new”) before its review; its code’s changes are in the review’s diff. In Installed, a tap on a row opens its settings and details, and turning a drop-in on asks in its row. An entry shows who wrote it, where its code is (a GitHub repository at a pinned commit), its files, and what it declares: its tools (and which only read), hooks, prompt sections, wraps, routes, and browser module, and who can reach them. Install downloads its files over https from that commit, checks each against the SHA-256 the index pins (one that differs installs nothing), and puts them in the extensions folder, off, as every drop-in starts. Before turning it on, read its whole source in the gallery, or Ask HADAL to review: a new session in the extensions folder, in plan mode, where HADAL audits what the code reads (config.json, sign-ins, other secrets), the addresses it calls, the processes it starts, what its browser module does, and whether it does what it declares. Updates are never automatic: the Updates tab lists available updates with a Review update button, and the review shows what changes, as a diff of every file and of what it declares, before you apply it. When the index revokes the version you have, the gallery and Extensions say why and offer to turn it off, and a notice says so while it is on. Uninstall removes its files (where each came from is kept in <name>.gallery.json beside it). Share… on one of your own drop-ins in Extensions checks that it stands on its own (its files named after it, importing only HADAL’s packages and its own files), drafts its index entry (the description from its doc comment, each file’s SHA-256, what it declares while it is on), asks where its files are on GitHub (the repository and commit you put them in, tags, your GitHub name), and, once the entry would pass the index’s checks, opens GitHub’s page for a pull request to the index with the entry filled in; HADAL itself makes no GitHub calls. docs/extensions.md says how to publish. The owner’s alone; turned off in Extensions, it reads nothing. It lists themes too, with a Theme tag and filter: Install checks a theme’s pinned files and its CSS before it goes into themes/, and puts it in Appearance’s list without applying it; Update shows a diff; Remove moves it to themes/.removed/; Share… in Appearance drafts an entry for one of your own themes (themes.md). What an entry reaches. GET /api/x/gallery/reach (the owner’s, like the other gallery routes) answers { entries: { [name]: … } } for every entry of the index read now, each with the entry’s pin so the app matches a result to the exact files it shows, so the app can show what each one can reach before it is installed. An extension gives { kind: "extension", commit, scanned: { network, keys, programs, files } }: short words for the hosts its address literals name (localhost, standards’ namespaces, example.*, and repository pages left out; addresses it builds at run time when it calls fetch(, new WebSocket(, or http.request with no host in its code, or gives one of them, or a net, tls, or dgram connection, an address it builds, also beside hosts it names), the keys it reads (openrouter key from HADAL, an environment variable whose name has KEY, TOKEN, or SECRET, Pi's auth.json), the programs it starts (programs it names at run time when it imports child_process but names none, or loads code the scan cannot read: eval, new Function, getBuiltinModule, process.binding or dlopen, import() or require() of a name it builds, or a .node file), and the files it writes (files it writes, paths under ~/.pi/agent/, or your home folder). The scan is by literal patterns on the code with its comments taken out: it tells what the code says, not what it does. A theme gives { kind: "theme", commit, palette: { colors, colorsLight } } from its colors.toml and colors-light.toml (null for one it lacks). An entry that cannot be read (a download fails, or a file differs from the size or SHA-256 the index pins) gives { kind, commit, error } and fails no other entry. Only the code files (.ts, .js, .mjs, .cjs) and the two palette files are read: from the installed copy when the entry is installed at the same commit and each file is as pinned, otherwise downloaded from the pinned commit with the checks every download has. Results are kept in gallery/reach.json in the data folder, by entry, commit, and pinned files, so the next answer downloads nothing for them; entries that fail are tried again, and three are read at a time.
  • Updates. Menu → Update HADAL (or the launcher) shows the running version, the newest release with its notes, and Update to … and restart; a notice says once when a new version is out. The owner’s alone. Under the version, the sheet shows the checkout’s branch and commit, installed with npm (global), installed with npm (local), or run with npx. For npm installs, HADAL asks the npm registry’s latest tag for the newest published version 2 minutes after the server starts and every 6 hours after, and GitHub for that version’s release notes (HADAL_UPDATES_REPO names another repository). A git checkout asks GitHub for the newest release (or the repository’s version tags, without notes) and downloads its commit into the checkout under a ref of its own, refs/pocket-update/target. An update from a git checkout needs a checkout that the server’s user can write, run by the launcher (npm start), with no changes that are not committed and no commits the release lacks, and a Node.js the release runs on; the sheet says which of these stands in the way, and an ignored file of yours where the release has a file stops it too. It installs the release’s packages beside the checkout first (npm ci in .pocket-update/staging/, only when the lock file names other packages), stops loading edited files, puts the packages in place, moves the branch forward to the release’s commit (a detached checkout moves detached), and restarts. A global npm install updates from the app too, when the server’s user can write the folder that holds the package and the launcher runs the server: HADAL installs the exact published version into a staging folder beside the package, swaps it in place of the running copy, and restarts, with the copy before kept next to it. If the machine stops at the very moment of the swap, hadal may not start: npm install -g @t-crypt/hadal puts it back. A local npm install (in a project’s node_modules) and a copy run with npx do not update from the app: the sheet lists what stands in the way, with the server’s hint of what to run instead (npm install @t-crypt/hadal@latest in the project, or npx @t-crypt/hadal@latest), and the update button stays off. The owner runs the command and restarts. Running work continues through a restart, but a tool call the restart cuts off comes back as interrupted, and the sheet says when HADAL works. When the new version does not start, the launcher puts the files before back and starts that (a git checkout puts the commit and packages back; a global npm install swaps the kept copy back, with no network), and the sheet and a notice say what happened; after the next look the sheet offers that version again, for the owner to try again. A release whose notes have a [!WARNING] or [!CAUTION] alert needs a tick that you read it, and is not undone by itself, since it may change data one way; so does a release whose notes HADAL could not read because GitHub did not answer (the registry or the tag gave the version, with no notes), since they may have such an alert: read them on GitHub. Under Menu → Extensions → Installed → HADAL updates: Look for new versions (on), Install new versions by themselves (off), and Beta updates (off). Beta updates (since 0.27.0) also offers pre-releases, tagged vX.Y.Z-beta.N (GitHub releases marked as pre-release; npm’s beta dist-tag): a git checkout takes the highest version among GitHub’s non-draft releases (or the beta tags, when GitHub does not answer), and an npm install the newer of the latest and beta dist-tags. A beta is marked Beta in the sheet, the menu hint, and the notice, and its caution says that it may have bugs. With the setting off nothing changes: only stable releases are offered, a beta is never offered, and a running beta still gets the next stable release (0.27.0 is newer than 0.27.0-beta.N, and 0.27.0-beta.2 is newer than 0.27.0-beta.1) but never an older one. Turning it off drops a beta found before. An install by itself also takes a beta, when both settings are on. A server from before 0.27.0 needs a restart (menu → Restart server) for the setting to work. An install by itself waits until no session has worked for 10 minutes, and again after its packages install; it never takes a release with a warning or without notes, or one that failed before (did not start, or did not install). A launcher started before this feature restarts but does not go back, and cannot update a global npm install at all (the sheet says so): quit HADAL and start it again once.
  • OpenAI-compatible endpoints. The owner adds an endpoint from the OpenAI Compatible row of the Providers list (Add; searching “ollama”, “local”, or “custom” finds it): a name, a base URL (http://localhost:1234/v1), and an API key, or No key for a local server. Find models asks the endpoint’s GET /models and lists what it has, each with a checkbox; a model ID can also be typed by hand, and either way it is added. Save writes the endpoint into HADAL’s ~/.pi/agent/models.json (made, with ~/.pi/agent/, when missing) and keeps the key in Pi’s sign-ins (auth.json), so its models show in the model menu at once, with no restart. Each endpoint is a row of the list like any provider, with Edit (an empty key keeps the saved one; models can be found again with the saved key, at the same address only) and Remove (which removes its key too). HADAL rewrites models.json only when it is plain JSON that HADAL accepts, and keeps the fields that it does not set; a file with comments or trailing commas is left alone, with a message.
  • Refresh models. The owner can tap Refresh models in the menu (under App) or the Providers sheet (the refresh button beside the Subagent models heading), or run Refresh models from the Ctrl/⌘+K launcher. The same controls work on phones. Refresh reloads models.json and HADAL’s sign-ins, and asks configured providers for fresh catalogs. The menu’s row says when it is refreshing, and a notice gives the added and removed model counts, without closing the menu; the Providers sheet also shows the errors for individual providers. All connected tabs receive the updated list. Healthy providers finish independently of slow ones; each provider has an eight-second limit. Running sessions keep their chosen models. A local model must be configured in models.json or registered by a Pocket-compatible extension: refresh does not load regular Pi CLI extensions or discover arbitrary local servers.
  • Uploads. In normal chat and Lantern, attach files with the picker, paste files or images, or drop them into the message box. Files are saved on the server for the conversation you send to and their paths are given to the agent; supported images also go straight to models that accept them. That includes HEIC and HEIF photos (from an iPhone, say), which the server converts to JPEG for the model in a worker, one photo at a time, with limits of 30 seconds and 64 million pixels (a photo that big needs about 1 GB of memory while it converts), so a broken or huge photo gets a notice and does not hold up the server; the original stays in the session’s uploads. When the image the model gets differs from the file, its line in the message says so: the format when it changes ([Image: shown to you as JPEG.], always for a HEIC photo), and, in the words of HADAL’s read tool, the original size, the shown size, and the multiplier when it is made smaller. An image that does not change gets no note. A sent HEIC photo shows in the chat and in Lantern as the JPEG the model got; when the model did not get one (a model without images, or a failed conversion), or when HADAL cannot be sure which image is the photo’s (the message names an image with @, or another attached image failed), it shows as a file. An image starts to be made ready for the model as soon as it uploads, so a send seldom waits for it. In a session’s message box (not Lantern’s), attached files stay across a reload, as the draft does, and leave with your sign-out; while a message is on its way, the box dims and holds what it sends, its words, files, and quote, which no key, dictation, or × changes until it went (in Lantern’s box too, which empties as it sends), also when it shows again meanwhile (you went to another place and came back), so it cannot go twice; text sent to the box meanwhile (Send to HADAL) goes in once it went or failed, and so does a queued message taken back with Edit, kept meanwhile in the browser, also through a reload or a move; the same words and files sent again after a lost answer, also after a reload, find the message that went instead of making a second; once you change them, or after an answer that said it was refused or failed, they go again; if the send fails, it is all there to send again, with its quote.
  • Code in your messages. In a message you send, `code` and a fence of ``` lines show as code, the way HADAL’s replies show it, colored when the fence names a language (```js). A span closes with as many backticks as opened it, a fence’s lines stand on their own, and a stray or unclosed one stays text. Nothing else is formatted: *, #, lists, and spacing stay as typed, and @mentions outside code stay buttons. Only the display changes: HADAL, exports, and ↑ get the message as written.
  • Rich replies. Code blocks in HADAL’s replies show their language and a Copy button, with syntax colors for the common languages (no dependencies, so it works offline), and a block of more than 40 lines folds until you ask for the rest. Some show more than code, with the code a tab away: an html block (or a reply that is a whole page) is previewed as a page, inline, with its scripts off and nothing loaded from anywhere; ▶ Run runs its scripts in the artifacts’ sandbox, where it can reach the internet but not the app; an svg block is drawn as an image (tap it for full screen); and a diff or patch block opens in the diff viewer. While HADAL is still writing, they show as code. Write cards color the file they write, and the file viewer previews .html files the same way, with Run. Cards in the reply. An artifact call with inline: true (an artifact_inline call, in a session from before 0.28.0) shows as a card in the reply, as the html block above with the artifact’s name and version in its bar, an Open button for the artifact viewer at that version, and the same Preview/Code and Run/Stop; a failed, denied, or stopped call shows as a step with its reason instead. The result records the version its call made, so each card keeps showing its own: an update by HADAL adds a new card, and earlier cards, in this session and a fork, do not change. A card’s page is read from the artifact’s own address, so whoever can see the session sees the card, a viewer and someone invited to this session alone included, and each can Run it. Once run, its page gets what an artifact’s does: a follow-up for the message box (a notice for a viewer) and saved state under the artifact’s id, shared with the viewer. A preview grows to fit the page, up to 1200 px, and a running page up to 900 px, then scrolls inside. On a phone the bar takes two lines. A viewer already open on an older version stays on it and offers “latest is vN” after an update. Only a call HADAL makes itself is a card: one made inside a codemode script is one of its nested calls, and in Lantern’s panel the call is a line among its steps.
  • Images inline. Attached images show as thumbnails (also in the composer before you send). When HADAL writes ![description](path) with a path on the server (absolute, ~/…, or relative to the session’s folder), the image shows in its reply. Images a tool returns and SVG artifacts show inline too; an image HADAL reads with read (often one you just sent) shows only when its call is opened, so it is not on screen twice. Tap any image to see it full screen. Only real image files are shown: the server checks a file’s bytes, not just its name.
  • Launcher. npm start asks how your devices should reach HADAL: this device only, the local network, a Cloudflare Tunnel, Tailscale, or Tailscale Serve. It then shows the address and a QR code to sign in your phone, and keeps running with keys to restart the server or change access.
  • Pi Durable is experimental, and its API can change between releases. Versions are pinned in package.json.
  • Only one server process can use the database at a time.
  • Forks are separate sessions; there is no branch tree to switch between inside one session.
  • HADAL’s own extensions are not supported: HADAL runs its own extensions on Pi Durable, and drop-ins from ~/.hadal/extensions/. HADAL’s prompt templates work as slash commands.
  • A git worktree keeps a session’s files apart; it is not a sandbox. HADAL can still reach everything you can.
  • Artifacts run in an opaque-origin sandbox, so localStorage and cookies are unavailable inside them. In the viewer, they can save up to 16 KB of state for each person through the app instead.
  • The browser needs Chromium, Chrome, Brave, or Edge on the server. Its pages live in memory: a restart opens each one again at its last address, but not what was typed into it. Each session’s cookies are its own and last until the page closes. A browser installed as a snap (Ubuntu’s Chromium) is used only when there is no other; it cannot open files outside your home folder. The list of servers running on the machine is Linux-only. Tested on Linux and macOS; not yet on Windows.

These pages describe HADAL 0.29.0. Your copy has the pages of its own version in its docs/ folder.