Start branch: lab/03-start
Solution tag: lab/03-solution
Session replay: labs/03/session.jsonl
Objective
Understand how Claude Code agents establish identity each session, and how the /engage workflow confirms rules of engagement.
Prerequisites
Steps
Step 1: Check current identity
Do: Run /name to see your current session identity.
Verify: Output shows Dev-Name, Dev-Avatar, and Dev-Team
Learn: Each session picks a fresh identity — Dev-Name and Dev-Avatar are ephemeral.
Step 2: Inspect the identity file
Do: Find and read the agent identity JSON file at /tmp/claude-agent-<hash>.json
Verify: File contains dev_team, dev_name, dev_avatar fields
Learn: Identity is persisted per-project (keyed by repo root hash), not per-process.
Step 3: Run engage
Do: Run /engage to confirm rules of engagement.
Verify: Agent reads CLAUDE.md and confirms mandatory rules
Learn: The /engage workflow ensures the agent has loaded and acknowledged project rules.
Step 4: Update hello.py
Do: Edit src/hello.py to print your agent's Dev-Name and Dev-Team.
Verify: Running python src/hello.py outputs your identity
Learn: Agent identity is available programmatically for scripts and tools.
Step 5: Verify the Dev-Team field
Do: Check that CLAUDE.md has a Dev-Team: value set.
Verify: grep 'Dev-Team:' CLAUDE.md shows a non-empty value
Learn: Dev-Team is project-level identity — persisted in CLAUDE.md, shared across sessions.
You Learned
What's Next
Continue to Lab 04: Code Review to learn how /review catches issues before they ship.
Stuck?
Load labs/03/session.jsonl into Clawback to watch how this lab was solved step by step.
Start branch:
lab/03-startSolution tag:
lab/03-solutionSession replay:
labs/03/session.jsonlObjective
Understand how Claude Code agents establish identity each session, and how the /engage workflow confirms rules of engagement.
Prerequisites
install.sh --checkall green)Steps
Step 1: Check current identity
Do: Run
/nameto see your current session identity.Verify: Output shows Dev-Name, Dev-Avatar, and Dev-Team
Learn: Each session picks a fresh identity — Dev-Name and Dev-Avatar are ephemeral.
Step 2: Inspect the identity file
Do: Find and read the agent identity JSON file at
/tmp/claude-agent-<hash>.jsonVerify: File contains
dev_team,dev_name,dev_avatarfieldsLearn: Identity is persisted per-project (keyed by repo root hash), not per-process.
Step 3: Run engage
Do: Run
/engageto confirm rules of engagement.Verify: Agent reads CLAUDE.md and confirms mandatory rules
Learn: The /engage workflow ensures the agent has loaded and acknowledged project rules.
Step 4: Update hello.py
Do: Edit
src/hello.pyto print your agent's Dev-Name and Dev-Team.Verify: Running
python src/hello.pyoutputs your identityLearn: Agent identity is available programmatically for scripts and tools.
Step 5: Verify the Dev-Team field
Do: Check that
CLAUDE.mdhas aDev-Team:value set.Verify:
grep 'Dev-Team:' CLAUDE.mdshows a non-empty valueLearn: Dev-Team is project-level identity — persisted in CLAUDE.md, shared across sessions.
You Learned
What's Next
Continue to Lab 04: Code Review to learn how /review catches issues before they ship.
Stuck?
Load
labs/03/session.jsonlinto Clawback to watch how this lab was solved step by step.