DocsCore ConceptsPermission System

Permission System

HelixMind's 3-tier permission system. safe, ask, dangerous. and how to control what the AI can do.

Permission System

HelixMind uses a 3-tier permission system to control what the AI agent can do.

The 3 Tiers

TierBehaviorTools
Safe (auto)Runs without askingread_file, list_directory, search_files, find_files, git_status, git_log, git_diff, spiral_query, spiral_store
Ask (prompt)Asks for permissionedit_file, write_file, git_commit, run_command (non-destructive), web_research
Dangerous (always ask)Always requires approvalrun_command with rm -rf, dd, format, DROP TABLE, curl | sh, etc.

Permission Modes

ModeFlagBehavior
Default.Safe = auto, Ask = prompt, Dangerous = prompt
Skip-Permissions--skip-permissions or /skip-permissionsSafe + Ask = auto, Dangerous = prompt
YOLO--yolo or /yoloEverything auto-approved (โš ๏ธ use with caution)

Permission Prompts

When a tool requires permission:

๐Ÿ”’ edit_file: src/middleware/auth.ts (line 42)
   Allow? [y/n/always]:
ResponseEffect
yAllow this one time
nDeny this operation
alwaysAllow this tool type for the rest of the session

Command Classification

The run_command tool classifies every command:

CategoryExamples
Auto-approvels, cat, echo, npm test, tsc, eslint, git status
Asknpm install, docker, make, python, mkdir, cp, mv
Dangerousrm -rf, dd, mkfs, chmod 777, DROP, DELETE, TRUNCATE, curl | sh

Emergency Stop

Press ESC ESC (double-tap) to:

  1. Immediately abort all running operations (main + background)
  2. Open the checkpoint browser
  3. Choose a state to revert to

Works in all modes: including YOLO.

Tips

  1. Start with default mode until comfortable
  2. Skip-permissions when actively watching the AI work
  3. YOLO only in safe, isolated environments (containers, test projects)
  4. Use /undo immediately if an operation doesn't look right
HelixMind โ€” AI Coding CLI with Spiral Memory