A deep dive into my production workflow for AI-assisted development, separating task planning from implementation for maximum focus and quality.A deep dive into my production workflow for AI-assisted development, separating task planning from implementation for maximum focus and quality.

How I stopped fighting AI and started shipping features 10x faster with Claude Code and Codex

I’ve been getting a lot of questions about how I manage AI-assisted development and what exactly my workflow looks like when I am building features with Claude Code and Codex, so I decided to write this down, not just as a guide, but as a real experience from months of trial and error that changed the way I approach software development.

Let me show you exactly how I do it.

The video is available here - https://www.youtube.com/watch?v=Vo0oRqCaaBc

The problem with “Vibe Coding”

If you’ve done any AI assisted coding, then you probably experienced the moment when you give a prompt and AI starts implementing things and suddenly around the 50th line of code it completely forgets what you asked for or worse yet, it starts making decisions that don’t align with your project structure, uses outdated patterns or creates technical debt that you’ll pay for later.

I faced this exact problem when building features on top of Sayna: the open-source voice layer for AI agents I am working on: the codebase grew, patterns became more complex and suddenly AI tools started to struggle with keeping context.

The typical “give it a big prompt and hope for the best” approach ruined my productivity: sometimes it took longer to fix what AI has generated than to write from scratch. Not exactly the future I had signed up for!

The mental model shift

Here is the thing that changed everything for me: AI models have different strengths Just like you wouldn’t ask a backend engineer to design your marketing materials, you shouldn’t expect one AI interaction to handle both research AND implementation.

So I started to split things:

  1. Codex for research and task composition
  2. Claude for actual code implementation

Sounds simple, right? BUT the way you structure this workflow makes all the difference between chaos and a smooth development pipeline.

The CLAUDE. md Foundation

Before we dive into the workflow, let me explain the most important file in any AI-assisted project: the CLAUDE. md file.

This is where I keep everything that defines how my project works:

  • Project overview and goals
  • Commands and scripts
  • Project structure references
  • Theme guides and design patterns
  • Cursor rules and conventions
  • Best practice guidelines

Whenever Codex or Claude takes a look at this file, they immediately have all the references needed to complete any task. It is like giving someone a full orientation before their first day at work.

# Project: LatestCall ## Overview Phone call scheduler built on top of Sayna.ai voice infrastructure ## Tech Stack - Next.js with App Router - Prisma with SQLite (dev) / PostgreSQL (prod) - MobX for state management - Shadcn/ui for components ## Commands - `npm run dev` - Start development server - `npm run build` - Build for production - `npx prisma migrate dev` - Run migrations ## Best Practices - Always use server components by default - Client components only when needed for interactivity - Reuse Shadcn components, never create from scratch - Follow MobX store patterns from /stores

This file becomes the single source of truth and AI models understand context instantly when they are referenced in the prompts without burning tokens on exploration.

The Task Separation Workflow

Here’s the core of my workflow, and this is where things get interesting.

Step 1: Describe what you want

I start by writing a clear description of what needs to be done, let’s say that my database schema has a scheduleday table that is completely unnecessary – it should just be a field inside the schedule table.

Instead of immediately asking Claude to fix it, I go to Codex first with a specific role definition:

You are a senior project manager with deep technical knowledge. Your job is to create detailed task files for implementation. Reference CLAUDE.md for: - Best practice guides - Project structure - Existing patterns and conventions Output: Create task files inside /todo folder Each task should be: - Independent and self-contained - Reference specific files to modify - Include acceptance criteria - Small enough to implement in one focused session

Step 2: Let codex plan and research#

This is the magic part. Codex will:

  1. Read the CLAUDE. md file
  2. Explore the codebase to understand current implementation
  3. Identify all files that need changes
  4. For each work piece create separate task files.

The output looks something like this:

todo/task-001-update-prisma-schema.md

# Task 001: Update Prisma Schema ## Goal Remove ScheduleDay table and add days field to Scheduler model ## Context - SQLite doesn't support array types - Use JSON field instead - Reference: CLAUDE.md best practices for Prisma ## Files to Modify - prisma/schema.prisma - Generate new migration ## Acceptance Criteria - [ ] ScheduleDay model removed - [ ] days: Json field added to Scheduler - [ ] Migration runs without errors

todo/task-002-refactor-server-logic.md

# Task 002: Refactor Server Side Logic ## Goal Update all server-side code that references ScheduleDay ## Context - Check API routes in app/api - Update any services using ScheduleDay relations - Reference: MobX patterns in CLAUDE.md ## Files to Modify - app/api/schedule/route.ts - services/scheduler.service.ts ## Acceptance Criteria - [ ] No TypeScript errors - [ ] API responses maintain same structure - [ ] Tests pass

And so on for each piece of the implementation.

Step 3: Execute tasks one by one#

Here is where Claude comes in: I have a simple bash script that:

  1. Lists all task files in the /todo folder

  2. Feeds each task to Claude one at a time

  3. Captures the output for reference

    #!/bin/bash

    for task in todo/task-*.md; do echo "Processing: $task" claude -p "$(cat $task)" > "results/$(basename $task)" echo "Completed: $task" done

The critical part is that each task is executed in isolation Claude sees only one task file, not the entire todo list, this keeps the model focused and prevents context pollution.

Step 4: Capture Results#

I also keep results files for each task executed, which becomes invaluable when something breaks later:

results/ ├── task-001-update-prisma-schema.md ├── task-002-refactor-server-logic.md └── task-003-update-ui-components.md

If a bug or a reference is broken, I can tell Claude that you had this output in the past, explore what’s going on based on the tasks: keeping the context alive rather than starting from scratch every time.

Why this works so much better?

Everything focus is

When AI gives a massive prompt with multiple requirements, it tries to solve everything at once, the reasoning process gets fragmented and the quality drops significantly.

Each Claude execution is laser focused by breaking tasks into small independent units: it knows exactly what to do, has all the references it needs, and can apply deep reasoning to just that one problem.

Context Window Management

AI models have limited context windows: when you package everything together, important details get lost in the middle, but with individual task files each execution starts fresh with the context that it needs.

Tasks that would overwhelm a single session work perfectly if they are split into 5-6 focused pieces.

Parallel potential

While I run tasks sequentially to ensure proper dependency resolution, this approach opens doors for parallel execution when tasks are independent. Imagine putting up multiple Claude instances, each working on a different task, all from the same todo list.

Quality Verification:

Because each task has clear acceptance criteria, verification becomes straightforward. After Claude completes a task the third task in my workflow is usually “verify that everything was correct”:

# Task 003: Verify Implementation ## Goal Ensure all changes from previous tasks are consistent ## Verification Steps - [ ] Run build: npm run build - [ ] Run tests: npm test - [ ] Verify MobX store patterns - [ ] Check component rendering

This catches issues early before they manifest across the codebase.

The Overnight Development Experience

One thing I want to emphasize: this workflow is not always fast in the moment: some features require 10-15 task files and running them all can take hours.

BUT here’s the beauty: you can start it and walk away.

I’ve had sessions where I kicked off a major refactoring before bed and woke up to a fully implemented feature. The bash script keeps adding tasks, Claude keeps implementing and the results keep accumulating.

This changes your relationship with development time: instead of being chained to your IDE making small tweaks, you can think about the big picture while AI handles the execution.

Real Example: Database Schema Refactor

Let me share a concrete example from the project I mentioned earlier.

The problem: I had a ScheduleDay table that was completely unnecessary. Days of the week should just be a field in the Scheduler model, not a separate relationship.

Without this workflow: I would have asked Claude to “fix this” and watched it struggle with re-using all the places that reference ScheduleDay, probably breaking things along the way.

*With this workflow:

  1. Codex examined the codebase and created 3 task files
  2. First task: Update Prisma schema (figured out SQLite requires JSON, not arrays)
  3. Second task: Refactor all server-side code
  4. Third task: Verify everything works

