Matt Pocock

Matt Pocock

@mattpocock.com

Full-time TypeScript educator. Used to be a voice coach. He/him. Author of Total TypeScript 🧙 Hire me to teach your team TypeScript!

15.2K followers304 following611 posts

Damn, I really want to make a "UX Patterns For AI Applications" course All the hard stuff like stream resuming, generative UI, properly streaming markdown, editable plans, showing LLM progress

I've made a breakthrough today - come up with a new style of course that's ready for the AI-assisted developer era. It's just unbelievably cool, can't wait to show you.

Two cool things in this snippet: 1. You can use 'glob' from Node instead of a library! (still experimental, available in 22+) But glob returns an async iterator, which can be annoying to work with. So... 2. Array.fromAsync lets you turn an async iterator into an array. Beautiful.

"The AI Engineer Roadmap" dropping soon. Covering everything you need to enter the AI world: - What LLM's are used for - The AI engineer mindset - Evals - 17 techniques for improving your LLM-powered apps

I have worked with TypeScript for 7 years. I have written a book, produced 5 courses, made countless videos and articles, and delivered workshops about TypeScript. And today I learned that TS can do this:

OK, Bluesky. Time for an early preview. (X hasn't seen this yet) I've shipped a 9-lesson tutorial on the Model Context Protocol - the USB-C of AI. It'll take you from "WTF is MCP" to shipping your own servers to the world. And, it's free. Check it out: www.aihero.dev/model-contex...

aihero.devModel Context Protocol TutorialThe Model Context Protocol is driving a new wave of innovation in the world of AI. In this tutorial, I'll break down everything you need to know to get started.

Shower thought: The system prompt is the LLM's UI. In an agentic loop, elements of the system prompt have state, as well as props - lists of failed attempts, external data, exemplars. So, a React for system prompts makes sense.

Jina's open source DeepSearch implementation is fascinating, but SUPER hard to read. So, as a research project, I refactored the code to make the underlying logic clearer.

Has anyone written a JSX -> system prompt library? node-deepresearch would genuinely benefit so much from it. Endless string interpolation, impossible to grok what's going on. A proper component model for system prompts would be pretty convenient.

Folks who are building Deep Research, or Deep Research-type products... What do your evals look like? Do you e2e the entire system? Do you do any mocking? Do you eval individual parts of the system? (query rewriter, etc)

One fascinating decision with building LLM integrations is Agent vs Workflow. Agent: give the LLM control of execution. Slower, but better at a wider range of things. Workflow: use code to control execution. Faster, but more specialised. Ultimately, it comes down to the product you're building.

Did some refactoring on Evalite (my evals runner for AI-powered apps) and made two big calls: - Commander -> stricli - Remix -> TanStack stricli is a gorgeous, TypeScript-first CLI library that just works. Easy to test, easy to run, and full type-safety for parameters and named flags

Evalite's UI is a SPA, and I'd wanted to try Tanstack from the start. I wanted a TypeScript-native experience for search params, routing and fetching. Unbelievably, a contributor came in and did the whole migration. It works freaking great and can't wait to add features on top of it to road test it.

Is there a decent chunking algorithm library on NPM? I know Langchain and LlamaIndex have some, but figured there were probably some unbundled from frameworks. Chunking: chunking text documents to be fed into a RAG system.

Planning to look at these papers for my AI Agent papers (free!) mini-course: ReAct Tree Of Thoughts Reflexion Google's Agent Whitepaper Anthropic's Building Effective Agents Agents That Matter Which ones am I missing?

Thinking about making a course covering the most important papers for AI engineers, in language you don't need a PhD to understand. And not the most important theoretical ones, but the most useful practical stuff to build great apps. ReAct, Reflexion, Prompt Report etc. What do you think?

I've been messing about with a pattern where the agent persists small snippets in its working memory. This small change has a pretty huge impact on the user experience. Feels like your agent is really getting to know you.

I asked a few thousand folks (my AI Hero mailing list) what they want to learn about AI. I saw this sentiment a LOT: "Most material out there goes deep on how these models work. I see that as a long-term goal. Right now I want to learn to build stuff with them." Do you agree? I do.

Matt Pocock reposted

just wrapped up a vector search-driven recommendation system for @mattpocock.com's aihero.dev. 🎯 here’s a sneak peek at the ui: a “RECOMMENDED NEXT” overlay dynamically suggesting your next resource.

Right, I'm building an AI agents course. Tried scripting the first video today and realised I can't talk about agents without: - Client/server boundaries - Human in the loop - Routing & classification I've got my work cut out

What are you using for observability? If your answer is boring, write it anyway. I want to know the dull, everyday tools that folks actually use in prod.