Carbylamine reaction mechanism includes the addition of amine to the intermediate created from the dehydrohalogenation of chloroform. This intermediate is called dichlorocarbene.
The carbylamine reaction is also known as Hofmann isocyanide synthesis. It is the reaction of a primary amine, chloroform and a base to synthesize isocyanides.
The carbylamine reaction cannot be used to synthesize isocyanides from secondary or tertiary amines. In general, the carbylamine reaction can be written as - R−NH2+CHCl3+3KOH→RNC (Carbylamine) +3KCl+3H2O