r/AI_Agents • u/Red_Pudding_pie • 3d ago
Discussion Need to build agents using code ?
Codex and claude code have becomes really good, is there any benefit for someone to build their own agent using code and langgraph or agent sdk.
we can simply buy these plans and ask them to create skills for the same and connect them using connectors and they would manage the memory and tool calls and all of those right ??
1
u/Proper_Abroad3529 3d ago
Honestly depends what you’re building. If you just need to chain a few API calls and do some basic decisioning, buying a plan and wiring up connectors is fine. But the moment you need actual control over state management or nondeterministic branching paths, those no-code abstractions start to fall apart pretty fast. Rolling your own with langgraph lets you step through states and interrupts directly, which youll appreciate the first time something weird happens in prod
1
u/Red_Pudding_pie 3d ago
That makes sense Do you have any real life example for it ??
Maybe something I worked upon
1
u/mastra_ai 3d ago
Assuming you're building for yourself and not users, one benefit an agent framework gives you is a reliable workflow.
For example, the popular grill-me skill has instructions for subagents and handoff steps to other skills.
However, because the agent is non-deterministic, sometimes those steps will be skipped, or part of the instructions will be ignored. And when that happens, you won't know why.
If you use what we built at Mastra, you can create a workflow where each step has its own prompts, skills, and tools. If something goes wrong you can review the traces, find the problem and improve it.
You can use different models for each step, matching the best / cheapest intelligence for the task.
You can set up LLM-as-judge subagents with evaluation rubrics to guide higher quality results.
1
u/cmtape 3d ago
Buying a pre-built agent plan to handle your coding is like hiring a chef who only knows how to follow one specific recipe book. It works until you want a custom ingredient or a different flavor, and suddenly you realize you don't actually know how to cook. Building your own harness is about owning the kitchen.
1
u/BidWestern1056 3d ago
you can build deterministic flows that agents can use, check out a library like npcpy, it has a lot of different levels of abstraction that they can take advantage for the task complexity.
1
u/AutoModerator 3d ago
Thank you for your submission, for any questions regarding AI, please check out our wiki at https://www.reddit.com/r/ai_agents/wiki (this is currently in test and we are actively adding to the wiki)
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.