Skip to content

Switch plugin profiles in a running session with /plugin-profile #16433

Closed

Description

@kyle-sexton

Parent

Refs #16428: Ship the plugin-profiles plugin and remove the core bundle

Depends on

Outcome

In a running session, /plugin-profile shows a picker, a preview of what will change and a confirm, all without a model turn; the switch enables the new profile's plugins at once, reloads once at the end of the turn, and leaves disables for the next session start, saying so.

Demo: in an interactive session in a folder with build applied, /plugin-profile → review → confirm; the reload summary at the end of the turn shows the added plugins, and the next session start drops the ones review leaves out.

Decisions

  • Q64: preview and confirm before writing; --yes required with nobody to ask.
  • AC11 order: write the on entries, reload at turn.complete, then write the off entries; an off-pending record completes on the next run (D8).
  • Refuse the switch when folder remembering is off or PLUGIN_PROFILES_SESSION is set, and say how to start a session in that profile.
  • Before enabling a plugin that ships an MCP or language server, name it and say the next message re-reads the conversation; never pass --force on its own.
  • Only the mod uses the mods API; it runs the CLI as a process and imports no engine code.

Key interfaces

The mod (register.tsx): a command with a picker, a turn.complete hook that runs /reload-plugins, the remember_folder_profile plugin option (boolean, default true). Conventions: ADR 0052 (one mod per plugin, version floor 2.1.287).

Review criterion (owner): "Make sure we're applying solid principles: Single Responsibility Principle, DRY, Single Source of Truth principle, so no duplication. Make sure we're adhering to general good practice, best practice, and software engineering principles: low coupling, high cohesion; things that change together live together; feature vertical slice architecture."

Done when

  • AC6, AC10, AC13: claude plugin test cases for the picker, confirm, MCP/LSP prompt and the remembering-off refusal pass, and the mod test runner prints no skip line.
  • AC9, AC11: the live demo above shows one reload at the end of the turn and no /reload-skills.
  • AC7 (process criterion of this container): the container's PR also removes core.

Out of scope

  • The guided setup and the shipped profiles beyond always-on and build.

Activity

  1. added
    agent-ready
    on Nov 15, 2026
  2. added
    needs-triage
    on Nov 15, 2026
  3. self-assigned this
    on Nov 15, 2026
  4. github-actions commented on Nov 15, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Decision recorded. Merged PR #16483 delivered this issue's code: the /plugin-profile mod (picker, preview, confirm, one reload at turn.complete, refusal when remembering is off or a one-session profile is set, MCP/LSP prompt), its claude plugin test cases, and the core removal (AC7); scripts/test-plugin-mods.sh passes with no skip line. Left: the live demo (AC9, AC11) — in an interactive session on the installed release, in a folder with build applied, run /plugin-profile → review → confirm and show one reload at the end of the turn, no /reload-skills, and the next session start dropping the plugins review leaves out. That needs an interactive host session, so it stays host-run; close this issue once the demo is recorded here.

    #16433 (comment)

    This decision settles the open questions. The code and tests shipped in #16483. What remains is the live demo (AC9, AC11), which needs an interactive host session, so it stays host-run. Nothing more is asked here.

    Automated triage. A maintainer reviews it.

  5. removed
    needs-triage
    on Nov 15, 2026
  6. melodic-automation-lanes commented on Nov 15, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: it carries host-run. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  7. added
    host-run
    on Nov 16, 2026
  8. github-actions commented on Nov 16, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  9. kyle-sexton commented on Nov 16, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. Merged PR #16483 delivered this issue's code: the /plugin-profile mod (picker, preview, confirm, one reload at turn.complete, refusal when remembering is off or a one-session profile is set, MCP/LSP prompt), its claude plugin test cases, and the core removal (AC7); scripts/test-plugin-mods.sh passes with no skip line. Left: the live demo (AC9, AC11) — in an interactive session on the installed release, in a folder with build applied, run /plugin-profile → review → confirm and show one reload at the end of the turn, no /reload-skills, and the next session start dropping the plugins review leaves out. That needs an interactive host session, so it stays host-run; close this issue once the demo is recorded here.

  10. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    Live demo run by the owner on 2026-11-17 (Claude Code 2.1.326, plugin-profiles 0.3.0), in a worktree folder with build applied. Two interactive sessions, each started as bare claude.

    Step Result
    Session 1 start, /reload-plugins start notice names build; 57 plugins, 226 skills
    /plugin-profile, pick review, Apply picker, preview and confirm with no model turn; preview: on 0, off 7; "Switched this folder to profile review" names the seven that stay loaded
    One prompt sent one automatic /reload-plugins 0.5 s after the reply (57 plugins, 226 skills), then "profile review is in force"; the seven entries are false in .claude/settings.local.json; no /reload-skills in the transcript
    Session 2 start, /reload-plugins start notice names review; 50 plugins, 205 skills: the seven are gone
    /plugin-profile build, Apply, one prompt preview: on 7, off 0; one automatic reload shows 57 plugins, 226 skills; "profile build is in force"

    AC9 and AC11 are shown: one reload at the end of the turn, no /reload-skills, switch-offs left for the next session start.

    build to review adds no plugin in this folder, so the added plugins were shown on the way back to build.

    Display and wording defects seen during the run are in #16747.

  11. removed
    host-run
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-ready

Fields

Work status

confirmed

Priority

medium

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions