GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(experimental): add endpoint to allow reloading config programmatically by benjaminshafii · Pull Request #13409 · anomalyco/opencode

Conversation

@benjaminshafii

@benjaminshafii benjaminshafii commented Feb 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

What does this PR do?

Note: this is a proposal to enable a new hot reload functionality

This PR enables hot reloading of opencode config (skill/agents/opencode.json/commands).

Shared walkthrough here on X:
https://x.com/benjaminshafii/status/2022764591378501888?s=20

Motivation

I've been working on OpenWork, an alternative GUI for opencode focused on non-coding use cases, and I've really to needed to have some form of reloading of the opencode config.

This new PR enables users to work with opencode config as a "living" system. Users can prompt opencode to add skills/plugin/etc. have them instantly available. Unlike calling /instance/dispose this is less destructive and we don't kill existing sessions.

I really need this as part of OpenWork. I have basically three options:

  1. I maintain my own fork, which I don't mind in principle, but it's a bit hard to handle. I'm a team of one right now.
  2. We merge a version of this feature into opencode
  3. provide inferior UX to my users (currently forcing instance dispose which kills all active sessions)

Implementation Decisions

The general idea is we leave it up to the server consumer to trigger hot reload via an endpoint and we provide events that allows the consumer to see if there's any reason to reload.

Tried to followOPENCODE_EXPERIMENTAL_* conventions.

Implemented 1 new endpoints:
/experimental/hotreload

Implemented a new set of events:
opencode.hotreload.{changed,applied}

Out of scope:

  • Global Config is ignored: this is purely scoped at the project level

Happy to reduce the surface area of the scope to only skills and/or agents to start with these are the most critical for my workflows.

Previous issues

This has been mentioned in a few issues:

  • Fixes [FEATURE]: Hot-reload agents, skills and commands. #8751
  • Fixes [FEATURE]:Optimize hot reloading for configuration changes - all modifications require app restart to take effect #10899

which referred to the same thing. I haven't spotted a PR.

--

I'm happy to find a way to get this to the finish line. My biggest concern is if it's even a direction that you'd want opencode to take.

How did you verify your code works?

⚠️ I tested it. (partly!) . I'm running some tests right now but wanted to get this in your field of view to see if that's even a direction that you guys are interested in pursuing.

--

Test behavior:

  1. Run the new bin file
  2. create a skill/plugin/mcp/...
  3. [optional: listen for opencode.hotreload.changed event]
  4. call hot reload /experimental/hotreload endpoint
  5. try to access the skill agent etc

Ran this within opencode

image

Would appreciate input to know if that's a direction you'd be open to take

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tunling, S0yKaf, e1ektr0, DevelopersMesh, yangyaofei, and snakejke reacted with thumbs up emoji zsynacl, tunling, xiantang, LeonardMeagher2, and DevelopersMesh reacted with heart emoji kylegl, dvchd, gustavo-ferreira03, tunling, RenovZ, e1ektr0, and DevelopersMesh reacted with eyes emoji
All reactions
  • 👍 6 reactions
  • ❤️ 5 reactions
  • 👀 7 reactions
benjaminshafii and others added 5 commits February 11, 2026 21:19
@benjaminshafii
feat(opencode): add conservative workspace hot reload
5f4b9d3
@benjaminshafii
fix(opencode): reset caches and emit hot reload event
ce529a2
ben
Merge branch 'anomalyco:dev' into feat/hot-reload-smooth
bc09169
ben
Merge branch 'anomalyco:dev' into feat/hot-reload-smooth
682203f
ben
Merge branch 'anomalyco:dev' into feat/hot-reload-smooth
7bd487a
@github-actions github-actions Bot added contributor needs:issue labels Feb 13, 2026
@github-actions

github-actions Bot commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

I found a potentially related PR:

PR #12101: "fix(opencode): add reliable /reload config refresh"
#12101

This appears to be addressing a similar need for reloading/refreshing the opencode config. It may overlap with the current PR #13409's functionality or could be an earlier iteration of the same feature.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot removed the needs:issue label Feb 13, 2026
ben
Merge branch 'dev' into feat/hot-reload-smooth
f40ad11
@benjaminshafii

benjaminshafii commented Feb 13, 2026

Copy link
Copy Markdown
Author

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

This has been mentioned in a few issues:

  • Fixes [FEATURE]: Hot-reload agents, skills and commands. #8751
  • Fixes [FEATURE]:Optimize hot reloading for configuration changes - all modifications require app restart to take effect #10899
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ben and others added 6 commits February 13, 2026 09:12
ben
Merge branch 'dev' into feat/hot-reload-smooth
d41cae3
@benjaminshafii
Merge remote-tracking branch 'origin/dev' into feat/hot-reload-smooth
15f0b4f
@benjaminshafii
feat(experimental): add hot reload API trigger
a6f2f4c
@benjaminshafii
chore(sdk): regenerate OpenAPI for hot reload
33a90a9
@benjaminshafii
Merge remote-tracking branch 'fork/feat/hot-reload-smooth' into feat/…
75c2ea0
…hot-reload-smooth
@benjaminshafii
test(hotreload): gate darwin path alias on macOS
d25a991
@benjaminshafii benjaminshafii changed the title feat: hot reload config feat(experimental): add API-triggered hot reload Feb 13, 2026
benjaminshafii added 5 commits February 13, 2026 09:54
@benjaminshafii
chore(flags): simplify hot reload gating
1f52303
@benjaminshafii
chore(flags): align hot reload env with experimental
f02d96c
@benjaminshafii
feat(hotreload): emit change events and support manual mode
5f75649
@benjaminshafii
feat(hotreload): make reload userland-driven
d28b863
@benjaminshafii
chore(sdk): include hot reload changed event
080a840
@benjaminshafii benjaminshafii changed the title feat(experimental): add API-triggered hot reload feat(experimental): make hot reload userland-driven Feb 13, 2026
@benjaminshafii benjaminshafii changed the title feat(experimental): make hot reload userland-driven feat(experimental): add non-destructive alternative to instance/dispatch to re-hydrate skills/agents/tools Feb 13, 2026
benjaminshafii added 4 commits February 13, 2026 13:46
@benjaminshafii
feat(hotreload): reset plugins, tools, and mcp on apply
aa9a4c0
@benjaminshafii
fix(cli): allow --agent with --attach
7f1c77f
@benjaminshafii
Revert "fix(cli): allow --agent with --attach"
58386d9
This reverts commit 7f1c77f.
@benjaminshafii
Merge branch 'dev' into feat/hot-reload-smooth
6d38185
@benjaminshafii
fix(hotreload): restore experimental hot reload flags after sync merge
9dcb11d
@benjaminshafii

