Skip to content

Remove addon middleware system from rig#201

Closed
pelikhan with Copilot wants to merge 1 commit into
mainfrom
copilot/remove-addons-from-rig-and-samples
Closed

Remove addon middleware system from rig#201
pelikhan with Copilot wants to merge 1 commit into
mainfrom
copilot/remove-addons-from-rig-and-samples

Conversation

Copilot AI commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Addons (repair, steering, timeout, oncePerAgent) are no longer useful and have been removed entirely.

Core (skills/rig/rig.ts)

  • Removed exported types: AgentAddonContext, AgentAddon, SteeringOptions, TimeoutOptions, AgentRegistration
  • Removed exported functions/namespace: repair(), steering(), timeout(), oncePerAgent(), addons
  • Dropped addons? from AgentSpec and .use() from AgentFn
  • Simplified invoke loop: per-turn middleware chain → direct ask → analyze → return/throw
  • Removed normalizeAddons, runAgentAddons, debugAgentRetry

Deleted files

  • skills/rig/addons.ts, src/addons.ts — compatibility re-exports
  • src/samples/55-file-change-lint-middleware.ts, skills/rig/samples/55-file-change-lint-middleware.md — sample was entirely about addon middleware

Samples & docs

  • Stripped addon imports and addons: fields from 57 skill markdown samples and updated src/samples/49, 57
  • Updated README.md, SKILL.md, references/composition.md, references/agent-api.md, references/runtime.md

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Remove all addons from rig.ts and samples Remove addon middleware system from rig Jul 26, 2026
Copilot AI requested a review from pelikhan July 26, 2026 21:09
@pelikhan pelikhan closed this Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants