Skip to contentমূল লেখায় যান

Part 20পর্ব 20 · Case Study

Bug Hunting with a Review Gate

This part follows the first stage of the practice project: from a guess in a code-reading report to 7 reviewed Send Money bugs. You see the prompts that shaped a find-bug skill, a hook that adds knowledge-graph context before the skill runs, and a read-only reviewer subagent that must say PASS before Claude writes the bug report.

13 min read13 মিনিটে পড়া যায় · 10 sections10টি সেকশন · 4 sources4টি সোর্স · updated Nov 2026আপডেট: Nov 2026

The reviewer gate says PASS or BLOCKEDরিভিউয়ার গেট বলে PASS বা BLOCKED

Watch 6 draft bugs get BLOCKED, fixed and approved, then see 4 of 5 code-only claims rejected before the file is written.৬টা খসড়া bug BLOCKED হয়, ঠিক হয়, অনুমোদন পায়, তারপর ফাইল লেখার আগেই কোড-থেকে-আসা ৫টার মধ্যে ৪টা বাতিল হয়, তা দেখুন।

2 min2 মিনিট7 steps7টি ধাপ
  • Gateগেট—
  • Flagged / rejectedফ্ল্যাগ / বাতিল0 / 0
  • Approvedঅনুমোদিত0
find-bugfind-bugskillস্কিল6 bugs drafted6টা bug লেখাReviewerরিভিউয়ারread-onlyশুধু পড়াread-onlyশুধু পড়াno verdict yetরায় বাকিMainমূলsessionসেশনwaits for PASSPASS-এর অপেক্ষাround 1 · 6 draftsরাউন্ড ১ · 6টা খসড়া

You’ll learnআপনি শিখবেন

  • Gate is PASS only if every bug is approvedপ্রতিটা bug অনুমোদিত হলেই গেট PASS
  • The reviewer only reads; it cannot change evidenceরিভিউয়ার শুধু পড়ে, প্রমাণ বদলাতে পারে না
  • Code-only claims get rejected by the reviewerশুধু কোড থেকে আসা দাবি রিভিউয়ার বাতিল করে
  • Only the main session writes the report, after PASSPASS-এর পর শুধু মূল সেশন রিপোর্ট লেখে

Where these facts come from

The workspace is the author's private practice workspace, in its state of 2026-10-07 (25 commits from 2026-09-19). All numbers, prompts, and excerpts on this page come from files in that workspace. Values such as emails, phone numbers, and project names are replaced with placeholders. Facts about Claude Code link to the official docs.

The flow at a glance

The hunt took two days. Most steps left a file in the workspace. The GitHub issues came after the hunt.

2026-10-03  limits report (code reading)  ──▶  gap G-1: limit race predicted
2026-10-03  cash-in hunt (code reading)   ──▶  owner asks if Serena and graphify ran
2026-10-03  find-bug skill                ◀──  spec pasted by the owner
2026-10-03  PreToolUse hook on Skill      ──▶  graph context + Serena project
2026-10-04  qa-reviewer-agent             ──▶  PASS / BLOCKED gate
2026-10-04  Send Money hunt + review      ──▶  7 bugs ──▶ GitHub issues #1–#7

The next part, From Issue to Reviewed PR, starts from these issues. The overview shows the full chain.

সহজ English

The hunt took two days. Most steps left a file in the workspace.

  • On 2026-10-03, a limits report from code reading predicted gap G-1, a limit race.
  • On the same day, a cash-in hunt from code reading ran. Then the owner asked if Serena and graphify ran.
  • The find-bug skill came from a spec that the owner pasted.
  • A PreToolUse hook on Skill adds graph context and the Serena project.
  • On 2026-10-04, the qa-reviewer-agent added a PASS or BLOCKED gate.
  • The Send Money hunt and review found 7 bugs. They became GitHub issues #1–#7 after the hunt.

The next part, From Issue to Reviewed PR, starts from these issues. The overview shows the full chain.

বাংলা ব্যাখ্যা

এই hunt দুই দিন ধরে চলেছিল। বেশিরভাগ ধাপ workspace-এ একটি file রেখে গেছে।

  • 2026-10-03 তারিখে code পড়ে লেখা একটি limits report gap G-1, অর্থাৎ একটি limit race, আগে থেকে অনুমান করেছিল।
  • একই দিনে code পড়ে একটি cash-in hunt হয়েছিল। এরপর owner জানতে চেয়েছিলেন, Serena আর graphify চলেছিল কি না।
  • find-bug skill-টি তৈরি হয়েছিল owner-এর paste করা একটি spec থেকে।
  • Skill-এর উপর একটি PreToolUse hook graph context আর Serena project যোগ করে।
  • 2026-10-04 তারিখে qa-reviewer-agent একটি PASS বা BLOCKED gate যোগ করেছিল।
  • Send Money hunt আর review মিলে 7টি bug পাওয়া গিয়েছিল। Hunt-এর পরে এগুলো GitHub issue #1–#7 হয়েছিল।

পরের part, From Issue to Reviewed PR, এই issue-গুলো থেকে শুরু হয়। পুরো chain দেখতে overview পাতাটি দেখুন।

Predict from the code first

On 2026-10-03, a report about the customer transaction limits was added to the workspace. The report says that its gaps were found while reading the code.

  • The configured daily limit for a Customer is 10 outgoing transactions and 5,000 Tk.
  • Gap G-1 (High): the limit check runs before the database transaction starts, and its usage query takes no lock.
  • So two parallel requests can read the same usage, both pass, and both commit.
  • The report also gave a test idea: send 2 or more parallel requests that together exceed the remaining quota.

One day later, the Send Money hunt ran a test of the same kind. The customer had used 6 of 10 transactions. Then 12 of 14 parallel sends returned HTTP 201. The bug report files this as SM-H02 and names G-1 as the earlier code-only prediction.

The tutorial's advice: keep the prediction

A code-reading report is a list of guesses. Give each guess an ID, such as G-1. When a run confirms or rejects it, write the ID in the bug report. Then a reader can see which guesses held.

সহজ English

On 2026-10-03, a report about the customer transaction limits was added to the workspace. Its gaps were found by reading the code.

  • The configured daily limit for a Customer is 10 outgoing transactions and 5,000 Tk.
  • Gap G-1 (High): the limit check runs before the database transaction starts, and its usage query takes no lock.
  • So two parallel requests can read the same usage, both pass, and both commit.
  • The test idea: send 2 or more parallel requests that together go over the remaining quota.

One day later, the Send Money hunt ran a test of this kind. The customer had used 6 of 10 transactions. Then 12 of 14 parallel sends returned HTTP 201. The bug report files this as SM-H02 and names G-1 as the earlier prediction from code only.

The tutorial's advice: give each guess an ID, such as G-1. When a run confirms or rejects the guess, write the ID in the bug report. Then a reader can see which guesses held.

বাংলা ব্যাখ্যা

2026-10-03 তারিখে customer transaction limit নিয়ে একটি report workspace-এ যোগ হয়েছিল। Report-টি বলে, এর gap-গুলো code পড়ে পাওয়া গেছে।

  • একজন Customer-এর configured daily limit হলো 10টি outgoing transaction এবং 5,000 Tk।
  • Gap G-1 (High): database transaction শুরু হওয়ার আগেই limit check চলে, আর এর usage query কোনো lock নেয় না।
  • তাই দুটি parallel request একই usage পড়তে পারে, দুটোই pass করে, আর দুটোই commit হয়।
  • Report-টি একটি test idea-ও দিয়েছিল: 2টি বা তার বেশি parallel request পাঠান, যেগুলো মিলে বাকি quota ছাড়িয়ে যায়।

এক দিন পরে Send Money hunt একই ধরনের একটি test চালিয়েছিল। Customer আগেই 10টির মধ্যে 6টি transaction ব্যবহার করেছিলেন। তারপর 14টি parallel send-এর মধ্যে 12টি HTTP 201 ফেরত দিয়েছিল। Bug report এটিকে SM-H02 হিসেবে রাখে, এবং G-1-কে আগের code-only অনুমান হিসেবে উল্লেখ করে।

Tutorial-এর পরামর্শ: প্রতিটি অনুমানকে একটি ID দিন, যেমন G-1। কোনো run সেটি নিশ্চিত বা বাতিল করলে bug report-এ ID-টি লিখুন। তাহলে পাঠক দেখতে পারবেন, কোন অনুমানগুলো সঠিক ছিল।

The prompts that shaped find-bug

The find-bug skill came out of one day of work (2026-10-03). The session log of 2026-10-03 records the prompts from the saved sessions. The replies in the log are condensed.

TimeRecorded promptWhat happened
16:45find out some bugs in cash-in module prioritize high, medium and lowClaude read the code and returned a High/Medium/Low list. Nothing was run. The file saved at 16:47 had 23 bugs.
16:51are you using serena and knowledge base using graphifyClaude said no. It had called only Serena's initial_instructions. It did not use graphify at all.
17:51A pasted spec, which ends with "now create a find bug skill"Claude wrote .claude/skills/find-bug/SKILL.md from the spec.
18:41i told to rewite this not a new one using Serena, graphify and the browserClaude had written the run into a new file. It rewrote the old report in place and confirmed that the new file was gone.

The log lists the points of the pasted spec. The skill must use Serena, graphify, and /blast-radius. It reproduces in the frontend first with agent-browser, and uses the API when the UI cannot reproduce the bug. Each bug has six fields, and one of them is a confidence. The report has no fix order.

