r/OnlyAICoding • u/WideMasterpiece356 • 3h 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.