Each task independently ran, Claude maintained focus and completed the refactoring without a single syntax error. The migration passed, tests passed and the feature had first run.

That’s the difference between hoping AI gets it right and designing a system where it consistently does it.

Integrating with Sayna Development

Since many of you might build voice applications with Sayna, here is how this workflow works:

When you work on the integration of voice agents, the complexity multiplies;

  • WebSocket handlers
  • Audio-processing pipelines
  • STT/TTS provider configurations
  • Turn detection logic in

Breaking these into specific tasks becomes even more crucial: A task like “add Google Cloud TTS support” could become:

  1. Task: Add provider configuration to config. yaml
  2. Task: Implement the struct GTTSProvider
  3. Task: Register provider in VoiceManager
  4. Task: Add endpoint to voice list
  5. Task: Write integration tests

Each piece is manageable, combining to provide a complex feature reliably.

Tools and setup

Here is my exact setup if you want to replicate it:

Directory Structure

project/ ├── CLAUDE.md # Main context file ├── todo/ # Task files (gitignored) │ ├── task-001-*.md │ └── task-002-*.md ├── results/ # Execution outputs (gitignored) │ ├── task-001-*.md │ └── task-002-*.md └── run-tasks.sh # Execution script

.gitignore

/todo/ /results/

This keeps task files and results out of your repo, are temporary working artifacts and not permanent documentation.

Task Execution Script

#!/bin/bash TASK_DIR="todo" RESULT_DIR="results" mkdir -p "$RESULT_DIR" for task in $(ls "$TASK_DIR"/*.md | sort); do filename=$(basename "$task") echo "=========================================" echo "Processing: $filename" echo "=========================================" claude -p "$(cat $task)" > "$RESULT_DIR/$filename" echo "Completed: $filename" echo "" done echo "All tasks completed!"

Common Pitfalls to Avoid

Don’t skip the CLAUDE. md

I’ve seen people try this workflow without proper context files - the tasks end up being too generic and Claude makes decisions that don’t fit the project.

Invest time in your CLAUDE.md., update as your project evolves. It is the foundation everything else builds on.

Don’t Make Tasks Too Large

If a task file is longer than 200 lines or touches more than 3-4 files, split it | Smaller tasks = more focused execution = better results

Don’t run everything in a session.

The whole point is isolation, if you paste all tasks into one Claude session, you lose the focus benefits. Trust the sequential process

Don’t Ignore the Results

Those result files are gold for debugging: When something breaks, you can trace exactly what Claude did and why.

The future of development

I believe that this is how software development will work in the near future - not replacing developers but amplifying what we can accomplish.

The role shifts from typing code to:

  • Designing System Architecture
  • Defining task requirements
  • Reviewing AI output
  • Making strategic decisions

It’s a higher level way of building software, and honest, it’s more fun: it thinks about what to build instead of how to type it.

Conclusion

This workflow took me months to perfect and remains evolving, but the core principles remain:

  1. Dissolve research from implementation: Use Codex for planning, Claude for coding
  2. Maintain a strong context file: CLAUDE.md is the brain of your project
  3. Create focused, independent tasks – small pieces execute better than large ones
  4. Run sequentially, capture everything: isolation prevents context pollution
  5. Trust the process – Let AI work while you think about the next feature

If you are building voice applications, check out Sayna – I’d love to hear how you’re using it!

If you try this workflow, let me know what you think and I’m always looking for ways to improve it.

Don’t forget to and share this article if it has helped you think differently about AI-aided development!

\

Market Opportunity
Sleepless AI Logo
Sleepless AI Price(AI)
$0.04153
$0.04153$0.04153
+0.31%
USD
Sleepless AI (AI) Live Price Chart
Disclaimer: The articles reposted on this site are sourced from public platforms and are provided for informational purposes only. They do not necessarily reflect the views of MEXC. All rights remain with the original authors. If you believe any content infringes on third-party rights, please contact [email protected] for removal. MEXC makes no guarantees regarding the accuracy, completeness, or timeliness of the content and is not responsible for any actions taken based on the information provided. The content does not constitute financial, legal, or other professional advice, nor should it be considered a recommendation or endorsement by MEXC.

