agentleFS
leynierleynier/alera/mobile/AGENTS.md

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.

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
  1. Very specific:

    Run flutter test and flutter analyze from mobile/.

    line 26
  2. Very specific:

    After changing a central push subscription, ask the paired runtime to run mobile.cloudSubscriptions.refresh.

    line 47

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 @AleraPreview previews), and lib/src/features/<feature>/{domain,application,infra,presentation}.
  • AleraFileIcon (lib/src/design_system/icons/alera_file_icon.dart) is a copy of the desktop widget, because alera_mobile has no dependency on the root package. Keep both copies and the vscode_material_icon_theme version 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) and ThemeData. The app is dark-only, Inter for general text and JetBrains Mono for monospaced text, matching the desktop rules.

State Management

  • Riverpod with riverpod_generator codegen is mandatory, same as the desktop app. No hand-written provider declarations and no new StatefulWidget-plus-setState state that belongs in a controller.
  • The one-shot build_runner convention from the root AGENTS.md applies scoped to this package: after finishing a planned batch of edits that touches generated surfaces, run dart run build_runner build once from mobile/, before formatting, analysis, and tests. Do not run a watcher.
  • A tab's body is rendered from the last known tab list, not from AsyncData alone. The host connection rebuilds on every foreground probe that fails, which pushes tabsControllerProvider through AsyncLoading; 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 the mounted check 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 in MobileCodexComposerDraftStore, which is keepAlive and keyed by host and tab, rather than in setState alone, and MUST report failures through a ScaffoldMessengerState captured before the await.
  • Explorer, Source Control, and Pull Request render from their last snapshot, not from AsyncData alone, for the same reason: host_connection_reader.dart invalidates workspaceClientProvider on 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 as AsyncLoading or AsyncError carrying that value, which an AsyncData-only switch arm treats as having nothing to show. A panel therefore reads state.value before 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 Attachment sheet 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 push WorkspaceTabsScreen; 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, one mobile.status.get round 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. probeConnection reuses an existing verb and is not a protocol change.
  • Only the emulator swaps with the session state. TerminalTabView keeps 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 test and flutter analyze from mobile/.
  • Unit tests override hostRepositoryProvider with MemoryHostRepository from test/support/memory_host_repository.dart.
  • Client and connection tests use a real loopback HttpServer WebSocket harness; see test/mobile_runtime_client_test.dart and test/host_connection_controller_test.dart.

