https://github.com/miurla/morphic
A great jumping-off point for building custom experiences, since it's got a solid implementation of AI SDK (by Vercel).
Claude gave me some write-ups of how AI & tool calling is implemented in the codebase (added to my fork)!