{"name":"asUser","slug":"asuser","family":"setting","title":"Settings keys","noun":"settings key","description":"Plugin hooks can now call a new prompt.compose method, and prompt.submit now accepts an asUser option that must be true or false","description_source":"entry","described_by":{"version":"2.1.286","anchor":"composer-gains-composedfromownwordsonly-and-a-promptcompose"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.287","builds":0,"mined_builds":130,"first_cited":{"version":"2.1.286","released_at":"2026-09-30 17:14:38","spans":4}},"aliases":[],"entries":[{"version":"2.1.286","anchor":"composer-gains-composedfromownwordsonly-and-a-promptcompose","heading":"Plugin hooks gain a prompt.compose method and an asUser option on submit","line":"Plugin hooks can now call a new prompt.compose method, and prompt.submit now accepts an asUser option that must be true or false","released_at":"2026-09-30 17:14:38","reason":"named in this entry, found in this entry's text"},{"version":"2.1.286","anchor":"plugin-promptsubmit-accepts-asuser-and-marks-origin","heading":"Plugins can submit a prompt marked as coming from the user","line":"Plugins that submit prompts can now pass an `asUser` flag, which marks the queued prompt as sent on the user's behalf","released_at":"2026-09-30 17:14:38","reason":"named in this entry, found in this entry's text"},{"version":"2.1.286","anchor":"plugin-hook-results-drop-the-asuser-field-function-hooks-sc","heading":"Plugin results lose their asUser marker, and hooks accept one more output format","line":"Claude Code now removes a field called asUser from results that come from a plugin, and hooks accept one more output format","released_at":"2026-09-30 17:14:38","reason":"named in this entry, found in this entry's text"}],"entries_total":3,"docs":[{"source":"api","path":"managed-agents\/sessions","title":"sessions","documented":false},{"source":"claude-code","path":"plugins\/cli-reference","title":"Plugin commands reference","documented":false},{"source":"claude-code","path":"plugins\/mods\/api","title":"Use the mods API","documented":false},{"source":"claude-code","path":"plugins\/mods\/reference","title":"Mods reference","documented":false}],"docs_total":4,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/asuser","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}