alera / mobile
AGENTS.md37 starsChanged 4 months agoMITView on GitHub
This file applies under mobile/. The root AGENTS.md also applies; this file only adds mobile-specific rules.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cloud/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- landing/AGENTS.mdAGENTS.md
- test/AGENTS.mdAGENTS.md
- alera-agent-profilesSkill
- alera-automationsSkill
- alera-cliSkill
- alera-orchestrationSkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Run flutter test and flutter analyze from mobile/.
- Very specific: line 47
After changing a central push subscription, ask the paired runtime to run mobile.cloudSubscriptions.refresh.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS
Scope
This file applies under mobile/. The root AGENTS.md also applies; this file only adds mobile-specific rules.
Package Layout
- The mobile companion app is a separate Flutter package (
alera_mobile) so mobile plugins and manifests never leak into the desktop package at the repo root. - Source follows the desktop feature architecture:
lib/src/app/(app shell and theme),lib/src/core/(protocol constants and payload parsing),lib/src/design_system/(presentational shared widgets with@AleraPreviewpreviews), andlib/src/features/<feature>/{domain,application,infra,presentation}. AleraFileIcon(lib/src/design_system/icons/alera_file_icon.dart) is a copy of the desktop widget, becausealera_mobilehas no dependency on the root package. Keep both copies and thevscode_material_icon_themeversion in sync, so a path draws the same glyph on the phone and on the desktop. File rows use it rather than Material icons picked by extension.- Mobile UI values MUST come from the mobile
AleraTokens(lib/src/app/theme/alera_tokens.dart) andThemeData. The app is dark-only, Inter for general text and JetBrains Mono for monospaced text, matching the desktop rules.
State Management
- Riverpod with
riverpod_generatorcodegen is mandatory, same as the desktop app. No hand-written provider declarations and no newStatefulWidget-plus-setStatestate that belongs in a controller. - The one-shot build_runner convention from the root
AGENTS.mdapplies scoped to this package: after finishing a planned batch of edits that touches generated surfaces, rundart run build_runner buildonce frommobile/, before formatting, analysis, and tests. Do not run a watcher. - A tab's body is rendered from the last known tab list, not from
AsyncDataalone. The host connection rebuilds on every foreground probe that fails, which pushestabsControllerProviderthroughAsyncLoading; swapping the body for a spinner there disposes the tab's state, and with it anything it was awaiting. That is how an attachment whose bytes had already reached the runtime was dropped in silence, because themountedcheck after the upload was the only thing left to run. Work that can outlive the screen (an upload started from a picker, which backgrounds the app) MUST land inMobileCodexComposerDraftStore, which iskeepAliveand keyed by host and tab, rather than insetStatealone, and MUST report failures through aScaffoldMessengerStatecaptured before the await. - Explorer, Source Control, and Pull Request render from their last snapshot, not from
AsyncDataalone, for the same reason:host_connection_reader.dartinvalidatesworkspaceClientProvideron every connection change, and a spinner there drops the list and its scroll offset. Riverpod 3 keeps the previous value on every transition, but a dependency rebuild surfaces asAsyncLoadingorAsyncErrorcarrying that value, which anAsyncData-only switch arm treats as having nothing to show. A panel therefore readsstate.valuebefore the error arm, shows a failed refresh as a notice above the kept content, and keeps a blocking spinner or error page for the first load only. - New Workspace offers its prompt the same attachment sources as the Codex and terminal composers, through one
Add Attachmentsheet gated per source by the host's capabilities. Workspace files are indexed from a sibling worktree, because the workspace being created has none yet: the selected parent when it belongs to the chosen project, and the project's own default otherwise. A parent from another project MUST be skipped rather than indexed, since Quick Open answers with paths relative to the worktree it indexed and those would not exist in the new one. That relative answer is also what makes the inserted path valid once the agent starts. After Create, the phone closes the form and MUST NOT pushWorkspaceTabsScreen; Open Workspace on the Retry Agent row stays user-initiated. - Returning to the foreground does not re-attach a terminal by itself. The session controller probes the connection first (
probeConnection, onemobile.status.getround trip) and only re-attaches when that fails. A blind re-attach replays a snapshot and takes the tab through its loading state, which the user reads as the terminal restarting every time any picker or app switch steals focus. It also disposed the compose bar mid-pick, so an attachment whose bytes had already reached the runtime was written into a dead controller and lost.probeConnectionreuses an existing verb and is not a protocol change. - Only the emulator swaps with the session state.
TerminalTabViewkeeps the accessory and compose bars mounted once the tab has attached, because rebuilding them throws away the composed text and the controller an in-flight attachment is waiting to write into. This does not weaken the rule that the terminal view stays unmounted while a restore drains: that rule is about the emulator, which still shows its loading state.
Testing
- Run
flutter testandflutter analyzefrommobile/. - Unit tests override
hostRepositoryProviderwithMemoryHostRepositoryfromtest/support/memory_host_repository.dart. - Client and connection tests use a real loopback
HttpServerWebSocket harness; seetest/mobile_runtime_client_test.dartandtest/host_connection_controller_test.dart.
Protocol
- The runtime gateway protocol version is
aleraMobileProtocolVersioninlib/src/core/mobile_protocol.dart. The runtime enforces strict equality duringmobile.hello, so never bump it for additive changes; feature-detect through theruntimeCapabilitiesarray returned by the handshake instead. - Terminal output may arrive as a binary WebSocket message (
[u16be idLength][sessionId][raw bytes]) instead of base64 inside JSON. The app asks for it withbinaryFrames: trueinmobile.helloand the runtime answers with what it granted; feature-detect through that response andruntimeCapabilities, never throughaleraMobileProtocolVersion. The WebSocket already delimits messages, so there is no length-prefixed framing here, unlike the desktop socket. - Requests the gateway accepts from mobile clients are allowlisted in
rust/alera-cli/src/terminal_host/server/mobile_gateway_surface.rs(mobile_request_allowed). Adding a new request type to the mobile app requires allowlisting it there first. - Confirmed workspace removal MUST send
closeSessions: trueonworkspace.removeManagedandworkspace.removeShared, matching desktop. The host refuses a workspace that still has a live terminal session when that option is omitted. - What
mobile.helloadvertises lives inMOBILE_HELLO_CAPABILITIES(rust/alera-cli/src/terminal_host/server/mobile_gateway_surface.rs), which is a different list from the onestatus.getreturns. A capability the app feature-detects MUST be in the hello list: an omission is invisible, leaves every phone permanently on the older code path, and has no version to blame because the runtime requires an exactaleraMobileProtocolVersionmatch. - Explorer, Search, Source Control, and Pull Request are additive (
mobileExplorerV1,mobileWorkspaceSearchV1,mobileSourceControlV1,mobilePullRequestV1). Older phones ignore the capabilities; older hosts omit the bottom navigation. Source Control writes (stage, unstage, discard, commit, amend, fetch, pull, push, sync, stash, stash pop, branch checkout and create) are host verbs undermobileSourceControlWritesV1, backed by the samealera_core::source_controlcode the desktop bridge calls.mobile.git.statuscarries the actions the runtime allows (actions,primaryAction, and per-entrycanStage/canUnstage/canDiscard) and every write answers with a fresh snapshot, so the phone MUST render those flags rather than re-deriving git rules. The only local rule is that Commit needs a non-blank message. Git failures carry anerrorCode(git<Kind>,sourceControlBusy) next to a desktop-wordederror. A host without the capability stays read-only. Generate Commit Message runs on the runtime throughaiText.commitMessage.generate(aiTextCommitMessageV1), with the desktop prompt and the runtime's AI Assist settings; the phone offers it only when the status snapshot reportsaiCommitMessageEnabled. Pull Request v1 shows current-branch identity, title, state, checks, and a read-only conversation throughghpluslinkedReview.find: conversation comments, review summaries, and diff review threads (path, line, resolved) rendered as Markdown and grouped the same way desktop groups them, with resolved threads and, past five checks, passing checks collapsed. The comment fields beyondid,author,body,createdAt, andurl(kind,source,path,line,resolved,outdated,threadId) are additive and add no capability;headShaon the review is additive the same way. A phone on an older host shows every comment as a conversation comment. WithmobilePullRequestActionsV1the runtime also accepts GitHub writes:mobile.pullRequest.comment(a conversation comment, or a thread reply throughreplyToCommentId),commentUpdate(only the author's own comments, percanEdit),merge(only the snapshot'smergeMethods, which are repository settings intersected with the base branch rulesets),draftStatus,close,link,unlink(a dismissal of that exact review, never a delete), andcreate(for a branch that is already pushed). Each runs the desktop'sghcommand on the runtime, answers with a fresh snapshot, and returns an additiveerrorCodefor knownghfailures; writes to one workspace are serialized, and a workspace on a remote SSH host is refused by a runtime that predatesmobileRemoteWorkspacesV1. The rawlinkedReview.upsertandlinkedReview.removeverbs stay off the allowlist. The snapshot addsviewerLogin,canComment, per-commentcanEdit,mergeMethodsandmergeMethodsError,baseBranches,suggestedBaseBranch,aiAssistEnabled, andsuggestedReviewfor a review the user unlinked. Create offers Generate With AI throughaiText.pullRequestDetails.generate(aiTextPullRequestDetailsV1), the desktop's pull request prompt over the range from the base branch to HEAD, and only when the snapshot reportsaiAssistEnabled. Ship (mobile.pullRequest.ship,mobilePullRequestShipV1) is the desktop's Ship in one runtime request: it stages all changes or keeps the staged ones (the phone hides All/Staged when workspace-root git status has no uncommitted changes and ships staged), writes the commit message with AI Assist, moves work on a shared base branch to aship/...branch and puts that base back on its remote tip, commits, pushes, and opens and links the pull request. It runs on the runtime rather than as a sequence of phone requests so a phone that sleeps halfway cannot leave a commit without its pull request, it holds the same per-workspace lock as the Source Control writes, and a failure after the commit says the commit already happened. GitLab and Azure DevOps stay on desktop. Fix Failed Checks and Restack reusewriteandagentProfile.launch. GitHub Watch and Fix uses runtime execution whenpullRequestWatchExecutionV1is advertised; older hosts retain the client-side compatibility path. Workspace rows show compact pull-request status throughmobile.pullRequest.summaries(mobilePullRequestSummariesV1): oneghGraphQL batch per repository on the runtime, mirroring the desktop monitor's query (open-only branch lookup, linked numbers by number, check rollup included), with counts and at most three failing check names computed host-side so one response covers every row. The capability is additive and MUST NOT bumpaleraMobileProtocolVersion; the phone refreshes it onworkspacesChangedandlinkedReviewsChanged, and an older host simply shows no indicator. The answer carriesevaluatedWorkspaceIds(groups whose batch completed) andeligibleWorkspaceIds(every workspace considered) so the phone merges like the desktop monitor: a failedghbatch keeps its last icons instead of blanking the rows, an evaluated workspace with no review clears its stale icon, and ids that left the eligible set are dropped. A transport failure keeps the previous snapshot the same way. Repositories without a GitHub remote are a quiet empty group, never an error. Markdown files (.md,.mdx) open as a view-only rendered preview with a source toggle, and desktop Markdown viewer tabs open that preview from the tab strip; it reusesmobile.workspaceFile.readfor the file and its relative images, mirrors the desktop link and image URI policy inworkspace_markdown_uri_policy.dart, and adds no capability. Search also replaces through additivemobileWorkspaceReplaceV1:mobile.workspaceSearch.rungainsreplacement,preserveCase, and arequestIdthatmobile.workspaceSearch.cancelaborts, andmobile.workspaceSearch.replacewrites the files. A replace carries each affected file'scontentTokenfrom the last search, so the host skips a file that changed since the phone saw it instead of overwriting it, and Replace All is refused while results are truncated. The host namespaces cancellation ids per client. Search view as tree, search ignored files, and the Source Control view and group modes are shared with the desktop throughworkbenchViewPrefs(gitDiffViewMode,gitDiffGroupMode,searchViewAsTree,searchIncludeIgnored,workspaceMainTabIds); the host backfills any of those keys a client omits, so an older client does not reset them. Out of scope for this surface: terminal layout (#638) and fake-resize refresh (#640). - Watch and Fix is additive (
pullRequestWatchV1). WithpullRequestWatchExecutionV1, mobile starts and stops the runtime-owned GitHub watch throughpullRequestWatch.start/stop. The PR panel and workspace row consume the same runtime snapshot andpullRequestWatchChangedevents. They must not dispatch or merge locally on this path. Seedocs/pull-request-watch.mdat the repository root. - Workspace rows merge at most one main-panel agent onto the row, matching desktop.
workspaceMainTabIdsonworkspaceSidebar.snapshotnames those tabs (desktop writes the same map on shared view prefs fromworkspacePanels; a phone omits the key so the host backfill keeps it). A host without an assignment uses the first primary-candidate terminal (not Setup, not a one-shot command). Extra main-panel agents and every secondary-pane agent stay nested. Additive; MUST NOT bumpaleraMobileProtocolVersion. - Workspaces on another host are additive (
mobileRemoteWorkspacesV1). The capability means two things at once:mobile.hosts.listnames the hosts (id,alias,platform, nothing about how to reach them;sshTarget.liststays desktop-only), and the runtime forwards the file, search, quick open,mobile.git.*,mobile.pullRequest.*andaiText.*verbs to the host that owns the workspace. The phone therefore never branches onWorkspaceSummary.isRemoteto refuse a panel: those controllers only know a workspace id, and a runtime without the capability answers with its own error as before.WorkspaceHostsControllerloads the directory with the workspace list, on pull-to-refresh and onsshTargetsChanged; rows, the actions sheet header and the workspace screen title showAleraHostOsIcon(a copy of the desktop widget, with the Codicons font bundled for Tux) only for a remote workspace, labelled with the alias. A host the runtime no longer names keeps the generic glyph under its raw id, and without the capability no request is sent and no marker is drawn. Two things stay tied to the paired device on purpose: uploaded prompt images and files land on its disk, so New Workspace hides those sources andrunPromptWorkspaceCreaterejects their paths for a remote checkout.mobile.pullRequest.summariesis answered by the hub's owngh, so a remote checkout it cannot evaluate stays eligible but unevaluated and simply shows no indicator. - Linked issues are additive (
linkedIssuesV1): the row shows the issue glyph, the actions sheet links, opens, changes, and unlinks it, and New Workspace offers the issue field. The phone callsissue.fetchandlinkedIssue.*on the paired runtime, which runs the forge CLI; it never fetches from a forge itself. - Explorer carries the desktop's non-mutating actions (#751): Hide Ignored Files through the existing
hideIgnoredfield ofmobile.workspaceExplorer.list, Collapse All, a Refresh that keeps open folders open, Copy Path / Copy Relative Path, Comment on File, and Use As / Clear Source Control Root. File mutation (new, rename, delete, duplicate, cut and paste, editing) stays on desktop because the host has no verbs for it. The ignore mode and the Source Control root are phone-local per workspace (ExplorerPreferencesController,SharedPreferencesAsync), not shared view prefs: the desktop keeps both locally too, so sharing them would make the two surfaces overwrite each other. Copy Path joins with the host's separator taken from the workspace root (hostAbsolutePath), never the phone's POSIX path context. - The Source Control root is negotiated through
mobileSourceControlRootV1:mobile.git.statusandmobile.git.diffaccept an additiverelativeRoot, resolved throughcontained_workspace_relative_pathso.., absolute paths, and symlinks cannot leave the workspace. The client sends the field only when the capability is advertised, because an older host would silently answer for the workspace root, and it validates a folder withmobile.git.statusbefore saving it. A nested root must be its own repository (Repository::open, not discovery), matching desktop. - Comment on File and Comment on Diff queue in memory per workspace and send as one prompt built by the ported
workspaceAgentCommentPrompt, which MUST stay byte-identical to the desktop builder for mixed file+diff queues. Diff comments come from a long-press on a line or hunk in the git diff viewer (old-side for deletion-only lines, matching desktop). A running agent receives the prompt through a plainwriteon itsterminalSessionIdwithdeferredEnter(the host accepts writes for any live session, so no attach is needed); a profile target usesagentProfile.launchwithprompt. The queue is cleared only after the host accepts the prompt. - Remote runtime restart is negotiated through
runtimeHostRestartV1. Mobile sends a softhost.restartfirst and force-retries only after a second destructive confirmation when the host reports active work. The host MUST launch the replacement sidecar itself with its effective configuration before the phone relies on normal connection recovery; a phone cannot start a process on the paired machine. - Cloud account enrollment is delegated through an already-authenticated paired runtime. The app sends its stable cloud installation id as additive
mobile.hello.cloudDeviceId;mobile.cloudEnrollment.createtakes that id from the authenticated connection and returns a short-lived code that the app redeems immediately. Do not send a different device id in the enrollment request or ask the user to copy the internal code. - After changing a central push subscription, ask the paired runtime to run
mobile.cloudSubscriptions.refresh. That request carries no mobile-supplied count; the runtime reads the authoritative value from Cloud so lifecycle retention cannot depend on untrusted client state. - FCM tokens and per-runtime subscriptions live in the cloud backend, not in the paired runtime. Removing an account or disabling every category MUST delete its remote subscription state; local secure-storage cleanup remains possible when the cloud is unavailable.
- A composed prompt is sent with
writecarryingbracketedPasteanddeferredEnter, negotiated throughterminalDeferredInputV1. The host then writes the submit CR as its own PTY write half a second later, because an agent TUI runs paste heuristics over an input burst and reads a CR arriving inside that burst as a literal newline rather than a submit. Bracketing is only for text with newlines or other control characters: pasting a short command makes agent TUIs collapse it into a placeholder, and a program that has not enabled DECSET 2004 leaks the markers as literal text. Raw keys (accessory bar, direct mode) never set either flag. A host without the capability falls back to the singletext + "\r"write. - The app MUST answer
outputResyncRequiredwithsetOutputPaused {paused: false}, once per session at a time. The host's per-client terminal queue is bounded, one frame it cannot accept parks the client in the session's paused set, and only this resume or a fresh attach clears it, so ignoring the event leaves the terminal frozen on old content until the user leaves the screen and comes back. The host re-arms the ask every few milliseconds, which is why the answer is idempotent. Adelta: falseanswer replaces the emulator contents;delta: trueneeds no local action because the host already pushed the missed bytes down the terminal lane. - A restored snapshot is replayed at the size the host says it was written at (
snapshotCols/snapshotRowson the attach and resume payloads), and only then does the view state the phone's own viewport. The snapshot is the raw PTY stream, so it reconstructs its screen only at the geometry that produced it: parsed at a phone's much narrower width, every absolute cursor move and hard wrap lands in the wrong column, which reads as a garbled scrollback under a live screen that looks fine because the running program redrew that part itself. Resizing afterwards turns the difference into a reflow instead. Both fields are additive and MUST NOT bumpaleraMobileProtocolVersion; a host that omits them replays at whatever size the emulator already had. - The terminal view stays unmounted while a restore drains, rather than being covered. Mounting it states the phone's viewport, which would resize the emulator away from the size the history is being replayed at, reflowing a prefix and then fighting the rest. It also keeps the replay off screen, which otherwise reads as the terminal scrolling itself from the top of history down to the live screen every time a tab is opened.
- The emulator opts into
reflowWithHiddenCursor. A hidden cursor in the main buffer is read as a full-screen application that will redraw itself, so a resize truncates every line instead of reflowing it. That holds for the live screen and not for the history above it, and an agent TUI keeps the cursor hidden for as long as it runs. - A phone attaches without stating a viewport until its terminal has been laid out. The host resizes the live PTY to whatever viewport a phone claims, so a placeholder resizes the running session to a size nobody is looking at and again to the real one a layout later.
- After that measured viewport is first applied, the client pulses the PTY by one column and restores it. Full-screen agent TUIs often miss the initial SIGWINCH, so they keep drawing at the previous geometry and scrolling through that history looks broken. Later viewport changes (rotation, keyboard) debounce for 150ms and pulse once at the settled size with that same one-column pair. Explicit Refresh instead pulses both axes by about 30% and restores (
terminalViewportRefreshPulseSize), because a one-cell change is easy for a stuck TUI to ignore and a 30% bump on every keyboard or rotation would flash a full redraw. Both pulses are two ordinaryresizecalls; they MUST NOT add a protocol verb or bumpaleraMobileProtocolVersion. Desktop Refresh uses the same two-axis ~30% PTY pulse while retaining its local emulator repaint. - Terminal cell metrics stay independent of OS font scale (
TextScaler.noScalingplusAleraTokens.monoFontSize). Accessibility scaling would change the PTY cols/rows, so the live TUI would no longer match the phone chrome. - Opening or selecting a terminal and returning to its retained workspace screen MUST reuse the toolbar Refresh after history restoration and measured viewport resize acknowledgements have completed. Refresh once per visible entry, cancel queued work when the tab or route is left, and preserve the emulator, compose state, and session. Ordinary viewport changes keep their existing one-column pulse.
- Scroll routing follows what the TUI declared, never the cursor. xterm sends wheel reports to an application on the alternate screen or with mouse reporting on (Claude Code, Grok Build, Codex) and walks the cell buffer for everything else, and it does so from a read-only view too, so compose mode never swallows a scroll. A hidden cursor MUST NOT be read as "application owns scroll": Cursor CLI, Claude Code's trust prompt, and other Ink-style TUIs hide the cursor while their transcript lives in ordinary scrollback, and routing their scroll to the PTY as arrow keys was what left them unscrollable.
- Inline agent TUIs (Cursor CLI above all) redraw by clearing the screen and scrollback (
ESC[H ESC[2J ESC[3J) and reprinting the whole transcript on every resize and every few frames of a long reply. xterm therefore keeps the reader anchored across an erase: the viewport returns to the pixel offset the reader chose once the reprint refills the buffer, and only follows the clear to the bottom when the buffer stays empty pastRenderTerminal.clearFollowGrace.Terminal.clear()and a reset still jump immediately. Without this, every reprint threw the reader to the top of history, which is what read as the transcript "mixing up" while scrolling. - Copying from the phone has two paths and both end in the phone's clipboard. A long-press selects a word (dragging extends it) and
_TerminalSurfaceshows a Copy pill while a selection exists, because a finger has no Ctrl+C. An agent that copies for itself reaches the phone only through OSC 52:pbcopyandxcliprun on the paired machine. The emulator therefore decodes size-limited OSC 52 writes through the mobile copy ofdecodeTerminalOsc52Payload, but applies them only when the phone-localTerminalClipboardSettingsControlleropt-in is on (Settings > Terminal > Allow OSC 52 Clipboard Writes, off by default, mirroring the desktop'sallowOsc52Clipboard): any byte stream the terminal renders could otherwise swap the clipboard under the user. A blocked write shows a one-time notice pointing at the setting; an allowed one announces itself with a SnackBar, so a program filling the clipboard is never silent. The flag is read at write time, so flipping it reaches live sessions. Queries MUST stay unanswered (onClipboardQuery: (_) => null): an unset callback letsTerminalViewhand the phone's clipboard to a remote program. Keepterminal_osc52_clipboard.dartin sync with the desktop copy. - A finger is not a wheel notch.
mobileTouchScrollLinesPerWheelEvent(terminal_touch_scroll.dart) sets how many lines of touch travel make one wheel report to an application that owns its scroll; mouse and trackpad deltas stay one report per line. Tune it there, not by changing the desktop default in xterm. - While history sits between the reader and the live screen,
_TerminalSurfaceshows a Jump To Latest pill (AleraFloatingPillButton) and hides it on the alternate screen, where the application scrolls itself. Sending a composed prompt scrolls to the bottom first, so the reader sees their prompt go out. - The mobile gateway's terminal lane is deeper than the desktop socket's (
MOBILE_CLIENT_TERMINAL_OUT_QUEUE_CAPACITY), because a WAN send can stall for hundreds of milliseconds where the local socket the desktop value was tuned for does not.
Diagnostics
- The app writes rotating JSON Lines logs to
<applicationSupport>/logs/throughMobileLogger(lib/src/core/logging/). Rotation caps are smaller than the desktop's because phone storage is scarcer. Seedocs/diagnostics.mdfor the shared format and rules. - The logging primitives are deliberately duplicated from the desktop rather than shared:
alera_mobilehas no dependency on the root package, and a shared package for a few hundred lines would be more scaffolding than it is worth. Keep the two in sync when either changes. - Failures MUST be logged, not swallowed. Turning an error into a
SnackBaror anAsyncErroris not a record: the screen changes and it is gone.MobileRuntimeClient._handleSocketErroris the funnel every transport failure passes through and the most common thing users report. - Logs stay on the phone and are shared explicitly through the system share sheet. They are never uploaded to the runtime: a phone worth diagnosing is usually one that cannot reach its host, and no
computer.*-style log verb belongs on the mobile allowlist. - Crash reporting is opt-in, off by default, stored device-locally in
SharedPreferencesbecause it must be readable at startup before any host connection exists.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

