Claude Code сам меняет файлы и запускает команды на вашем компьютере. Сколько свободы ему дать — решаете вы, переключая режим. А если он всё-таки наделал лишнего — его правки можно откатить. В этом уроке — три режима на каждый день, как читать запрос на разрешение и как вернуть всё назад.
Claude Code changes files and runs commands on your computer by itself. How much freedom it gets is up to you — you switch the mode. And if it does too much, its edits can be rolled back. This lesson covers the three everyday modes, how to read a permission request, and how to undo.
Новый сотрудник работает с вашими папками. Вы можете дать ему ключи по-разному:
A new employee works with your folders. You can hand over the keys in different ways:
Читать можно, а перед каждой правкой — к вам. Медленно, но вы видите всё.
Reading is fine, but before every edit — come to me. Slow, but you see everything.
Файлы в папке проекта правит сам, рискованное — спрашивает.
Edits files in the project folder by himself, asks about risky things.
Изучает папку и пишет, что собирается делать. Работа — только после вашего «да».
Studies the folder and writes what he plans to do. Work starts only after your "yes".
defaultacceptEditsplanautoПереключение — Shift+Tab. Каждое нажатие — следующий режим по кругу:
Switching — Shift+Tab. Each press moves to the next mode in the cycle:
Какой режим включён — видно в строке под полем ввода:
The current mode is shown in the line under the input box:
| Важно знатьGood to know | Что это значит для васWhat it means for you |
|---|---|
| В свежих версиях Claude Code сессия в терминале начинается в режиме AutoIn recent Claude Code versions a terminal session starts in Auto mode | Перед важной задачей нажмите Shift+Tab и выберите Manual или PlanBefore an important task press Shift+Tab and pick Manual or Plan |
| В Team и Enterprise Auto доступен по умолчанию, администратор может его выключитьOn Team and Enterprise, Auto is available by default; the admin can turn it off | Если Auto нет в круге — это решение компанииIf Auto is missing from the cycle, that's a company decision |
| Режим плана можно включить на одно сообщение: начните его с /planPlan mode can be used for one message: start it with /plan | Удобно, когда в целом работаете в другом режимеHandy when you mostly work in another mode |
| Есть режим Bypass permissions — без всяких вопросовThere is a Bypass permissions mode — no questions at all | Только для изолированных сред у IT. Новичку — никогдаOnly for isolated IT environments. Never for a beginner |
В приложении Claude (вкладка Code) и в VS Code режим выбирается переключателем у поля ввода — смысл тот же.
In the Claude app (Code tab) and in VS Code the mode is chosen with a selector by the input box — same meaning.
| СитуацияSituation | РежимMode |
|---|---|
| Новая задача, незнакомая папка, важные файлыA new task, an unfamiliar folder, important files | Plan |
| Хотите видеть каждый шаг, учитесьYou want to see every step, you're learning | Manual |
| Знакомая рутина в своей папке проекта, исходники защищеныFamiliar routine in your project folder, sources protected | Edit automatically |
| Длинная задача, которую вы уже делали, и вам не нужно жать «да» сто разA long task you've done before, and you don't want to press "yes" a hundred times | Auto — если разрешён и вы понимаете риск— if allowed and you understand the risk |
В этой папке выгрузки продаж «Долины напитков» за сентябрь и октябрь. Нужна сводная таблица: город × месяц, литры, изменение в %. Сначала составь план: какие файлы прочитаешь, как сведёшь, как назовёшь новый файл. Исходные файлы не меняй — результат только новым файлом. Если что-то непонятно в данных — спроси меня.
This folder has Valley Beverages sales exports for September and October. I need a pivot table: city × month, litres, change in %. First make a plan: which files you'll read, how you'll combine them, what you'll name the new file. Don't change the source files — the result only as a new file. If anything in the data is unclear, ask me.
Claude работает в режиме Manual над отчётом по продажам и по очереди спрашивает разрешения. Решите за него. Правило: читайте, что именно он хочет сделать — какой файл и какую команду.
Claude works in Manual mode on a sales report and asks for permission step by step. Decide for it. The rule: read exactly what it wants to do — which file and which command.
Кроме «да» и «нет» Claude иногда предлагает «да, и больше не спрашивать о таком». Выбирайте это только для действий, которые вы точно понимаете и которые повторяются.
Besides "yes" and "no", Claude sometimes offers "yes, and don't ask again for this". Choose it only for actions you fully understand and that repeat.
Перед каждым вашим сообщением Claude Code сам делает снимок файлов, которые он правит. Чтобы вернуться: нажмите Esc два раза при пустом поле ввода или наберите /rewind. Откроется список ваших сообщений — выберите, к какому вернуться, и действие:
Before each of your messages Claude Code takes a snapshot of the files it edits. To go back: press Esc twice with an empty input box or type /rewind. A list of your messages opens — choose where to return and the action:
| ДействиеAction | Что произойдётWhat happens |
|---|---|
| Restore code and conversation | вернуть и файлы, и разговор к этой точкеreturn both files and conversation to this point |
| Restore conversation | вернуть разговор, файлы оставить как сейчасreturn the conversation, keep the files as they are |
| Restore code | вернуть файлы, разговор оставитьreturn the files, keep the conversation |
| Summarize from here | сжать разговор с этой точки в выжимку — освободить «рабочий стол» (урок 15-05)compress the conversation from here into a summary — free up the "desk" (lesson 15-05) |
| Never mind | ничего не делатьdo nothing |
Если в поле ввода есть текст, двойной Esc сначала очистит его. Снимки сохраняются с разговором, поэтому откат работает и после /resume.
If the input box has text, double Esc clears it first. Snapshots are saved with the conversation, so rewind works after /resume too.
| КомандаCommand | КогдаWhen |
|---|---|
/clear | новая задача — чистый разговор (файлы не трогает)new task — a clean conversation (files untouched) |
/resume | вернуться к прошлому разговору, например вчерашнемуgo back to an earlier conversation, e.g. yesterday's |
/usage | сколько использовано из лимитаhow much of the limit is used |
claude в учебной папке. Нажимайте Shift+Tab и смотрите на строку под полем ввода. Остановитесь на plan mode. Start claude in a practice folder. Press Shift+Tab and watch the line under the input box. Stop at plan mode.Исходные файлы в этой папке только читай. Ничего не удаляй и не перезаписывай. Результат сохраняй новым файлом с понятным именем. Перед любой командой, которая меняет или удаляет файлы, объясни мне, что она сделает.
Only read the source files in this folder. Don't delete or overwrite anything. Save the result as a new file with a clear name. Before any command that changes or deletes files, explain to me what it will do.
| ОшибкаMistake | Как правильноDo this instead |
|---|---|
| Не смотрят, какой режим включён, и начинают важную задачу в AutoNot checking the mode and starting an important task in Auto | Перед важной задачей — Shift+Tab до plan modeBefore an important task — Shift+Tab to plan mode |
| Жмут «да», не читая, что Claude хочет сделатьPressing "yes" without reading what Claude wants to do | Читайте имя файла и команду. Непонятно — «нет» и вопрос «зачем?»Read the file name and command. Unclear — "no" and ask "why?" |
| Одобряют план с первого разаApproving the plan at the first go | Добавьте в план проверку итогов и запрет менять исходникиAdd a totals check and a no-overwrite rule to the plan |
| Надеются на откат после удаления файлов командойRelying on rewind after deleting files with a command | Командные изменения откат не вернёт — держите копииRewind won't undo command changes — keep copies |
| Выбирают «больше не спрашивать» для всего подрядChoosing "don't ask again" for everything | Только для понятных повторяющихся действийOnly for clear, repeating actions |