Skip to content

context: measure startup under plugin profiles and review which skills must stay model-invocable - part 1 of 2 #18142

Closed

Description

@melodic-automation-lanes

Part 1 of 2 of #17278, split at intake (owner Q93). The done-when below is copied from #17278 as written.

Done when

  • A table gives the startup tokens per source under each measured profile, beside the default.
  • The skill listing budget stays at 6% unless the owner approves a change after seeing the measurements.

Activity

  1. added
    needs-triage
    on Nov 22, 2026
  2. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Knowable
    Flags: none
    Blocked by: none
    Blast radius: a measurement table in docs or context records; no runtime code. Read by maintainers deciding the skill listing budget.
    Reversible: yes; revert the doc change.
    Open questions: none
    Understood: part 1 of 2 of #17278 asks for a table of startup tokens per source under each plugin profile, beside the default. The 6% skill listing budget stays unchanged unless the owner approves a change after seeing the numbers. The sibling part 2 is a separate issue. Neither is a duplicate. Profile definitions may depend on the plugin-profiles work, but nothing here blocks it.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 22, 2026
  4. melodic-automation-lanes commented on Nov 22, 2026

    @melodic-automation-lanes
    ContributorAuthor

    {"v":1,"actor_id":337595936,"title_sha256":"2998aa720edf16ffdc11053dce6d47162ba3f8b27ba3ba83f559e5740d1e2a03","body_sha256":"e7c254eefdf2857e1e478a1592fdb0ae217a1f04c5bfff3778fa07094513fe56"}

  5. melodic-automation-lanes commented on Nov 22, 2026

    @melodic-automation-lanes
    ContributorAuthor

    {"v":1,"actor_id":337595936,"title_sha256":"2998aa720edf16ffdc11053dce6d47162ba3f8b27ba3ba83f559e5740d1e2a03","body_sha256":"e7c254eefdf2857e1e478a1592fdb0ae217a1f04c5bfff3778fa07094513fe56"}

  6. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor
    No description provided.
  7. melodic-automation-lanes commented on Nov 22, 2026

    @melodic-automation-lanes
    ContributorAuthor

    The work-resolve-issue lane stopped partway through this issue and needs a person.

    Reason: security

    Matched security word: token. A match holds the stop whether or not the text names a risk, so read the word in context below.

    Why, in the run's own words:

    host-only: the first done-when item needs a table of startup tokens per source under each plugin profile, beside the default. Getting those numbers means starting real Claude Code sessions with each profile applied: headless runs to rank the profiles (for example through /context-budget:audit, which starts a short-lived headless session per measurement), then interactive sessions for the final figures. This lane can only run its named wrapper scripts, so it cannot start a Claude Code session or run the context-budget measure script. The second item (keep the skill listing budget at 6% unless the owner approves a change after seeing the measurements) depends on that table, and this run changes nothing that would break it.

    What the run says it did not do:

    • Startup-token table per source under each measured profile beside the default: needs Claude Code sessions run on a host with each profile applied, which this lane cannot start
    • Tidy, review, verify and checks prep steps: skipped because the run changed no file

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44996145080

    To retry, set Work status to agent-ready again (clearing the needs-human hold).

  8. kyle-sexton commented on Nov 22, 2026

    @kyle-sexton
    Member

    Host measurement for the first done-when item: startup tokens per source under each shipped plugin profile, beside the default (no profile). Measured 2026-11-22 on one WSL host, Claude Code 2.1.330, model claude-opus-5-5 (1M window).

    Startup tokens per source, median of 3 headless runs

    Values are the /context category rows, display-rounded by Claude Code (for example 24.8k is recorded as 24800). "Startup total" sums every row except the deferred pools, free space and the autocompact buffer, matching the Tokens: headline /context prints (baseline headline: 78.1k).

    Source default (no profile) build discovery harness-upkeep improve interface-design native planning review
    System prompt 1900 1900 1900 1900 1900 1900 1900 1900 1900
    System tools not shown not shown not shown not shown not shown not shown 4600 not shown not shown
    MCP tools 9400 9400 9400 9400 9400 9400 9500 9400 9400
    MCP server instructions 2200 2200 2200 2200 2200 2200 1900 2200 2200
    Custom agents 5500 4200 1800 2900 3700 3100 880 3000 3400
    Memory files 7300 7300 7300 7300 7300 7300 7300 7300 7300
    Skills 51700 24800 15100 38200 20500 26400 6300 24000 20600
    Messages 10 10 10 10 10 10 10 10 10
    Startup total 78010 49810 37710 61910 45010 50310 32390 47810 44810
    Skills share of the 1M window 5.2% 2.5% 1.5% 3.8% 2.1% 2.6% 0.6% 2.4% 2.1%
    Skills listed (rows in /context) 295 146 99 221 129 157 42 144 124
    Deferred, not in the total: MCP tools (deferred) 29500 29500 29500 29500 29500 29500 26900 29500 29500
    Deferred, not in the total: System tools (deferred) 10000 10000 10000 10000 10000 10000 10000 10000 10000

    The default's 5.2% Skills share is the value /context printed. The other shares are Skills divided by the 1M window.

    Every run (startup total / Skills / MCP tools / skills listed)

    Config Run 1 Run 2 Run 3
    default 78010 / 51700 / 9400 / 295 78010 / 51700 / 9400 / 295 78010 / 51700 / 9400 / 295
    build 49310 / 24800 / 9400 / 146 49810 / 24800 / 9400 / 146 49810 / 24800 / 9400 / 146
    discovery 37710 / 15100 / 9400 / 99 37710 / 15100 / 9400 / 99 37710 / 15100 / 9400 / 99
    harness-upkeep 61910 / 38200 / 9400 / 221 61910 / 38200 / 9400 / 221 61910 / 38200 / 9400 / 221
    improve 45010 / 20500 / 9400 / 129 45010 / 20500 / 9400 / 129 45010 / 20500 / 9400 / 129
    interface-design 50310 / 26400 / 9400 / 157 50310 / 26400 / 9400 / 157 50310 / 26400 / 9400 / 157
    native 32390 / 6300 / 9500 / 42 32390 / 6300 / 9500 / 42 32390 / 6300 / 9500 / 42
    planning 47810 / 24000 / 9400 / 144 47810 / 24000 / 9400 / 144 47810 / 24000 / 9400 / 144
    review 44810 / 20600 / 9400 / 124 44810 / 20600 / 9400 / 124 44810 / 20600 / 9400 / 124

    The only run-to-run difference is build run 1: MCP server instructions came in at 1700 instead of 2200 and MCP tools (deferred) at 28000 instead of 29500. That looks like one MCP server connecting late. Skills and Custom agents were identical across all three runs of each config.

    Method

    • Profiles: the 8 shipped under plugins/plugin-profiles/profiles/ (always-on is the base every profile merges, so it is not launched alone). hub appears in profiles.mjs list but is a user-level profile on this host, not a shipped one, so it is excluded.
    • Each profile's one-session settings file was written once with node plugins/plugin-profiles/scripts/profiles.mjs launch <profile> --folder <scratch dir> --unattended --json. launch writes only <plugin data dir>/sessions/<folder hash>-<profile>.json and no user, project or local settings file (plugins/plugin-profiles/scripts/profiles.mjs, launchSettings and sessionFile).
    • Each run: env -u PLUGIN_PROFILES_SESSION -u PLUGIN_PROFILES_SESSION_FILE -u SESSION_SETTINGS_FILE claude -p /context [--settings <session file>] with stdin empty, cwd a scratch folder under this repository's .work/. The default run has no --settings. Headless /context is answered by the CLI and makes no model call.
    • Each capture was parsed with node plugins/context-budget/skills/audit/scripts/measure.mjs parse-context --file <capture> (cli-parse mode, display-rounded).
    • Order: default, then the 8 profiles alphabetically, repeated 3 times (27 runs, each about 4 to 6 seconds, all exit 0).
    • The scratch folder sits inside this repository, so this repository's memory files (7.3k) and project settings load in every run. "Default" means this host's user settings plus this repository's settings, with no profile. The MCP rows come from MCP servers outside the profile-managed plugins and barely move between profiles.
    • /context shows no System tools row in any run except native (4.6k). Every run shows a 10k System tools (deferred) row. So native's startup total includes a row the other configs do not show, and the gap between native and the others is slightly understated.

    What this run settles, per done-when item

    • Item 1, the startup-token table per source under each measured profile beside the default: settled for headless sessions on Claude Code 2.1.330. The lane's stop comment also called for interactive sessions for the final figures. The interactive run is not done, because interactive sessions load tools a headless -p session does not (plugins/context-budget/skills/audit/reference/interactive-only-tools.json). It remains for anyone who wants the interactive figures; the headless table already ranks the profiles.
    • Item 2, the skill listing budget stays at 6% unless the owner approves a change after seeing the measurements: nothing in this run changes the budget. The measurements the owner needs are above: Skills take 5.2% of the window in the default and 0.6% to 3.8% under the shipped profiles. A change to the budget is the owner's decision.
  9. kyle-sexton commented on Nov 22, 2026

    @kyle-sexton
    Member

    Both Done-when items are met. (1) The startup table per profile beside the default is in #18142 (comment) (Claude Code 2.1.330, headless /context, 3 runs per config, one-session files only). (2) The skill listing budget stays at 6%; nothing changed it. The numbers are recorded for the owner if he wants to revisit it. Interactive-session figures were not measured, since interactive sessions load extra tools. Closed by the hub; this releases #18143.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    needs-human

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions