← Semua picks

AI Workflow Recommended

AI Workflow: Claude Code Pair Programming 4 Bulan

Saya pakai Claude Code sebagai pair programmer 4 bulan untuk 5 project SMB Indonesia. Workflow concrete, metric productivity, dan gotcha yang nobody bilang.

6 Juni 2026 · 10 menit ·Use case: Solo dev productivity 2x dengan AI pair programming
Claude CodeCursorGitBun

TL;DR

  • Setup: Claude Code (CLI agent) + Cursor (editor) + Git. $20-40/bulan total.
  • Productivity gain: 1.8-2.2x untuk task multi-file dan refactor, measured across 5 project.
  • Verdict: Recommended untuk solo dev senior Indonesia dengan workload 30+ jam/minggu.

Konteks

Saya pakai Claude Code sebagai pair programmer dari Februari 2026 - sekarang (4 bulan). 5 project SMB Indonesia:

  • SaaS dental Jakarta (Next.js 15 refactor): 40 jam Claude Code-assisted, 18 jam saja
  • Chatbot klinik kecantikan (greenfield, Bundle AI SaaS): 25 jam total, biasanya 50+ jam
  • Admin warung Tangerang (SvelteKit migration): 32 jam total, biasanya 60+ jam
  • Dashboard HR internal (TanStack Start): 45 jam total, biasanya 80+ jam
  • Portfolio fotografer (Astro 6): 8 jam total, biasanya 15 jam

Total saving: ~140 jam dalam 4 bulan = Rp 35-45 juta saved (rate Rp 250-320rb/jam).

Pricing (Juni 2026)

Claude Code subscription

  • Pro: $20/bulan = Rp 320rb/bulan. Termasuk Claude.ai chat + Claude Code unlimited dengan rate limit reasonable (50-200 message/5 jam).
  • API pay-per-token: $3-15/M input untuk Sonnet, $15-75/M untuk Opus.

Total cost setup saya (Juni 2026)

  • Claude Pro: $20/bulan
  • Cursor Pro: $20/bulan (editor + tab completion)
  • GitHub Pro: $4/bulan (private repo + Actions)
  • Total: $44/bulan = Rp 700rb/bulan

ROI untuk freelance Indonesia: $44/bulan vs save 30-40 jam/bulan × Rp 200rb = save Rp 6-8 juta/bulan. ROI 8-12x.

Daily workflow (5 fase)

Fase 1: Morning planning (15-30 menit)

Buka project di Cursor. Run claude di terminal terpisah.

Prompt Claude Code:

Read CLAUDE.md, last 5 commits, dan TODO.md. Summarize state of project dan suggest 3 next priority based on user feedback issue di GitHub.

Claude scan codebase + git log + GitHub issues, return prioritized plan dalam 1-2 menit.

Fase 2: Feature implementation (2-4 jam blok)

Untuk feature baru, saya prompt Claude Code:

Implement feature X dengan requirement:
- ...
- ...
Stack: Next.js 15 App Router, Drizzle ORM, Supabase auth.
Follow pattern di file Y dan Z.

Claude generate plan (file affected + steps), saya review, lalu approve untuk execute. Claude write code, run test, commit.

Saya supervise via terminal — bisa interrupt anytime jika direction salah.

Fase 3: Inline edit (Cursor, 30-60 menit blok)

Untuk inline edit (tweak component, fix style), saya pakai Cursor Composer atau Cmd+K. Lebih cepat dari Claude Code untuk task < 50 LOC.

Fase 4: Review + test (30-60 menit)

Manual review change dari Claude Code. Run test:

bun test
bun run build

Visual regression: Playwright snapshot atau manual browser test.

Fase 5: Wrap-up + commit (15 menit)

Prompt Claude Code:

Summarize today's change. Write commit message follow Conventional Commits. Update CHANGELOG.md if relevant.

Claude generate. Saya review, edit jika perlu, commit + push.

Total session: 6-8 jam coding produktif, 70% AI-assisted.

Setup recipe (30-60 menit one-time)

Step 1: Install Claude Code (5 menit)

# macOS/Linux
curl -fsSL https://claude.ai/install.sh | sh

# Atau via npm
npm install -g @anthropic-ai/claude-code

Login:

claude login

Step 2: CLAUDE.md di root project (10 menit)

CLAUDE.md:

# Project: SaaS Dental Jakarta

## Stack
- Next.js 15 App Router
- Drizzle ORM + Postgres (Supabase)
- Tailwind v4 + shadcn/ui
- Auth: Supabase Auth
- Deploy: Vercel

## Conventions
- TypeScript strict mode
- Server Actions untuk mutation
- RSC default, Client Component dengan reason
- Test: Vitest + Playwright

