[ ABORT TO HUD ]
SEQ. 1
SEQ. 2
SEQ. 3

Autonomous Execution Modes

💻 Claude Code CLI20 min900 BASE XP⌨ HANDS-ON LAB

The Local Agentic Interface

Claude Code is an agentic CLI that lives in your terminal. It executes a continuous ReAct (Reasoning + Action) loop. You give it a task (e.g., "Refactor the login logic"), and it autonomously navigates your file system, reads code, runs tests, and applies fixes until the task is complete.

The Iterative Correction Loop

Unlike a standard copilot, Claude Code handles failures autonomously. If it runs npm run test and it fails, it ingests the entire error log, identifies the corrupted lines, and applies a fix without human intervention. It only stops when it reaches your goal or hits a safety wall.

CLAUDE.md — Project Memory

The CLAUDE.md file in your project root serves as persistent memory across sessions. This markdown file contains project-specific guidance: coding standards, architecture decisions, dependency constraints, and context that Claude should always be aware of. Claude reads this file at session start and uses it to inform every decision it makes.

// Example CLAUDE.md
# Project: InfinityStack
- Framework: Next.js 15 with App Router
- Deployment: Vercel CLI only, NEVER git push
- Testing: vitest for unit, playwright for e2e
- Style: Vanilla CSS, no Tailwind
🆕 Claude Cowork & Trusted Devices (2026): For non-developers, Claude Cowork provides a desktop agent that autonomously handles file and app-based tasks using Computer Use. It integrates natively with Dispatch for remote task delegation from mobile devices, secured by the new Trusted Devices remote execution protocol.
⌨ HANDS-ON LABInstall & Drive Claude Code
⭐ +200 XP

Set up the Claude Code CLI from scratch, launch an interactive session, then run it headless — the exact workflow used in CI pipelines.

1Install the Claude Code CLI globally using npm.
2Launch an interactive session by running the CLI's base command in your project directory.
3Now run it headless: use the -p (print) flag with a one-shot prompt for scripting/CI usage.
lab-sandbox — simulated environment
INFINITY LAB SANDBOX v2.6 — simulated shell
Type the command for the current objective. Helpers: "hint", "solution", "clear".
$
OBJECTIVE 1 / 3 — type "hint" if stuck
SYNAPSE VERIFICATION
QUERY 1 // 3
How does Claude Code gain context about your repo?
You upload a ZIP
It autonomously sweeps local files and directories via its own shell tools
It reads your browser history
It only knows what you paste
Autonomous Execution Modes Tutorial | Claude Code CLI — Claude Academy