Skip to content

Add hot reloading support to llm_examples/acp/ - #790

Open
eb8680 wants to merge 10 commits into
masterfrom
eb-autoreload
Open

eb8680 wants to merge 10 commits into
masterfrom
eb-autoreload

Conversation

@eb8680

@eb8680 eb8680 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

This PR refactors docs/source/llm_examples/acp/ to support autoreloading with hmr: the ACP server can detect edits to harness files or even its own code and immediately hot-reload the edited code automatically, without user intervention or process restarts. Among other things, this allows an agent to edit its own code on the fly when it is accessed through an ACP client like Zed or Poolside.

The diff is quite large, but that's mostly a consequence of splitting up one file into two so that the bulk of the code can be hot-reloaded while the low-level ACP server logic remains fixed. It also includes a number of miscellaneous small improvements to robustness, usability and extensibility, e.g. simplifying adding new slash commands.

@eb8680
eb8680 requested a review from datvo06 September 23, 2026 21:50

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants