CursorやClaude Codeなしに、Claude Desktopを無料のコーディングエージェントとして使う
使うタイミング: すでにClaude Desktopを持っていて、スニペットを貼り付けるだけでなく実際にリポジトリを編集させたいとき。
前提条件
- Claude Desktopのインストール — claude.ai/download からダウンロード
- 作業ディレクトリのホワイトリスト登録 — 初回起動時にClaudeが操作できるディレクトリを尋ねるプロンプトが表示される
フロー
-
インストールしてワークスペースをロックするInstall desktop-commander. Limit it to ~/Code/myproject — nothing outside.✓ コピーしました→ 設定にallowed_directoriesの制限が反映され、Claude側にツール一覧が表示される
-
実際の変更を加えるOpen ~/Code/myproject. Find every TODO comment, group by file, propose fixes for the top 5.✓ コピーしました→ ripgrep高速スキャンによる、行番号付きの優先順位付きリスト
-
edit_blockで適用するApply the proposed fixes using edit_block. Don't rewrite whole files — just the necessary diffs.✓ コピーしました→ 各編集にold_string/new_stringブロックが表示され、その後のgit diffがクリーンな状態になる
結果: Claude Desktopが有料IDEアシスタントと同等の品質で、リポジトリへの実際のコード変更を書き込むようになる。
注意点
- allowed_directoriesを設定し忘れ、Claudeがホームフォルダをスキャンしてしまう — ~/.claude-server-commander/config.json を編集してClaude Desktopを再起動する