opentrace/opentrace
opentrace/opentrace · 1 plugin
Marketplace OpenTrace is a knowledge graph platform that maps system architecture, code structure, and service relationships giving you a visual, queryable map of how your codebase and infrastructure connect.
Install
The repo has no one-line install. Follow its README.
Plugins 1
After adding the marketplace, install one with /plugin install <name>@opentrace-oss.
- 1opentrace-ossOpenTrace knowledge graph — search, traverse, and analyze indexed codebases
/plugin install opentrace-oss@opentrace-oss
Files
OpenTrace
A knowledge graph that maps your codebase structure, service architecture, and system relationships — then exposes it all through MCP so AI tools can understand your systems.
opentrace.mp4
Index any repo, any size, in seconds. Build a knowledge graph and watch your LLM fetch true codebase context in realtime.
What It Does
OpenTrace indexes source code and builds a queryable knowledge graph. Point it at a repo and it will:
- Parse every file using tree-sitter WASM grammars (12 languages)
- Extract classes, functions, imports, and call relationships
- Build a knowledge graph stored in LadybugDB (embedded graph database)
- Summarize every node using template-based identifier analysis
- Expose the graph via MCP tools to any compatible AI client
Get Started
Linux/MacOS
uvx opentraceai index . # Index a local project for use with MCP etcClaude Plugin
/plugin marketplace add https://github.com/opentrace/opentrace
/plugin install opentrace-oss@opentrace-oss
/reload-plugins
More info: https://opentrace.github.io/opentrace/getting-started/install-plugin/
OpenCode Plugin
Add to ~/.config/opencode/opencode.json:
More info: https://opentrace.github.io/opentrace/getting-started/install-opencode/
Gemini CLI
gemini mcp add opentraceai uvx opentraceai mcpRun Completely in the Browser
No install: app.opentrace.ai
Run UI Locally
git clone https://github.com/opentrace/opentrace.git && cd opentrace
make install && make ui # Runs on http://localhost:5173/To enable knowledge vaults (LLM-compiled markdown wikis), also run the
agent's REST server in a second terminal and open the UI with a ?server=
query param so it reads from the backend:
uv --project agent run opentraceai serve # listens on http://localhost:8787
# then open: http://localhost:5173/?server=http://localhost:8787See Wiki & Vaults for the compile flow and Wiki Providers for the supported LLM providers (Anthropic, Gemini, OpenAI, local).
More Information
Full documentation: opentrace.github.io/opentrace — install guides, architecture, and reference.
Prerequisites: plugins and CLI need uv; OpenCode plugin runs in Bun (provided by OpenCode itself). Source build also needs Node 22+ and Python 3.12+. See Troubleshooting if anything fails.
Claude Code Plugin
The plugin gives Claude Code 5 agents, 4 slash commands, and MCP graph tools.
| Agent | Description |
|---|---|
@opentrace |
Default catch-all — any codebase question routed to the knowledge graph |
@code-explorer |
Explore indexed code structure — find classes, functions, files, and relationships |
@dependency-analyzer |
Analyze dependencies and blast radius for code changes |
@find-usages |
Find all callers, references, and usages of a component |
@explain-service |
Top-down walkthrough of how a service or module works |
| Command | Description |
|---|---|
/index |
Index (or re-index) the current project into the knowledge graph |
/graph-status |
Show overview of indexed nodes by type |
/explore <name> |
Quick exploration of a named component in the graph |
/interrogate |
Answer a question about the codebase without making changes |
Full details: Claude Code Plugin reference.
OpenCode Plugin
The plugin gives OpenCode 9 native tools and three hooks (system-prompt, tool-execute, auth) — calls the opentraceai CLI directly rather than going through MCP.
| Tool | Description |
|---|---|
opentrace_source_search |
Symbol-level search across indexed code |
opentrace_semantic_search |
Embedding-based search over node descriptions |
opentrace_source_read |
Read source for a graph node by ID |
opentrace_source_grep |
Grep across indexed source content |
opentrace_repo_index |
Index a local path or remote git URL into the graph |
opentrace_find_usages |
Find all callers and references of a component |
opentrace_impact_analysis |
Blast radius analysis for a proposed change |
opentrace_graph_explore |
BFS traversal with direction and depth controls |
opentrace_graph_stats |
Node and edge counts by type |
Full details: OpenCode Plugin reference.
Supported Languages
Full extraction (symbols + calls + imports): Python, TypeScript/JavaScript, Go
Structural extraction (symbols only): Rust, Java, Kotlin, C#, C/C++, Ruby, Swift
Indexed as file nodes: JSON, YAML, TOML, Protobuf, SQL, GraphQL, Bash
Full language matrix: Supported Languages.
Architecture
┌───────────────────────────────────────────────────────────┐
│ UI (React/TS) │
│ Browser-based indexer + graph explorer │
│ localhost:5173 / app.opentrace.ai │
│ │
│ ┌───────────────┐ ┌─────────────────┐ ┌──────────────┐ │
│ │ Web Worker │ │ LadybugDB WASM │ │ Chat Agent │ │
│ │ tree-sitter │ │ (embedded │ │ LLM-powered │ │
│ │ WASM parsers │ │ graph store) │ │ graph tools │ │
│ └───────────────┘ └─────────────────┘ └──────────────┘ │
└───────────────────────────────────────────────────────────┘
┌───────────────────────────────────────────────────────────┐
│ Claude Code Plugin (MCP) │
│ Python agent exposes graph tools via MCP protocol │
│ uvx opentraceai mcp → stdio transport │
└───────────────────────────────────────────────────────────┘
┌───────────────────────────────────────────────────────────┐
│ OpenCode Plugin (native) │
│ TS plugin in OpenCode's Bun runtime — 9 tools + │
│ system-prompt, tool-execute, auth hooks │
│ opentraceai CLI → spawn (no MCP) │
└───────────────────────────────────────────────────────────┘
See Architecture Overview for details.
Repository Structure
ui/ — React/TypeScript frontend (graph explorer + browser indexer)
agent/ — Python agent (CLI + MCP server for Claude Code)
proto/ — Protobuf definitions (shared schema)
plugins/ — Editor / AI integrations
claude-code/ — Claude Code plugin (agents, commands, skills, hooks)
opencode/ — OpenCode plugin (native TS, Bun runtime)
docs/ — Documentation site (mkdocs-material)
tests/ — Cross-validation test fixtures
benchmark/ — Accuracy benchmarks
Development
See Development Setup for prerequisites, commands, and the full dev workflow.
Contributing
See CONTRIBUTING.md for guidelines on how to contribute.
License
Apache License 2.0 — see LICENSE for details.
{
"$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
"name": "opentrace-oss",
"description": "Knowledge graph tools for exploring system architecture, code structure, and service dependencies",
"owner": {
"name": "OpenTrace"
},
"plugins": [
{
"name": "opentrace-oss",
"description": "OpenTrace knowledge graph — search, traverse, and analyze indexed codebases",
"version": "0.7.0",
"author": {
"name": "OpenTrace"
},
"source": "./plugins/claude-code",
"category": "development"
}
]
}Facts
- Kind
- Marketplace
- Repo
- opentrace/opentrace
- Group
- Uncategorized
- Marketplace name
- opentrace-oss
- Owner
- OpenTrace
- License
- Apache-2.0
- Language
- JavaScript
- Created
- 2026-03-11
- Forks
- 10
- Homepage
- opentrace.ai
- Topics
- ai, claude-code, code
- Plugins
- 1
- 1f/prompts.chatf/prompts.chatf.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
- 2affaan-m/everything-claude-codeaffaan-m/everything-claude-codeThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
- 3obra/superpowersobra/superpowersAn agentic skills framework & software development methodology that works.
- 4anthropics/skillsanthropics/skillsPublic repository for Agent Skills
- 5anthropics/claude-codeanthropics/claude-codeClaude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
- 6nextlevelbuilder/ui-ux-pro-max-skillnextlevelbuilder/ui-ux-pro-max-skillAn AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
{ "$schema": "https://opencode.ai/config.json", "plugin": ["@opentrace/opencode"] }