Summary
Amp shipped a Plugin API (part of the "Neo" rebuild) that is the event-reaction surface rulesync models as hooks for other tools, but hooks is unsupported for amp. (Amp's rules/mcp/skills/permissions surfaces are current — see #1788 / #1739; this is the remaining gap. Custom commands were intentionally removed upstream and correctly remain unsupported.)
Recent Releases
Gaps
- hooks — Amp Plugin API unmapped (
unsupported). Amp plugins are TypeScript files in .amp/plugins/*.ts (project) and ~/.config/amp/plugins/*.ts (global) that subscribe to lifecycle/hook events via amp.on(...): session.start, tool.call, tool.result, agent.start, agent.end — the same role rulesync's hooks feature fills for other tools (e.g. Claude Code's PreToolUse/PostToolUse). The legacy Toolbox surface (AMP_TOOLBOX, .amp/toolbox) is now deprecated in favor of plugins. rulesync has no src/features/hooks/amp-hooks.ts; amp --features hooks prints "does not support the feature 'hooks'. Skipping."
Proposed Follow-up
- Evaluate a
hooks adapter for Amp targeting .amp/plugins/*.ts (project) and ~/.config/amp/plugins/*.ts (global), mapping rulesync hook events onto amp.on(...) (tool.call → pre-tool, tool.result → post-tool, agent.start/agent.end → session lifecycle). Caveat: Amp plugins are arbitrary TypeScript code rather than declarative command/matcher entries, so this is a generation-shape decision (emit a TS plugin wrapper) rather than JSON config — worth a design discussion before implementing.
References
Summary
Amp shipped a Plugin API (part of the "Neo" rebuild) that is the event-reaction surface rulesync models as
hooksfor other tools, buthooksis unsupported foramp. (Amp's rules/mcp/skills/permissions surfaces are current — see #1788 / #1739; this is the remaining gap. Custom commands were intentionally removed upstream and correctly remain unsupported.)Recent Releases
Gaps
unsupported). Amp plugins are TypeScript files in.amp/plugins/*.ts(project) and~/.config/amp/plugins/*.ts(global) that subscribe to lifecycle/hook events viaamp.on(...):session.start,tool.call,tool.result,agent.start,agent.end— the same role rulesync'shooksfeature fills for other tools (e.g. Claude Code's PreToolUse/PostToolUse). The legacy Toolbox surface (AMP_TOOLBOX,.amp/toolbox) is now deprecated in favor of plugins. rulesync has nosrc/features/hooks/amp-hooks.ts;amp --features hooksprints "does not support the feature 'hooks'. Skipping."Proposed Follow-up
hooksadapter for Amp targeting.amp/plugins/*.ts(project) and~/.config/amp/plugins/*.ts(global), mapping rulesync hook events ontoamp.on(...)(tool.call→ pre-tool,tool.result→ post-tool,agent.start/agent.end→ session lifecycle). Caveat: Amp plugins are arbitrary TypeScript code rather than declarative command/matcher entries, so this is a generation-shape decision (emit a TS plugin wrapper) rather than JSON config — worth a design discussion before implementing.References
.amp/plugins/*.ts,amp.on(...)event set, Toolbox deprecation.