The skill turned these points into hard rules:

**Hard rules**
1. Serena **and** graphify **and** `/blast-radius` are mandatory in every run (see steps 2-4). Never skip one silently; if one is unavailable, say so in the Summary.
2. Reproduce through the **frontend first** with `agent-browser`. Only if the UI cannot trigger it, use the backend API alone, and say why.
3. Every bug's steps use **both channels**: the UI action, then an API check of the result (or the reverse for API-only bugs).
4. Report only what you observed or traced. A code-only suspicion is allowed but must be labelled so and carry Low/Medium confidence.
5. **No suggested fixes, no fix ordering.**
6. Read-only on source code. Never edit application code. [...]

Claude uses a skill when it is relevant, and you can also invoke it with /skill-name. Source 3সোর্স 3 In a regular session, only the skill descriptions are in context. The full skill content loads when the skill is invoked. Source 3সোর্স 3 So the hard rules apply only after the skill loads. The Skills page explains the format.

সহজ English

The find-bug skill came from one day of work (2026-10-03). The session log records the prompts. The replies in the log are condensed.

  • 16:45: the owner asked for bugs in the cash-in module, sorted High, Medium, and Low. Claude only read the code. The file saved at 16:47 had 23 bugs.
  • 16:51: the owner asked if Claude used Serena and graphify. Claude said no. It had called only Serena's initial_instructions.
  • 17:51: the owner pasted a spec. Claude wrote .claude/skills/find-bug/SKILL.md from it.
  • 18:41: Claude had written the run into a new file. It rewrote the old report in place.

The skill has hard rules. Serena, graphify, and /blast-radius are mandatory in every run. Reproduce through the frontend first with agent-browser. Give no fixes and no fix order. Never edit application code.

Claude uses a skill when it is relevant, or you invoke it with /skill-name Source 3সোর্স 3. In a regular session, the full skill content loads only when the skill is invoked Source 3সোর্স 3. So the hard rules apply only after that.

বাংলা ব্যাখ্যা

find-bug skill-টি এক দিনের কাজ (2026-10-03) থেকে তৈরি হয়েছিল। Session log-এ prompt-গুলো লেখা আছে, আর reply-গুলো সংক্ষেপে আছে।

  • 16:45: owner cash-in module-এ bug খুঁজতে বলেছিলেন, High, Medium আর Low অনুযায়ী সাজিয়ে। Claude শুধু code পড়ে একটি list দিয়েছিল, কিছুই run করেনি। 16:47-এ save হওয়া file-এ 23টি bug ছিল।
  • 16:51: owner জানতে চেয়েছিলেন, Claude Serena আর graphify ব্যবহার করছে কি না। Claude বলেছিল, না। সে শুধু Serena-র initial_instructions call করেছিল, graphify একদমই ব্যবহার করেনি।
  • 17:51: owner একটি spec paste করেছিলেন। Claude সেটি থেকে .claude/skills/find-bug/SKILL.md লিখেছিল।
  • 18:41: Claude run-টি একটি নতুন file-এ লিখেছিল। এরপর সে পুরোনো report-টি জায়গাতেই আবার লিখেছিল এবং নিশ্চিত করেছিল যে নতুন file-টি আর নেই।

Skill-টিতে কিছু কঠোর নিয়ম আছে। প্রতিটি run-এ Serena, graphify আর /blast-radius বাধ্যতামূলক। প্রথমে agent-browser দিয়ে frontend-এ bug reproduce করুন; UI দিয়ে না হলে শুধু backend API ব্যবহার করুন এবং কারণটি লিখুন। কোনো fix বা fix-এর ক্রম দেবেন না। Application code কখনো edit করবেন না।

Claude প্রাসঙ্গিক হলে একটি skill ব্যবহার করে, আর আপনি /skill-name দিয়েও এটি invoke করতে পারেন Source 3সোর্স 3। একটি regular session-এ skill invoke হলে তবেই এর পুরো content load হয় Source 3সোর্স 3। তাই কঠোর নিয়মগুলো skill load হওয়ার পরেই কার্যকর হয়।

A hook that adds graph context

The 16:51 answer showed a gap: the workspace had Serena and graphify, but Claude did not use them. Hooks give deterministic control: an action always happens and does not depend on the model's choice. Source 4সোর্স 4

The hook request. The owner asked for hooks at 18:52 and 18:55. The second prompt was create 2 hooks for graphify and serena to load before test case design and find bug. must call graphify and serena in prehook. The first design blocked the skills until Claude called the tools. The second design makes the calls in the hook itself.

