Agentic Coding: How to Organize AI Agent Tools

I Code It
1,378 views β€’

πŸ‘‰ Frontend System Design Essentials β€” Course: https://icodeit.thinkific.com/courses/frontend-system-design-essentials πŸ‘‰ Frontend System Design Essentials β€” Book: https://leanpub.com/frontend-system-design-essentials/ 00:00 The β€œsecond tool” problem (why it gets messy) 01:06 Quick recap: the working tool-calling agent 03:07 The problem: schema here, implementation there 04:05 This isn’t an AI problem (it’s design) 04:37 Refactor 1: make the tool a unit 05:26 Refactor 2: introduce `ToolRegistry` 06:44 Before vs after (what changes) 07:26 Design principles behind the refactor 07:59 Principle 1: one tool, one responsibility 08:36 Principle 2: keep definition + execution together 09:09 Principle 3: keep orchestration simple 09:41 Principle 4: more tools isn’t always better 10:20 Principle 5: prefer composition over big tools 12:00 The bigger lesson (principles matter more with agents) 12:51 Wrap-up + what’s next Intro In the last video, we made tool calling work for a minimal local agent. But when you add a second tool, the code often starts to smell: schema in one place, execution in another, and orchestration glue everywhere. In this video, we refactor the tool design so tools become self-contained units and the REPL stays focused on the conversation loop. We introduce a simple ToolRegistry that exposes model-facing schemas and executes tools by name β€” so adding the next tool is boring. πŸ“˜ MY BOOKS & COURSES πŸ‘‰ Frontend System Design Essentials (Course): https://icodeit.thinkific.com/courses/frontend-system-design-essentials πŸ‘‰ Frontend System Design Essentials (Book): https://leanpub.com/frontend-system-design-essentials/ πŸ‘‰ React Anti-Patterns (Amazon): https://www.amazon.com/dp/1805123971 πŸ‘‰ More Tutorials on Advanced Patterns: https://icodeit.com.au/tutorials/advanced-network-patterns-react πŸ“© STAY CONNECTED 🧠 Newsletter (system design & clean code): https://juntao.substack.com 🌐 Website & Blog: https://icodeit.com.au 🐦 Twitter / X: http://twitter.com/JuntaoQiu πŸ“Ί YouTube (subscribe): https://www.youtube.com/@icodeit.juntao πŸ’¬ Question for You When you added your second or third tool, what broke first: naming, schemas, execution, or orchestration? #aiagents #agenticcoding #systemdesign #coding #frontend #programming

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close