Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/j5/product/agent-personas/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A **persona** is the current implementation of a user-authored [Role](../feature

PR #75 defines the contract. Runtime delivery belongs to the dependent PRs; neither this document nor the backlog claims that the stack is merged or that every planned Role capability is complete.

This revision delivers folder discovery, definition validation, configurable definitions and instructions, environment-specific routing, immutable launch snapshots, and Settings folder/single-agent import across web, desktop, and mobile. Existing orchestrators remain responsible for activation. Instruction editing, direct human selection in the new-task composer, Role-library git controls, skill allowlists, posture controls, and drift indicators are follow-up work. The Roles feature document retains that long-term direction and labels these delivery limits explicitly.
This revision delivers folder discovery, definition validation, configurable definitions and instructions, environment-specific routing, immutable launch snapshots, and Settings folder/single-agent import across web, desktop, and mobile. Existing orchestrators remain responsible for activation, and a person can also choose a persona in the new-task composer on web, desktop, and mobile. Instruction editing, Role-library git controls, skill allowlists, posture controls, and drift indicators are follow-up work. The Roles feature document retains that long-term direction and labels these delivery limits explicitly.

Crew composition, Playbook steps, workflow gates, and lifecycle automation remain separate features. A persona file describes the agent; the per-task brief still supplies the work.

Expand Down
13 changes: 13 additions & 0 deletions docs/j5/product/upstream.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,18 @@ Letter codes in the Decided lines (SC2, QS1, AR3, and so on) are rulings recorde

**Decided:** the persona picker is Bryant's request (2026-09-08) and fix (2026-09-14). The persona model lock comes from Bryant's persona stack, whose scope was approved on 2026-09-08. The ordering against threads arrived in the 2026-09-24 advance (PR #262). Jackson approved it on 2026-09-28. Recorded in FORK.md's saved-agent mentions section and its PR #75–#86 table.

#### D41. On mobile, a draft's persona has its own row, and the slash menu covers the draft rows

**Upstream:** the mobile new-task composer shows the model in its input row and opens the slash menu above everything stacked over the input, including the checkout row.

**J5:** a persona chosen for a new-task draft shows in its own row under the checkout row, with its route and remove action, instead of in the input row. The slash menu opens over the checkout and persona rows instead of above them. A started thread's composer is unchanged.

**Why:** in the input row, the agent's chip crowded the editor and was truncated past reading, and the slash menu was squeezed into the space left above the stacked rows (Jackson, Checkpoint 1 on his iPhone).

**Consequences:** two small edits in upstream's mobile composer files, `NewTaskDraftScreen.tsx` and `ThreadComposer.tsx`, carried at each advance (FORK.md case 100). The menu's anchor is drawn outside its zero-height parent, so check after each advance that a menu item drawn over the draft rows still takes a tap, on iOS and Android.

**Decided:** Jackson, 2026-11-01, at Checkpoint 1 ([#866](https://github.com/Jacksondr5/j5code/issues/866)). Recorded in FORK.md case 100.

### Storage, install, and identity

#### D19. J5 never shares on-disk state with T3 Code
Expand Down Expand Up @@ -617,3 +629,4 @@ J5 kept a run from resuming after a usage-limit reset when the person had presse
- 2026-10-31 — D33: the preview stream closes when its session is revoked, replaced or expires, as the RPC socket already did, so a lowered level stops a preview at once ([#798](https://github.com/Jacksondr5/j5code/issues/798)).
- 2026-10-31 — D33: "Merge back" is disabled for someone who can't start a thread in the fork's project, which the server already refused (Jackson's 2026-10-31 approval; [#730](https://github.com/Jacksondr5/j5code/issues/730)).
- 2026-11-01 — D33: the mobile client reads shared conversations as web does, with each message's author and avatar, who answered each prompt, and another person's message held until its author is known; sharing itself stays on web and desktop (the mobile catch-up; [#832](https://github.com/Jacksondr5/j5code/issues/832), [#871](https://github.com/Jacksondr5/j5code/issues/871), [#869](https://github.com/Jacksondr5/j5code/issues/869)).
- 2026-11-01 — D41 added: on mobile, a draft's persona has its own row under the checkout row, and the slash menu covers the draft rows (Jackson, Checkpoint 1; [#866](https://github.com/Jacksondr5/j5code/issues/866)).
10 changes: 5 additions & 5 deletions docs/j5/user/personas.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Persona definitions are separate from runtime activity, so only agents that have

## Starting a task as a persona

In a new task, the composer offers a **Persona** control beside the model picker whenever the selected environment has launchable personas. Choose one and the model and reasoning controls are replaced by the persona's name and its fixed route; use the **×** control to go back to a regular task before sending. On send, the server resolves the persona's route and pins it to the thread, so the thread shows the same persona chip afterwards. If the persona's definition changes later, the chip shows **Changed**; the running task keeps the definition it started with, and a new task uses the current one.
In a new task, the composer offers a **Persona** control beside the model picker whenever the selected environment has launchable personas. Choose one and the model and reasoning controls are replaced by the persona's name and its fixed route; use the **×** control to go back to a regular task before sending. On mobile, the chosen persona appears in its own row under the checkout row, and the input row stays free for your message. On send, the server resolves the persona's route and pins it to the thread, so the thread shows the same persona chip afterwards. If the persona's definition changes later, the chip shows **Changed**; the running task keeps the definition it started with, and a new task uses the current one.

Threads launched as a persona show the persona beside their home in the thread list, and delegated children show which persona ran them in the Lineage section and on their subagent cards.

Expand All @@ -21,18 +21,18 @@ To create a personal persona without writing a file, use **Create persona** besi
To import definitions written as files:

1. Open **Settings → Personas** and select the destination environment.
2. Use **Import** beside **Personas**. Choose **Folder** to include all YAML definitions (`.yaml` or `.yml`) in that folder and its subfolders (hidden folders and `node_modules` are skipped), or **Import → Persona file** to select one YAML file. On web and desktop the picker browses the selected environment's filesystem, the same picker **Add folder** uses; on mobile it opens your device's file picker. Other files are ignored. Each file must contain one persona definition with its own unique ID.
2. Use **Import** beside **Personas** (on mobile, the **Import persona file** and **Import a folder of personas** rows under the list). Choose **Folder** to include all YAML definitions (`.yaml` or `.yml`) in that folder and its subfolders (hidden folders and `node_modules` are skipped), or **Import → Persona file** to select one YAML file. On web and desktop the picker browses the selected environment's filesystem, the same picker **Add folder** uses; on mobile it opens your device's file picker. Other files are ignored. Each file must contain one persona definition with its own unique ID.
3. The library refreshes after a successful import. Import and removal results appear as temporary toast notifications. A selection can contain up to 50 definitions, each at most 64 KiB. If any definition is invalid, none of the selection is imported; the error identifies the file.

Definitions are YAML files. Use `instructions: |` followed by indented text for multiline instructions. Keep one definition per file; JSON files are not imported.

Definitions are copied into the selected environment's library. To bring a persona over from another connected environment, use **Copy to environment** instead. Later changes to the original files require another import. If any selected persona IDs already exist, a confirmation lists the affected personas. Each conflicting persona has a replacement toggle, initially on. Turn it off to skip importing that persona and keep its current definition. Choose **Import selected** to import new personas and overwrite the selected existing personas, including local edits, or **Cancel** to import nothing. Turning off every replacement still imports any new personas in the selection. Replacement preserves each persona’s on/off setting and existing tasks; future launches use the imported definition. Original source files remain unchanged. If an existing definition changes while confirmation is open, you will be asked to confirm again. Duplicate IDs within the same selection are always rejected.

Each persona shows its availability badge (hover a **Blocked** badge on web or desktop, or read the lines under the description on mobile, to see which route failed and why: a model the signed-in provider does not offer, a provider that is not signed in, or a runtime policy that is not enforceable yet) and its origin (**Personal** for created or imported personas, or **Folder** with the source folder's name). Once a persona has launched a task, a usage line appears under its description: tasks, runs, completed and failed counts, the average run time, tokens reported by the provider, and the last launch date. Hover the line (web and desktop) to see which model routes those tasks actually resolved to. The numbers are read from the environment's existing task history whenever Settings opens, so nothing extra is stored. Every listed persona has an **On/Off** switch, including folder personas. New imports start on. Turn a persona off to keep it in the library while preventing new launches; its status changes to **Disabled**. Turn it back on to make it available for activation, subject to its model and runtime-policy requirements. The setting belongs to the selected environment and survives restarts and edits; switching off a folder persona never touches its file.
Each persona shows its availability badge (hover a **Blocked** badge on web or desktop, or read the line under its name on mobile, to see which route failed and why: a model the signed-in provider does not offer, a provider that is not signed in, or a runtime policy that is not enforceable yet) and its origin (**Personal** for created or imported personas, or **Folder** with the source folder's name). Once a persona has launched a task, a usage line appears under its description (on mobile, in the status line under its name): tasks, runs, completed and failed counts, the average run time, tokens reported by the provider, and the last launch date. Hover the line (web and desktop) to see which model routes those tasks actually resolved to. The numbers are read from the environment's existing task history whenever Settings opens, so nothing extra is stored. Every listed persona has an **On/Off** switch, including folder personas. New imports start on. Turn a persona off to keep it in the library while preventing new launches; its status changes to **Disabled**. Turn it back on to make it available for activation, subject to its model and runtime-policy requirements. The setting belongs to the selected environment and survives restarts and edits; switching off a folder persona never touches its file.

To remove a persona whether it is on or off, choose **Remove** from its row's **⋯** menu on web and desktop, or use its trash icon on mobile. Removing an imported or personal copy deletes it, so it must be imported again to come back. A removed folder persona stays in the list marked **Removed** with a **Restore** action that brings it back. Source files remain unchanged, removal survives restarts, and running tasks keep their saved definition.
To remove a persona whether it is on or off, choose **Remove** from its row's **⋯** menu. Removing an imported or personal copy deletes it, so it must be imported again to come back. A removed folder persona stays in the list marked **Removed** with a **Restore** action that brings it back. Source files remain unchanged, removal survives restarts, and running tasks keep their saved definition.

To edit an imported or personal persona, choose **Edit** from its row's **⋯** menu on web and desktop, or use its pencil icon on mobile. You can change its **Name**, **Description**, **Instructions**, **Runtime policy**, and **Primary/Fallback models** with their reasoning settings. The same menu also has **Duplicate as personal persona**, which opens the create dialog prefilled from that persona with a fresh ID (the way to customize a folder persona), **Export YAML**, which downloads or shares the definition as a file another environment or teammate can import, and, when more than one environment is connected, **Copy to environment**, which imports the same definition into the environment you pick. Copying uses the ordinary import path, so an existing persona with the same ID in the target asks for confirmation before it is replaced. Open the model menu to see every signed-in provider whose models offer a reasoning setting, such as Cursor, OpenCode, and Pi. A persona only launches on a provider whose sandbox enforces its runtime policy; on other providers it shows as **Blocked**. The editor lists those providers under **Runtime policy** and names any chosen provider that can't sandbox it. The runtime policy controls only the sandbox, so write anything the persona should not do, such as committing or merging, into its instructions. Hover over a provider to open its models in a side submenu (tap on mobile). Reasoning stays in a separate control showing all options supported by the selected model. Model choices come from the selected environment. Previously configured values are retained until you change them, including unavailable models and other reasoning levels. Save updates only the imported copy and preserves its on/off setting. Cancel discards the draft. Changes affect future launches; the original file and existing tasks stay unchanged. Import a copy first to edit a folder-loaded persona. Instructions and the persona ID are not editable in this form.
To edit an imported or personal persona, choose **Edit** from its row's **⋯** menu, or tap its row on mobile. You can change its **Name**, **Description**, **Instructions**, **Runtime policy**, and **Primary/Fallback models** with their reasoning settings. The same menu also has **Duplicate as personal persona**, which opens the create dialog prefilled from that persona with a fresh ID (the way to customize a folder persona), **Export YAML**, which downloads or shares the definition as a file another environment or teammate can import, and, when more than one environment is connected, **Copy to environment**, which imports the same definition into the environment you pick. Copying uses the ordinary import path, so an existing persona with the same ID in the target asks for confirmation before it is replaced. Open the model menu to see every signed-in provider whose models offer a reasoning setting, such as Cursor, OpenCode, and Pi. A persona only launches on a provider whose sandbox enforces its runtime policy; on other providers it shows as **Blocked**. The editor lists those providers under **Runtime policy** and names any chosen provider that can't sandbox it. The runtime policy controls only the sandbox, so write anything the persona should not do, such as committing or merging, into its instructions. Hover over a provider to open its models in a side submenu (tap on mobile). Reasoning stays in a separate control showing all options supported by the selected model. Model choices come from the selected environment. Previously configured values are retained until you change them, including unavailable models and other reasoning levels. Save updates only the imported copy and preserves its on/off setting. Cancel discards the draft. Changes affect future launches; the original file and existing tasks stay unchanged. Import a copy first to edit a folder-loaded persona. Instructions and the persona ID are not editable in this form.

To invoke a persona in Codex or Claude, type **@** in the composer and select a persona, or type `@persona:<id>` directly. For example: `@persona:scout review the authentication flow`. Available personas come from the current environment. You can remove a selection by deleting its mention before sending.

Expand Down
Loading