{
  "matcher": "Skill",
  "hooks": [
    { "type": "command",
      "command": "\"$CLAUDE_PROJECT_DIR/.claude/hooks/graphify-prehook.sh\"",
      "timeout": 45 },
    { "type": "mcp_tool",
      "server": "plugin:serena:serena",
      "tool": "activate_project",
      "input": { "project": "<project>", "session_id": "${session_id}" },
      "timeout": 30 }
  ]
}

This entry is in the PreToolUse list of .claude/settings.json (shortened). The docs explain each part:

সহজ English

At 16:51, Claude did not use Serena and graphify, but the workspace had both. A hook gives deterministic control: the action always happens and does not depend on the model's choice Source 4সোর্স 4.

The owner asked for hooks at 18:52 and 18:55. The second design makes the tool calls in the hook itself. A PreToolUse entry with the matcher Skill runs a shell script and an mcp_tool hook that calls Serena's activate_project. PreToolUse runs before the tool call runs Source 1সোর্স 1.

বাংলা ব্যাখ্যা

16:51-এর উত্তর একটি ফাঁক দেখিয়েছিল: workspace-এ Serena আর graphify ছিল, কিন্তু Claude সেগুলো ব্যবহার করেনি। Hook deterministic control দেয়: একটি action সবসময় ঘটে, আর এটি model-এর পছন্দের উপর নির্ভর করে না Source 4সোর্স 4।

Owner 18:52 আর 18:55-এ hook চেয়েছিলেন। প্রথম design-এ Claude tool-গুলো call না করা পর্যন্ত skill block থাকত। দ্বিতীয় design-এ hook নিজেই call-গুলো করে। .claude/settings.json-এর PreToolUse list-এ matcher Skill সহ একটি entry আছে। এটি একটি shell script চালায়, আর একটি mcp_tool hook দিয়ে Serena-র activate_project call করে। Claude tool parameter তৈরি করার পরে এবং tool call চলার আগে PreToolUse চলে Source 1সোর্স 1।

What the Hook Script Does

The command hook is a shell script. This is its core (lines cut with …):

in=$(cat)
skill=$(printf '%s' "$in" | jq -r '.tool_input.skill // empty')
printf '%s' "$skill" | grep -qE '(^|:)(test-design|find-bug)$' || exit 0
args=$(printf '%s' "$in" | jq -r '.tool_input.args // empty')
…
emit() { jq -n --arg c "$1" '{hookSpecificOutput:{hookEventName:"PreToolUse",permissionDecision:"allow",additionalContext:$c}}'; }
…
if [ -n "$args" ]; then
  out=$(cd "$d" && timeout 30 graphify query "$args" --budget 1200 2>&1 | head -70)
  …
else
  out=$(sed -n '1,45p' "$d/graphify-out/GRAPH_REPORT.md" 2>&1)
  …
fi
  • A command hook gets its input as JSON on stdin. Source 1সোর্স 1 PreToolUse input has tool_name, tool_input, and tool_use_id. Source 1সোর্স 1
  • The script acts only for test-design and find-bug. For all other skills it exits with no output.
  • It queries the graph with the skill arguments. With no arguments, it reads the top of the graph report.
  • It adds the graph date and the date of the last commit, so Claude can see if the graph is stale. If no graph exists, it tells Claude to say so.
  • additionalContext is a string that Claude Code adds to Claude's context. Source 1সোর্স 1 It is capped at 10,000 characters. Source 1সোর্স 1 The script cuts the query output to 70 lines.
  • permissionDecision: "allow" skips the permission prompt. Deny and ask rules still apply. Source 1সোর্স 1

The log records three results:

  • Both hooks were verified live.
  • The if filters that the owner tried never matched, so the script filters by skill name.
  • The Serena hook only activates the project. It cannot make Claude call the symbol tools.

Common mistake: a context hook is not a gate

A PreToolUse hook on Skill fires only when Claude calls the tool. If you type /skillname directly, PreToolUse does not fire. The UserPromptExpansion event covers that path. Source 1সোর্স 1 A timed-out command, http, or mcp_tool hook also does not block the tool call, unless it sets onFailure: "block". Source 1সোর্স 1 Use a hook like this one to add context, not to prove that a rule ran.

The Hooks page explains events, matchers, and decisions.

সহজ English

The script acts only for test-design and find-bug. It queries the graph with the skill arguments. It also adds the graph date and the date of the last commit, so Claude can see if the graph is stale. Claude Code adds this text to Claude's context as additionalContext, with a cap of 10,000 characters Source 1সোর্স 1.

Be careful: if you type /skillname directly, PreToolUse does not fire. A command, http, or mcp_tool hook that times out does not block the tool call, unless onFailure: "block" is set Source 1সোর্স 1. Use this hook to add context, not as proof that a rule ran.

বাংলা ব্যাখ্যা

