Logo Vincent
Claude Code Agent Loop: Dissecting the Heart of an AI Coding Assistant

Claude Code Agent Loop: Dissecting the Heart of an AI Coding Assistant

How does Claude Code understand your requests, invoke tools, and self-recover step by step? A source-code deep dive into the Agent Loop's core architecture — streaming responses, parallel tool execution, auto-compaction, and error recovery.

Claude
Where Is Claude Code settings.json? 5 Config Files, 1 Priority Rule

Where Is Claude Code settings.json? 5 Config Files, 1 Priority Rule

Claude Code has 5 config file locations: user-level (~/.claude/), project-level (.claude/), local-only, CLI flags, and enterprise managed settings. Learn which file to use when, how priority works, and why your settings might be ignored.

Claude
Claude Code settings.json Permissions: Control Exactly What AI Can Do

Claude Code settings.json Permissions: Control Exactly What AI Can Do

Stop clicking 'Allow' on every action. Configure Claude Code's permissions system — set allow/deny/ask rules, use wildcards, control MCP tools, and protect sensitive directories. Every permission option with practical examples.

Claude
Claude Code settings.json Hooks: Auto-Run Scripts at Every Step

Claude Code settings.json Hooks: Auto-Run Scripts at Every Step

Want to auto-validate commands before they run? Send Slack notifications when tasks finish? Claude Code hooks let you inject custom scripts at key moments — PreToolUse, PostToolUse, Stop, Notification — with practical examples.

Claude
Claude Code settings.json: Every Config Field Explained with Examples

Claude Code settings.json: Every Config Field Explained with Examples

Complete reference for every Claude Code settings.json field: environment variables, model selection, hooks, permissions, status line, theme, auto-updates, and more — all with working code examples you can copy and paste.

Claude
Claude Code /agents: Give Each Task Its Own Specialist AI

Claude Code /agents: Give Each Task Its Own Specialist AI

Create custom sub-agents for code exploration, architecture planning, and more — each with its own role, tools, and instructions.

Claude
Claude Code /doctor: Fix Setup Issues in 30 Seconds

Claude Code /doctor: Fix Setup Issues in 30 Seconds

API not connecting? MCP broken? /doctor auto-detects installation, connectivity, and config issues — here's how to fix them fast.

Claude
Claude Code /effort: Make AI Think Harder (or Faster)

Claude Code /effort: Make AI Think Harder (or Faster)

Control how hard Claude Code thinks about each task. Set effort to low for simple renames and save tokens. Crank it to max for complex refactors. Find the sweet spot between speed, cost, and code quality.

Claude
Claude Code /cost: Track Every Dollar Your AI Spends

Claude Code /cost: Track Every Dollar Your AI Spends

See real-time API costs, model pricing, and token breakdowns per session — /cost helps you make every dollar count.

Claude
Claude Code /export: Save AI Conversations Before They're Gone

Claude Code /export: Save AI Conversations Before They're Gone

Export conversations to files or clipboard for sharing, archiving, and review — so no valuable AI discussion goes to waste.

Claude
Claude Code /rewind: Undo Any AI Mistake in One Command

Claude Code /rewind: Undo Any AI Mistake in One Command

Lost hours of work to a wrong AI edit? /rewind restores your code and conversation to any point in history — like git reset for AI pair programming. Undo just the code, just the conversation, or both.

Claude
Claude Code /plugin: Extend Your AI With Custom Skills

Claude Code /plugin: Extend Your AI With Custom Skills

Install, enable, and manage plugins that add custom commands, skills, agents, and hooks — build your own AI development toolkit.

Claude
© 2026 vincentqiao.com . All rights reserved.