This is a personal reference workflow for minimizing token usage while maintaining project continuity across Claude Code (Sonnet 4 with file access).
Claude loads CLAUDE.md automatically at session start.
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
The SPARC Automated Development System (claude-sparc.sh) is a comprehensive, agentic workflow for automated software development using the SPARC methodology (Specification, Pseudocode, Architecture, Refinement, Completion). This system leverages Claude Code's built-in tools for parallel task orchestration, comprehensive research, and Test-Driven Development.
This gist outlines a highly effective and cost-optimized workflow for software development using Roo Code, leveraging a multi-model approach and a custom "Think" mode for enhanced reasoning and token efficiency. This setup has been successfully used to build complex applications, such as Baccarat game simulations with betting strategy analysis.
The power of this setup lies in strategically assigning different Large Language Models (LLMs) to specialized "modes" within Roo Code, optimizing for performance, cost, and specific task requirements.
| version: "3.9" | |
| services: | |
| litellm: | |
| build: | |
| context: . | |
| args: | |
| target: runtime | |
| image: ghcr.io/berriai/litellm:main-stable | |
| ports: | |
| - "4000:4000" |
| You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE. | |
| You are pair programming with a USER to solve their coding task. | |
| The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question. | |
| Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more. | |
| This information may or may not be relevant to the coding task, it is up for you to decide. | |
| Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag. | |
| <communication> | |
| 1. Be conversational but professional. |
| { | |
| "public_identifier": "galang-kerta", | |
| "profile_pic_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/galang-kerta/profile?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20241218%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20241218T015540Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=765650a9306990409a7df028385dceb2d7d0f011040d7609de7216dc9a80d2ec", | |
| "background_cover_image_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/galang-kerta/cover?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20241218%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20241218T015540Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=446b4b53b986b51e0065f8aa0f1652fb468b50695a40ec93316fea7ec449d19e", | |
| "first_name": "Galang", | |
| "last_name": "Kerta", | |
| "full_name": "Galang Kerta", | |
| "follower_count": 545, | |
| "occupation": "Software Engineer Frontend at Chronicle", | |
| "headline": "Software Engineer", |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Frontend System Design Fundamentals</title> | |
| <style> | |
| * { | |
| box-sizing: border-box; | |
| } | |
| body { |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Frontend System Design Fundamentals</title> | |
| <link rel="stylesheet" href="../../styles/index.css"> | |
| <template id="card_template"> | |
| <article class="card"> | |
| <h3 class="card__title"></h3> | |
| <div class="card__body"> |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Frontend System Design Fundamentals</title> | |
| <link rel="stylesheet" href="../../styles/index.css"> | |
| <template id="card_template"> | |
| <article class="card"> | |
| <h3 class="card__title"></h3> | |
| <div class="card__body"> |
| //define type for increment function | |
| type Increment = (x: number) => number | |
| const increment: Increment = x => x + 1 | |
| //define type for toString function | |
| type Tostring = (x: number) => string | |
| const toString: Tostring = x => `"${x}"` |