Ok so this is what is supposed to happen.
Kill mantis, mantis becomes a small familiar moth in your sidebar.
Go back to portal, you'll meet a nymph there.
New code unlocks for the portal, it shows on a scrap of paper on the right side of the book on the portal code page.