Script-টি শুধু test-design আর find-bug-এর জন্য কাজ করে। এটি skill-এর argument দিয়ে graph query করে; argument না থাকলে graph report-এর উপরের অংশ পড়ে। এটি graph-এর তারিখ আর শেষ commit-এর তারিখও যোগ করে, যাতে Claude বুঝতে পারে graph পুরোনো কি না। Claude Code এই লেখা additionalContext হিসেবে Claude-এর context-এ যোগ করে, যার সীমা 10,000 character Source 1সোর্স 1। Serena hook শুধু project activate করে; এটি Claude-কে symbol tool call করতে বাধ্য করতে পারে না।

সাবধান: আপনি সরাসরি /skillname লিখলে PreToolUse fire করে না। Timeout হওয়া একটি command, http বা mcp_tool hook-ও tool call block করে না, তবে onFailure: "block" সেট করা থাকলে করে Source 1সোর্স 1। তাই এই ধরনের hook context যোগ করতে ব্যবহার করুন, কোনো নিয়ম চলেছে তার প্রমাণ হিসেবে নয়।

The read-only reviewer and its gate

On 2026-10-04 the owner asked for a reviewer. The 2026-10-04 log says that its prompts are lightly cleaned up from what the owner typed.

The request. The request was for "an adversarial sub-agent on the Opus 5.5 model". It "reviews the bugs Claude reports before bug.md is created" and has "no write permission, so it only reads and verifies". A second prompt added graphify as the reviewer's knowledge base.

---
name: qa-reviewer-agent
description: Read-only adversarial reviewer for bugs drafted by Claude. Use BEFORE writing any bug.md / bug report file. […] It cannot write files, so the report is only created after it passes.
tools: Read, Grep, Glob, Skill, mcp__plugin_serena_serena__initial_instructions, mcp__plugin_serena_serena__activate_project, […], mcp__plugin_serena_serena__read_memory
model: claude-opus-5-5
---

The tools list names 14 read-only Serena tools. It has no Write, Edit, or Bash.

  • A subagent runs in its own context window with its own system prompt, tool access, and permissions. Source 2সোর্স 2
  • tools is an allowlist. If you omit it, the subagent gets every tool that is available to subagents. Source 2সোর্স 2
  • A tool that is not in the list is not available. The docs give an example: with Read, Grep, Glob, and Bash only, the subagent has no Edit, Write, or MCP tools, but it can still change files through Bash. Source 2সোর্স 2 This is why the reviewer's list has no Bash.
  • tools accepts exact tool names, so it can name single MCP tools. Source 2সোর্স 2
  • Tools of an MCP server from a plugin are named mcp__plugin_<plugin-name>_<server-name>__<tool>. Source 1সোর্স 1 That explains the long Serena names.
  • model accepts an alias such as opus, a full model ID, or inherit. Source 2সোর্স 2

সহজ English

On 2026-10-04 the owner asked for a reviewer. Its job is to check the bugs Claude reports. It does this before the file bug.md is created. It uses the Opus 5.5 model. It cannot write files, so it can only read and check.

The reviewer is called qa-reviewer-agent. It is a helper that runs on its own, with its own instructions and its own set of tools. Its tools list holds 14 read-only Serena tools. It has no Write, Edit, or Bash.

The tools list is an allowlist. That means only the tools on the list can be used. A tool that is not in the list is not available Source 2সোর্স 2.

বাংলা ব্যাখ্যা

2026-10-04 তারিখে owner একটি reviewer চেয়েছিলেন: Opus 5.5 model-এর উপর একটি adversarial subagent। bug.md তৈরি হওয়ার আগে এটি Claude-এর report করা bug-গুলো review করে। এর কোনো write permission নেই, তাই এটি শুধু পড়ে আর যাচাই করে। দ্বিতীয় একটি prompt reviewer-এর knowledge base হিসেবে graphify যোগ করেছিল।

qa-reviewer-agent-এর tools list-এ 14টি read-only Serena tool আছে, কিন্তু Write, Edit বা Bash নেই। একটি subagent নিজের context window, system prompt, tool access আর permission নিয়ে চলে Source 2সোর্স 2। tools একটি allowlist: list-এ না থাকা tool পাওয়া যায় না Source 2সোর্স 2।

Ten checks and a gate

The reviewer tries to disprove each bug. A bug that fails one check gets the verdict FLAGGED.

#Check#Check
1Requirement basis6Expected vs actual
2Is it actually a bug?7Priority
3Evidence vs claim8Confidence
4Code trace agrees9Duplicate / overlap
5Steps reproduce it10Format and rules

Each bug gets APPROVED, FLAGGED, or REJECTED. Then the reviewer sets one gate for the whole draft:

