返回 CodeWhale
CREATOR_MODE.md
根目录 / docs / CREATOR_MODE.md
1 # Creator mode
2
3 Creator mode is a conversation mode for building and testing plugins. A
4 Creator mode conversation starts with the plugin tools and the plugin-writing
5 skills already loaded, so you can describe the plugin you want and have
6 Codewhale write it, install it in this project and try it.
7
8 The everyday mode is called Standard. A conversation is one or the other, and
9 the choice is fixed after its first message.
10
11 To write a plugin by hand, start with
12 [Write your first plugin](PLUGIN_AUTHORING.md). What a plugin can contain is in
13 [Plugins](PLUGINS.md).
14
15 ## Before you start
16
17 - Creator mode needs a plugin runtime: Node.js or Bun. Without one, the mode
18 is listed as unavailable with that reason.
19 - The `plugin_creator` feature is beta and on by default. Setting
20 `plugin_creator = false` under `[features]` turns the mode off; see
21 [Configuration](CONFIGURATION.md).
22 - A session that runs another agent as its executor uses that agent's own
23 tools and instructions, so conversation modes are unavailable there.
24
25 ## Start a Creator mode conversation
26
27 | Where | How |
28 | --- | --- |
29 | A new conversation | `/new creator` (`--force` still combines) |
30 | A blank conversation | `/mode creator`, or pick Creator mode in the first group of the `/mode` picker |
31 | The shell | `codewhale --conversation-mode creator`, also on `codewhale exec` |
32
33 After the first message the mode is locked: the picker shows the group as
34 locked and `/mode creator` is refused with a note to start a new conversation.
35 `/new` alone starts a Standard conversation.
36
37 Resume, `/load`, `/fork` and `/clear` keep the conversation's saved mode. The
38 footer shows the mode name when it is not Standard. With `--resume`,
39 `--session-id` or `--continue`, `--conversation-mode` must match the session's
40 saved mode, or the run exits with code 2 before any model call.
41
42 ## What it loads
43
44 A Creator mode conversation always loads three tools, `plugin_manager`,
45 `cordis_inspect_list` and `cordis_inspect_query`, together with the creator
46 skills. A Standard conversation does not.
47
48 ## Permissions
49
50 A mode never changes a permission. Creator mode in Plan is still Plan, and
51 every plugin change passes the same gate as any other action.
52
53 Read-only `plugin_manager` queries run under every permission setting without
54 a prompt.
55
56 Calls that change plugin state (`install_bundle`, `remove_bundle`,
57 `set_bundle`, `set_plugin`) are prepared read-only and gated by the engine
58 before they run:
59
60 | Change | Decided by |
61 | --- | --- |
62 | A local change inside the workspace | The session's permission setting: an approval card in Ask and Accept Edits, the reviewer and allow rules in [Auto-Review](AUTO_REVIEW.md), and it runs in Full Access. The plugin state records that the agent made the change. |
63 | A path outside the project | You, on the approval card, even in Auto-Review and Full Access. |
64 | A remote spec, or a local bundle with unresolved npm dependencies | You. Nothing is fetched before approval, and the bundle lands disabled and untrusted. |
65 | A bundle that declares stdio MCP connectors or hooks while shell execution is disabled | You. |
66 | A plugin you approved yourself, or a built-in switch | You. |
67
68 Changing plugin calls are refused in Plan, with `sandbox_mode = "read-only"`,
69 under the `never` permission, in background runs, in sub-agents and inside
70 `execute_tools`.
71
72 ## Related pages
73
74 - [Modes and permissions](MODES.md)
75 - [Plugin bundles](PLUGIN_BUNDLES.md) for review, trust and activation
76 - [Writing a plugin tool](EXTENSIONS.md) for the plugin runtime
77
77 lines MARKDOWN