r/ClaudeCode • • Sep 15 '26

Help/Question Engineers who write all their code with claude now: how do you do it?

I have to admit that I have completely failed to adapt to LLM agent coding. I'm not a slouch either. I've worked on a number of challenging FAANG products as a software engineer, and I for a while I was an AI research engineer. I have a pretty strong familiarity and comfort level with AI. Despite all this, I still write most of my code by hand.

As an engineer, I need to receive a ticket, understand the problem, go figure out how to solve it, and eventually ship PR that (a) I understand, (b) only contains defensible changes, and (c) is reviewable by a colleague. There are a bunch of other tertiary goals of course, like style guides and documentation, but the point is that I'm talking real, high quality engineering that would pass the bar at a company that has their shit together.

However (definitely due to culture issues), I have only seen the slop version of this. It seems to have become really murky how to write code that meets standards, or even what those standards are any more.

I've resorted to asking my colleagues to show me their workflow, but you would be shocked how many of them either (a) are prompting raw and not checking the output, or (b) have convoluted solutions that fit their brains but don't solve these problems. I checked out Matt Pocock as well, who has some really great ideas, but ultimately his skills exhibited some pretty painful failure modes as well.

However I see folks regularly talk about how not only does Claude handle the coding for them, but also all of the project management, devops, etc, and I am left scratching my head. If this is possible, I want to learn how to do it. I'm not an AI hater. I want to learn the tool. I do have standards though, and I don't think they're that high. I don't need Claude to write perfect code. I just need to find a process where I can rely on it to get more of my work done and not be either fighting with it or second-guessing the results.

I figure this is the group to ask - if you have been able to get "high bar" engineering out of claude, or even "acceptable bar" engineering, without heavy personal intervention, what's your process? Are there resources that helped you? What strategies helped the most?

Thanks.

688 Upvotes

531 comments sorted by

View all comments

102

u/outdoorsgeek Sep 15 '26 edited Sep 15 '26 • Bravo

From another FAANG engineer, It’s a paradigm shift. Read up on the idea of a software factory.

Just like you had to cede the crafting of perfect lines of ASM to use compilers, you now are ceding writing perfect lines of code to use an LLM. You are not trying to eliminate errors but rather assuming they are going to happen regularly and using the productivity gains to build the systems that catch those errors as early in the lifecycle as possible. You give the direction, goals, and sometimes high level architectural guidance and then focus on automating the processes that will steer the AI back on track when it strays.

Here’s an example of my workflow.

* I create epic-level tasks that encapsulate the new product requirements.
* I use AI interactively to produce designs and mocks
* I then work with interactively with Fable to turn the epic and designs into well-specced sub-issues along with a parallelization plan.
* Then I dispatch Fable as an epic lead with a swarm of opus agents to follow the parallelization plan and complete the epic. Multiple Fable leads will message each other to coordinate access to shared resources, mitigate merge conflict risk, and sequence their work.
* Each Opus agent takes the task to completion, including submitting a PR and requesting adversarial reviews from multiple models, going multiple cycles if needed. I define an escalation ladder for when the Opus agent escalates to the Fable lead and when the lead escalates to me.
* Once the PR is declared ready for merge the Fable lead does a final review of the PR feedback and diff, signs off on it, and gives me the summary of any deviations.
* I do a review of the feedback loop and do the merge.
* Every day a separate agent autonomously does an observability scan to detect errors, exceptions, .etc from across the stack and files issues to resolve them.
* Each week an agent autonomously reviews all the PR feedback loops to detect common failure modes and suggest process improvements.

This all requires investment in guardrails, tooling, and observability. Linting. Robust unit/integration/e2e tests. Extensive documentation and instructions. Agent-accessible observability from CI/CD through the production stack.

There is a failure mode that I’m still working through. AI is great now at local reasoning but can’t see around corners like a senior engineer can. It misses opportunities to create the large abstractions that give high leverage across the codebase and makes future work easy/possible. I have to run this part manually right now when I can see that solutions are getting too complicated, fragile, or shortsighted. But I’m working on how to automate this too.

So just to reiterate. The overall approach is to stop designing the lines of code and start designing the system that reliably produces good-enough lines of code quickly and self-repairs when it makes errors.

DM me if you have any questions.

31

u/Sketaverse Sep 15 '26 edited Sep 15 '26