Gate rules:
- **PASS** only when every bug is APPROVED and no MISSED item is a High priority issue. Instruction: "All bugs approved. You may now write the final bug.md report exactly as reviewed."
- **BLOCKED** when any bug is FLAGGED or REJECTED (or the draft or requirement is missing). Instruction: "Do NOT write bug.md yet. Update the draft: […], remove rejected bugs, then send the revised draft back to qa-reviewer-agent for re-review." Claude must resubmit until the gate is PASS.

Who writes the report. The reviewer cannot write the report. Only the main session can. The find-bug skill does not call the reviewer. So the main session must start the review.

Delegation. When a task matches a subagent's description, Claude delegates to that subagent. Source 2সোর্স 2 If you name a subagent in a prompt, Claude still decides whether to delegate. An @-mention tells Claude to run that subagent for the task. Source 2সোর্স 2 The Subagents page covers both ways.

সহজ English

The reviewer tries to prove each bug wrong. It runs ten checks on every bug. A bug that fails one check is FLAGGED. Each bug gets one verdict:

  • APPROVED
  • FLAGGED
  • REJECTED

Then the reviewer gives one gate to the whole draft. The gate is a final stop or go signal:

  • PASS: every bug is APPROVED. No MISSED item is a High priority issue.
  • BLOCKED: any bug is FLAGGED or REJECTED. Claude must fix the draft and send it back for another review. This repeats until the gate is PASS.

The reviewer cannot write the report. Only the main session can. The find-bug skill does not call the reviewer. So the main session must start the review.

You can also name the reviewer in a prompt. Even then, Claude still decides whether to hand the task over. An @-mention is different. It tells Claude to run the reviewer for that task Source 2সোর্স 2.

বাংলা ব্যাখ্যা

Reviewer দশটি check দিয়ে প্রতিটি bug ভুল প্রমাণ করার চেষ্টা করে। একটি check-এ fail করলেই bug-টি FLAGGED হয়। প্রতিটি bug পায় APPROVED, FLAGGED অথবা REJECTED। তারপর reviewer পুরো draft-এর জন্য একটি gate ঠিক করে:

  • PASS: সব bug APPROVED, এবং কোনো MISSED item High priority issue নয়।
  • BLOCKED: কোনো bug FLAGGED বা REJECTED। তখন Claude-কে draft ঠিক করে আবার পাঠাতে হয়, যতক্ষণ না gate PASS হয়।

Reviewer report লিখতে পারে না; শুধু main session পারে। find-bug skill reviewer-কে call করে না, তাই main session-কেই review শুরু করতে হয়। Prompt-এ subagent-এর নাম লিখলেও delegate করবে কি না, তা Claude নিজে ঠিক করে। একটি @-mention Claude-কে সেই কাজের জন্য subagent-টি চালাতে বলে Source 2সোর্স 2।

The Send Money hunt

The hunt had two rounds on 2026-10-04. The log records these prompts:

Find out bugs from the send money feature with /qa-agent /qa-agent-advocate /find-bug /validate-bug.
You don't have to reproduce. Just find bugs from the send money feature and verify them by the reviewer agent.

This page covers only the find-bug skill and the reviewer. /blast-radius found no application-code changes against main, so Claude traced the impact by hand.

RoundInput to the reviewerGate historyResult
16 bugs, reproduced with agent-browser and curlBLOCKED (6 flagged, 0 rejected), then PASS6 bugs approved
25 candidates from code trace only4 rejected; 1 approved after two rounds of fixesSM-L03 added

The final report has 7 bugs: 2 High, 2 Medium, 3 Low. The titles come from the report's summary table.

IDTitleConfidenceReproduced via
SM-H01Missing from_account or to_account crashes the whole API processHighAPI (executed; UI not reproducible)
SM-H02Concurrent requests exceed the daily transaction-count limitHighAPI (executed) + SQL
SM-M01Own-account send accepted with a trailing space in the receiver numberHighUI + API (executed)
SM-M02More than 2 decimals accepted and stored unroundedMediumUI + API (executed)
SM-L01Non-numeric amount forms accepted ("0x10", "1e1", [20])HighAPI (executed; UI not reproducible)
SM-L02Receipt "Total Amount" excludes the service feeLowUI + API (executed)
SM-L03Non-string receiver value returns HTTP 500 with the raw internal validation messageLowCode (not executed)

SM-L03 is the only bug that was not executed. Its confidence is Low, and the report says so. The 7 bugs became GitHub issues #1–#7.

সহজ English