You May Also Like

Ethereum unveils roadmap focusing on scaling, interoperability, and security at Japan Dev Conference

Ethereum unveils roadmap focusing on scaling, interoperability, and security at Japan Dev Conference

The post Ethereum unveils roadmap focusing on scaling, interoperability, and security at Japan Dev Conference appeared on BitcoinEthereumNews.com. Key Takeaways Ethereum’s new roadmap was presented by Vitalik Buterin at the Japan Dev Conference. Short-term priorities include Layer 1 scaling and raising gas limits to enhance transaction throughput. Vitalik Buterin presented Ethereum’s development roadmap at the Japan Dev Conference today, outlining the blockchain platform’s priorities across multiple timeframes. The short-term goals focus on scaling solutions and increasing Layer 1 gas limits to improve transaction capacity. Mid-term objectives target enhanced cross-Layer 2 interoperability and faster network responsiveness to create a more seamless user experience across different scaling solutions. The long-term vision emphasizes building a secure, simple, quantum-resistant, and formally verified minimalist Ethereum network. This approach aims to future-proof the platform against emerging technological threats while maintaining its core functionality. The roadmap presentation comes as Ethereum continues to compete with other blockchain platforms for market share in the smart contract and decentralized application space. Source: https://cryptobriefing.com/ethereum-roadmap-scaling-interoperability-security-japan/
Share
BitcoinEthereumNews2025/09/18 00:25
Microsoft Corp. $MSFT blue box area offers a buying opportunity

Microsoft Corp. $MSFT blue box area offers a buying opportunity

The post Microsoft Corp. $MSFT blue box area offers a buying opportunity appeared on BitcoinEthereumNews.com. In today’s article, we’ll examine the recent performance of Microsoft Corp. ($MSFT) through the lens of Elliott Wave Theory. We’ll review how the rally from the April 07, 2025 low unfolded as a 5-wave impulse followed by a 3-swing correction (ABC) and discuss our forecast for the next move. Let’s dive into the structure and expectations for this stock. Five wave impulse structure + ABC + WXY correction $MSFT 8H Elliott Wave chart 9.04.2025 In the 8-hour Elliott Wave count from Sep 04, 2025, we saw that $MSFT completed a 5-wave impulsive cycle at red III. As expected, this initial wave prompted a pullback. We anticipated this pullback to unfold in 3 swings and find buyers in the equal legs area between $497.02 and $471.06 This setup aligns with a typical Elliott Wave correction pattern (ABC), in which the market pauses briefly before resuming its primary trend. $MSFT 8H Elliott Wave chart 7.14.2025 The update, 10 days later, shows the stock finding support from the equal legs area as predicted allowing traders to get risk free. The stock is expected to bounce towards 525 – 532 before deciding if the bounce is a connector or the next leg higher. A break into new ATHs will confirm the latter and can see it trade higher towards 570 – 593 area. Until then, traders should get risk free and protect their capital in case of a WXY double correction. Conclusion In conclusion, our Elliott Wave analysis of Microsoft Corp. ($MSFT) suggested that it remains supported against April 07, 2025 lows and bounce from the blue box area. In the meantime, keep an eye out for any corrective pullbacks that may offer entry opportunities. By applying Elliott Wave Theory, traders can better anticipate the structure of upcoming moves and enhance risk management in volatile markets. Source: https://www.fxstreet.com/news/microsoft-corp-msft-blue-box-area-offers-a-buying-opportunity-202509171323
Share
BitcoinEthereumNews2025/09/18 03:50
Gold continues to hit new highs. How to invest in gold in the crypto market?

Gold continues to hit new highs. How to invest in gold in the crypto market?

As Bitcoin encounters a "value winter", real-world gold is recasting the iron curtain of value on the blockchain.
Share
PANews2025/04/14 17:12