JIDRA

•
1
•

Indexes Java codebases to build static call graphs, trace method flows, and generate LLM-ready context for diagnosis and documentation.

JIDRA (Java Intelligent Diagnostic & Reasoning Agent) is a minimalist, graph-driven CLI and Model Context Protocol (MCP) server designed to enhance developer workflows for Java codebases. It efficiently indexes Java source code to create a deterministic static call graph, enabling offline tracing and querying of execution flows from methods or HTTP routes. Beyond foundational analysis, JIDRA provides capabilities to generate prompt-ready context and specific prompts for Large Language Model (LLM) workflows, significantly reducing context and improving diagnostic accuracy. It also produces deterministic investigation documents for both code flows and stack trace errors, offering an optional LiteLLM-based diagnosis on top of its graph-grounded context for a streamlined troubleshooting experience.

Características Principales

01Deterministic tracing of method and HTTP route execution flows with unresolved edge detection.
02Optional LLM-based diagnosis grounded in static code analysis with structured metrics.
03Generation of LLM-ready context and prompts for AI agents, optimizing context reduction.
04Static call graph indexing for Java codebases via Tree-sitter.
05Automated creation of detailed flow and error investigation markdown documents from stack traces.
061 GitHub stars

Casos de Uso

01Streamline LLM-assisted debugging and diagnosis of complex Java applications.
02Automate the creation of detailed flow and error investigation documentation.
03Reduce LLM context and improve accuracy for Java codebase understanding and reasoning tasks.