r/ClaudeCode • • 1d ago

Tips & Workflows Designing a token-efficient Claude Code workflow for a long-term software project, looking for feedback

Hey everyone!

I'm a software developer currently building a personal SaaS project called Playmakerz, a platform for creating and managing esports broadcast overlays, including a collaborative visual editor.

It's a fairly ambitious long-term project, built around a TypeScript monorepo using pnpm and Turborepo ( might migrate to vite+ soon and also write some parts of the monorepo in Rust in the long run ). Some parts are relatively straightforward, while others involve more complex engineering challenges such as real-time collaboration, document transactions, undo/redo, conflict resolution and persistence.

I'm currently trying to improve the way I work with AI agents throughout the development lifecycle, rather than simply asking Claude to implement features.

My current workflow

  • Linear for issue tracking and feature specifications.
  • ADRs for architectural decisions.
  • ChatGPT for planning, architectural discussions and independent reviews.
  • Claude Code for repository exploration, technical specifications and implementation.
  • GitHub Copilot for additional PR reviews.
  • Automated tests, type checking, builds and CI.
  • Human validation before merging PRs.

This works pretty well so far, but I feel there's significant room for improvement, especially regarding token consumption, context management and model selection. ( I'm ONLY using Sonnet 5.5 so far, for every single task I do, I know it's not ideal )

What I'm considering

I've been reading Anthropic's recent recommendations regarding model selection, agent harnesses, subagents, agent teams, context engineering and prompt caching.

Based on those recommendations, I'm considering a setup along these lines:

  • Opus Medium: general-purpose reasoning, planning and orchestration.
  • Sonnet Medium: implementation of well-defined features.
  • Haiku: repository exploration, information extraction and lightweight delegated tasks.
  • Sonnet High: standard independent code reviews.
  • Opus High: complex architecture, critical implementations and security reviews.
  • Fable: exceptional problems that justify a more capable model. (avoid at all costs as this model I believe could just burn my weekly usage limit)

I'd also like to avoid unnecessary model switching within the same session to preserve prompt caching, using specialized subagents instead when appropriate.

The idea would be to maintain a version-controlled agentic setup within the repository, including:

  • A concise CLAUDE.md.
  • Context-specific rules.
  • Reusable skills for implementation, issue management and PR reviews.
  • Specialized subagents with restricted tools and permissions.
  • Hooks for deterministic validation and safety checks.
  • Usage and cache monitoring.
  • MCP integrations where they provide meaningful value.
  • Agent teams only when the task genuinely benefits from multiple agents collaborating.

Adapting the workflow to the task

I'm also considering adding metadata to Linear issues to distinguish between complexity, criticality and security sensitivity.

For example, a small UI fix shouldn't require the same workflow or reasoning effort as a change to the collaborative transaction engine.

I'm thinking about three different workflows:

  • Fast track: implementation → automated checks → PR.
  • Standard: specification → planning → implementation → independent review → PR.
  • Critical: architectural validation → implementation → extensive testing → independent audit → PR.

The goal is to avoid spending unnecessary tokens on simple tasks without compromising the quality of more sensitive changes.

Before implementing any of this, I'm planning to ask Claude to independently audit my existing repository and challenge the proposed setup. I'd also like to benchmark different models and workflows on historical issues to measure their actual effectiveness.

My main questions

  • Has anyone implemented a similar agentic development workflow for a long-term project?
  • How do you distribute work between Opus, Sonnet and Haiku?
  • Have specialized subagents actually improved your productivity or token efficiency?
  • Are agent teams worth their additional consumption in practice?
  • How do you structure your CLAUDE.md, rules, skills, hooks and agents without overengineering the setup?
  • Are there any particularly useful tools, MCP servers, plugins or monitoring solutions you'd recommend?
  • How do you manage context and prompt caching across planning, implementation and review?
  • Would you consider this kind of workflow sustainable on a Claude Pro subscription, or is Max realistically necessary for long-term development?
  • Is there anything in this proposed setup that you would simplify, remove or approach differently?

My objective isn't to build the most sophisticated multi-agent system possible. It's to maximize development efficiency, maintain high engineering standards and get the most value out of my token budget.

Some of the resources I've been using:

I'd love to hear about your actual experiences, especially from people maintaining larger codebases or working on projects over several months.

Feel free to challenge the entire approach. I'm just as interested in what doesn't work as in what does.

Just a quick note: I used AI to help structure and polish this post, but the project, ideas, and questions are my own, so I'd appreciate constructive feedback rather than "nice slop" comments. 🙏

Thanks!

7 Upvotes

36 comments sorted by

View all comments

1

u/qkamikaze 1d ago

Compact at 106k, concise text, delegating to cheaper models, have a cheap agent do reviews (i use neon), cold cache reports

1

u/CaptainZiboo 1d ago

106k ? Isn't it very low ? Question my sound stupid haha but I don't really know what to expect tbh, tryna learn

So Sonnet doing the review is good I guess ? As long as it is done by a subagent and not by the one who implement the feature ?

1

u/qkamikaze 1d ago

it’s very low but it’s saving me more than 80% tokens. then i use a haiku summary to update the out of date memory

And yes, using Opus 5.5 to delegate work to sonnet is good, and then just have a stronger model review it in a single pass if you don’t quite trust sonnet like me

1

u/t1nkl 1d ago

yes, the separate subagent is the important part. give it only the diff and the issue, not the session that wrote the code, otherwise it picks up the author's reasoning and tends to agree with it. then check each finding yourself before fixing, some are wrong. and look at the fixes again too, a fix for one finding can break the opposite case of the same thing.

1

u/CaptainZiboo 1d ago

I need to work on concise text, I think sometimes both prompts and answers from Claude are a bit too long when I work tbh