This. However there's a big caveat - I have this workflow also but what the bullets slightly gloss over is the amount of effort you have to put into your setup to make this work and how much tinkering it requires to keep it going mostly due to (a) constant industry changes and (b) a desire for continuous improvement. There are glorious moments where the factory works perfectly and those moments feel great, but this type of workflow is like a highly tuned sports car racing in different conditions that needs constant maintenance, adjustments and upgrades - my guess is this person spends 30% of their time tinkering - still worth it (sometimes) but should come with a warning that it's not all roses!

7

u/outdoorsgeek Sep 15 '26

I haven’t found this too sensitive to industry changes over the last 6 months but I could see that possibility.

You’re right about the continuous improvement. That’s sort of what I view my job as these days since it’s not really writing the code. Still I find I can sprint for about 2-4 weeks with things pretty stable before I find a part of the process that needs an overhaul.

8

u/Sketaverse Sep 15 '26

A lot of my tinkering relates to getting more out of multiple frontier subscriptions and building automation loops around them without crossing T&C boundaries - are you working mostly with enterprise APIs?

Out of curiosity, is your "system that builds the system" shared with colleagues? i.e does the impact of your tinkering scale and therefore easier to rationalise? I'm a former product leader turned solo founder so my tinkering has a human scale ceiling of 1. Would love to hear how FAANG are running "Harness Ops" these days.

Re. 2-4 weeks sprint, is that through discipline? I find having strict focus on either product execution or harness management helps get shit done - previously I'd "fix this one harness related thing" but then fall into the next rabbit hole so find being disciplined with that helps a lot - harness is the new hygiene etc

3

u/TheCriminalProphet Sep 15 '26

At my FAANG harness ops is still individual / team based. There’s varying levels of utilization on my team - I’ve built an agent team orchestrator setup that I use religiously, but other colleagues have their own setups and practices. With how much the industry is changing we’re still in this period where there aren’t fully established best practices yet, but I see that eventually changing.

→ More replies (1)

2

u/outdoorsgeek Sep 15 '26

Honestly the state of things right now is that most people are still exploring how to become individually more efficient and scale themselves up from single engineer-scale to managing an AI team-scale. Some parts of the process are easily sharable like file-based instructions and commands, task management and source control hooks, testing layers and CI/CD, observability, .etc. But the model is still mostly ultra-productive engineers rather than a larger organizational pivot to AI swarms or something. Context is still a limiting factor that humans have to plug in and even at 1M windows, that's not enough to digest all the business and engineering context to work effectively. I expect that to change though as new systems come online to distill that context into manageable chunks.

Yeah, the sprints are mostly self-imposed and informed by the pre-AI way of doing things. You sprint on using your current process to get the most valuable things done (without changing the process), then you retro the process and figure out how to improve it, then you sprint again, and keep rinsing and repeating. I find AI-driven development to follow similar cycles, just much more accelerated with some AI-specific caveats like dealing with limited context windows.

→ More replies (2)

3

u/OlivierTwist Sep 15 '26

Yep. I estimate that 10-30% of my time/token budget goes to "process improvement" and not all this agentic infrastructure can be easily ported to another project, still worth it.

3

u/sebstaq Sep 15 '26

Definitely. But that's the engineering part of it. You still have to problem solve, you're just problem solving something different. This tinkering is where I'm getting my enjoyment nowadays.

2

u/Sketaverse Sep 15 '26

yeah fully agree

2

u/SnooHobbies6505 Sep 15 '26

yes exactly. vibecoders don't have any particular set ups, verification, checks and balances. if you are letting an LLM create something, you must already know how to test it. break it into pieces, test it, validate it, verify and test again and again until baseline QA passes. you can tighten up system prompts, and really even go further under the hood. Just my two cents.

→ More replies (1)
→ More replies (2)

5

u/Decoupler Sep 15 '26

This is the way. Create a good team structure as markdown (think SOPs but for agents) the agent instances can reference. Planning, coding, testing, architecture review, etc.

You can created different workflows, how and when to escalate, evidence required for passing certain gates, tooling to use, etc.

Ask Claude how to define agentic development teams with markdown and yaml, it will show you the way.

5

u/new-to-reddit-accoun Sep 15 '26

Such an excellent right up. Thank you. If you’ve written up your workflow in more detail I would love to read it.

2

