Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By KilimcininKorOgluv0.1.2MITIn 1 marketplace
Lets Claude run a slash command in its own session, such as /reload-plugins after a mod update, and read the output as its next prompt. Meant for mod development only; it runs any command with your permissions, so disable it when not developing.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs commands; sends prompts on its own; changes what Claude reads (system prompt, context, reminders).
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
For mod development: lets the model run a slash command in its own session, such as /reload-plugins after a plugin update, and read the output as the next prompt.
A development tool, not an everyday mod. It was written to build and test the mods of this repository: the model updates a mod, runs
/reload-pluginsitself and checks the result in the same turn chain. It gives the model every slash command of the session (except the seven below), with your permissions, so a prompt injection that reaches the model can run a command that deletes or sends data. Install it on your own development machine while you work on mods, and disable it (claude plugin disable self-command@kilimcininkoroglu-mods) when you do not.
The model calls mcp__self-command__run with command (the name without its slash) and args. A leading slash is dropped, and a name written with its arguments (sage-memory triage) is split at the first space when args is left out. The tool is listed at the start, not behind ToolSearch.
Typical calls: reload-plugins after claude plugin update, sage-memory triage, or a mod's own command whose output the model must read to go on.
The model reads the command's output as the next prompt:
The command /reload-plugins, which you ran with the self-command tool, ran. Its output:
Reloaded: 58 plugins · 8 skills · 6 agents · 0 hooks · 1 plugin MCP server · 6 plugin LSP servers
A command that fails reports did not run: with the engine's error instead.
Refused at once: a name the session does not list (an alias too), and /clear, /exit, /quit, /logout, /login, /resume and /rewind, which clear, end or swap the session.
queued: /reload-plugins runs once this turn ends ... do not report its outcome before that output arrives. The tool text tells the model to call it as the last step of a turn.$.clock.after(0) timer runs the command with $.command.run./self-command:send, whose body is its arguments alone, so the model reads the text as a prompt and not inside a plugin-message frame. A refused send goes out as a plugin prompt with one log line. The report never starts with a slash, because the engine refuses a plugin prompt that does.Measured on Claude Code 2.1.283 (Sonnet 5): /reload-plugins ran after the turn, this mod kept its state through the reload because its own files had not changed, and the output reached the model as the next prompt. A reload that changes this mod's own files drops the pending timer, and no report follows.
claude plugin marketplace add KilimcininKorOglu/claude-code-mods
claude plugin install self-command@kilimcininkoroglu-mods
Function hooks are early access. Claude Code 2.1.288 and later load them by default, so there is nothing to switch on.
/reload-plugins in each open session.claude plugin disable self-command@kilimcininkoroglu-mods.Validated with claude plugin validate on Claude Code 2.1.283:
❯ ./register.ts hooks: session.start, tool.describe{tool=/"^mcp__self-command__run$"/}, tool.call{tool=/"^mcp__self-command__run$"/}
❯ ./register.ts calls: $.clock.after (via runLater), $.command.list, $.command.run (via runLater, send), $.prompt.submit (via send), $.tool.register, $.ui.log (via send)
Reach L2, drives Claude.
Threat model for self-command (reach L2)
1. Reads: the session's command list.
2. Runs: any slash command the model names, except the seven that clear, end or swap the session, with your permissions.
3. Sends: nothing over the network itself; a command it runs may.
4. Persists: nothing.
5. Hostile input: a prompt injection that reaches the model can run any allowed command, such as a plugin's own command that deletes or sends data. Keep it on a development machine, and off when you do not develop mods.
make install # eslint, typescript-eslint, typescript
make lint # complexity limit 10, the build fails above it
make validate
make test # claude plugin test
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
npx claudepluginhub kilimcininkoroglu/claude-code-mods --plugin self-command