記事一覧へ
2026年3月です。まだコードをChatGPTにコピペしているなら、もう遅れています。少しではなく、大幅に。
私はここ3ヶ月、毎日Claude Codeの中で生活しました。リリース、壊す、修正、再構築。
Claude CodeはCopilotでもコード付きChatGPTでもオートコンプリートでもありません。自律型コーディングエージェントです。考え、行動し、検証し、繰り返します。
何をするか:リポジトリ全体を読む。アーキテクチャを理解する。変更を計画する。複数のファイルを編集する。テストを実行する。自分のバグを修正する。タスクが完了するまで続ける。
主な学び:
・CLAUDE.md = AIの脳。リポジトリに入れるとClaudeはコーディングスタイルに従い、アーキテクチャを尊重し、正しいコマンドを使用し、過去のミスを避けます。毎回。
・マルチファイル編集:「認証システムをJWTにリファクタリングして」と言えば、一度のフローで10〜20ファイルのミドルウェア、ルート、テスト、インポート、設定を更新します。
・エージェントループ:生成 → 実行 → 観察 → 検証 → 全て通るまで繰り返す。デバッグではなく監督。
・サブエージェント:大きなコードベースの読み取り、テストスイートの実行、ログ分析などのタスクを処理するミニエージェントを生成します。
・コスト:ほとんどの開発者で日あたり約5〜10ドル。ROIは圧倒的。

claude-setupclaude-workflowharness-design
Claude Codeで自律型コーディングエージェントを使いこなす
♥ 120↻ 35🔖 100👁 70,566
原文を表示 / Show original
It's March 2026. And if you're still copy-pasting code into ChatGPT… you're already behind. Not slightly. Massively.
I spent the last 3 months living inside Claude Code. Daily. Shipping. Breaking. Fixing. Rebuilding.
Claude Code is NOT Copilot, ChatGPT with code, or autocomplete. It's an autonomous coding agent. It thinks. Acts. Verifies. Repeats.
What it does: Reads your entire repo. Understands architecture. Plans changes. Edits multiple files. Runs your tests. Fixes its own bugs. And keeps going until the task is DONE.
Key learnings:
- CLAUDE.md = your AI's brain. Drop it in your repo and Claude follows your coding style, respects architecture, uses correct commands, avoids past mistakes. Every. Single. Time.
- Multi-file editing: Say 'Refactor auth system to JWT' and it updates middleware, routes, tests, imports, configs across 10-20 files in one flow.
- The agent loop: generate → execute → observe → verify → repeat until everything passes. You're supervising, not debugging.
- Sub-agents: Claude spawns mini-agents to handle tasks like reading large codebases, running test suites, analyzing logs. Without = context polluted. With = clean + focused.
- Plan mode: Before big tasks, ask 'Analyze this and propose a plan.' It explores, understands dependencies, suggests approach WITHOUT changing anything. Critical.
- MCP: Connects to GitHub, Slack, Databases, Notion, Sentry, Browsers. 'Find critical bugs → create GitHub issues → notify Slack' - one command.
- Hooks: Enforce rules like run tests before finishing, auto-format code, block dangerous commands. AI + deterministic rules.
- Context management: Use /clear, /compact, sub-agents. Golden rule: if it fails twice, restart.
- Cost: ~$5-10/day for most devs. ROI is insane.
Biggest mistakes: Writing huge CLAUDE.md files, not clearing context, fighting bad outputs, skipping planning, ignoring sub-agents, overusing expensive models.