Skip to content

claude-code template: enable built-in cc-plugin-you-should-know in init-plugins.sh #254

Open

Description

@gatezh

Summary

Claude Code ships a built-in plugin, cc-plugin-you-should-know@builtin. It's a side agent that watches longer tasks and surfaces things worth knowing above the prompt box. It's off by default, and the CLI advertises it with a tip: /plugin enable cc-plugin-you-should-know@builtin.

Each downstream project keeps ~/.claude in its own volume, so this has to be turned on by hand in every container. init-plugins.sh already exists to set up plugins once per volume, so enabling the plugin there would cover every project built from the template.

Why init-plugins.sh, and why enable

  • Built-in plugins come with the CLI, so claude plugin install doesn't apply to them. claude plugin enable is the right verb. It writes enabledPlugins in $CLAUDE_CONFIG_DIR/settings.json, which is the same file the VS Code extension reads. That means extension users get the plugin without going through the /plugin UI.
  • enable can be run repeatedly: on Claude Code 2.1.309, a second run on an already-enabled plugin exits 0 (✔ Successfully enabled plugin: cc-plugin-you-should-know), which suits a script that is re-run to update plugins.
  • The plugin's own code lists terminal, desktop, mobile and vscode as display surfaces, so it's designed to work in the extension and not just the TUI.
  • Availability is decided by the CLI (account type, no HIPAA/ZDR/LDR restrictions, a server-side flag). On an account where it isn't available, the if/else below logs a warning and the script continues.

Suggested change

In claude-code/.devcontainer/init-plugins.sh, after the PLUGINS install loop:

# ── Built-in plugins ────────────────────────────────────────────────────────
# Shipped inside the CLI, so there is nothing to install, only enable (off by default).
BUILTIN_PLUGINS=(
    "cc-plugin-you-should-know@builtin"
)

for plugin in "${BUILTIN_PLUGINS[@]}"; do
    if claude plugin enable "$plugin" 2>&1; then
        echo "✔ Enabled: $plugin"
    else
        echo "⚠ Failed to enable: $plugin" >&2
    fi
done

Leave it out of the claude plugin update loop, because built-ins are versioned with the CLI.

Affected files in this repo

  • claude-code/.devcontainer/init-plugins.sh (the template, which covers the default and sandbox variants)
  • .devcontainer/init-plugins.sh (this repo's own devcontainer, if it should match)

Activity

  1. added
    enhancement
    on Oct 25, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions