Controls and Modes


Working Modes

Interactive Mode

# Start interactive mode
claude

# Features
- Continuous dialogue
- Context preservation
- Session management

Single Command Mode

# Execute single task
claude "create a hello.js file"

# Features
- Quick execution
- Independent tasks
- Stateless

Plan Mode

# Plan mode
You: implement user authentication

Claude: Let me enter Plan Mode to design the implementation.

[Plan Mode]
1. Analyzing requirements...
2. Creating implementation plan...
3. Presenting plan for approval...

Proceed with implementation? (yes/no)

Permission Controls

Configure Permissions

{
  "permissions": {
    "fileOperations": {
      "read": true,
      "write": "prompt",
      "delete": "deny"
    },
    "commandExecution": {
      "bash": "prompt",
      "system": "deny"
    },
    "networkAccess": {
      "http": true,
      "external": "prompt"
    }
  }
}

Permission Levels:

  • true / allow: Auto-allow
  • prompt: Ask each time
  • false / deny: Deny

Session Controls

# Suspend session
Ctrl + Z

# Resume session
fg

# Interrupt operation
Ctrl + C

# Exit
Ctrl + D
exit
/quit

Summary

In this chapter, we learned:

  • ✅ Three working modes (Interactive, Single Command, Plan)
  • ✅ Permission control configuration
  • ✅ Session control commands

Next Step: Continue with Slash Commands.