jdb-agentic-debugger
Copilot instructions67 starsChanged 4 months agoMITView on GitHub
This is an AI agent plugin (not a Java application). It teaches AI coding agents (GitHub Copilot CLI, Claude Code) to debug Java applications using JDB — the CLI debugger shipped with every JDK. The repo contains no application code; it consists entirely of agent definitions, skill documents, and Bash scripts. Tests are Bash-based integration tests that run AI agents against compiled Java programs with known bugs. Test scenarios are in tests/scenarios/ — Java files with intentional bugs (state bugs,…
In this repository2 other files it gives its agents.
- jdb-debuggerSkill
- jdb-debuggerSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Agents must never run raw
jdbcommands: All JDB operations go through the 4 scripts in skills/jdb-debugger/scripts/ (jdb-launch.sh, … - Very specific: line 47
Test scenarios are in tests/scenarios/ — Java files with intentional bugs (state bugs, concurrency, aliasing, input handling).
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions — JDB Agentic Debugger
What This Repository Is
This is an AI agent plugin (not a Java application). It teaches AI coding agents (GitHub Copilot CLI, Claude Code) to debug Java applications using JDB — the CLI debugger shipped with every JDK. The repo contains no application code; it consists entirely of agent definitions, skill documents, and Bash scripts.
Architecture
User → JDB Debugger (orchestrator agent)
├── jdb-session → Interactive debugging (launch/attach, breakpoints, stepping)
├── jdb-diagnostics → Quick JVM health checks (thread dumps, deadlock detection)
└── jdb-analyst → Read-only analysis (stack traces, root cause reports)agents/— Agent definition files (.agent.md) for the orchestrator and 3 sub-agents. Referenced byplugin.json.skills/jdb-debugger/— The JDB skill:SKILL.md(agent instructions),scripts/(4 Bash scripts),references/(JDB/JDWP docs)..claude-plugin/plugin.json— Claude Code plugin manifest. Points to agents inagents/.tests/— Integration test framework that validates agents can autonomously debug intentionally buggy Java programs.
Key Conventions
- Agents must never run raw
jdbcommands. All JDB operations go through the 4 scripts inskills/jdb-debugger/scripts/(jdb-launch.sh,jdb-attach.sh,jdb-breakpoints.sh,jdb-diagnostics.sh). - Agents must never create helper or command files in the workspace. Requested output artifacts such as
findings-*.mdandDEBUG-REPORT.mdare allowed. Use inline CLI flags (--bp,--cmd,--auto-inspect) for debugger input. - Agent files use YAML front matter with fields:
name,description,tools, and optionallyagents/handoffs. - The orchestrator (
jdb-debugger.agent.md) never executes commands — it only triages and delegates via handoffs.
Running Tests
Tests are Bash-based integration tests that run AI agents against compiled Java programs with known bugs.
# Full test suite (all available agents)
./tests/run-test.sh
# Single agent
./tests/run-test.sh --agent copilot
./tests/run-test.sh --agent claude
# With options
./tests/run-test.sh --agent copilot --verbose --model <model>
# Prepare an isolated directory for manual/interactive testing
./tests/prepare-test.shTest scenarios are in tests/scenarios/ — Java files with intentional bugs (state bugs, concurrency, aliasing, input handling). They are compiled with javac -g for debug symbols.
Editing Guidelines
- Script changes must preserve the
--helpflag behavior and the existing CLI flag interface (--bp,--cmd,--auto-inspect,--port,--host,--sourcepath,--classpath,--mainclass). - The
plugin.jsonmanifest references agents by relative path from.claude-plugin/— keep paths consistent if renaming.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

