arXiv:2608.26742cs.NIAug 2026

Manuscript Offprint

arXiv:2608.26742

Claude Code Complete User Handbook

David Soldani

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Contents

List of figures and tables ..... XV

Part 0 — Superseded guidance and common misconceptions
How to use this book ..... 5

Part I — Foundations
1 What Claude Code is, and what it is not ..... 8
1.1 Four things that must be explicit ..... 9
1.2 The control stack ..... 9
1.3 Where the work runs ..... 10
1.4 Appropriate first tasks ..... 11

2 Install, verify and authenticate ..... 12
2.1 Requirements ..... 13
2.2 Installation ..... 13
2.3 Verify before you log in ..... 13
2.4 Windows: native or WSL 2 ..... 14

3 Surfaces, projects and boundaries ..... 15
3.1 Set up the IDE ..... 16
3.2 Create the practice workspace ..... 16
3.3 Monorepos and large trees ..... 16

4 Modes, models, effort and usage ..... 18
4.1 The controls that matter first ..... 19
4.2 The effort vocabulary, by surface ..... 19
4.3 A decision rule for model and effort ..... 20
4.4 Measure usage and context separately ..... 20
4.5 What to optimise first ..... 20

Part II — A safe working method
5 Start and steer a session ..... 23
5.1 Begin with an inspectable brief ..... 24
5.2 Watch the beginning of unfamiliar work ..... 24
5.3 Steer without restarting ..... 24
5.4 Side questions, focus and recall ..... 24
5.5 Voice input ..... 25

6 Plan, comment, approve, execute ..... 26
6.1 When to plan ..... 27
6.2 The minimum complete plan ..... 27
6.3 Review the plan like a contract ..... 27
6.4 Approve the right scope ..... 27
6.5 Require a completion report, then check it ..... 28

ii

7 Permissions, sandboxing and checkpoints ..... 29
7.1 Permission modes ..... 30
7.2 Rules, and the order they are evaluated in ..... 31
7.3 Understand a prompt before approving ..... 33
7.4 Sandboxing ..... 34
7.5 Checkpoints and rewind ..... 34
8 Protect work with Git and GitHub ..... 36
8.1 A safe beginner sequence ..... 37
8.2 Add a remote deliberately ..... 37
8.3 An agent-assisted Git workflow ..... 37
8.4 Automated review, and its limits ..... 38
8.5 Recovery is broader than the repository ..... 38

Part III — Project knowledge and context

9 Build an effective CLAUDE.md ..... 40
9.1 Where instructions live ..... 41
9.2 A useful project file ..... 41
9.3 Initialise, then edit ..... 42
9.4 An index, not a warehouse ..... 42
9.5 Modular rules ..... 43
9.6 Maintenance trigger ..... 43
10 Global instructions and auto memory ..... 44
10.1 Global instructions ..... 45
10.2 Auto memory ..... 45
10.3 A decision table ..... 46
10.4 Memory audit ..... 46
11 Engineer context deliberately ..... 47
11.1 Inspect the window ..... 48
11.2 Four ways to recover focus ..... 48
11.3 Rewind, branch, fork, subtask ..... 49
11.4 Reduce standing overhead ..... 49
12 Sessions: resume, name, retain ..... 51
12.1 Resume ..... 52
12.2 Name by outcome ..... 52
12.3 Retention, storage and privacy ..... 53
12.4 When to start another session ..... 53

Part IV — Extending Claude Code

13 Connect external tools with MCP ..... 56
13.1 Scopes ..... 57
13.2 Transports ..... 57
13.3 A safe installation procedure ..... 58
13.4 Context cost, measured rather than assumed ..... 58
13.5 Organisational control ..... 58
14 Environment variables and secrets ..... 60
14.1 Why "Claude cannot see it" is unsafe ..... 61
14.2 Layered controls ..... 61
14.3 Incident response ..... 61

iii

