Fire-and-forget task execution system for Claude Code SDK with CLI and MCP interfaces
Project description
๐ฟ claude-cto ๐ฟ your ai coding agents' cto that gets shit done 10x faster
your AI squad on crack: tasks run in parallel, smart waits handle dependent tasks, workflows fly on autopilot. ship code at ludicrous speed while making the vibe coding more enjoyable
wanna get some sleep but still not used your Opus limit? just queue more tasks before the 5 AM reset ๐
๐งญ Quick Navigation
โก Get Started โข ๐ฏ Real Example โข ๐ป CLI Dashboard โข ๐ ๏ธ REST API โข ๐ณ Docker โข โจ Features
claude-cto is your AI dream team on steroids. stop doing that one-task-at-a-time workflow โ now you've got a whole squad of ai devs (opus for the heavy stuff, sonnet for mid-tier, haiku for the easy wins) cracking code simultaneously while you sip your coffee โ
โก10x FasterParallel execution |
๐งSmart AFDependency resolution |
๐ฅNever FailsAuto-retries & circuit breakers |
how it slaps:
- you're the big-picture boss
- claude-cto handles the boring pm work
- subtle notifications keep you in the loop without killing your vibe
๐ฅ why claude-cto claps traditional workflows
we've hacked the claude code sdk with that spicy --dangerously-skip-permissions flag to make your ai go brrrrr:
- cooks up a bulletproof game plan
- delegates like a machine
- handles task dependencies so smooth you'll think it's cheating
โก Performance Comparison: See the Difference
claude-cto: advantage of parallel execution
graph LR
Start[๐ฏ kickoff]:::start
subgraph SG1["STAGE 1<br/>โฐ 4m (auth_system)"]
S1A[setup_database<br/>3m]:::stage1
S1B[auth_system<br/>4m]:::stage1
end
subgraph SG2["STAGE 2<br/>โฐ 5m (api_endpoints)"]
S2A[api_endpoints<br/>5m]:::stage2
S2B[payment_integration<br/>3m]:::stage2
S2C[frontend_app<br/>4m]:::stage2
end
subgraph SG3["STAGE 3<br/>โฐ 2m (deploy_production)"]
S3A[deploy_production<br/>2m]:::stage3
end
Final[๐ launched]:::final
Total[โฑ๏ธ 11m total<br/>4m + 5m + 2m]:::timeFast
Start ==> S1A
Start ==> S1B
S1A ==> S2A
S1B ==> S2A
S1A ==> S2B
S1B ==> S2B
S1A ==> S2C
S1B ==> S2C
S2A ==> S3A
S2B ==> S3A
S2C ==> S3A
S3A ==> Final
classDef start fill:#7950f2,stroke:#6741d9,stroke-width:3px,color:#fff
classDef stage1 fill:#ffd43b,stroke:#fab005,stroke-width:2px,color:#000
classDef stage2 fill:#4dabf7,stroke:#339af0,stroke-width:2px,color:#fff
classDef stage3 fill:#51cf66,stroke:#2f9e44,stroke-width:2px,color:#fff
classDef final fill:#ff6b6b,stroke:#f03e3e,stroke-width:3px,color:#fff
classDef timeFast fill:#20c997,stroke:#12b886,stroke-width:2px,color:#fff
linkStyle default stroke:#51cf66,stroke-width:3px
classic claude code approach: sequential execution
graph LR
Start[๐ฏ kickoff]:::start
S1[setup_database<br/>3m]:::stage1
S2[auth_system<br/>4m]:::stage1
S3[api_endpoints<br/>5m]:::stage2
S4[payment_integration<br/>3m]:::stage2
S5[frontend_app<br/>4m]:::stage2
S6[deploy_production<br/>2m]:::stage3
Final[๐ launched]:::final
Start ==> S1 ==> S2 ==> S3 ==> S4 ==> S5 ==> S6 ==> Final
Total[โฑ๏ธ 21m total<br/>Sequential execution]:::timeSlow
classDef start fill:#7950f2,stroke:#6741d9,stroke-width:3px,color:#fff
classDef stage1 fill:#ffd43b,stroke:#fab005,stroke-width:2px,color:#000
classDef stage2 fill:#4dabf7,stroke:#339af0,stroke-width:2px,color:#fff
classDef stage3 fill:#51cf66,stroke:#2f9e44,stroke-width:2px,color:#fff
classDef final fill:#ff6b6b,stroke:#f03e3e,stroke-width:3px,color:#fff
classDef timeSlow fill:#ffa94d,stroke:#fd7e14,stroke-width:2px,color:#000
linkStyle default stroke:#51cf66,stroke-width:3px
| โ Old Way Sequential = Slow |
โ
With claude-cto Parallel = Fast AF |
|
|
๐ง let your AI be the CTO - the real power move
this is where shit gets wild. instead of micromanaging like some middle manager, you let claude wear the cto hat. drop a high-level goal and watch it use claude-cto's toolkit to plan, delegate, and execute like a boss.
the mcp tool belt ๐งฐ
๐ Available MCP Tools (click to expand)
once installed, claude gets these shiny new toys to whip your ai team into shape:
| tool | what it does |
|---|---|
create_task๐ |
delegate like a pro: assigns jobs to ai workers with optional dependencies |
submit_orchestration๐ |
the big red button: launches entire task groups in one go |
get_task_status๐ |
spy mode: checks up on a single worker's progress |
list_tasks๐ |
mission control: shows what the whole squad's cooking |
clear_tasks๐งน |
spring cleaning: wipes all completed & failed tasks in one sweep |
delete_task๐๏ธ |
surgical removal: deletes a single non-running task by id |
check_api_healthโค๏ธ |
pulse check: makes sure the engine's purring |
๐ธ real case: building a calorie counter in minutes w/claude-cto
watch how claude architects a photo-to-calories app like a 10x engineer on red bull.
you drop the mic:
"yo, need a mobile app that identifies food from photos and tracks calories. full AI integration, slick UI, the works. make it happen."
claude's game plan (internal monologue):
๐ง Claude's Master Plan (click to see the strategy)
"aight bet. this is a classic waterfall-but-make-it-parallel situation:
- phase 1 (laying groundwork): app scaffold + database + AI research all go brrr at once
- phase 2 (the magic): camera + food recognition + nutrition math run parallel where deps allow
- phase 3 (make it pretty): UI + manual entry + analytics dashboard spawn when ready
- phase 4 (ship it): tests then optimization - can't polish what ain't built
tagging this whole circus as
calorie_countercrew."
graph TD
subgraph "๐ฑ Phase 1: Foundation (parallel)"
A[๐ฑ setup_mobile_app]:::phase1
B[๐๏ธ design_database]:::phase1
C[๐ research_ai_apis]:::phase1
end
subgraph "๐๏ธ Phase 2: Core Features (parallel)"
D[๐ท camera_module]:::phase2
E[๐ค food_recognition]:::phase2
F[๐งฎ nutrition_engine]:::phase2
end
subgraph "โจ Phase 3: User Experience (parallel)"
G[๐จ ui_screens]:::phase3
H[โ๏ธ manual_entry]:::phase3
I[๐ analytics_dashboard]:::phase3
end
subgraph "๐ Phase 4: Launch Ready"
J[๐งช testing_suite]:::phase4
K[โก app_optimization]:::phase4
end
A --> D
A --> G
B --> F
B --> I
C --> E
D --> E
E --> F
F --> G
F --> H
G --> J
H --> J
I --> J
J --> K
classDef phase1 fill:#FF6B6B,stroke:#C92A2A,color:#fff
classDef phase2 fill:#4ECDC4,stroke:#15AAA0,color:#fff
classDef phase3 fill:#45B7D1,stroke:#2196F3,color:#fff
classDef phase4 fill:#96CEB4,stroke:#4CAF50,color:#fff
claude starts delegating (create_task calls):
๐ฑ Phase 1: Foundation Setup (parallel ops)
# Claude's Tool Call:
create_task(
task_identifier="foundation_setup",
orchestration_group="calorie_counter",
execution_prompt="""
Task A: React Native TypeScript Initialize โ [1]Run npx react-native init SnapCalories --template react-native-template-typescript, create /src with subdirs: /screens, /components, /services, /db, /utils, /store, /navigation, /types โ [2]Install core: yarn add @react-navigation/native @react-navigation/bottom-tabs @reduxjs/toolkit react-redux redux-persist @react-native-async-storage/async-storage react-native-screens react-native-safe-area-context โ [3]Configure tsconfig.json with "strict": true, paths: {"@screens/*": ["src/screens/*"], "@components/*": ["src/components/*"]}, setup .prettierrc with singleQuote, no semicolons โ (Review: yarn start launches Metro, TypeScript compiles without errors|Retest: Import @screens/Home works|Failโ[2])
Task B: Navigation Redux Store Setup โ [1]Create /src/navigation/AppNavigator.tsx with createBottomTabNavigator containing 5 tabs: HomeScreen, SearchScreen, CameraScreen, HistoryScreen, ProfileScreen with icons from react-native-vector-icons/Ionicons โ [2]Setup Redux in /src/store/index.ts: configureStore with userSlice (name, goals, preferences), mealsSlice (recent, favorites), persistConfig whitelist: ['user', 'preferences'] โ [3]Wrap App.tsx with Provider and PersistGate, create placeholder screens that display their name, verify tab navigation works โ (Review: All 5 tabs navigate correctly, Redux DevTools shows state|Retest: Kill app, reopen, user preferences persist|Failโ[2]) [Req: Task A]
""",
model="sonnet"
)
# Claude's Tool Call:
create_task(
task_identifier="database_schema",
orchestration_group="calorie_counter",
execution_prompt="""
Task C: SQLite Database Schema Implementation โ [1]Install react-native-sqlite-storage, create /src/db/schema.ts with tables: users(id TEXT PRIMARY KEY, email TEXT UNIQUE, goals_json TEXT, created_at INTEGER), meals(id TEXT, user_id TEXT, type TEXT, logged_at INTEGER, total_calories REAL, photo_path TEXT) โ [2]Add food_items(id TEXT, meal_id TEXT, name TEXT, quantity REAL, unit TEXT, calories REAL, protein REAL, carbs REAL, fat REAL), food_database(id TEXT, name TEXT, brand TEXT, barcode TEXT UNIQUE, calories REAL, protein REAL, carbs REAL, fat REAL) โ [3]Create DatabaseService class with init(), executeSql(), methods for createTables(), dropTables(), verify tables exist with SELECT name FROM sqlite_master โ (Review: All 4 tables created successfully|Retest: Insert and retrieve test meal|Failโ[1]) [Req: Task A]
Task D: Database Seed Indexes Migrations โ [1]Create /src/db/seeds/foods.json with 5000 USDA foods: each having name, calories, protein, carbs, fat, serving_size, import with transaction INSERT OR IGNORE โ [2]Add indexes: CREATE INDEX idx_meals_date ON meals(user_id, logged_at DESC); CREATE INDEX idx_food_name ON food_database(name); CREATE INDEX idx_barcode ON food_database(barcode) โ [3]Implement migration system: migrations table tracking version, up/down functions, test by adding test column then rolling back โ (Review: SELECT * FROM food_database WHERE name LIKE '%chicken%' returns in <50ms|Retest: 1000 meal inserts complete <2s|Failโ[2]) [Req: Task C]
Task E: API Keys Service Configuration โ [1]Setup Clarifai: create account at clarifai.com, get API key, install @clarifai/nodejs-grpc, create /src/services/ClarifaiService.ts with class containing apiKey from env โ [2]Setup OpenFoodFacts: no key needed, install node-fetch, create /src/services/BarcodeService.ts with lookupBarcode(code) method calling https://world.openfoodfacts.org/api/v0/product/{code}.json โ [3]Create unified FoodAPIService that wraps both, with methods recognizeImage(base64) and scanBarcode(code), add mock mode for testing without API calls โ (Review: Mock mode returns fake data, API mode requires keys|Retest: Invalid API key throws clear error|Failโ[1]) [Req: Task D]
""",
depends_on=["foundation_setup"],
model="sonnet"
)
๐๏ธ Phase 2: Core Features (needs phase 1 stuff)
# Claude's Tool Call:
create_task(
task_identifier="camera_recognition",
orchestration_group="calorie_counter",
execution_prompt="""
Task F: Camera Module Photo Capture โ [1]Install react-native-vision-camera, add iOS Info.plist camera usage description, Android manifest CAMERA permission, create /src/components/Camera/CameraView.tsx with useCameraDevices() hook โ [2]Implement capture: const photo = await camera.current.takePhoto({qualityPrioritization: 'balanced'}), resize with react-native-image-resizer to max 1024px maintaining aspect, convert to base64 โ [3]Add controls: TouchableOpacity capture button 70x70 center bottom, flash toggle iconButton top-left, flip camera icon top-right, show captured photo preview for 2s โ (Review: Photo captures and shows preview|Retest: Deny permission shows instructions|Failโ[1]) [Req: Task B]
Task G: Food Recognition AI Integration โ [1]Create /src/services/FoodRecognition.ts with recognizeFood(imageBase64) using Clarifai: stub.PostModelOutputs with model_id: 'food-item-recognition', filter outputs.data.concepts where value > 0.7 โ [2]Process response: map concepts to {name: string, confidence: number}, enrich each with nutrition from local DB: SELECT calories, protein FROM food_database WHERE name LIKE concept โ [3]Add caching: MD5 hash image, store results in AsyncStorage for 24h with key food_recognition_{hash}, check cache before API call โ (Review: Test burger.jpg returns 'burger' with confidence >0.7|Retest: Same image uses cache, no API call|Failโ[1]) [Req: Task F, Task G]
Task H: Nutrition Calculator Engine Service โ [1]Create /src/services/NutritionEngine.ts with calculateCalories(protein_g, carbs_g, fat_g): return protein*4 + carbs*4 + fat*9, calculateBMR(weight_kg, height_cm, age, isMale) using Mifflin-St Jeor โ [2]Add meal tracking: saveMeal(userId, foods[], mealType) inserts into meals table, then food_items for each food, updates daily_summaries with trigger โ [3]Create getDailySummary(userId, date) aggregating: SELECT SUM(calories), SUM(protein) FROM meals JOIN food_items WHERE DATE(logged_at) = date โ (Review: Calculate 25g protein, 30g carbs, 10g fat = 350 calories|Retest: Save meal and verify in daily summary|Failโ[2]) [Req: Task E]
""",
depends_on=["database_schema"],
model="opus"
)
# Claude's Tool Call:
create_task(
task_identifier="advanced_features",
orchestration_group="calorie_counter",
execution_prompt="""
Task J: Barcode Scanner Food Lookup โ [1]Install react-native-camera-kit for barcode scanning, create BarcodeScannerScreen with <CameraKitCameraScreen scanBarcode={true} onReadCode={(event) => handleBarcode(event.nativeEvent.codeStringValue)} /> โ [2]On scan: call OpenFoodFacts API, parse response.product.nutriments for calories_100g, proteins_100g, carbohydrates_100g, fat_100g, convert to per serving โ [3]If found: show product name, image_url, nutrition facts in modal with "Add to meal" button, if not found: prompt manual entry with barcode pre-filled โ (Review: Scan Coke barcode shows 42cal/100ml|Retest: Unknown barcode opens manual entry|Failโ[1]) [Req: Task F]
Task K: Manual Food Entry Search โ [1]Create SearchFoodScreen with TextInput, implement fuzzy search using Fuse.js on food_database with keys: ['name', 'brand'], threshold: 0.3, show results in FlatList โ [2]Each result item shows: food name, brand, calories per serving, (+) button to add, implement recent searches in AsyncStorage (last 10), show below search bar โ [3]Add filters: meal type (breakfast/lunch/dinner/snack), calorie range slider 0-1000, dietary tags (vegan, gluten-free), sort by: relevance/calories/name โ (Review: Search "chken" returns "chicken" results|Retest: Filter vegan excludes meat|Failโ[1]) [Req: Task E]
""",
depends_on=["camera_recognition"],
model="sonnet"
)
โจ Phase 3: User Experience (make it sexy)
# Claude's Tool Call:
create_task(
task_identifier="core_screens",
orchestration_group="calorie_counter",
execution_prompt="""
Task M: Home Dashboard Screen UI โ [1]Create HomeScreen with header showing date picker (default today), circular progress ring using react-native-svg showing calories (current/goal) with animated fill on mount โ [2]Add macro bars: horizontal stacked bar with protein(red) carbs(blue) fat(yellow) showing grams and percentages, below add water tracker with 8 glasses icons filling on tap โ [3]Recent meals section: FlatList showing last 3 meals with thumbnail, name, calories, time ago using date-fns, swipe left to delete with confirmation โ (Review: Progress ring animates to 1200/2000 calories|Retest: Delete meal updates totals immediately|Failโ[1]) [Req: Task I]
Task N: History Calendar Food Diary โ [1]Create HistoryScreen with react-native-calendars Calendar component, mark dates with meals using markedDates prop: green=under goal, red=over goal, yellow=at goal โ [2]On date tap: show modal with that day's meals grouped by type (Breakfast/Lunch/Dinner/Snacks), each meal shows foods list, total calories, edit button โ [3]Add week view: ScrollView with 7 cards showing daily totals, mini macro pie chart using victory-native, tap to expand day details โ (Review: Calendar shows last 30 days colored correctly|Retest: Edit past meal updates that day's color|Failโ[2]) [Req: Task M]
""",
depends_on=["advanced_features"],
model="sonnet"
)
# Claude's Tool Call:
create_task(
task_identifier="meal_flow_screens",
orchestration_group="calorie_counter",
execution_prompt="""
Task P: Meal Detail Edit Screen โ [1]Create MealDetailScreen receiving meal from navigation, show hero image at top with parallax scroll effect, list recognized foods with confidence badges (green >80%, yellow >60%, red <60%) โ [2]Each food item: editable name TextInput, quantity with +/- buttons, unit dropdown, calories auto-updating based on quantity, swipe to delete, "Not right?" button to search alternatives โ [3]Bottom section: add more foods button opening search modal, nutrition totals updating real-time, save button with loading state, share button generating image with meal photo and macros โ (Review: Changing quantity from 100g to 150g updates calories by 1.5x|Retest: Delete item updates totals|Failโ[2]) [Req: Task H]
""",
depends_on=["core_screens"],
model="sonnet"
)
๐ Phase 4: Ship It (final boss)
# Claude's Tool Call:
create_task(
task_identifier="testing_suite",
orchestration_group="calorie_counter",
execution_prompt="""
Task S: Unit Integration Test Suite โ [1]Setup Jest with React Native Testing Library, create __tests__ folders, write unit tests: NutritionEngine.test.ts testing calculateCalories(25,30,10)===350, macro validation, BMR calculation โ [2]Integration tests: photo-to-meal flow mocking camera and API, test saves correctly to DB, offline queue when no network, sync when reconnected โ [3]Component tests: render all screens without crashing, test navigation between tabs, Redux actions update store correctly, AsyncStorage persists โ (Review: All tests pass with >70% coverage|Retest: Run on CI, all green|Failโ[1]) [Req: Task R]
""",
depends_on=["meal_flow_screens"],
model="sonnet"
)
# Claude's Tool Call:
create_task(
task_identifier="production_deploy",
orchestration_group="calorie_counter",
execution_prompt="""
Task V: Security Privacy Compliance Setup โ [1]Implement API key encryption using react-native-keychain, add certificate pinning for API calls, obfuscate sensitive strings with react-native-obfuscating-transformer โ [2]Privacy: add GDPR consent screen for EU users, data deletion option in settings, export user data as JSON, analytics opt-out toggle, clear privacy policy link โ [3]Security audit: no hardcoded secrets in code, all user data encrypted at rest, HTTPS only, SQL injection prevention with parameterized queries, input validation on all forms โ (Review: Security scanner finds no vulnerabilities|Retest: Man-in-middle attack fails|Failโ[1]) [Req: Task U
Task W: Production Build Release Prep โ [1]iOS: generate certificates in Apple Developer, configure Xcode with provisioning profiles, set bundle ID com.snapcalories.app, archive and validate with App Store Connect โ [2]Android: generate signed keystore, configure gradle with release signing, enable minification and R8, build AAB format for Play Store, test on multiple devices โ [3]Create store listings: write descriptions emphasizing AI food recognition, take 5 screenshots per platform, app icon 1024x1024, privacy policy URL, age rating 4+ โ (Review: Both builds install and run on real devices|Retest: Upload to TestFlight/Internal testing works|Failโ[2]) [Req: Task V]
""",
depends_on=["testing_suite"],
model="opus"
)
# Claude's Tool Call:
create_task(
task_identifier="launch_features",
orchestration_group="calorie_counter",
execution_prompt="""
Task Y: Beta Testing Feedback Loop โ [1]Setup TestFlight for 100 iOS beta testers, Google Play Internal Testing for Android, create feedback form in-app with screenshot capability, discord/slack community for testers โ [2]Track metrics: daily active users, meal logging rate, photo vs manual entry ratio, feature usage heatmap, crash reports, average session time, user retention day 1/7/30 โ [3]Iterate based on feedback: fix top 3 crashes, improve food recognition accuracy on reported failures, add most requested foods to database, optimize slow screens โ (Review: 50+ beta testers active, <0.5% crash rate|Retest: User feedback form submits successfully|Failโ[1]) [Req: Task X]
""",
depends_on=["production_deploy", "launch_features"],
model="sonnet"
)
claude hits go (submit_orchestration):
[!TIP] "locked and loaded. spinning up the
calorie_countersquad. grab a coffee, this is gonna be lit."
submit_orchestration(orchestration_group="calorie_counter")
boom: claude just architected your entire app while you were doom-scrolling twitter. 11 parallel claude instances working in perfect harmony. claude-cto handles all the dependency management and handoffs automagically.
endgame: production-ready app with AI food recognition, butter-smooth UI, offline support, and 85% test coverage. shipped before lunch. ๐
๐ป your mission control: the cli dashboard
while your AI cto's running the show, the CLI is your ops center - monitor progress, debug issues, or drop manual tasks like a boss.
real-time ops: how you'd run this circus
๐ฎ CLI Commands Cheat Sheet
say your ai just launched that "ecommerce_modernization" plan. here's how you stay in the loop.
step 1: get the big picture ๐บ๏ธ
first, scope out what plans are cooking:
$ claude-cto list-orchestrations
id status tasks completed failed created
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1 running 5 2 0 2025-08-21T10:30:00
"cool, plan #1's live with 2/5 tasks already crushed."
step 2: watch the magic happen ๐ฟ
peek behind the curtain with live updates:
$ claude-cto orchestration-status 1 --watch
now your terminal's a live feed showing tasks flipping from waiting โ running โ completed.
step 3: stalk a specific worker ๐
payments refactor taking too long? let's investigate:
$ claude-cto list
id status last action logs
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1 completed wrote security report task_1_...
2 completed wrote perf report task_2_...
3 running editing auth/session.js task_3_...
4 running analyzing stripe_api.py task_4_...
5 waiting - task_5_...
now tail the payments worker (id 4):
# get the tl;dr
$ tail -f ~/.claude-cto/tasks/task_4_*_summary.log
# or go full detective mode
$ less ~/.claude-cto/tasks/task_4_*_detailed.log
step 4: drop ad-hoc tasks ๐น๏ธ
forgot something? no sweat - add tasks on the fly:
# fire-and-forget
$ claude-cto run "slap a 'modernization in progress' banner in readme.md"
# watch it live
$ claude-cto run "whip up a db seed script" --watch
step 5: launch pre-cooked workflows
got a json blueprint? be the cto:
# deploy a full ci/cd pipeline
$ claude-cto orchestrate cicd-pipeline.json --wait
pro tip: mix these commands like a devops bartender. your ai team's always on call. ๐ธ
๐ฆ get cooking in 60 seconds
๐ Quick Start (Platform-Optimized)
๐ macOS: Homebrew (Recommended)
# Install via Homebrew (includes auto-MCP configuration)
brew tap yigitkonur/claude-cto
brew install claude-cto
# Start the server (MCP auto-configures on first use)
claude-cto server start
๐ช Windows: pip/uv (Recommended)
# Install with pip (includes auto-MCP configuration)
pip install "claude-cto[full]"
# Start the server (MCP auto-configures on first use)
claude-cto server start
๐ง Linux: pip/uv or Homebrew
# Option A: pip/uv (Universal, works everywhere)
pip install "claude-cto[full]"
# Option B: Homebrew (if you prefer package managers)
brew tap yigitkonur/claude-cto && brew install claude-cto
# Start the server (MCP auto-configures on first use)
claude-cto server start
โจ Auto-Configuration: All installation methods automatically configure claude-cto as an MCP server for Claude Code on first use. No manual setup required!
Prerequisites
- Python (v3.10+) & Node.js (v16+)
- Claude Code SDK:
npm install -g @anthropic-ai/claude-code - Authentication:
claude auth login- no API key needed with Claude subscription
Installation Methods
๐ฏ Platform-Specific Recommendations:
- ๐ macOS: Homebrew is the easiest (zero-config setup, native integration)
- ๐ช Windows: pip/uv recommended (Claude Code works via WSL/native, no Homebrew needed)
- ๐ง Linux: Both pip/uv and Homebrew work great - choose your preference
- โก Speed demons: UV is 10-100x faster than pip on all platforms
- ๐ง MCP-only: Use Smithery for Claude Code integration without CLI/server
| Method | Command | Best For |
|---|---|---|
| ๐บ Homebrew Recommended |
brew tap yigitkonur/claude-cto |
Zero-config setup + auto-MCP |
| โก UV blazing fast |
uv pip install "claude-cto[full]" |
Modern Python workflows |
| โจ Smithery MCP only |
npx -y @smithery/cli install @yigitkonur/claude-cto |
Claude Desktop/VSCode users |
| ๐ Full Monty | pip install "claude-cto[full]" |
CLI + API + MCP + auto-config |
| ๐ง MCP Only | pip install "claude-cto[mcp]" |
Just the Claude sauce |
| ๐ฅ๏ธ CLI/Server | pip install "claude-cto[server]" |
Terminal power user |
| ๐ณ Docker | docker run yigitkonur35/claude-cto |
Zero dependencies |
3. installation deep dive
โก UV Users (the fast lane)
# install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh
# install with all extras
uv pip install "claude-cto[full]"
# or for a project setup with lock file
uv init my-automation
cd my-automation
uv add "claude-cto[full]"
uv sync # creates deterministic uv.lock
UV is Rust-powered and 10-100x faster than pip. It also handles virtual environments automatically and creates lock files for reproducible installs.
4. Installation Notes & Cross-Platform Compatibility
๐ macOS Users:
- Homebrew (Recommended): Includes wrapper script with zero-config MCP setup
- pip/uv: Auto-configures on first command, works with any Python environment
- Both methods play nicely together (first-run-wins, no conflicts)
๐ช Windows Users:
- pip/uv (Recommended): Full native support with auto-MCP configuration
- Claude Code works via WSL or native Windows installation
- Auto-configures using correct Python interpreter (virtualenv, conda, pyenv compatible)
- Shows friendly setup message: "๐ฟ Setting up claude-cto MCP server..."
๐ง Linux Users:
- Both pip/uv and Homebrew: Equally reliable options
- Choose based on your preference (package manager vs Python ecosystem)
- Auto-configures MCP server using system Claude CLI
โก UV Users (All Platforms):
- Rust-powered speed (10-100x faster than pip)
- Automatic virtual environment handling
- Lock file generation for reproducible builds
- Same auto-MCP configuration as pip
๐ Security & Safety:
- Cross-platform subprocess handling with proper timeouts
- Graceful fallback if Claude CLI not available
- No conflicts between installation methods
- Safe path handling for Windows/Linux/macOS
โจ Zero Manual Setup: All installation methods automatically detect Claude Code and configure the MCP server using your correct Python environment. No
.claude.jsonediting required!
๐ ๏ธ rest api: your integration playground
the real magic happens through a slick local rest api - hook it into anything from ci/cd to custom tooling. this can be a thing where you can manage your claude code execution remotely, just built on top of this API.
๐ Python ETL Pipeline Example
import httpx, time, json
SERVER = "http://localhost:8000"
# 1. define the whole shebang
etl_blueprint = {
"tasks": [
{"id": "grab_sales", "prompt": "yoink sales data from postgres"},
{"id": "snag_inventory", "prompt": "pull inventory from mongodb"},
{
"id": "transform",
"prompt": "cleanup & merge datasets",
"needs": ["grab_sales", "snag_inventory"],
"delay": 2.0 # chill for 2 secs
},
{"id": "dump_to_warehouse", "prompt": "shove clean data into snowflake", "needs": ["transform"]},
]
}
# 2. fire it off
print("๐ launching etl pipeline...")
r = httpx.post(f"{SERVER}/api/v1/orchestrations", json=etl_blueprint)
orch_id = r.json()["orchestration_id"]
print(f"โ
pipeline #{orch_id} live!")
# 3. watch like a hawk
while True:
status = httpx.get(f"{SERVER}/api/v1/orchestrations/{orch_id}").json()
print(f"status: {status['status']} | progress: {status['completed_tasks']}/{status['total_tasks']}")
if status['status'] in ["done", "failed", "cancelled"]:
print("\n๐ all done! final report:")
print(json.dumps(status, indent=2))
break
time.sleep(5) # don't spam the api
this api's your golden ticket - automate all the things without touching the cli. ๐ค
โจ feature breakdown: the tech sauce
| Feature | What it does | Why you care |
|---|---|---|
๐ Parallel10x speed |
Runs multiple AI agents simultaneously | 10 tasks finish in 5 mins, not 50 |
๐ DependenciesDAG support |
Handles task dependencies automatically | Complex workflows just work |
๐ Auto-retriesexponential backoff |
Smart retries with circuit breakers | No manual restarts for flaky wifi |
๐ง Model pickeropus/sonnet/haiku |
Assign models per task complexity | Save $$$ using heavy models wisely |
๐ Full logssummary + detailed |
Two-tier logging for every task | Debug like a pro with context |
๐ Resource guardCPU/memory/disk |
Monitors system resources | Prevents machine meltdown |
๐พ Crash-proofdisk persistence |
Everything saved to SQLite | Power outage? Pick up where you left |
๐ก๏ธ Circuit breakerfailure protection |
Stops retrying broken components | No infinite failure loops |
๐ข deployment options
๐ณ Docker (set it & forget it)
# quick start with docker
# an api key isn't required, but you must manually run claude and complete auth.
# use `brew` or `pip install` for an easier setup.
docker run -d \
--name claude-cto \
-p 8000:8000 \
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
yigitkonur35/claude-cto:latest
# or run CLI commands directly
docker run --rm \
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
yigitkonur35/claude-cto run "analyze this codebase"
# or use docker-compose for full setup
docker-compose up -d
for detailed docker setup, multi-arch builds, and advanced configs, check out DOCKER.md.
docker-compose snippet
drop this in docker-compose.yml:
version: '3.8'
services:
claude-cto:
image: yigitkonur35/claude-cto:latest
ports:
- "8000:8000"
environment:
- ANTHROPIC_API_KEY=${API_KEY}
volumes:
- ./claude_data:/root/.claude-cto # keeps your data safe
restart: unless-stopped
fire it up: docker-compose up -d
๐ง Systemd (for linux servers)
- create
/etc/systemd/system/claude-cto.service - paste config (ask your friendly neighborhood sysadmin)
- run:
sudo systemctl enable --now claude-cto
๐ง config & fixes
โ๏ธ Environment Variables
| variable | purpose | default |
|---|---|---|
ANTHROPIC_API_KEY |
your claude api key | no need for claude max sub users - optional for key-based usage |
CLAUDE_CTO_SERVER_URL |
where the cli connects | http://localhost:8000 |
CLAUDE_CTO_DB |
task database location | ~/.claude-cto/tasks.db |
CLAUDE_CTO_ENABLE_SOUNDS |
ping when tasks complete | true |
CLAUDE_CTO_MODE |
standalone or proxy |
auto |
๐ฅ Common Issues Quickfix
| problem | solution |
|---|---|
| tasks stuck | run claude --version to check auth |
| database locked | pkill -f claude-cto && rm ~/.claude-cto/tasks.db-journal |
| port 8000 taken | lsof -i :8000 or let it auto-find ports |
| permission denied | sudo chown -R $(whoami) ~/.claude-cto |
Built with ๐ฅ by devs who got tired of watching AI work sequentially
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_cto-0.15.2.tar.gz.
File metadata
- Download URL: claude_cto-0.15.2.tar.gz
- Upload date:
- Size: 217.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a59e57a9790579c0fc8b4fd5d1d6f4118645c1331e018171bbf63830e24cb87
|
|
| MD5 |
ab4090ce61ccffd36cb06df83a40bbbe
|
|
| BLAKE2b-256 |
6d957596c1be844e3e17724f2e770f5d40abc98a40b63e1d564940c0a18697cb
|
File details
Details for the file claude_cto-0.15.2-py3-none-any.whl.
File metadata
- Download URL: claude_cto-0.15.2-py3-none-any.whl
- Upload date:
- Size: 138.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fb054469dad88bb36e06bb19924c6e761896665d8054ef955e567738aac59c9
|
|
| MD5 |
62c89dff69cdb91411de9eb2683e92fa
|
|
| BLAKE2b-256 |
b14dd9989870e610dd32e6092267ee3563f934d03141a7ba2ec2e852a26a1914
|