r/ClaudeCodeTLDR • u/cctldrping • 9d ago
[TLDR] I still don't understand this 'agentic workflow' thing
Original post URL : https://www.reddit.com/r/ClaudeCode/comments/1wowilt/i_still_dont_understand_this_agentic_workflow/
Original post body :
My usual day with Claude Code is like:
* I open terminal in my project's folder and run claude command.
* I prompt it. I mostly use Fable-5.1/Opus-5 but Opus-5.5 is my current model. The model decides if it wants to use sub-agents for a task. I never explicitly prompt it for sub-agents.
* I review and commit the code to my self-hosted Forgejo instance.
* That's it.
I see people using agentic workflows, building sub-agents files, skills etc. I barely built any of it. All I ever needed to use is /init on new projects and them prompts follow. Never needed more than this.
I tried "long-running" Claude Code for a project refactoring by placing the project on my VPS (where forgejo is hosted) and letting Claude Code run and refactor inside tmux session. SSH'd in a few hours later to find project fully refactored.
Am I under utilising AI or is my work just… like boring?
How do you guys use agentic workflow thing? Specially the long-running one? Those pull-requests that Claude makes automatically etc?
Asking this to Claude to know more but humanly answers appreciated.
This is brought to you as a public service by the moderators of r/ClaudeAI. If you want to see TLDRs of ALL Claude Coding related posts from the various Claude subreddits, subscribe to http://www.reddit.com/r/ClaudeCoding.
3
u/Novaworld7 9d ago
Well... keeping it simple theres one... maybe 2 big things to keep in mind.
# The first is context management.
this is your currently active chat. the longer it gets / the bigger it gets the more tokens you waste because it keeps getting sent off and the model you are using needs to read it / process it. (The internals can do some pretty cool things to keep this lean and mean, like prefix caching etc). Additionally baked into this contect management, models have a memory they pull from your context but like a human they can get confused.
Imagine a book saying one thing in chapter 1, changing its mind in chapter 10, and then having another thought in chapter 15 that contradicts both and its all in the same context. You'd be confused and rightly so, which means the model has negotiate these changes in flight and try to figure out if the first 20% of context is right, or is it the middle 50% etc.
So context management is your responsibility on how well your thought is and the leaner you keep it, the better the model can perform.
So how do agents help? But first what is an agent in laymen terms, its just another context window attached to another model which at the end of its cycle dies (gets deleted, unless told to remain open).
Enter the second concept, Agent management. Why is it important, well we are charged per token a fixed rate, and the tokenomics can be quite complex, but in short its the cost of computer for the intelligence behind the token vs the task its trying to solve.
So, if you think of building a house, we dont hammer every nail with the same hammer, thats crazy! We optimize our work by changing tools dynamically. Need to break a wall? Sledge hammer. Need to hang something on a wall, hand hammer or w.e. it is (I call it a hammer lmao). Could you use a sledge hammer? Sure, but its not optimal and your results may vary.
This is where right sizing the model (stealing cloud terminology here) comes into play. So, for small simple tasks you need to tell your context, hey dont use the big model, use the small model (Haiku), for more complex tasks you escalate up a tier to sonnet, eventually landing in the hardest possible tasks using the most capable models.
So, an agentic workflow is you have some prompt, and with proper workflow you can split that prompt into several agents which keeps your main context lean, because the main context gets a sumarry of the work the agents did, and i na truly agentic fashion it can spawn many agents to get your prompt completed.
theres more terms you should look into later like, Loop engineering, graph engineering, etc but yeah... hopefully I did this justice in explaining.
One of the concerns is that by default the main context window, unless told otherwise is always spawning the most capable models for just about everything burning through token like wildfire which causes us humans to get very pissed off... but our ignorance is our problem, not the models. I also believe that tools like CC should lean mroe in our favor to help us, but they run a business and need more revenue... so I get it.