Protocol

  • The runtime gateway protocol version is aleraMobileProtocolVersion in lib/src/core/mobile_protocol.dart. The runtime enforces strict equality during mobile.hello, so never bump it for additive changes; feature-detect through the runtimeCapabilities array 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 with binaryFrames: true in mobile.hello and the runtime answers with what it granted; feature-detect through that response and runtimeCapabilities, never through aleraMobileProtocolVersion. 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: true on workspace.removeManaged and workspace.removeShared, matching desktop. The host refuses a workspace that still has a live terminal session when that option is omitted.
  • What mobile.hello advertises lives in MOBILE_HELLO_CAPABILITIES (rust/alera-cli/src/terminal_host/server/mobile_gateway_surface.rs), which is a different list from the one status.get returns. 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 exact aleraMobileProtocolVersion match.
  • 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 under mobileSourceControlWritesV1, backed by the same alera_core::source_control code the desktop bridge calls. mobile.git.status carries the actions the runtime allows (actions, primaryAction, and per-entry canStage / 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 an errorCode (git<Kind>, sourceControlBusy) next to a desktop-worded error. A host without the capability stays read-only. Generate Commit Message runs on the runtime through aiText.commitMessage.generate (aiTextCommitMessageV1), with the desktop prompt and the runtime's AI Assist settings; the phone offers it only when the status snapshot reports aiCommitMessageEnabled. Pull Request v1 shows current-branch identity, title, state, checks, and a read-only conversation through gh plus linkedReview.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 beyond id, author, body, createdAt, and url (kind, source, path, line, resolved, outdated, threadId) are additive and add no capability; headSha on the review is additive the same way. A phone on an older host shows every comment as a conversation comment. With mobilePullRequestActionsV1 the runtime also accepts GitHub writes: mobile.pullRequest.comment (a conversation comment, or a thread reply through replyToCommentId), commentUpdate (only the author's own comments, per canEdit), merge (only the snapshot's mergeMethods, which are repository settings intersected with the base branch rulesets), draftStatus, close, link, unlink (a dismissal of that exact review, never a delete), and create (for a branch that is already pushed). Each runs the desktop's gh command on the runtime, answers with a fresh snapshot, and returns an additive errorCode for known gh failures; writes to one workspace are serialized, and a workspace on a remote SSH host is refused by a runtime that predates mobileRemoteWorkspacesV1. The raw linkedReview.upsert and linkedReview.remove verbs stay off the allowlist. The snapshot adds viewerLogin, canComment, per-comment canEdit, mergeMethods and mergeMethodsError, baseBranches, suggestedBaseBranch, aiAssistEnabled, and suggestedReview for a review the user unlinked. Create offers Generate With AI through aiText.pullRequestDetails.generate (aiTextPullRequestDetailsV1), the desktop's pull request prompt over the range from the base branch to HEAD, and only when the snapshot reports aiAssistEnabled. 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 a ship/... 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 reuse write and agentProfile.launch. GitHub Watch and Fix uses runtime execution when pullRequestWatchExecutionV1 is advertised; older hosts retain the client-side compatibility path. Workspace rows show compact pull-request status through mobile.pullRequest.summaries (mobilePullRequestSummariesV1): one gh GraphQL 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 bump aleraMobileProtocolVersion; the phone refreshes it on workspacesChanged and linkedReviewsChanged, and an older host simply shows no indicator. The answer carries evaluatedWorkspaceIds (groups whose batch completed) and eligibleWorkspaceIds (every workspace considered) so the phone merges like the desktop monitor: a failed gh batch 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 reuses mobile.workspaceFile.read for the file and its relative images, mirrors the desktop link and image URI policy in workspace_markdown_uri_policy.dart, and adds no capability. Search also replaces through additive mobileWorkspaceReplaceV1: mobile.workspaceSearch.run gains replacement, preserveCase, and a requestId that mobile.workspaceSearch.cancel aborts, and mobile.workspaceSearch.replace writes the files. A replace carries each affected file's contentToken from 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 through workbenchViewPrefs (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). With pullRequestWatchExecutionV1, mobile starts and stops the runtime-owned GitHub watch through pullRequestWatch.start / stop. The PR panel and workspace row consume the same runtime snapshot and pullRequestWatchChanged events. They must not dispatch or merge locally on this path. See docs/pull-request-watch.md at the repository root.
  • Workspace rows merge at most one main-panel agent onto the row, matching desktop. workspaceMainTabIds on workspaceSidebar.snapshot names those tabs (desktop writes the same map on shared view prefs from workspacePanels; 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 bump aleraMobileProtocolVersion.
  • Workspaces on another host are additive (mobileRemoteWorkspacesV1). The capability means two things at once: mobile.hosts.list names the hosts (id, alias, platform, nothing about how to reach them; sshTarget.list stays desktop-only), and the runtime forwards the file, search, quick open, mobile.git.*, mobile.pullRequest.* and aiText.* verbs to the host that owns the workspace. The phone therefore never branches on WorkspaceSummary.isRemote to refuse a panel: those controllers only know a workspace id, and a runtime without the capability answers with its own error as before. WorkspaceHostsController loads the directory with the workspace list, on pull-to-refresh and on sshTargetsChanged; rows, the actions sheet header and the workspace screen title show AleraHostOsIcon (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 and runPromptWorkspaceCreate rejects their paths for a remote checkout. mobile.pullRequest.summaries is answered by the hub's own gh, 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 calls issue.fetch and linkedIssue.* 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 hideIgnored field of mobile.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.status and mobile.git.diff accept an additive relativeRoot, resolved through contained_workspace_relative_path so .., 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 with mobile.git.status before 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 plain write on its terminalSessionId with deferredEnter (the host accepts writes for any live session, so no attach is needed); a profile target uses agentProfile.launch with prompt. The queue is cleared only after the host accepts the prompt.
  • Remote runtime restart is negotiated through runtimeHostRestartV1. Mobile sends a soft host.restart first 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.create takes 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 write carrying bracketedPaste and deferredEnter, negotiated through terminalDeferredInputV1. 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 single text + "\r" write.
  • The app MUST answer outputResyncRequired with setOutputPaused {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. A delta: false answer replaces the emulator contents; delta: true needs 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/snapshotRows on 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 bump aleraMobileProtocolVersion; 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 ordinary resize calls; they MUST NOT add a protocol verb or bump aleraMobileProtocolVersion. 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.noScaling plus AleraTokens.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 past RenderTerminal.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 _TerminalSurface shows 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: pbcopy and xclip run on the paired machine. The emulator therefore decodes size-limited OSC 52 writes through the mobile copy of decodeTerminalOsc52Payload, but applies them only when the phone-local TerminalClipboardSettingsController opt-in is on (Settings > Terminal > Allow OSC 52 Clipboard Writes, off by default, mirroring the desktop's allowOsc52Clipboard): 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 lets TerminalView hand the phone's clipboard to a remote program. Keep terminal_osc52_clipboard.dart in 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, _TerminalSurface shows 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/ through MobileLogger (lib/src/core/logging/). Rotation caps are smaller than the desktop's because phone storage is scarcer. See docs/diagnostics.md for the shared format and rules.
  • The logging primitives are deliberately duplicated from the desktop rather than shared: alera_mobile has 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 SnackBar or an AsyncError is not a record: the screen changes and it is gone. MobileRuntimeClient._handleSocketError is 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 SharedPreferences because it must be readable at startup before any host connection exists.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.