Profile avatar
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!
549 posts 13,414 followers 300 following
Regular Contributor
Active Commenter

And @nor.dev is go. Kicking off with The Future of #TypeScript by @mattpocock.com #norDevCon25

VSCode catching up with Cursor. Add this to get Cursor-like tab completions for suggesting the next edit.

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

Looking to up my Cursor game. The feedback loop is extraordinary but the UI is strange. Drop me your best tips.

STORM is an amazing paper for anyone interested in AI workflows. It's a Rube Goldberg machine for generating long-form articles. And it's really freaking cool. Here's my breakdown:

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.

TIL about process.exitCode = 1; Useful if you want to mark a process as failed without immediately exiting it

Deepseek R1 is pretty good at TypeScript, y'all. These are its reasoning tokens, not the text emitted to the user.

I'm reviewing classic papers from the field of AI agents. And I'm starting with a nice intro to the field - Google's whitepaper on agents. It's particularly interesting because they define two different types of tools: extension and functions. Enjoy! https://www.aihero.dev/google-agents-white…

Give me the best API's to hook up to AI agents. I want stuff that's frictionless to get an API key for, like Serper for Google Search.

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.

Give me the best resources you've ever read on AI agents. Go.

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.

My first AI course is complete... And it's free! It's a 16-lesson tutorial on Vercel's AI SDK. It's the missing piece for working with AI in TypeScript. No bullshit, no hype. Just solid, practical advice. https://www.aihero.dev/vercel-ai-sdk-tutorial

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

Folks who've been enjoying my AI SDK tutorial... What should I cover next? Agents? RAG? Evals?

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.

My first AI course is complete... And it's free! It's a 16-lesson tutorial on Vercel's AI SDK. It's the missing piece for working with AI in TypeScript. No bullshit, no hype. Just solid, practical advice. https://www.aihero.dev/vercel-ai-sdk-tutorial

What tricks have you used for getting round the soft limit on the number of tools that a LLM can use? - Making tools more polymorphic - Orchestrator LLM's What else?

However much I focus on AI, the TS stuff keeps being relevant. This time, it's the AI SDK not providing a built-in type for tool calls - so I've got to extract it using: - Awaited<T>, to unwrap the promise - [number], to turn the array of tool calls to a single member