Skip to content
Back to skills

Rule Ui Settings

ASecurity

Settings pages — Storage, Lessons, Knowledge, Memory, System analysis, agents and MCP, custom instructions, sign-in. A repository rule for apps/ui/src/renderer/settings/**, apps/ui/src/renderer/knowledge/**, apps/ui/src/renderer/components/memory-*, apps/ui/src/renderer/components/use-memory-*, apps/ui/src/renderer/components/lessons-*, apps/ui/src/renderer/chats/lesson*, apps/ui/src/renderer/use-cli-*, apps/ui/src/main/app-storage*, apps/ui/src/renderer/use-share-sign-in*, apps/ui/src/render...

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentsgoshellnodeawsapi

Works with

  • cursor
  • terminal
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add geniro-io/geniro-app --skill rule-ui-settings --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rule Ui Settings?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rule Ui Settings
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/geniro-io-rule-ui-settings/badge)](https://www.skillsdirectory.com/skills/geniro-io-rule-ui-settings)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rule-ui-settings
description: "Settings pages — Storage, Lessons, Knowledge, Memory, System analysis, agents and MCP, custom instructions, sign-in. A repository rule for apps/ui/src/renderer/settings/**, apps/ui/src/renderer/knowledge/**, apps/ui/src/renderer/components/memory-*, apps/ui/src/renderer/components/use-memory-*, apps/ui/src/renderer/components/lessons-*, apps/ui/src/renderer/chats/lesson*, apps/ui/src/renderer/use-cli-*, apps/ui/src/main/app-storage*, apps/ui/src/renderer/use-share-sign-in*, apps/ui/src/renderer/components/cli-login-progress*, apps/ui/src/renderer/components/action-notice*, apps/ui/src/renderer/components/use-debounced-persist*, apps/ui/src/renderer/stats/lessons-*, apps/ui/src/renderer/chats/memory-tool-row*, apps/ui/src/main/settings-*; read it before editing a file there."
---
<!-- GENERATED by scripts/sync-agent-rules.mjs from .claude/rules/ui-settings.md. DO NOT EDIT: edit the source, then run `pnpm sync:agent-rules`. -->

# Settings

**The screen** (`settings/Settings.tsx`, the column `settings/settings-nav.tsx`): thirteen sections under four headings (`SETTINGS_NAV` in `settings/settings-sections.ts`: App — General, System analysis, Storage, What's new; Agents — Agents, Instructions, Fast actions, Plugins; What agents know — Memory, Knowledge, Search; Access — Remote access, Sharing; user decision 2026-12-01: App first, and Settings opens on General). The section column is 224px (208 below `lg`) with the title, Search settings and the sections, a count only where something waits on the user (Agents: CLI updates and sign-ins; Memory: the waiting count). The nav rail's, tab bar's and More page's Settings count is the sum of those section counts, from the one `settingsWaitingCounts` (`settings/settings-attention.ts`) both read, with no separate dot; what it holds is in its label and tooltip (user decision 2026-12-01); then the 46px `PageHeader` with the section's name and its `SaveState`, and one content column 680px wide, centred in the pane (`SETTINGS_COLUMN`, header and content alike), whose first line is the section's lead (`SECTION_LEAD`). A section draws no title, lead or icon tile of its own. On a phone Settings is reached from More: the search and the grouped list with a value or count at the right, then one section per screen with a back header.

- **Search across settings**: every static row's label and hint live once, in `settings/catalog/<section>.ts` (`defineSettings`), and the row spreads `settingRow(entry)` into `SettingsPanelRow`, so the index (`catalog/every-setting.ts`) and the screen read one text. It matches the label first, then the hint; a row hidden on a paired device is `desktopOnly` and left out of its search. A setting onboarding's Settings step also shows carries its one-line `description` in the catalog too, and its Settings row passes `description={entry.description}`, so both screens read one line. A press opens the section, scrolls the row (`data-setting-id`) to the centre and tints it with the info soft fill for 2.5 s (`data-highlight`), fading out; no match is one line, "No setting matches". A row whose label is data (a plugin, a device, a place) is not catalogued.
- **Save state**: every settings write of the screen goes through `useSettingsSave().track` (`settings/settings-save.tsx`), so the header reads Saving…, Saved, or Not saved with Retry, which runs the failed write again.

**Settings → Storage** (`settings/storage.tsx`): the daemon's groups (`GET /v1/storage`) plus main's share (`getAppStorage` over the daemon's `unclaimed` names). A clean-up is the daemon's background job: the page posts it on the confirming press and, while it runs, polls `GET /v1/storage/job` (never the measuring `GET /v1/storage`) one request at a time, `STORAGE_JOB_POLL_MS` after each answer, then measures once. Compact is the exception: the daemon only schedules it, and the page then restarts the daemon (`restartDaemon`), which compacts before it serves anything; the outcome is read from the restarted daemon's `job`. The page leads with the total as one figure and Measure again; then `settings/storage-row.tsx` rows in named groups (Chats, Tasks, Teams and app, the last largest first): name and what it is (wrapping, never cut), a neutral bar on ONE scale shared by every row of the page, the figure in one right-aligned column, and a reserved action slot that keeps its width when a part has no action. While measuring, a static skeleton of the same height stands in. A part's bar takes the attention tone from 1 GiB and the destructive tone from 5 GiB (`STORAGE_LARGE_BYTES`, `STORAGE_VERY_LARGE_BYTES` in `storage-row.tsx`, on `formatBytes`' 1024 base), with "Large" / "Very large" in its label (user decision 2026-12-01); otherwise no part gets a colour of its own, and only what destroys something is red. Archived chats are deleted by age (`ArchivedChatsRow`): older than the picked period, or all. Each of `chats.archivedPeriods` carries the daemon's count and the cutoff it counted, posted back verbatim as `archivedBefore`, so the page never computes a date and deletes what it showed. Hidden on a paired phone.

**Lessons (`chats/lessons-*.ts*`, `components/lessons-card.tsx`):** Reflect now is a row-menu item (`chat-list-item.tsx` `onReflect`) and the thread header's ⋯ menu (Reflect now) (`ReflectNowButton`, its state from `useThreadLessons`, `GET /v1/chats/:runId/lessons`, re-read every 5 s while a reflection works); neither is offered on an analysis chat or a paired device. The card is drawn from the `lessons` row a reflection writes into the thread, with each lesson's newest `lesson_outcome` row folded on (`lessons-payload.ts`, the twin of the daemon's `LessonsPayloadSchema`; an old row reads `check: null` and `by: 'user'`): a lesson filed on its own reads "Saved to memory · <scope> · Searchable only" with Undo and Edit, one waiting for review offers Approve, an undone or already-remembered one collapses, lessons the check dropped fold under one line with their reasons, and a lesson with no outcome reads as one meta line (source thread, signal, refines / broken-again), its title and rule, a Why fold (reason and evidence), and one primary `SplitButton` naming its outcome ("Save to <target>", "Update <handle>" for a `refines` memory lesson, "Move up to the memory index" for a `broken_again` one — the twin of the daemon's `moveUpOf`; the project's instructions stay a target in its menu), whose menu picks what the button does: the targets (memory and its scopes, the project's instructions, a member's instructions from the payload's `places.members`, a new or existing project knowledge document read through `KnowledgeApi` only when the menu opens; a target the thread has no place for is listed disabled), and for an update or a move up, saving as a new entry instead; Edit and Reject stay ghost buttons beside it, and a lesson saved outside memory names its place and offers no Undo or Edit. Settings → Memory's Waiting for review group lists the waiting entries and then the waiting lessons in one list, and its count adds the lessons to the waiting entries; the lessons (`settings/waiting-lessons.tsx`) is `GET /v1/lessons/proposals?status=proposed,check_failed` — every lesson waiting on the user, a deleted thread's included — drawn as entry-like rows (`LessonRow` `layout="row"`: the rule, one meta line, Why; Save — or Update / Move up, its title naming the outcome — Reject and Edit as buttons on the row, as a waiting entry draws Approve, Forget and Edit (user decision 2026-12-01); the other targets in its ⋯ menu); Saved to memory, in the Lessons group, (`SavedLessons`, `?status=saved` kept to `undoable` and not `memoryPending` — a lesson whose own entry still waits for review counts under the waiting entries instead — newest five with Show all, its heading carrying their count) with the card's own decided row, Undo and Edit. The Settings nav-rail count and the Memory row inside Settings add those waiting lessons to the waiting entries (`settings/use-memory-waiting-count.ts`, re-read on memory and lessons changes and a reconnect), the same number as the group. `LessonsApiContext` and `LessonsJumpContext` (provided by `ChatProviders`) give it those actions and Show in thread; its footer reads `GET /v1/lessons/reflections/:id` for the reflection and, when the row names one, the check — "cost not reported" where the CLI reports none. The archive dialog asks `GET /v1/lessons/estimate` and shows Extract lessons with the model and price only when `signals > 0`, ticked as the estimate's `lessonsOn` says, reset on every open; confirming sends `lessons=reflect` or `skip` with the archive, and nothing when the box is not shown. The delete dialog takes no lessons. Price and title text go through `chats/lesson-labels.ts`, so a sub-cent price reads `<$0.01` everywhere. Its History row (`settings/lessons-history.tsx`) states the daemon's `counts` from `GET /v1/lessons/history` (read with `limit: 1` while closed) and, when any lesson exists, Open…, a dialog listing every lesson newest first, `Show more` paging on `nextBefore`, re-read from the top down to the depth already read on every `lessons_changed` and after a decision made in it. Every Settings list of lessons (waiting, Saved to memory, History) draws each one through `LessonProposalRow` (`settings/waiting-lessons.tsx`): a waiting one as the card's `LessonRow` with its actions, any other as `DecidedRow` (Undo and Edit on an entry of its own, Approve on one still pending), the History passing `detailed` for the found date, rule and Why fold. Settings → Memory → Lessons (`settings/lessons-settings.tsx`) picks the one Memory model (default Same as the thread: the thread's own CLI, profile, model and effort) and the checker, says from Memory's Agent notes (passed in as `agentWrites`) whether a memory lesson is saved at once or waits for review, with the composer's own `TargetSelect` plus `ChoiceModelSettings` (`settings/memory-triage-settings.tsx`, the model settings menu with its profile, model, effort, window and parameters) and reads `GET /v1/lessons/spend`, whose failed runs it groups by the daemon's `cause` (limit, with its verbatim `resetsAt`; signed out; other) into one plain line each with the chats' titles, the raw reason only in the line's `title`. Every note under its controls is one short sentence. Stats shows reflection and check spend in one line under the breakdowns (`stats/lessons-spend-line.tsx`, the daemon's `byPurpose`). A project's page and a team's Memory tab carry `LessonsGroup` (`components/lessons-group.tsx`: inherit / on / off with a "?" saying what a lesson is; a team inherits from the project, then the app), locked while the app's mode is Off (`useAppLessonsMode`).

**Knowledge (`knowledge/`, `#/knowledge[/<id>]`):** one page (`Knowledge.tsx`): the list over every place (`knowledge-list.tsx`, `knowledge-row.tsx`; quick filters with counts and one place chip) beside the open document (`knowledge-document-view.tsx`, its head `knowledge-doc-head.tsx`), whose pane also holds its History tab (`knowledge-history.tsx`), an agent's waiting write as a bar on the document (`knowledge-review-bar.tsx`, the diff drawn with `UnifiedDiff` over the daemon's `diff`; `knowledge-review.tsx` stays the manager chat's review card) and the edit form (`knowledge-form.tsx`, a plain monospace text field with no live preview and no syntax colouring, since either redoes 256 KB on every key; Preview renders only on the press of its switch). A tablet folds the list away while a document is open; a phone shows the list and the document as two pages under More. Search only, Archived and in-every-chat are derived once (`indexStateOf`, `knowledge-text.ts`) for the row tag and the meta line; who read a document last is its time only (`lastReadAt`), never a reader. Lists are the daemon's and body-free, re-read on `knowledge_changed` (`daemon-client.ts` `onKnowledgeChanged`). A `409 KNOWLEDGE_STALE` keeps the typed text and offers Reload; a stale proposal offers its text, never Approve. An unreviewed `active` document and any whole text under review are drawn raw (`knowledge-raw-text.tsx`), because rendered Markdown drops comments and unused link references. The transcript's tool row re-reads its documents in the run's own places when it opens (`KnowledgeLoaderContext`, `listKnowledge({handle, runId})`), or in the place its call named with `project` or `team` (`headsInNamedPlace`), so it shows what they are now; a search whose result came back with no text, as cursor-agent reports a successful MCP result, asks `GET /v1/knowledge/runs/:runId/search`, the same search the agent's tool runs. The rail's count and the project page's section read `GET /v1/knowledge/counts`. Markdown export goes through `saveKnowledgeExport`, refused on a paired device.

**Settings → Plugins** (`settings/plugins-settings.tsx`): each plugin's switch, folders, file and last run from `GET /v1/plugins`. A plugin in state `unapproved` (never approved, "Not approved yet") or `changed` (edited since its approval, "Changed since you approved it") shows Review… in its row and first in its ⋯ menu, which opens the chat block's `PluginReviewDialog` (the approved text against the current one, Approve posts its hash); no Run now (user decision 2026-12-01). Edit file opens the chat block's `PluginFileDialog`, and a save that leaves the plugin not approved opens its review. "Show file in Finder" is offered on the desktop only, never from a paired device (`isRemoteRuntime`).

**Settings → Memory** (`settings/memory.tsx`, entries drawn by `components/memory-row.tsx`, edited in `memory-form.tsx`, imported through `memory-import-dialog.tsx`):

- No tabs (user decision 2026-12-01: settings are never hidden behind a tab, and what waits shows first). One page, in order: **Waiting for review**, only while something waits — its count (`summary.pending` plus the waiting lessons, the nav badge's sum) a `CountBadge` in the attention tone, Approve all, and one list of the waiting entries (`memory-row`, Approve / Forget / edit, the straight `AttentionBar`) then the waiting lessons as entry-like rows, each with its main actions as buttons on the row; then the settings groups — Memory settings, Lessons (settings, spend, Saved to memory, history), Clean up, and import, export and Forget all; **Entries** last — the search, New entry, In every chat / Search only / Forgotten with their counts, the Type and Scope filters and the entry list, all on the page (there is no "Memory entries" window). A focus on one entry scrolls to Entries and shows that entry until "Show all"; New entry's form stays on the page. Memory type tags are coloured by meaning (Project sky, Reference green, Feedback violet, About you neutral). A type's label, hue and one-line description live once in `components/memory-types.ts`; the form picks the type from an `OptionList` that shows each description, and says a locked scope in words.
- Every list is the daemon's (`GET /v1/memories`, paged by its cursor), re-read on `memory_changed` (`daemon-client.ts` `onMemoryChanged`); the pane never folds or edits its copy in place. The waiting-for-review list is its own read (`status: pending`), shown beside the active-and-waiting filter only; past its cap it leads to the pending filter.
- A transcript memory row (`chats/memory-tool-row.tsx`) opens a `HoverPopover` over the entries its call named (search hits, read handles, a save's handle or the near-duplicates it was refused for, a forget's handle), each read fresh from the daemon by handle on open through `MemoryLoaderContext` (provided by `ChatProviders`, so the chat, call cards, the sub-agent dialog and every hosted chat read alike). A press never leaves the chat; only a panel entry's "Open in Settings → Memory" opens the pane on that one entry (`handle` query, every status), and the shell holds the focus (`App` → `Settings` `memoryFocus`) until "Show all".
- An agent's entry not yet approved — pending, or active but saved before review was on — offers Approve; only approved, user and imported entries reach the memory index.
- **Clean up** (`settings/use-memory-cleanup.ts`, `components/memory-cleanup-dialog.tsx`): the panel draws `GET /v1/memories/review/summary` and its last batch's Undo, re-read on every `memory_changed` (the nav rail's Settings count adds `settings/use-memory-waiting-count.ts` to the agent CLIs with an update waiting or an account signed out, through `settingsWaitingCounts`; `settings/use-cli-attention.ts` reads the CLIs once for that count), so a cleanup made on another device offers its own Undo. The dialog's tabs (Least used, Conflicts, Kept, Forgotten) are `segmented-control`, each count under its label below `sm` so the four fit a phone. Least used draws no filters (user decision: the filters were noise): the hook keeps `DEFAULT_CLEANUP_FILTERS`, which only the empty state's Show them widens (`minAgeDays: 0`); every list, count and sort is the daemon's (`GET /v1/memories/review`, offset cursor). Each row carries one quiet line of why it is listed (never read / not read in 90 days / mentions a file that no longer exists, its paths in the `title`; You kept it; Forgotten <when>) and at most one `Looks like a rule` badge whose `title` names the warning; no usage figures or reason badges. Select all asks `GET /v1/memories/review/ids`, which leaves out rows with a warning. The bottom bar shows only while something is ticked (N selected · Clear · Forget N), and its Forget runs one `POST /v1/memories/forget-batch` at once, no question (user decision: Undo covers it), its refusal shown as the dialog's error; a row's own Forget… still asks (`forgetDescription`). Undo is `POST /v1/memories/batches/:batchId/restore`, from the notice, Recent cleanups (Forgotten tab) or the panel. Rows are `memory-row` with its `leading` (the tick), `details` (the why line) and `actions` (Keep, Stop keeping, and on the Forgotten tab Delete permanently through `confirm-action-button`, `POST /v1/memories/:memoryId/purge`) slots. Shown on a paired phone too, without Delete permanently.
- **Ask AI what to forget** (Least used, Mac only): `MemorySortPanel` titled so, with one start button — Ask AI about N entries — that sorts every unsorted entry the list matches (`readEvery` for the rows off the page, else the loaded rows) through `useMemoryTriage(..., 'cleanup')`; the panel hides once nothing is left unsorted. Its verdicts become the recommendation block above the list (`MemoryCleanupRecommendation`): "AI suggests forgetting N of M entries" with each entry's reason, ticked unless it looks like a rule (a hand tick overrides either way), and one Forget K that runs the same forget-batch; "AI suggests keeping all M entries — nothing to forget." when it would forget none. No verdict is drawn on the list rows.
- **Conflicts** — duplicates and contradictions (`settings/use-memory-check.ts`, `settings/memory-check-panel.tsx`, drawn by the dialog's `checkPanel` slot): the findings are `GET /v1/memories/review/findings`, re-read on every `memory_changed` and on every device; each shows both entries side by side as `memory-row` with the quote of each in `details`. On the Mac the tab also reads `GET /v1/memories/review/pairs` (only while the tab is shown, priced for the picked agent and model) and the Check button asks `POST /v1/memories/review/check` one batch of `CHECK_BATCH` (twin of the daemon's cap) at a time, landing findings as they come; Stop ends the queue and its copy says the batch already asked still finishes and is billed. The agent and model are `memory-triage-settings` (labelled "Agent that checks"), offered for the CLIs the pairs name (`checkAgents`) and saved as `lastMemoryTriage`, shared with Sort with AI. Keep A / Keep B are one `forget-batch` and Merge… a `POST /v1/memories/merge` of the text the user edited, in the type and scope the form picks (the two sources' own, the narrower scope by default, so a project's facts never turn global unasked); both put their batch's Undo in the dialog notice (`useMemoryCleanup.announce`). Both are true is `POST .../findings/:findingId/dismiss`; Decide later only sets a finding aside in the dialog. On a paired phone the check is hidden ("Start the check from your Mac.") and the findings stay to decide on.
- **Forget cold entries automatically** (`settings/memory-auto-forget.tsx`, in the Clean up panel, left out on a paired phone): a `select` of fixed windows over `memoryAutoForgetAfterDays`; picking one asks `GET /v1/memories/review/summary?autoForgetDays=N` and arms only after a `confirm-dialog` naming that figure, Off writes at once. While armed, the hook asks the summary with that window, so the row says what the sweep would forget now. The sweep itself is the daemon's.
- The import is sent in batches of the daemon's row cap; it sends every CLI profile settings.json names and every library team's agent and pool member runs on (`importProfiles`: `configDirs`, `recentConfigDirs`, `configProfiles`, then the nodes' `configDir`, per CLI kind, never a CLI's name; read fresh when the dialog opens) and only preview keys plus the type and scope chosen; the daemon reads which CLIs keep memory and re-reads the text. An import that brought notes in turns `nativeMemoryOff` on over the settings as they stand then, and its note says so, also after a later batch failed. Import and export are hidden on a paired phone (the import is desktop only on the daemon too); edit, forget, restore, approve and Forget all are not.
- The import dialog groups rows by `agentKind` + `profile` + `folder` (the daemon's display paths), pages them (`IMPORT_PAGE_SIZE`), and filters and searches over every row, never the page; Tick shown, a group's tick and the filters' counts reach every matching row. A row is ticked by the user's own press first, else by its default (new, similar to nothing, importable, not forgotten earlier) and, once the AI sort judged it, only if it was kept.
- **Sort with AI** (`settings/use-memory-triage.ts`) sends the default-ticked rows not judged yet to `POST /v1/memories/import/triage` in batches of `TRIAGE_BATCH` (twin of the daemon's cap), a few at a time, stops on the first failure, and keeps its verdicts by note key in the pane, so reopening the dialog neither loses nor re-asks them. Offered only for the CLIs the preview names (`triageAgents`); never on a paired phone, where import is hidden. Beside its button the user picks the agent and, through the composer's own `ModelSettingsSelect` (`settings/memory-triage-settings.tsx`), everything a chat runs with but approval and auto-compact (a one-off answer has neither); the pick is saved as `lastMemoryTriage` on every change and the next dialog opens on it, and switching agent starts its settings blank.
- A near-duplicate refusal offers saving again past the handles it named (`nearDuplicateHandles`) plus every handle an earlier refusal of the same text named (`vouchedAfterRefusal`): the daemon names only the similar entries a write did not vouch for, so vouching for the last refusal alone would loop between two of them. A lesson row (`components/lessons-card.tsx`: Save, Update, a saved lesson's Edit) does the same through `described()`'s `NearDuplicateError`. Both drop the vouch once the text or target changes; a similar entry nobody was shown is still refused and named.

**Settings → System analysis** (`settings/system-analysis.tsx`, data in `settings/use-system-analysis.ts`, section `system-analysis` after Knowledge): the scope of the picked period (`GET /v1/system-analyses/scope`, 1 / 3 / 7 / 30 days) with its ranked threads behind Show threads, the agent and model from `lastAnalysisConfig` (saved back on Start), Start (`POST /v1/system-analyses`, hidden on a paired device: the daemon refuses it there); the scope read and the start carry `SYSTEM_ANALYSIS_TIMEOUT_MS` (`daemon-api.ts`), since the digest build takes tens of seconds on a large profile, and Past analyses (`GET /v1/system-analyses`, newest three, Show all pages on `next`), re-read on `system_analyses_changed` (`daemon-client.ts` `onSystemAnalysesChanged`) and every 10 s only while a row is working. A row and a start open the report on the Chats screen, as a chat of its System section (`openSystemChat`, the app's `onOpenThread`); its card's button is the system applier (`chats/recommendations-apply-context.ts` → `SystemRecommendationsApplyContext`, `.claude/rules/ui-chats-cards.md`).

**Tools and capabilities** (`settings/tool-usage-group.tsx`, data in `settings/use-tool-usage.ts`, between Run an analysis and Past analyses): the usage counters' brief (`GET /v1/stats/tool-usage`), read on mount and on the client's reconnect, never polled — Counted since, Never called with Show, the top 8 by calls in a `FigureTable` sorted by its headers, Show all (search, a kind filter, Never called), and a row's card (`GET /v1/stats/tool-usage/subject`: who called, by CLI, projects). A row names its subject in monospace over where its calls come from (the CLIs that called it by display name, `MCP · <server>`, Geniro, or its kind), cut to its cell; Errors is the share of calls that ended in an error, high ones marked, and one definition holds across the table, the card and the digest: errors count every call that ended in an error, refused ones included, so the card reads "errors (n refused)" and its outcome "ok · failed · refused". Sub-agent is left out below a 32rem table and Last call and First seen below 26rem (`FigureColumn.hideBelow`). The Detailed tool log row (`toolCallLogRetentionDays`) is hidden on a paired device, which may not write it; the Counters row beside it is not.

Data-loss rules:

- Removing or renaming a key destroys what it held. `readSettings` keeps only known keys, and `writeSettings` rewrites the whole file. Migrate (`settings-migrations.ts`) or export first.
- An unparseable file is copied aside to `settings.json.corrupt-<timestamp>` (0600) before any write. A file that cannot be read is never overwritten.
- Two clean breaks are on record: `agentOptions`, and question cards' `questions`. The next break migrates or exports first.

Sign-in:

- `use-cli-login.ts` is the one controller for an agent CLI's sign-in (a share destination's is `use-share-sign-in.ts`, kept apart from that wire on purpose), and `components/cli-login-progress.tsx` is the one panel for both. Signing in never opens a terminal.
- `CliLoginController.starting` is set synchronously before the await and cleared in `finally`.
- Sign-in buttons are disabled while starting, because a second press invalidates the first challenge.
- The flag belongs to the caller. `Chats` holds one controller for both flows.
- A server sign-in settles when the daemon sees it connect (`verifying`). The renderer never polls the listing itself.

Agents and MCP:

- An agent-specific setting lives in that agent's card (`AgentConfigListProps.agentSettings`), passed in by the caller. Onboarding passes none.
- Agent options are drawn from capabilities `options[]`. No card names a CLI's switch.
- A CLI update runs in main (`settings/use-cli-updates.ts` over `getCliUpdates` / `onCliUpdates`); the card never keeps its own running flag.
- **Sign in to a new configuration** (`settings/new-config-profile-dialog.tsx`): main makes the folder (`createConfigProfileDir`), the ticked MCP servers of the CLI's other configurations are merged into its document at user scope (a name it already has is never overwritten; a CLI whose configurations all read one file offers none), the entry is saved, and only then the CLI's sign-in starts there. Hidden on a paired device.
- MCP Add and Edit JSON write at user scope to the listing's profile. They never write to a folder or to a node's `mcpDisabled`.
- A JSON save carries the version it was read at. Read through a ref to the actions, because callers bind them inline.
- Plugin servers are `plugins[]` beside the server rows, never rows themselves.

Custom instructions:

- `customInstructions` saves through `use-debounced-persist.ts`. An unsavable value (control characters) is held on screen and never written. The timer handle is nulled.
- **Remove from existing chats** (`POST /v1/chats/forget-custom-instructions`) is an explicit press, never a side effect of clearing the box. It does not touch the snapshotted reply language.
- `replyLanguage` saves through the same debounced persist; a value over the bound or with control characters is held on screen and never written.
- `commandCenterInstructions` (its own Command center group, beside Custom instructions) saves through its own debounced persist, held on screen the same way when it carries control characters. It is pushed to `PUT /v1/command-center/instructions` (`command-center-instructions-push.ts`) on every write that changes it and every daemon start, and is not snapshotted per run, so no "Remove from existing chats" press applies.
- The Settings screen reads the preamble and the per-CLI notes from `GET /v1/capabilities` (`hostPreamble`, `backgroundWorkNotes`), and the member sheet reads each member's block sizes from `POST /v1/teams/instruction-sizes` (measured through the same parts); never restate either in the renderer.
- The host-preamble preview renders nothing until `hostPreamble` arrives.
- Every settings write is announced to every window (`onSettingsChanged`, `main/settings-changed-notify.ts`; no payload, a no-op on the phone bridge). The member sheet re-measures its instruction sizes on it, so an edit from the Settings screen or a paired phone reaches the figures.

Appearance:

- The picker does `persist({ theme })` plus `setThemePreference`.
- `theme` gets no `??` default: `readSettings` always merges defaults.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.