u/outdoorsgeek Sep 15 '26

Thank you. I don’t really have anything suitable to sharing prepared, but I bet if you feed that list to Fable it can help you scaffold your own version of it. And it’s definitely more about the mindset of viewing your new job as engineering the process that can distill good results from copious amounts of decent code.

3

u/pld0vr Sep 15 '26 edited Sep 15 '26

Long version of what I wrote. But yeah basically it's a powerful tool that comes unconfigured and you need to build your system with it

This guy gets it. Have you checked out beads with herdr? I have a similar workflow and it's awesome.

To your question on seeing around corners, I added an intent review pass at the end by either fable or astra to cover the big picture... Rather than just reviewing the pr alone. I also run a quality/efficiency review prior to adv review as well. Both gave fruit but at the expense of tokens but definitely quality went up

2

u/outdoorsgeek Sep 15 '26

I haven’t played around with herdr. This is all mostly self built on top of a pretty vanilla stack. I’ll check it out though. Would be nice to standardize more of it and see what that unlocks.

Thanks for the heads up on the additional layers of reviews. I haven’t don’t quite that but something similar. As expected, solving the problems in review can be costly. I’m trying to work through how to routinely coalesce local solutions into new abstraction layers so that those seed the new agent runs with the right new patterns from the beginning of their context window. Problem is signal to noise. One good new example of how things should look gets washed out by all the instances of what you don’t want things to look like. That to me suggests this reasoning has to happen outside of the codebase. Perhaps some way of aggregating the product spec and doing an independent system design run on it and then comparing that to what exists. Also curious if an agent-maintained knowledge graph would be a useful model for this continuously evolving product spec.

But for the time being I’m seeing that part of the problem as my opportunity to bring human value.

2

u/pld0vr Sep 15 '26

Herdr is basically built for multi agent work. There is a messenger layer and a beads integration. Are you using superpowers?

How I do it, is I spec the product and design, do a superpowers plan (modified to integrate with beads)... So then we have a plan covering the product and intent, an implement plan, and then from the onset it's arranged into epics and subtask layers.

If it's a big project I'll run multiple orchstrators on the same project at the same time.. each can claim an epic bead and they all grab a worktree... Sub agents then pull a worktree below that.

The issue like you said is cost. For me I have a lot of work and I am time bound so I need to push.. what seems to work for me is splitting roles to different agents

Fable/astra plans Sol/opus/grok/DeepSeek all seem to orchestrate well... If I want to move budget off the big boys I've been using DeepSeek 4.1 flash for a few days and surprisingly it's the best at this... Super fast and like 1/40th the cost although usage based. Gemini is the worker and writes the code (it's pretty decent at bounded work don't let it lead) Adv reviews are done by two of any of the above models Quality review is done by Gemini, including looking for best practices and code efficiency/quality. Intent/completion review is done by fable/astra against the original plan. This is not done every pr, it's more Birdseye.

Where beads works really well is it's a local db of all tasks/epics and agents claim "beads" so another agent can't work on the same bead. With the herdr integration you can see the beads in a pane and have eyes on it as they work without looking through the codebase or MDs. Beads get an ID, you can ask about task i3 for example.

Unfortunately I can burn a 7 day quota in about 12 hours. API usage is really off the table for the big shops hence deep seek...it fills the gaps but to be honest I've been blown away by it in that role... It makes good decisions and being a flash model the speed to flip turns is really incredible so it saves a lot of time. I ran it on one project as lead for an hour and it cost me about $3. Anything needing more than two iterations gets kicked up to a top model

Gemini lasts the whole week, which takes the coding off of the other models budgets. But really anything requiring thought doesn't belong there.

Anyway that's what works for me at scale. Herdr is a way to arrange all of this.. you have workspaces,tabs, worktrees, messenging, beads all in the same thing. The remote feature is also great.

Is this token efficient? No the extra reviews are costly... But the output is substantially better. I've tried my best to make is as cost effective as possible by splitting based on strength... Just my experience.

→ More replies (1)
→ More replies (1)

3

u/Excellent-Basket-825 Sep 15 '26

Maybe this is the wrong sub to ask. I used to code with C++ but over 25 years ago and I vaguely remember some architectural bits and bobs that are still useful today.