benjaminshafii commented Feb 18, 2026

Copy link
Copy Markdown
Author

@adamdotdevin wdyt of this PR is is aligned with where team would like to go?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@benjaminshafii benjaminshafii changed the title feat(experimental): add non-destructive alternative to instance/dispatch to re-hydrate skills/agents/tools feat(experimental): add endpoint to allow reloading config programmatically Feb 20, 2026
This was referenced Feb 21, 2026
Plugin skill tool silently overrides native SkillTool, causing dual-cache divergence #14534
Closed
Skill tool override causes dual-cache divergence with opencode native — migration path to plugin hooks code-yeongyu/oh-my-openagent#2015
Open
@benjaminshafii

benjaminshafii commented Mar 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

@rekram1-node I know you guys are crazy busy. but know multiple folks that would really really love this to come in.

i'm guessing this is not the way you'd approach that feature or hasn't been on radar yet.

but whatever it is i'm happy to help get this to the finish line if there's a version of this you think you'd be happy with.

tunling reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kevoconnell

kevoconnell commented Mar 3, 2026

Copy link
Copy Markdown

@rekram1-node @adamdotdevin @thdxr would be great if this could get merged - I know I would use this

tunling and EvanSong77 reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gustavo-ferreira03

gustavo-ferreira03 commented Mar 5, 2026

Copy link
Copy Markdown

Would love to have this

ChangeHow, LazuliKao, DevelopersMesh, and EvanSong77 reacted with thumbs up emoji
All reactions
  • 👍 4 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Mar 7, 2026
feat: add config reload command to restart MCP servers without restart #16517
Closed
3 of 6 tasks
@ChangeHow

ChangeHow commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Need it! Please

tunling reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nolouch

nolouch commented Mar 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

need it! look forward

tunling reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zsynacl

zsynacl commented Mar 25, 2026

Copy link
Copy Markdown

GREAT JOB!
REALLY WANT THIS!

tunling reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tunling

tunling commented Mar 26, 2026

Copy link
Copy Markdown

Hot reload is really useful

tunling reacted with rocket emoji
All reactions
  • 🚀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@paulovsm

paulovsm commented Apr 2, 2026

Copy link
Copy Markdown

Need it! Please

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@opencode-agent
opencode-agent Bot force-pushed the dev branch from 2f2ed11 to 9f201d6 Compare April 16, 2026 21:55
@EvanSong77

EvanSong77 commented May 28, 2026

Copy link
Copy Markdown

Need it! Please

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request May 28, 2026
📊 AI CLI 工具社区动态日报 2026-05-28 ivanweng2077/big_model_radar#101
Open
16Coffee pushed a commit to 16Coffee/opencode-mitra that referenced this pull request Jun 10, 2026
亚军张 @claude
feat(experimental): session-aware hot reload endpoint (port of PR ano…
7818729
…malyco#13409)

Semantic port of anomalyco#13409 onto the Effect-based codebase:
- reset() on Config/Plugin/MCP/ToolRegistry/Skill/Agent/Command services
  (per-directory InstanceState invalidation; Config also drops the cached
  global file read)
- HotReload service: session-aware reload state machine (busy sessions queue
  the reload, drained on idle via session.status events), cooldown spacing,
  opencode.hotreload.{changed,applied} bus events
- POST /experimental/hotreload (400 when flag off)
- flags: OPENCODE_EXPERIMENTAL_HOT_RELOAD{,_COOLDOWN_MS}, with
  OPENCODE_HOT_RELOAD{,_COOLDOWN_MS} accepted as aliases for the names the
  openwork orchestrator already injects

Deliberately NOT ported: the file-watcher coupling (watcher init/subscribe
changes from the PR). Reload triggers are endpoint-only; classify() is kept
for parity and covered by tests.

Co-Authored-By: Claude Fable 5 <[email protected]>
@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thdxr thdxr closed this Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adamdotdevin adamdotdevin Awaiting requested review from adamdotdevin

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[FEATURE]:Optimize hot reloading for configuration changes - all modifications require app restart to take effect [FEATURE]: Hot-reload agents, skills and commands.

Uh oh!

There was an error while loading. Please reload this page.

10 participants

@benjaminshafii @kevoconnell @gustavo-ferreira03 @ChangeHow @nolouch @zsynacl @tunling @paulovsm @EvanSong77 @thdxr
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.