Purpose
Orihime is a cross-repository code knowledge graph tool for Java, Kotlin, JavaScript, and TypeScript codebases. It weaves your existing source code into a unified graph structure, with the main goal of enabling AI assistants (or other callers) to understand cross-service code relationships and security risks in a graph-based way, rather than reading source code file by file.
Main Capabilities
- Cross-repository call graph: Trace who calls what, across service boundaries, including resolving REST calls to their target endpoints.
- Cross-repository taint analysis: Track user-controllable data from HTTP/Kafka/JMS entry points through the call graph to dangerous sinks (SQL injection, path traversal, XXE, deserialization, SSRF, log injection, etc.).
- Security reporting: Covers OWASP Top 10, CWE, PCI DSS, and STIG frameworks; supports second-order injection detection; sources/sinks can be customized via YAML.
- Entry point reachability filtering: Suppress false positives caused by dead code, exposing only findings reachable from real entry points (HTTP handlers, @KafkaListener, @Scheduled, @JmsListener, @RabbitListener).
- Complexity hints: Statically detect O(n²) loops, N+1 JPA risks, unbounded queries, and recursive calls, without a profiler.
- Performance correlation: Import Gatling/JMeter load test results, correlate them with the call graph, and pinpoint confirmed hotspots and the Little's Law capacity limit for each endpoint.
- License compliance: Scan Maven/Gradle dependencies against SPDX identifiers, flagging GPL/AGPL/LGPL in commercial projects.
- Incremental reindexing: Skip based on git blob-hash, so subsequent runs only re-parse changed files.
- Multi-language: Java, Kotlin, JavaScript, TypeScript (Next.js, Express, React).
How to Use
The primary usage is AI-first, integrated into Claude Code via MCP: first register with Claude Code (one-time setup), and after restarting, the orihime MCP tools and skills(/orihime-call-flow、/orihime-security-audit、/orihime-perf-analysis、/orihime-change-impact) take effect; then index the repository; then ask questions in natural language, without reading source files or grepping, and Claude uses the graph directly, typically requiring 5–8 tool calls, whereas pure source code analysis requires more than 30.
CLI alternative: all of the above operations are also provided as Python commands (python -m orihime index、python -m orihime ui , etc.), for scenarios where you do not want to operate inside an AI assistant.
In addition, a local Web UI and MCP tool references are provided (covering security SAST, complexity and performance, license compliance, etc.). It can be configured via environment variables, and custom sources/sinks can be written to ~/.orihime/security_config.yaml or specified via ORIHIME_SECURITY_CONFIG . The built-in configuration already covers HttpServletRequest、@RequestParam、@PathVariable、@RequestBody、JDBC execute*, JPA native queries,Runtime.exec、ProcessBuilder, XML parsers,ObjectInputStream、Files.get、Paths.get、new URL, log calls, etc.
Team/server mode: KuzuDB has a single-writer constraint, so in team deployments where multiple developers reindex simultaneously, you can run a write-serialization server; if not configured locally ORIHIME_SERVER_URL developers still open KuzuDB directly as usual. The Web UI and MCP server always read KuzuDB directly (reads do not go through the write server).
Applicable scenarios
- Need to track call chains and upstream/downstream dependencies across multiple services and multiple repositories.
- Need to let AI assistants understand the structure of large Java/Kotlin/JS/TS codebases at a lower token cost.
- Need to perform cross-repository taint analysis and security audits such as OWASP/CWE, and second-order injection detection.
- Need to combine load test results to locate endpoint performance hotspots.
- Need to check the license compliance of dependencies in commercial projects.
Limitations
- The graph is subject to KuzuDB's single-writer constraint, so concurrent rebuilds by a team require a write serialization server.
- According to the materials, GitNexus (PolyForm Non-Commercial) covers cross-repository call graphs and MCP integration for 14 languages (including Java and Kotlin), but does not cover SAST, performance analysis, or compliance reporting.
- The materials note that custom taint source/sink and license compliance (SBOM + policy enforcement) require the Advanced Security add-on (Enterprise+); this explanation is in the context of a footnote comparing with SonarQube.
- The AI assistant benchmark given in the materials shows that about 80% of Orihime's structural information can be obtained through tool calls, while the remaining about 20% (upstream API URLs, authentication headers, branch-level control flow) requires targeted source code reading of about 5 specific files.
- Details regarding charges, pricing, and specifically supported platforms are not yet provided in the materials.