The hunt had two rounds on 2026-10-04. The first prompt asked for bugs in the send money feature with /qa-agent, /qa-agent-advocate, /find-bug, and /validate-bug. The second prompt said that Claude did not have to reproduce, and that the reviewer agent must verify the bugs. This page covers only the find-bug skill and the reviewer. /blast-radius found no application-code changes against main, so Claude traced the impact by hand.

  • Round 1: the reviewer got 6 bugs, reproduced with agent-browser and curl. The gate was BLOCKED first (6 flagged, 0 rejected), then PASS. All 6 bugs were approved.
  • Round 2: the reviewer got 5 candidates from code trace only. It rejected 4. It approved 1 after two rounds of fixes. That bug, SM-L03, was added.

The final report has 7 bugs: 2 High, 2 Medium, 3 Low. SM-L03 is the only bug that was not executed. Its confidence is Low, and the report says so. The 7 bugs became GitHub issues #1–#7.

বাংলা ব্যাখ্যা

2026-10-04 তারিখে hunt-টি দুই round-এ হয়েছিল। প্রথম prompt-এ /qa-agent, /qa-agent-advocate, /find-bug আর /validate-bug দিয়ে send money feature-এর bug খুঁজতে বলা হয়েছিল। দ্বিতীয় prompt বলেছিল, reproduce করার দরকার নেই; শুধু bug খুঁজে reviewer agent দিয়ে যাচাই করাতে হবে। এই পাতা শুধু find-bug skill আর reviewer নিয়ে। /blast-radius main-এর তুলনায় application code-এ কোনো পরিবর্তন পায়নি, তাই Claude হাতে impact trace করেছিল।

  • Round 1: reviewer 6টি bug পেয়েছিল, যেগুলো agent-browser আর curl দিয়ে reproduce করা। Gate প্রথমে BLOCKED ছিল (6টি flagged, 0টি rejected), তারপর PASS। 6টি bug-ই approved হয়েছিল।
  • Round 2: reviewer শুধু code trace থেকে আসা 5টি candidate পেয়েছিল। এর মধ্যে 4টি rejected হয়েছিল। 1টি দুই round fix-এর পরে approved হয়েছিল, আর সেই bug, SM-L03, যোগ হয়েছিল।

চূড়ান্ত report-এ 7টি bug আছে: 2টি High, 2টি Medium, 3টি Low। SM-L03 একমাত্র bug যেটি execute করা হয়নি। এর confidence Low, আর report-এ তা বলা আছে। 7টি bug GitHub issue #1–#7 হয়েছিল।

Claims that did not survive

A review gate is useful only if it removes claims. Two records show claims that the workspace dropped.

Withdrawn after real runs (cash-in)

The first cash-in report came from code reading only. After the owner's correction, Claude drove the UI with agent-browser, checked the results with SQL, and rewrote the report. The final report has 19 bugs (6 High, 6 Medium, 7 Low). It also has a section "Candidates withdrawn after testing":

  • A limit-cap breach for a customer with no ledger rows did not reproduce in 5 attempts with two different Agent accounts.
  • A request with an empty body returns HTTP 400. It does not crash the server.
  • The report says that the first, code-only version made both claims and that both were wrong.

Rejected by the reviewer (Send Money)

Rejected candidateReason in the report
The receiver's wallet cap is not checked on Send MoneyThe requirements apply the cap to Deposit and Stripe only.
The error response for an unknown receiver numberThe requirements ask for this response.
The "current balance" in the response under overlapping sendsIt is correct at response time, and no requirement covers it.
No client-side phone or minimum-amount check on the pageThe server enforces both.

The report also records one open requirement question: does the wallet cap apply to Send Money credits too? The reviewer did not file it as a bug.

সহজ English

A review gate is useful only if it removes claims. Two records show claims that the workspace dropped.

The first cash-in report came from code reading only. After the owner's correction, Claude drove the UI with agent-browser, checked the results with SQL, and rewrote the report. The final report has 19 bugs (6 High, 6 Medium, 7 Low). Its section "Candidates withdrawn after testing" says that the code-only version made two wrong claims:

  • A limit-cap breach for a customer with no ledger rows. It did not reproduce in 5 attempts with two different Agent accounts.
  • A request with an empty body. It returns HTTP 400 and does not crash the server.

In Send Money, the reviewer rejected 4 candidates. For example, the requirements apply the receiver's wallet cap to Deposit and Stripe only. And the server enforces the phone and minimum-amount checks. The report also records one open question: does the wallet cap apply to Send Money credits too? The reviewer did not file it as a bug.

বাংলা ব্যাখ্যা

একটি review gate তখনই কাজের, যখন এটি claim বাদ দেয়। দুটি record দেখায়, workspace কোন claim-গুলো বাদ দিয়েছিল।

