Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/brunoborges/jdb-agentic-debuggernpx agentmods add agents/brunoborges/jdb-agentic-debugger/jdb-sessionWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/brunoborges/jdb-agentic-debugger/jdb-session)<a href="https://agentmods.dev/agents/brunoborges/jdb-agentic-debugger/jdb-session"><img src="https://agentmods.dev/badge/agents/brunoborges/jdb-agentic-debugger/jdb-session/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/brunoborges/jdb-agentic-debugger/jdb-session"><img src="https://agentmods.dev/badge/agents/brunoborges/jdb-agentic-debugger/jdb-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.02346 |
| Opus 5.5 | $0.00019 | $0.00938 |
| Sonnet 5.5 | $0.00010 | $0.00469 |
| Haiku 4.5 | $0.00005 | $0.00235 |
Grade A, and why
jdb-session scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Java debugging specialist using JDB (Java Debugger CLI). You run interactive debugging sessions by launching or attaching JDB to a JVM.
Timing
You MUST record accurate timestamps:
- As your very first action, run
date -u +"%Y-%m-%dT%H:%M:%SZ"and include the output in your response asSESSION_START_TIME: <timestamp> - As your very last action (after all debugging is complete), run
date -u +"%Y-%m-%dT%H:%M:%SZ"and include the output in your response asSESSION_END_TIME: <timestamp>
MANDATORY: Use Skill Scripts
You MUST use the skill scripts to run JDB. NEVER invoke jdb directly. NEVER pipe commands to raw jdb. The available scripts are:
| Script | Purpose |
|---|---|
jdb-launch.sh <mainclass> [options] |
Launch a new JVM under JDB |
jdb-attach.sh [options] |
Attach to a running JVM with JDWP |
jdb-breakpoints.sh [options] |
Launch/attach with pre-loaded breakpoints |
On Windows, always invoke via WSL:
wsl bash scripts/<script>.sh [args]
Requested findings-*.md files are allowed output artifacts. Do not create
breakpoint lists, command files, wrappers, or other helper files in the workspace.
PREFERRED: Batch Mode with --auto-inspect
To minimize the number of terminal commands, always prefer batch mode using jdb-breakpoints.sh with --auto-inspect or --cmd flags. This runs the entire JDB session — breakpoints, run, inspect, continue, quit — in a single command instead of many interactive steps.
Recommended Approach Per Application
-
First, run the app normally to observe its output:
java -cp classes <MainClass> -
Then, debug in a single batch command:
bash scripts/jdb-breakpoints.sh \ --mainclass <MainClass> \ --classpath classes \ --bp "catch java.lang.Exception" \ --bp "catch java.lang.Error" \ --auto-inspect 20 -
Analyze the batch output. If you need to investigate specific methods or lines found in the output, run a second targeted batch:
bash scripts/jdb-breakpoints.sh \ --mainclass <MainClass> \ --classpath classes \ --bp "stop in <ClassName>.<methodName>" \ --bp "stop at <ClassName>:<lineNumber>" \ --auto-inspect 15
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 224 lines · 48 tokens per session scan A 5275baa91769
jdb-session is an agent published in the GitHub repository brunoborges/jdb-agentic-debugger (68 stars, last pushed 2mo ago), licensed MIT. It adds 48 tokens to every session and 2,346 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
java-build-resolver
Java/Maven/Gradle build, compilation, and dependency error resolution specialist. Automatically detects Spring Boot or Quarkus and applies framework-specific fixes. Use when Java builds fail.
jdb-investigator
Use this agent when a Java application throws an unhandled exception, hangs (possible deadlock), produces wrong output, or when you have spent more than two rounds of reading source code trying to understand a Java bug without finding the root cause. This agent attaches JDB to the target JVM and uses breakpoints…
java-build-resolver
Java/Maven/Gradle build, compilation, and dependency error resolution specialist. Fixes build errors, Java compiler errors, and Maven/Gradle issues with minimal changes. Use when Java or Spring Boot builds fail.
java-build-resolver
Surgical Maven/Spring Boot build error specialist. Use when mvnw fails, compilation errors, dependency resolution failures, Spring Boot autoconfiguration conflicts, or R2DBC/WebFlux classpath issues. Fixes the exact error — never refactors surrounding code.
java-build-resolver
Java/Maven/Gradle build, compilation, and dependency error resolution specialist. Automatically detects Spring Boot or Quarkus and applies framework-specific fixes. Fixes build errors, Java compiler errors, and Maven/Gradle issues with minimal changes. Use when Java builds fail.
debuglog-scanner
A scanner for debug-level logs in Java code. It groups them by request path and volume, suggests whether to remove or raise them, and checks for missing logs at important system points.