{"version":"2.1.333","anchor":"plugin-hooks-runtime-gains-many-apis","canonical_anchor":"plugin-hooks-runtime-gains-many-apis","heading":"Plugins can move, copy and delete files, stream HTTP and control sessions","tier":"internal","area":"Plugin API","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/plugin-hooks-runtime-gains-many-apis","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Plugins can move, copy and delete files, stream HTTP and control sessions\n\nThe plugin programming interface gains file remove, rename and copy, streaming HTTP, new session calls and a feedback command set\n\n**Unclear.** Some of these fields depend on a further check that was not identified, so they may not be available to every plugin.\n\n**What**\n\nPlugins (add-ons that extend Claude Code) talk to it through a set of built-in functions. That set has grown. Before, file access covered only reading, writing, listing, checking whether something exists, file details, and parent folders. Now plugins also get:\n\n- `fs.remove`, `fs.rename` and `fs.copy` for deleting, moving and copying files\n\n- writes that only happen if the file is still at an expected version\n\n- `http.stream` for streaming web responses\n\n- `session.awake`, `session.load` and `session.waitUntil` for working with sessions (a session is one Claude Code conversation)\n\n- `session.compact`, which takes either an `instructions` string or nothing\n\n- an `isUnnamed` field on `command.register`\n\n- a consent field on `prompt.submit`\n\n- a new `feedback` set with review, draft and discard actions\n\n**Why**\n\nPlugin authors can do considerably more on their own, such as managing files fully and waiting on or loading sessions, without workarounds.\n\n- Area: Plugin API\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}