প্রথম cash-in report শুধু code পড়ে লেখা হয়েছিল। Owner ভুল ধরিয়ে দেওয়ার পরে Claude agent-browser দিয়ে UI চালিয়েছিল, SQL দিয়ে ফলাফল যাচাই করেছিল, এবং report আবার লিখেছিল। চূড়ান্ত report-এ 19টি bug আছে (6টি High, 6টি Medium, 7টি Low)। এতে "Candidates withdrawn after testing" নামে একটি section-ও আছে:

  • কোনো ledger row নেই এমন customer-এর limit-cap breach দুটি আলাদা Agent account দিয়ে 5 বার চেষ্টা করেও reproduce হয়নি।
  • খালি body সহ একটি request HTTP 400 ফেরত দেয়; এটি server crash করে না।
  • Report বলে, প্রথম code-only version দুটি claim-ই করেছিল, আর দুটিই ভুল ছিল।

Send Money-তে reviewer 4টি candidate reject করেছিল। যেমন: requirement অনুযায়ী receiver-এর wallet cap শুধু Deposit আর Stripe-এ প্রযোজ্য। অজানা receiver number-এর error response requirement নিজেই চায়। Overlapping send-এ response-এর "current balance" response-এর সময়ে সঠিক, আর কোনো requirement এটি cover করে না। Page-এ client-side phone বা minimum-amount check নেই, কিন্তু server দুটোই enforce করে।

Report-এ একটি খোলা requirement প্রশ্নও আছে: wallet cap কি Send Money credit-এর ক্ষেত্রেও প্রযোজ্য? Reviewer এটিকে bug হিসেবে file করেনি।

Take-aways

These points are the tutorial's own advice, based on this workspace.

  • Write the prediction down first, with an ID. Then a run can confirm or reject it in public.
  • Put "use tool X" rules in a skill. Use a hook for an action that must always happen. Do not use a context hook as proof that a rule ran.
  • Give a reviewer subagent an explicit read-only tools list. Then it can judge, but it cannot change the evidence.
  • Make the gate binary (PASS or BLOCKED), and write the report only after PASS. If a skill does not start the reviewer, start it yourself, for example with an @-mention.
  • Keep the withdrawn and rejected claims in the report. They show that the gate works.
  • Mark code-trace-only bugs as "not executed" and give them a low confidence.

সহজ English

These points are the tutorial's own advice, based on this workspace.

  • First write down your prediction, with an ID. Then a run can confirm or reject it in public.
  • Put "use tool X" rules in a skill. Use a hook for an action that must always happen. A context hook does not prove that a rule ran.
  • Give a reviewer subagent an explicit read-only tools list. Then it can judge, but it cannot change the evidence.
  • Use only two gate results: PASS or BLOCKED. Write the report only after PASS. If a skill does not start the reviewer, start it yourself, for example with an @-mention.
  • Keep the withdrawn and rejected claims in the report. They show that the gate works.
  • Mark a bug from code trace only as "not executed", and give it a low confidence.

বাংলা ব্যাখ্যা

এই পয়েন্টগুলো tutorial-এর নিজের পরামর্শ, এই workspace-এর অভিজ্ঞতা থেকে।

  • প্রথমে আপনার অনুমান একটি ID সহ লিখে রাখুন। তাহলে একটি run সবার সামনে সেটি নিশ্চিত বা বাতিল করতে পারবে।
  • "tool X ব্যবহার করুন" ধরনের নিয়ম একটি skill-এ রাখুন। যে action সবসময় ঘটতেই হবে, তার জন্য hook ব্যবহার করুন। একটি context hook-কে কোনো নিয়ম চলেছে তার প্রমাণ হিসেবে ব্যবহার করবেন না।
  • Reviewer subagent-কে একটি স্পষ্ট read-only tools list দিন। তাহলে এটি বিচার করতে পারবে, কিন্তু evidence বদলাতে পারবে না।
  • Gate-কে binary রাখুন (PASS অথবা BLOCKED), এবং শুধু PASS-এর পরে report লিখুন। কোনো skill reviewer শুরু না করলে, আপনি নিজেই শুরু করুন, যেমন একটি @-mention দিয়ে।
  • Withdrawn আর rejected claim-গুলো report-এ রেখে দিন। এগুলো দেখায় যে gate কাজ করে।
  • শুধু code trace থেকে আসা bug-কে "not executed" হিসেবে চিহ্নিত করুন, এবং এর confidence কম দিন।
  1. [1]
    Hooks reference

    Anthropic (Claude Code docs) · accessed 2026-10-10দেখা হয়েছে: 2026-10-10

  2. [2]
    Create custom subagents

    Anthropic (Claude Code docs) · accessed 2026-10-10দেখা হয়েছে: 2026-10-10

  3. [3]
    Extend Claude with skills

    Anthropic (Claude Code docs) · accessed 2026-10-10দেখা হয়েছে: 2026-10-10

  4. [4]
    Automate actions with hooks (guide)

    Anthropic (Claude Code docs) · accessed 2026-10-10দেখা হয়েছে: 2026-10-10