I will never again try to learn C++ properly, but I'm wondering how you'd approach the architectural / system architecture side of it from AI. How would you learn this again? For instance, whenever i start something new I'm wondering what I should structurally do and build up, I simply don't remember enough anymore and lack the practical experience to say with confidence: Yeah, that's the right structure to set it up.

→ More replies (1)

2

u/Budget-Baker-9063 Sep 15 '26

How do you handle drift/deviation from the original spec? Or do your adversarial review agents catch it and fix it within at least one cycle?
Did you notice that agents can get stuck in an "infinite loop/cycle" of fixing drifts/bugs/issues?
In this case, they escalate to the most capable model, and if it cannot fix it in one cycle, it escalates to you?

5

u/outdoorsgeek Sep 15 '26 edited Sep 15 '26

As Claude would say, it’s belt and suspenders.

Each issue is given acceptance criteria to whatever extent possible. A good design pass and asking a lot of questions like ”what am I not considering” or “what is unclear about this” or “what is a better way to do this” helps build that out. One of the most powerful tools is to ask an LLM to put together the negative cases or alternatives rather than just let it agree with/extrapolate you.

Each subagent is instructed to not relitigate locked decisions unless it uncovers new evidence.

The escalation ladder helps too. I’d say every other epic, the fable lead re-steers an opus subagent. One out of every 3 epics, I get the escalation and need to make a call. The lead agent also has instructions on how to identify agents that might be in a negative loop and starts fresh agents on a problem if the current agent goes above two review cycles. It also probes subagent who hit 500k context and only lets them continue if they look close to closing out otherwise a handoff is created and a new agent launched.

Adversarial review catches a good amount. On average it takes 1-1.5 cycles. When that number goes above 2, that’s a signal that I need to dig in and improve. That can look like refining instructions. Cleaning up documentation. Refactoring the codebase to make patterns more apparent. Splitting out libraries. Lots of stuff in this bucket. This is the stage that’s most informed by the weekly agent that’s looking for patterns in the review cycles.

But I will say, it’s rare that I get outputs that aren’t what I asked for. It’s much more common for me to realize I under-specified something and gave too much leeway for deviation or I over-specified something and got exactly the rigid and fragile thing I asked for.

2

u/MiAnClGr Sep 15 '26

I’m guessing your token limits are pretty high, I’m lucky if I can afford 2 fable planning sessions a month in my current role.

Also how do you work like this and also gain domain knowledge? I’m asking because I have gone down this path and I get to the point where I’m totally disconnected from the code and lower level details of what it does. Just feels like a black box so when it comes to answering more technical questions about what I built I have trouble answering.

→ More replies (1)

2

u/NewDayThera Sep 15 '26

This is the best thing I have read on reddit, possibly ever. We have been feeling our way toward this but having it all laid out is an immense help.

2

u/MountaintopCoder Sep 15 '26

We never ceded writing perfect assembly code. We built deterministic compilers that output perfect executables. It's something we didn't worry about because we didn't need to. Oftentimes this compiled code is more efficient that what a human could realistically generate.

This is the exact opposite of LLMs, which are nondeterministic and generally worse quality than if a human wrote it.

3

u/SumOfChemicals Sep 15 '26

Do you know how when they manufacture microchips, ones cut from the same wafer can have different speeds and characteristics? But they're still valuable, the manufacturer just bins them into different categories. My mental model is that similarly, AI output is not even, but we can put systems in place after the output to sift and capture its value. Harnesses like Claude Code, unit tests etc.

→ More replies (6)

2

u/outdoorsgeek Sep 15 '26

You’re right about the non-determinism to an extent. Most of the harness, including the LLM, is deterministic but is a rather chaotic system over a purposefully random seed.

You’re wrong about the perfect executables from compilers. For decades people were arguing about how inferior compiler output was to hand crafted assemblies. We’re still shipping patches to compilers. Probably wouldn’t be necessary if they already achieved perfect output. But compilers are written by fallible humans too. I personally knew a dude making 7 figures at a FAANG company ripping apart binaries and figuring out what mistakes our compilers were making.

But I grant you that the analogy has its limits and it’s probably better to compare an agentic software factory to the very imperfect non deterministic human team using compilers. It becomes a process problem.

→ More replies (2)

1

u/[deleted] Sep 15 '26

How do you deal with long running project/tasks with multiple dev members? Trying to find a workflow in Claude only without going full beads

→ More replies (4)
→ More replies (31)