Thermolysis of activated N-cyanoalkyl amines (5) provides access to ac
yclic azomethine ylides (6). The allenic N-cyanoalkyl amine (10a) unde
rgoes Ag(I)-catalysed cyclisation followed by thermally-induced loss o
f HCN from (11a) to provide the heterocyclic ylide (12) which has been
trapped by N-methyl maleimide.