Saved
Speaker NotesN

$ claude --help

CLAUDE
CODE

From installation to common workflows - everything our team needs to get started

▐▛▋▋▋▘▌ Claude Code v2.1.71
╝▘▋▋▋▋▋▛╙ Opus 4.6 · Claude Team
██ ╝╝ ~/…/airc/aiir/dms
───────────────────────── ▪▪▪ ─
─────────────────────────────
02

Agenda

1

Introduction & Interfaces

What CC is and where you run it
2

Core Toolbox & Configuration

CLAUDE.md, MCP, hooks, skills, permissions
3

Session & CLI Management

Starting, resuming, undoing mistakes
4

Context Management

The most critical constraint
5

Workflows

Explore > Plan > Code > Commit
6

The Mental Model

Orchestrating intelligence, not prompting a bot
7

Company Infrastructure

Our commands, skills, and MCP setup
8

Power User Topics

Hooks, plugins, subagents, worktrees, swarms
03

Not a chatbot. An agent.

  • Lives directly in your workspace -- terminal, IDE, or browser
  • Has direct file system access and executes commands in real-time
  • Integrates natively with version control (git)
  • Integrates well with the shell -- understands Linux, bash, etc.
  • Operates in an agentic loop: explores > acts > verifies > repeats
  • More like a junior developer sitting next to you than a chatbot
Claude CodeChatbot
FilesEdits directlyCopy-paste snippets
CommandsRuns testsDescribes what to run
CodebaseFull contextPaste-limited
BehaviorAgentic loopSingle turn
GitCommit-readyNo VCS
04

Terminal (CLI) Core

The full-featured environment. Every feature is available here first. Install via bun or npm and run natively alongside your existing tools. IDE aware.

Claude Code CLI
05

IDE Extensions IDE

Inline diffs and shared context right inside VS Code and JetBrains. See Claude's changes as diff hunks.

Claude Code VS Code Claude Code JetBrains
06

Desktop, Web & Mobile

Claude Code Desktop
Standalone Desktop
Claude Code Web
Remote Web
Claude Code Mobile
Remote Mobile
07

CLAUDE.md (Project Memory)

  • A persistent markdown file loaded at the start of every session
  • Defines project-wide coding styles, architecture choices, and common commands
  • Lives in your repo root -- commit it so the whole team benefits
  • Exists at three levels: global (~/.claude/), project root, or subdirectory
  • Possible to use a hierarchy of CLAUDE.md files inside a project

Think of it as the onboarding doc you write for Claude. Everything you'd tell a new team member -- put it here.

08

Settings Hierarchy

User ~/.claude/settings.json

Your global defaults -- applies to all projects on your machine

Project .claude/settings.json

Team standards, committed to repo -- shared across the team

Local .claude/settings.local.json

Your machine overrides, .gitignored -- personal customization

Later levels override earlier ones. Project settings are version-controlled -- everyone on the team gets the same baseline.

Common settings: allowed tools, default model, API keys, MCP server configs.

09

Permissions

  • Claude asks before dangerous operations by default
  • /permissions -- allowlist specific tools Claude can use without asking
  • You can restrict: file write access, shell execution, network calls
  • Team can set project-level permissions that apply to everyone
LevelBehavior
AllowAuto-approve -- no prompt shown
AskPrompt before each use (default)
DenyBlock entirely -- tool unavailable

Granular control: allow Bash(npm test) but deny Bash(rm -rf)

Permissions can be updated on demand -- no need to predefine them.

10

MCP Servers (Model Context Protocol)

  • Universal adapters connecting Claude to external tools and data sources
  • Each MCP server exposes "tools" that Claude can call like native capabilities
  • Add with: claude mcp add <name> <command>
  • In many cases a CLI is better -- glab for example
ServiceWhat it connects
GitHub / GitLabPRs, issues, code search
Linear / JiraIssue tracking, sprint data
Postgres / DBsSchema queries, data lookups
SlackChannel messages, notifications
Internal APIsCustom business logic

Configure in .mcp.json (project) or ~/.claude/mcp.json (global)

MCP servers are token-hungry -- watch your context fill rate when several are connected.
11

Commands & Skills

Slash Commands

  • Markdown files in .claude/commands/
  • Invoked explicitly with /command-name
  • Accept arguments via $ARGUMENTS
  • Examples: /review, /deploy, /fix-lint

Skills

  • Markdown files in .claude/skills/ providing passive expertise
  • E.g. Python developer, database expert, coding standards
  • Auto-discovered and applied by task context
  • Force-invoke with /skill-name when needed
Commands
TriggerUser-triggered, explicit
TimingManual -- you control when
Best forOn-demand actions
Location.claude/commands/
Skills
TriggerAlways-on, auto-discovered
TimingAutomatic -- applied by context
Best forPassive expertise
Location.claude/skills/
12

Starting & Resuming Sessions

Interactive

claudeStart a new session in current dir
claude -cContinue the most recent conversation
claude -r <name>Resume a named previous session
claude -w [name]Start in a new git worktree

Sessions persist automatically. You can always come back to where you left off.

Non-interactive / CI

claude -p "..."One-shot prompt, no interactive session
cat logs | claude -p "explain"Pipe stdin into Claude
-p --output-format jsonMachine-readable JSON output
-p --allowedTools Bash EditRestrict tools in CI mode

The -p flag transforms CC into a scriptable Unix tool. Use for CI/CD, cron jobs, log analysis, pre-commit checks.

13

Aborting & Undoing

EscInterrupt Claude mid-action to course-correct
Esc EscOpen the checkpoint / rewind menu
/rewindUndo mistakes -- restores both conversation and code state

Automatic Checkpoints

Claude snapshots state before every significant action. You can always roll back without touching git.

Plan Mode

Use Shift-Tab to toggle plan mode before large changes -- you'll need /rewind far less often.

14

Context Management

Context window = every message + every file read + every command output. It fills fast. When too full: Claude loses instructions and quality degrades significantly.
Work freely
Monitor
Run /compact
Degraded
0%50%70%85%100%

/context

Visualize current token usage. Use proactively, not reactively.

/compact

Condenses history while preserving code patterns and key decisions. Use at 60-70% fill.

/clear

Completely resets context. Use between unrelated tasks. A fresh context is a sharp mind.

Claude Code /context output
15

Explore > Plan > Code > Commit

1

Explore

Ask Claude to explain the codebase. Build shared understanding first.

2

Plan

Generate a written strategy with /plan. Review and approve.

3

Implement

Claude executes against the plan. Steer with short corrections.

4

Commit

Stage changes, write commit message, draft PR description.

Always give Claude a way to verify its own work. Provide test commands, expected outputs, or visual verification.
16

Prompting Effectively

StrategyInstead of...Try...
Scope the task "add tests for foo.py" "write a test for foo.py covering the edge case where user is logged out. avoid mocks."
Point to sources "why does ExecutionFactory have a weird api?" "look through ExecutionFactory's git history and summarize how its api came to be"
Reference patterns "add a calendar widget" "look at how widgets are implemented on the home page. HotDogWidget.php is a good example. Follow the pattern."
Describe symptoms "fix the login bug" "login fails after session timeout. check auth flow in src/auth/, especially token refresh. write a failing test, then fix it"

Let Claude Interview You

For larger features, ask Claude to interview you about requirements, edge cases, and tradeoffs before coding. Then write a spec and implement in a fresh session.

Common Failure Patterns

  • Kitchen sink session -- mixing unrelated tasks. Fix: /clear between tasks
  • Correcting over and over -- context polluted with failed attempts. Fix: /clear + better prompt
  • Over-specified CLAUDE.md -- rules get lost in noise. Fix: prune ruthlessly
  • Infinite exploration -- unscoped investigation fills context. Fix: use subagents
17

The Agentic Loop

CC
🔍Gather Context
Take Action
Verify
Repeat

Claude Code is the agentic harness around Claude: it provides tools, context management, and execution that turn a language model into a coding agent.

Tool CategoryWhat Claude can do
File opsRead, edit, create, rename files
SearchFind files by pattern, regex content search
ExecutionShell commands, tests, git, builds
WebSearch web, fetch docs, look up errors
Code intelType errors, jump to def, find references

Example: "fix the failing tests"

Run tests → read errors → search source files → read & understand code → edit to fix → run tests again to verify

The loop adapts to your task. You can interrupt at any point to steer. Each tool use feeds information back, informing the next step.

18

The Mental Model Shift

Don't think this
Think this instead
Prompt like a chatbot, wait for a reply
Describe goal + context + verification, let it run
Paste an error and ask what went wrong
Let Claude run the failing test itself and self-correct
Micromanage every file edit
Review at checkpoints, steer with high-level corrections
Start coding immediately
Explore first, then plan, then implement
I need to tell it every step
Give the end state and constraints, it figures out the steps
"Treat Claude Code like a developer you manage -- give clear requirements, provide context, establish how success is measured, then let them work."

The more context and verification you provide upfront, the longer Claude can run autonomously without going off track.

19

The code-agent Repo

Commands

/reviewLocal or remote code review
/mrCreate MR summary
/smellFind code smells (globally, entire code base)
/tidyFind and fix code smells (recent changes)
/commit-messageGenerate a commit message
/update-changelogUpdate docs/changelog.md
/update-project-structureUpdate project-structure.md

Skills & Templates

  • git-commit -- conventional commit automation
  • gitlab-ci-patterns -- CI/CD pipeline patterns
  • python-standards -- coding standards

Why AGENTS.md?

AGENTS.md is symlinked to CLAUDE.md but follows a wider industry standard that works across multiple AI coding tools, not just Claude Code. One file, multiple agents.

Reusable Base + Project Smarts

code-agent provides shared infrastructure (commands, skills, hooks). Projects add their own on top via npx skills add or claude plugin add. You get a common baseline without losing project-specific customization.

20

Hooks

Automation

What Are Hooks?

  • Automated, deterministic scripts that fire on Claude Code lifecycle events
  • Not AI -- always predictable, guaranteed to run
  • Unlike CLAUDE.md instructions which are advisory, hooks are enforced
  • Configure via /hooks or edit .claude/settings.json directly

Lifecycle Events

PreToolUse, PostToolUse, SessionStart, SessionEnd

Example Uses

  • Auto-run prettier after every file edit
  • Post a Slack notification when a session completes
  • Block writes to certain files (security hook)
21

Plugins

Bundles

What Are Plugins?

  • Shareable bundles that package commands + hooks + skills together
  • Install with: claude plugin add <name>
  • Browse the marketplace with /plugin
  • One install, everyone gets the same tooling

Code Intelligence Plugins

For typed languages, install a code intelligence plugin to give Claude precise symbol navigation and automatic error detection after edits.

Publish & Share

Publish internally for your team or via the public ecosystem. Great for standardizing workflows across an organization.

22

Subagents

Isolation

What Are Subagents?

  • Specialized AI that run in their own isolated context windows
  • Don't pollute your main session's context -- perfect for deep-dive research
  • When done, they return a summary back to your main conversation
  • Define in .claude/agents/ with custom tools, model, and prompt

Use for Research

"Use subagents to investigate how our auth system handles token refresh" -- the subagent explores, reads files, and reports back without cluttering your context.

Use for Verification

"Use a subagent to review this code for edge cases" -- a fresh context won't be biased toward code it just wrote.

23

Isolated Git Worktrees

Parallel

Run Multiple Sessions

  • claude -w [name] creates a new git worktree and starts a session in it
  • Pair with --tmux to open each worktree in its own pane
  • Each instance works on a different branch -- no file conflicts
  • Best for: parallel development, large multi-component projects

Fan Out Across Files

For large migrations, loop through tasks calling claude -p for each file. Use --allowedTools to scope permissions for batch operations.

Other Parallel Options

Desktop app manages multiple local sessions visually. claude.ai/code runs on Anthropic's cloud VMs. Agent teams coordinate multiple sessions with shared tasks.

24

Writer/Reviewer & Agent Swarms

Quality

Writer / Reviewer Pattern

  • One CC session writes the code
  • A completely fresh CC session reviews it
  • Zero shared context -- catches more bugs
  • Best for any code going to production
Scale

Custom Agents & Swarms

  • Define agents with --agents '{...}'
  • Combine with worktrees for parallel specialists
  • List configured agents with claude agents
  • High token cost -- budget accordingly

You're ready to start.

  1. Start with a solid CLAUDE.md -- highest-leverage 5 minutes you'll invest
  2. Get to know our internal commands -- they could be useful
  3. Manage your context window intentionally: /context, /compact, /clear
  4. Always give Claude a way to verify its own work
  5. Think in workflows, not prompts: Explore > Plan > Implement > Commit