I've built an AI agent harness in TypeScript and would like to share lessons learned. This includes the choice of libraries and models, which agent tools to include and implementing code mode using QuickJS. You can try it out for yourself here.