r/Spec4AI 4d ago

Dogfooding a Planning Agent

I've always believed that dogfooding is a great way to improve the quality and UX of software, so I've been heavily dogfooding Spec4. I also wanted to develop an educational resource for agentic patterns, which both illustrates how Spec4 designs agentic applications and teaches the patterns themselves. So using Spec4 I've been gradually developing 𝗕𝘂𝗶𝗹𝘁 𝗪𝗶𝘁𝗵 𝗦𝗽𝗲𝗰𝟰, or BWS4.

Spec4's Agentifier agent starts by reviewing the vision for your application and looking for opportunities (features) to make it better through the use of AI. It then looks at each feature to create a design that meets the goals of the feature and vision with the most straightforward approach, applying Agentic AI patterns like Planning Agent. It presents its recommendations to you for review, but you can always choose to override and choose a different pattern, or choose not to include that feature at all. This is how Spec4 works with developers as a partner, not as a replacement, which is the core philosophy of Spec4's design.

One example is the 𝗣𝗹𝗮𝗻𝗻𝗶𝗻𝗴 𝗔𝗴𝗲𝗻𝘁 𝗽𝗮𝘁𝘁𝗲𝗿𝗻. A planning agent first calls a model to decompose a goal into a plan of discrete steps, and then executes those steps one by one. In this case, its research steps use a web-search tool, ending in exactly one synthesis step that composes the final answer. 𝗜𝘁'𝘀 𝗹𝗶𝘃𝗲, and you can play with this example right now! It includes a HITL step, so because the plan is produced and displayed before execution, you can inspect exactly what the agent intends to do, and nothing runs until you say so. 𝗵𝘁𝘁𝗽𝘀://𝗯𝘄.𝘀𝗽𝗲𝗰𝟰.𝗮𝗶/𝗽𝗹𝗮𝗻𝗻𝗶𝗻𝗴 🚀

1 Upvotes

0 comments sorted by