15 Turn repeatable work into skills. ..... 63
15.1 Build one from observed work ..... 64
15.2 Example project skill. ..... 64
15.3 Frontmatter that matters for safety ..... 65
15.4 Skill security review ..... 65
16 Delegate bounded work to subagents ..... 67
16.1 Fresh context, forks, and why it matters ..... 68
16.2 Where subagents live, and which one wins ..... 68
16.3 An independent read-only reviewer ..... 68
16.4 The frontmatter you should know ..... 69
16.5 Limits and defaults ..... 69
16.6 Skill or subagent? ..... 70
16.7 Delegation brief ..... 70
17 Event-driven behaviour with hooks ..... 72
17.1 Events ..... 73
17.2 Handler types ..... 73
17.3 A blocking example ..... 73
17.4 Safer creation workflow ..... 74
17.5 Threat model ..... 74
18 Evaluate and install plugins. ..... 76
18.1 What a plugin can contain ..... 77
18.2 Installation gate ..... 77
18.3 Build instead of bundle ..... 78
19 Output styles: Claude Code beyond software engineering ..... 79
19.1 The built-in styles ..... 80
19.2 Setting and creating a style ..... 80
19.3 Where a style does and does not apply ..... 81
Part V — Browser use, autonomy and orchestration
20 Use Claude in Chrome safely. ..... 83
20.1 Prerequisites and connection ..... 84
20.2 Use a dedicated browser profile ..... 84
20.3 Escalate capability in stages ..... 84
20.4 What the browser can carry out ..... 85
20.5 Prompt injection and authenticated action. ..... 85
20.6 Computer use ..... 85
21 Keep work moving with goals. ..... 86
21.1 What the evaluator can and cannot see ..... 87
21.2 Anatomy of a safe goal ..... 87
21.3 Behaviour you should expect ..... 87
21.4 Context is the real multiplier ..... 88
22 Dynamic workflows and ultracode ..... 89
22.1 Entry points ..... 90
22.2 Limits and permissions ..... 90
22.3 Resume semantics, and why they matter for cost ..... 91
22.4 When a workflow earns its cost ..... 91
22.5 A research workflow pattern ..... 91
22.6 Saving and distributing a workflow ..... 92

iv

23 Session-scoped scheduling with /loop ..... 93
23.1 Three forms, three behaviours ..... 94
23.2 Operational constraints ..... 94
23.3 Lifecycle, and what actually stops a loop ..... 95
23.4 The Monitor alternative ..... 95
23.5 Suitable and unsuitable uses ..... 95
24 Cloud routines and desktop scheduled tasks ..... 97
24.1 What a routine actually is ..... 98
24.2 Why a routine deserves a design review ..... 99
24.3 Fire-payload text is untrusted by design ..... 99
24.4 Before you activate one ..... 99
24.5 Desktop scheduled tasks and headless automation ..... 100

Part VI — Distributed and cloud operation

25 Continue local work with Remote Control ..... 102
25.1 Operating rules ..... 103
25.2 Mobile ..... 103
26 Cloud sessions, --cloud and --teleport ..... 105
26.1 From terminal to cloud ..... 106
26.2 From cloud to terminal ..... 106
26.3 GitHub access, and what it actually grants ..... 106
26.4 Auto-fix, and a real hazard ..... 107
26.5 Sharing a cloud session ..... 107
26.6 Isolation and limits ..... 107
27 Push events into a session with channels ..... 109
27.1 Enabling one ..... 110
27.2 The security model, and the part that matters ..... 110
27.3 When a channel is the right shape ..... 111
28 Publish work as artifacts ..... 112
28.1 What an artifact is not ..... 113
28.2 Sharing, and who sees what ..... 113
28.3 Live data through connectors ..... 113
28.4 Governance ..... 114

Part VII — Operating at scale

29 Parallel sessions without collisions ..... 116
29.1 The mechanisms ..... 117
29.2 Prevent file collisions ..... 117
29.3 Cross-session messaging ..... 117
29.4 Protect your attention ..... 118
30 Agent teams ..... 119
30.1 The behaviour change you must understand before enabling ..... 120
30.2 Architecture ..... 120
30.3 Control ..... 120
30.4 Permissions ..... 121
30.5 Quality gates ..... 121
30.6 Limitations to plan around ..... 121
30.7 When a team beats the alternatives ..... 122

v

References (95)