Skip to content

Instantly share code, notes, and snippets.

@euprogramador
Last active April 25, 2026 11:30
Show Gist options
  • Select an option

  • Save euprogramador/535f16f2f250d441705fe53dbd33db27 to your computer and use it in GitHub Desktop.

Select an option

Save euprogramador/535f16f2f250d441705fe53dbd33db27 to your computer and use it in GitHub Desktop.
.opencode/plugins/SkillReloaderOnNewSession.js
export const AgentDeskPlugin = async (_ctx) => {
return {
event: async ({ event }) => {
if (event.type === "session.created") {
_ctx.client?.instance.dispose();
console.log("skills reload");
}
},
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment