Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

docs: explain self-modification in local development (#3686)

prha49681156078d
diff --git a/docs/extensions.md b/docs/extensions.md
index bc602cd89..95ff2be81 100644
--- a/docs/extensions.md
+++ b/docs/extensions.md
@@ -334,6 +334,10 @@ export default defineHook({
`toolResultFrom` recognizes the mounted `crm__search` result from the original definition, not the namespaced string. Publishers should keep tool descriptions distinct so eve can assign each definition an unambiguous identity.
+### Bundled development extensions
+
+Local `eve dev` also mounts bundled development extensions without creating a project mount. The self-modification extension is included by default when `eve dev` starts a local server. Bundled development extensions are not included in production builds. See [Self-Modification](./guides/self-modification) for the local workflow.
+
### Compatibility
At build time, eve checks the extension's generated capability metadata. If the extension needs an unsupported capability contract, upgrade eve or install a compatible extension release.
diff --git a/docs/getting-started.mdx b/docs/getting-started.mdx
index 9d410ad4c..e805ab70d 100644
--- a/docs/getting-started.mdx
+++ b/docs/getting-started.mdx
@@ -57,7 +57,7 @@ cd my-agent
npm run dev
```
-This starts an interactive session where you can send messages to your agent. Edit `agent/instructions.md` to change its behavior and `agent/agent.ts` to configure its model. eve reloads your changes as you work.
+This starts an interactive session where you can send messages to your agent. Edit `agent/instructions.md` to change its behavior and `agent/agent.ts` to configure its model. eve reloads your changes as you work. You can also ask the agent to update its own instructions, tools, or skills; see [Self-Modification](./guides/self-modification).
<span id="project-layout" />
<span id="agent-directory-layout" />
diff --git a/docs/guides/dev-tui.md b/docs/guides/dev-tui.md
index 3a92186e4..52ac3c142 100644
--- a/docs/guides/dev-tui.md
+++ b/docs/guides/dev-tui.md
@@ -3,7 +3,7 @@ title: "Terminal UI"
description: "Use eve locally or connect to a deployed agent from an interactive terminal UI."
---
-`eve dev` starts a local development server and opens an interactive terminal UI. Use it to talk to your agent, approve tool calls, answer its questions, and configure local development.
+`eve dev` starts a local development server and opens an interactive terminal UI. Use it to talk to your agent, approve tool calls, answer its questions, and configure local development. When `eve dev` starts a local server, self-modification is available by default; see [Self-Modification](./self-modification).
```bash
eve dev
diff --git a/docs/guides/self-modification.md b/docs/guides/self-modification.md
new file mode 100644
index 000000000..5ffab3574
--- /dev/null
+++ b/docs/guides/self-modification.md
@@ -0,0 +1,37 @@
+---
+title: "Self-Modification"
+description: "Ask your agent to update its own instructions, tools, skills, and other authored files during local development."
+---
+
+When `eve dev` starts a local server, it mounts the bundled self-modification extension by default. Ask your agent to change its instructions, tools, skills, or other files under `agent/`; eve delegates the source work to the `self-modification__agent` subagent. Connecting to an existing server with `eve dev <url>` does not add the bundled extension to that server.
+
+The bundled extension is for local development and is not included in production builds.
+
+```bash
+eve dev
+```
+
+For example, ask the agent to add a reusable action:
+
+```text
+Add a tool that converts temperatures between Celsius and Fahrenheit.
+```
+
+The self-modification subagent changes the authored files in your project. Review the diff and test the new behavior as you would for any other source change. `eve dev` reloads changes while you work.
+
+## Run without self-modification
+
+Pass `--no-default-extensions` when you do not want `eve dev` to mount bundled development extensions:
+
+```bash
+eve dev --no-default-extensions
+```
+
+This disables the complete bundled default set for that server, including self-modification. It does not remove files from your project or disable extensions that you have explicitly mounted under `agent/extensions/`.
+
+## What to read next
+
+- [Terminal UI](./dev-tui): work with your agent locally.
+- [Instructions](../instructions): define the agent's behavior.
+- [Tools](../tools): add model-callable actions.
+- [Skills](../skills): give the agent reusable procedures.
diff --git a/docs/install-integrations.mdx b/docs/install-integrations.mdx
index 3c0c8edd4..71bb7540f 100644
--- a/docs/install-integrations.mdx
+++ b/docs/install-integrations.mdx
@@ -23,7 +23,7 @@ Web Chat installs a project-level Next.js application. It cannot be added to an
If you do not know an item name yet, run `eve add` without an argument. Its help output shows how to search the registry with `eve registry search <query>`.
-Extensions may create a mount under `agent/extensions/`. Connections write their initial definition under `agent/connections/` and install `@vercel/connect` when required. Instrumentation integrations write one destination file under `agent/instrumentation/`, so you can install and configure multiple exporters independently. Configure generated files and required environment variables before running your agent.
+Extensions may create a mount under `agent/extensions/`. For example, `eve add eve/self-modification` creates an authored self-modification mount. Connections write their initial definition under `agent/connections/` and install `@vercel/connect` when required. Instrumentation integrations write one destination file under `agent/instrumentation/`, so you can install and configure multiple exporters independently. Configure generated files and required environment variables before running your agent.
When an official item declares an interactive setup flow or flows, eve asks whether to run them after installation and runs multiple flows in declaration order. Run the printed `eve add <item> --skip-install` command to resume a skipped or cancelled setup later; it reruns the item's declared flows from the beginning.
diff --git a/docs/meta.json b/docs/meta.json
index 1daa06806..0dcbf7570 100644
--- a/docs/meta.json
+++ b/docs/meta.json
@@ -30,6 +30,7 @@
"guides/instrumentation",
"---Reference---",
"guides/dev-tui",
+ "guides/self-modification",
"...reference",
"responsible-use",
"[Benchmarks](/benchmarks)",
diff --git a/docs/reference/cli.md b/docs/reference/cli.md
index ad90fa29a..f053ae1c8 100644
--- a/docs/reference/cli.md
+++ b/docs/reference/cli.md
@@ -234,7 +234,7 @@ Pass a bare URL and the UI connects to that server instead of booting a local on
| `--context-size <tokens>` | number | none | Model context window size, shown as a usage percentage |
| `--logs <mode>` | enum | `stderr` | Server/agent logs to show: `all` \| `stderr` \| `sandbox` \| `none` |
-Local development mounts bundled development extensions without adding files to your project. The default set includes the self-modification extension and its `self-modification__agent` subagent. Pass `--no-default-extensions` to disable the complete set for that server.
+Local development mounts bundled development extensions without adding files to your project. Pass `--no-default-extensions` to disable them. See [Self-Modification](../guides/self-modification) for details.
`eve acp` reserves stdin and stdout for newline-delimited JSON-RPC and sends diagnostics to stderr. Without a URL, it supervises an isolated local development server. With a URL, it bridges ACP to that server's existing eve HTTP API and accepts the same URL credentials and request headers as `eve dev <url>`. Pass `--scope <team>` when the active Vercel scope does not own the deployment; `EVE_VERCEL_SCOPE` provides the same value for managed harnesses. See [Agent Client Protocol (ACP)](../protocols/acp) for client configuration and capability limits.
diff --git a/docs/subagents/index.mdx b/docs/subagents/index.mdx
index f99b9759b..17b743a84 100644
--- a/docs/subagents/index.mdx
+++ b/docs/subagents/index.mdx
@@ -103,7 +103,7 @@ Every declared local or remote subagent runs as a durable background task: the c
A mounted extension can also contribute declared subagents from `extension/subagents/`. The mount namespace prefixes the subagent visible to the consuming agent node: mounting an extension as `crm` exposes its `reviewer` subagent as `crm__reviewer`. The contributed subagent keeps its own isolated tools, connections, skills, hooks, instructions, sandbox, and nested subagents, and its modules can read configuration from the extension handle. See [Extensions](./extensions#add-a-subagent) for the authoring and override behavior.
-Local `eve dev` mounts the bundled self-modification extension by default, which exposes the `self-modification__agent` subagent without adding files to your project. An authored extension mounted as `self-modification` takes its place. Pass `--no-default-extensions` to run without bundled development extensions. Production builds do not include development extensions unless you mount them in your agent.
+Local `eve dev` makes the bundled `self-modification__agent` subagent available by default. Bundled development extensions are not included in production builds. See [Self-Modification](/docs/guides/self-modification) for the local workflow.
### Vercel workspace peers