r/OnlyAICoding • u/WideMasterpiece356 • 3d ago
Agents For larger projects, do you give Codex/Claude Code extremely detailed implementation instructions or let it figure out the implementation?
I'd love to hear from people who regularly use Codex/Claude Code for substantial projects.
I'm planning a fairly large school management platform for my school with interconnected modules for student management, academics, attendance, finance, HR, parent portals, notifications, etc.
One thing I'm trying to figure out before development gets serious is how much detail I should put into individual Codex/Claude Code prompts.
I see two possible approaches, and I'm interested in which one works better in practice.
Approach 1: Extremely detailed, implementation-level prompts
This is the kind of prompt I'm talking about:
Task: Build a draggable experience timeline component.
Files to create:
1. src/data/experience.js
2. src/components/ExperienceTimeline.jsx
3. src/components/Experience.astro
Context:
- Astro with React integration.
- Framer Motion is already installed.
- Import experiences from ../data/experience.js.
- Use the existing design tokens and typography.
- Reuse the exact dashed-line styling from Hero.astro.
Implementation:
- Render one dot per experience.
- Calculate each dot's position dynamically using:
(i / (experiences.length - 1)) * 100%.
- Use Framer Motion with drag="x".
- Bind dragConstraints to a ref on the timeline track.
- Set dragElastic={0}.
- Calculate the nearest dot index continuously during onDrag.
- Snap the handle to the nearest dot onDragEnd.
- Make each dot independently clickable.
- Support keyboard navigation with left/right arrow keys.
- Use AnimatePresence for the detail panel.
- Respect prefers-reduced-motion.
- Use the specified Tailwind classes and font tokens.
Do not modify unrelated files.
Do not run npm run dev or npm run build.In a real task, I'd provide even more detail, including exact behaviour, data, accessibility requirements, visual references and edge cases.
Essentially, I'm telling Codex/Claude Code not just what I want, but quite a lot about how I expect it to implement it.
Approach 2: High-level, outcome-oriented prompts
Something like:
Implement a draggable, accessible experience timeline
using the existing project architecture and design system.
It should support selecting entries, dragging between
entries, keyboard navigation, animated transitions
and reduced-motion preferences.
Inspect the existing codebase, identify the appropriate
components and implementation approach, and complete
the feature following established conventions.
Add appropriate tests and avoid unrelated changes.Here, Codex/Claude Code has much more freedom to decide the component structure, imports, calculations, event handling and implementation details.
I'm also considering maintaining proper project documentation (architecture, module specifications, API contracts, coding conventions, etc.) and giving Codex/Claude Code focused context for each task instead of repeatedly explaining the entire project.
My questions:
- For experienced Codex/Claude Code users, which approach produces better results on larger projects?
- Does specifying implementation details down to imports, file structure, functions and library properties improve reliability, or does it unnecessarily constrain the model?
- When the project already has good architecture and documentation, how much implementation freedom should Codex/Claude Code have?
- Do you use fresh sessions for separate modules/features, or keep long-running sessions?
- Which approach is more efficient in terms of usage limits, context consumption and avoiding rework?
I'm particularly interested in experiences from people building and maintaining substantial applications with Codex/Claude Code, not just small demos.
I'd appreciate honest experiences, including where either approach has failed. I want to establish a reliable workflow before committing to a large development project.
2
u/Ok_Substance1895 2d ago
I regularly use AI agents to develop and maintain substantial enterprise software in production. I don't use extremely detailed implementation prompts, nor do I simply give an agent a high-level prompt and hope for the best.
I work with agents much as I would work with other engineers. We discuss the problem, examine the existing implementation, explore possible solutions, and establish a shared understanding of what we're trying to accomplish. Sometimes that conversation includes specific implementation details when they matter. Other times the agent determines the best approach.
The important distinction is that I'm building context through conversation rather than trying to engineer a perfect prompt up front.
I also develop in vertical slices. My agents have their own isolated compute environments with a complete running copy of the system. They implement changes using TDD, test the functionality end-to-end, create PRs, and document the implementation and test results. I review their work before it proceeds through our normal SDLC.
Much of the knowledge about how to develop, test, and operate the system is already in their environment. I don't need to repeat that information with every task. We improve that environment through retrospectives so subsequent agents benefit from what we've learned.
I currently operate multiple teams of agents in parallel using this approach, typically producing 8–20 PRs per day on real enterprise software.
For your school management platform, I would establish the architectural foundation and development environment, then build one complete vertical slice at a time. Verify that each slice works before expanding the system. Don't try to specify every implementation detail for the entire application up front.
I recently wrote two articles about how I work this way that you might find helpful:
https://fullstackclouddeveloper.com/talks/the-agent-drives-i-navigate/
https://fullstackclouddeveloper.com/talks/priming-the-pump/
I hope this helps :)
3
u/chiefley 3d ago
For a complex project, I discuss it with ChatGPT for quite a while. We figure out the architecture, then I have ChatGPT create an architecture.md document which goes in the docs section of the workspace that will become the git repo.
Then we discuss the coding agent's workflow for each unit of work. I have ChatGPT write a development.md document, and that goes in the repo as well.
I have evolved this to the point where the workflow is like a very lightweight agile process. We figure out the next task to be done, and ChatGPT writes a highly detailed story with a checklist for all the tests. The story tells the coding agent to read the docs, then place the story in the docs/story folder, assigning it the next number in the story sequence.
I copy the story to the clipboard and then paste it into the Codex tab in VS Code. Codex reads the story, reads the docs, saves the story in the docs/story folder, then does the work, runs the tests, and updates the story with a section summarizing what it did. It then gives me a report and waits for my approval of the changes.
If I approve the changes, Codex moves the story to the docs/story/completed folder and gives me some text I will use to commit the changes to the repo.
ChatGPT has read access to my GitHub project, so any new work we discuss is done with the entire architecture in mind. ChatGPT knows how to craft very explicit stories that describe the work to be done and outline what should not be done.
The beauty of this is that ChatGPT has the entire scope of the system in mind and knows how to shape a very specific story after we discuss the next set of changes or additions. The other beauty of it is that the coding agent is given a very specific story, so it doesn't need much smarts. I usually run a "light" model in the coding agent.
I tried an experiment one day. I created two git branches, called branch A and branch B. I gave a story to Codex to make its changes in branch A. Then I gave the same story to Claude Code in branch B. Then I had both ChatGPT and Claude read the two branches, comment on the differences in the approaches, and rate the work in each branch.
They each decided that both solutions were very good and faithful to the story requirements. Without knowing which agent worked in which branch, they tended to favor their own agent's work over the other's, though they said the reasons were minor.
Then I took ChatGPT's evaluation and gave it to Claude, and gave Claude's to ChatGPT. They both endorsed the other's reviews and agreed with the reasoning.
And they both added that the real winner was the development process I was using.
2
u/wish-for-rain 3d ago
I like to brainstorm-research-design the feature with a lesser model, figure out what are hard constraints, then ask it to strip all its own design decisions in a prompt for a greater model, which structures its own research and design phase before implementing.
1
u/clubfootborg 3d ago
I go step by step like a bricklayer. But that's just me.
1
u/CuriousTangentsYT 3d ago
It depends on how complex the feature or set of features is for something like the timeline feature that you’re describing, I would just send claude a video example similar to what I want, along with mentioning that they should use anime.JS for animations and “XYZ” component library for the base.
Something like a timeline feature shows up constantly in training data. so there’s no real need to overexplain it.
If I were building something that didn’t appear in training data as often, like algebraic data structures, GPUI or other non-JavaScript based frameworks I would get way more granular
1
u/bmtrnavsky 3d ago
I am usually very specific if telling it what I want with a good spec but I let it figure out how.
1
u/fausthushtra 3d ago
Ive dabbled both.
Depends on the project and how i expect it to evolve. If i need a simple, reliable, digital tool that just does what it does no fuss and allows me to specify exactly how amd where it works? I go hard spec.
For something I anticipate will be more evolving or dynamic, then less is more.
1
u/kincaidDev 3d ago
I use festival. I'll usually start with a design workitem, then tell the agents to create a festival from that workitem once the requirements are in the design and run the fest next loop to auto plan the festival.
Then I'll have the agents promote it to active and setup worktrees for the festival (can be multiple worktrees for multiple repos) and to setup auto linking. Autolinking will switch the worktree the agents in automatically as the agent works through the fest next loop.
Then I'll start a fresh session and have it fgo to the initial working dir for the festival and tell it to run the fest next loop.
https://github.com/Obedience-Corp/festival
It's a bit complicated at first but it produces good results
1
u/freeteknoisalive 3d ago
Piu modelli, piu ruoli (coder, planner, review, etcetc) e un orchestratore. Mai lo stesso modello per due ruoli sullo stesso commit.
1
u/ILegionLan 3d ago edited 3d ago
I use my Claude as a jr dev/companion while I took the role of the architect.
First I go with the smartest model about the overall arch I want, I present it already my idea with the design I want, for example I want a backend with this db, the security goes that way, this and that bla bla. I make sure the result is a design doc with C4 diagrams (container level mostly) and some adrs.
Then I use another session to help me plan the stories, and create vertical slices of the idea. Those stories are then pushed to gh issues, jira or any other tool like it. This story must have a slice linked of the feature, a technical approach (mentioning the adrs or the technical idea I have) and an acceptance criteria that will become an e2e test.
Before jumping to codo i set up the harness by setting the unit tests libraries, linting rules and e2e testing frameworks, ci pipelines, and correct Git workflow rules in the agent.md. Obviously with ai help (one time only and I try to iterate over the tests once in a while when the GH pipelines are getting slow)
And then and only then I spawn a coding agent , it depends if the feature is easy or I'm lazy I let the agent handling all and only review the e2e tests make sense, the code is in the right places and the tool works. If I want more control I have a pair programming skill that forces the agent to do tdd and stop every time he completes a green test for me to review.
1
u/romanthedev 3d ago
I start at a high level and ask AI to write a product specification (.md file) to establish a concept that it will continuously maintain. Then I’ll select the functionality I want to implement, have AI study it, and ask it to show me a plan (this is a simplified explanation—I already have instructions and skills prepared to give it context on how I want it to look and what it should focus on, creates additional .md files with descriptions, etc...).
1
u/r2k-in-the-vortex 3d ago
Chat with it, explain and brainstorm what and how you plan to build. Use it to write your specs and implementation plan. Review the plans before building anything, especially the parts of how you plan to verify everything that is going to be implemented.
And then you let it follow the plan and you just keep reviewing the results and testing if the product behaves the way you intended it to.
1
u/justaguyonthebus 3d ago
I find it really effective to do more planning up front with it. Start with approach 2 but do a design document first, then have it create an implementation plan where you call out approach 1 items for it to include. Then once I am happy with all that, I tell it to do step 1 of the plan
1
u/W31337 3d ago
Your prompt sucks. You are telling it which files to make and giving it broken implementation details and no information on what is to be built.
WHAT IS YOUR FUNCTIONAL REQUIREMENT AND EXPECTED RESULT?
Once that is answered you start designing the architecture (no coding).
Once the architecture is established you start building and testing little parts and you correct AI if anything veered off course
1
u/smermetfr 2d ago
outcome-oriented prompts held up much better for me, but only after the docs were solid. implementation-level detail works until the model's assumptions drift from the actual codebase, and then you're debugging instructions instead of code. fresh session per module, with a decisions file it reads first.
1
u/Witty-Display-445 2d ago
Just talk with it, tell it what your goals are and what matters to you, and then ask for 6 deep research questions that would inform the project and bring those back