Techy Chalkboard in Bits and Pieces

There’s always someone who knows better than Google!

Claude Exam Quick Revision 6: Tools, Configuration & Rules

Built-In Tools Read: Read a known file. Edit: Targeted replacement inside an existing file. Write: Create or overwrite an entire file. Glob: Find files by filename/path pattern. Grep: Search text inside files. Bash: Run shell commands. Agent: Delegate work to a separate-context subagent. Memory: Glob finds files. Grep finds text. Configuration Scopes User: ~/.claude/ →…

Claude Exam Quick Revision 5: Multi-Agent Workflow Patterns

Prompt Chaining Use when the sequence is predictable and known in advance. Example: Extract → Validate → Transform → Publish. Dynamic Adaptive Decomposition Use when intermediate discoveries determine the next step. Example: Debug issue → inspect logs → discover database problem → inspect queries. Routing Classify the input and send it to the appropriate specialist…

Claude Exam Quick Revision 4: Hooks, Enforcement & Escalation

PreToolUse Runs before a tool executes. Best for: Blocking unauthorized transactions. Enforcing refund limits. Checking prerequisites. Preventing policy violations. Example: Refund > $500 → block and escalate before process_refund executes. PostToolUse Runs after a tool returns. Best for: Trimming verbose results. Normalizing MCP outputs. Keeping only fields needed by the agent. Example: Tool returns 40…

Claude Exam Quick Revision 3: Agentic Loops & Tool Calling

Agentic Loop Flow: Claude → tool_use → execute tool → tool_result → Claude → next action → end_turn When Should the Loop Stop? stop_reason = tool_use: Execute tool and continue. stop_reason = end_turn: Claude has finished the turn. Do not: Parse phrases such as “task complete” or “I am done.” A maximum-turn limit is useful…

Claude Exam Quick Revision 2: Context & Session Management

Important Commands /compact: Summarise conversation and reclaim context. /clear: Start with an empty conversation context. /resume: Continue a previous session. /context: Inspect context-window usage. /branch: Explore an alternative path from the current conversation. –fork-session: Inherit context but create an independent session. /rewind: Return to an earlier checkpoint. Preserving Critical Information Immutable facts: Account ID, agreed…

Something went wrong. Please refresh the page and/or try again.


Follow My Blog

Get new content delivered directly to your inbox.