## File pattern
- app/(auth)/* - public auth flow
- app/(dashboard)/* - protected
- components/ui/* - shadcn primitives
- lib/db/schema.ts - Drizzle schema
- lib/db/queries.ts - reusable queries

## Don't
- Pakai Server Component untuk form interaktif
- Skip Zod validation di Server Action
- Hardcode color (pakai CSS var di @theme)

Claude Code auto-read CLAUDE.md tiap session. Save 5-10 menit context-setting per session.

Step 3: Custom slash command (15 menit)

.claude/commands/test-feature.md:

Run Vitest untuk file yang sedang dimodifikasi. Jika fail, debug dan fix.

Usage: /test-feature

.claude/commands/migrate-db.md:

1. Generate Drizzle migration: `bunx drizzle-kit generate`
2. Review SQL output
3. Apply if safe: `bunx drizzle-kit migrate`
4. Update relevant types

Slash command reusable. Save typing 50-200 keystroke per task.

Step 4: Integrate dengan Cursor/Zed (10 menit)

Open Cursor di repo same. Workflow:

  • Claude Code di terminal pane bawah
  • Cursor editor di pane utama
  • Browser di pane samping

Claude Code edit file → Cursor auto-reload (file watcher). Visual diff via Cursor source control.

Step 5: Backup workflow (10 menit)

Jika hit rate limit Claude Pro:

  • Switch ke API pay-per-token via ANTHROPIC_API_KEY
  • Atau fallback ke Cursor Composer (Claude Sonnet integrated)
export ANTHROPIC_API_KEY=sk-ant-...
claude --api

Productivity metric (4 bulan data)

Task type comparison

Task typeWithout AIWith Claude CodeSpeedup
Greenfield feature (medium)8-12 jam3-5 jam2.4x
Refactor multi-file6-10 jam1.5-3 jam3.3x
Bug fix (root cause unknown)2-6 jam0.5-2 jam3x
Inline edit (single file)30-60 menit10-25 menit2.4x
Documentation write2-4 jam30-60 menit4x
Migration (DB schema)3-6 jam45-90 menit4x

Time-to-PR

Sebelum AI workflow (Q3 2025): average 2.5 day per medium PR. Dengan AI workflow (Q1-Q2 2026): average 1.1 day per medium PR.

Speedup 2.3x. Consistent across 5 project.

Trade-off

Pro

  • Productivity 2-3x untuk task agentic (refactor, migration, multi-file feature)
  • Context permanent via CLAUDE.md — Claude tidak lupa convention
  • Bisa pipe ke shell tool (jq, ripgrep, gh, kubectl) — lebih powerful dari IDE-bound AI
  • Cost predictable di Pro plan
  • Long-running task (10-30 menit) bisa berjalan tanpa supervision

Con

  • Tidak ada tab completion (butuh Cursor/Copilot pendamping)
  • Visual diff via terminal — less ergonomic dari Cursor Composer
  • Junior dev butuh adaptasi 1-2 minggu untuk CLI workflow
  • Klien NDA strict: butuh disclosure + waiver
  • Bug Claude Code sometimes commit code yang break test — selalu review sebelum push

Gotcha (lesson learned)

1. Jangan skip CLAUDE.md

Tanpa CLAUDE.md, Claude generate code yang violate convention setiap session. 15 menit setup CLAUDE.md save 1-2 jam debug per minggu.

2. Test sebelum commit

Claude Code sometimes generate code yang compile tapi fail test. Workflow: AI write → human review → AI run test → human approve commit. Skip step 3 = pain.

3. Rate limit Pro plan

Plan Pro 50-200 message/5 jam. Heavy day saya hit limit. Backup ke API pay-per-token cost $5-15 untuk satu hari heavy.

4. Long context degradation

Context window 200K-1M besar, tapi performance degrade setelah 100K. Workflow: start new conversation tiap 2-3 jam coding session.

5. Disclosure ke klien

Setelah Maret 2026 saya add klausul di kontrak: “Dev pakai AI assistant (Claude). Code dikirim ke Anthropic dengan retention policy 30 hari. Klien explicit waive jika strict NDA.” Tidak ada klien yang reject.

Konteks Indonesia

Untuk dev solo Indonesia 2026:

  • Workload 30+ jam/minggu coding: setup AI workflow ini ROI positif dalam 2 minggu
  • Workload 10-20 jam/minggu: pakai Cursor Pro saja, Claude Code overhead tidak worth
  • Workload < 10 jam: pakai free tier (Windsurf free, Cursor free tier)

Klien Jakarta SaaS: rate saya naik dari Rp 200rb/jam ke Rp 320rb/jam karena delivery 2x lebih cepat. Klien tetap happy karena total project cost turun (less jam billed).

Klien warung Tangerang scale: delivery 6 minggu vs estimasi 10 minggu. Klien refer 2 klien baru karena impressed.

Verdict

Recommended untuk solo dev senior Indonesia 2026 dengan workload 30+ jam/minggu.

Setup jika:

  • Anda comfort dengan CLI
  • Workload coding heavy (30+ jam/minggu)
  • Klien Anda OK dengan AI disclosure
  • Anda value time more than $20-40/bulan subscription

Skip jika:

  • Workload casual (< 10 jam/minggu coding) — free tier cukup
  • Klien strict no-AI policy (rare di 2026, tapi exist)
  • Tidak comfort dengan CLI — pakai Cursor Composer atau Windsurf Cascade alternatif

Pair dengan: Cursor Pro untuk tab completion + visual diff. Total Rp 700rb/bulan, ROI 8-12x untuk freelance senior.

Untuk perbandingan AI-IDE: Claude Code vs Cursor vs Windsurf.

Ditulis oleh Asti Larasati

// Pick AI Workflow lain


← Semua picks RSS feed