# DevLens OSS
**See how a codebase fits together. Give your AI agent the same map.**
DevLens turns a local repository into a searchable code graph. Trace a request from its route to the code that handles it, see what depends on a function before changing it, or ask your coding agent to find the relevant files and explain the flow.
[](LICENSE)
[](https://www.npmjs.com/package/@devlensio/cli)
[](https://bun.sh)
[Quick start](#quick-start) · [Web UI & Code View](#see-it-the-web-ui) · [AI agents & MCP](#use-it-with-your-ai-agent-mcp) · [CLI](#cli) · [Benchmarks](#benchmarks)
*Start with the architecture. Search for a route, component, or function and zoom in on the code that matters to your task.*
### Trace a feature before you change it
1. **Find the entry point.** Search for a route or handler. Filter by node or relationship type if the graph is busy.
2. **Follow the calls.** The **Flow** tab shows resolved calls and, where supported, hooks and rendered children in source order. This is static analysis, not a runtime trace.
3. **Read the code side by side.** In **Code View**, click a call badge to open the callee beside its caller. Each card shows syntax-highlighted source with its file path and line numbers. To read just one node, use the panel's **Code** tab.
4. **Check the blast radius.** Find upstream dependents before refactoring, or use **K-hop** to see what the symbol depends on. When reviewing a PR, compare two analyzed commits to see what changed in the graph.
![]() |
![]() |
| The node panel and Flow tab show what a symbol does and which calls appear in its source. | Hover without committing: score, hooks, local state, a collapsed summary, and the two ways in. The graph, toolbar and filters stay where they are. |
![]() |
![]() |
Inside a code card: technical, business and security are independent sections, technical open by default. Security carries its severity (HIGH here). |
Filter by node type, edge type, score, rendering boundary and entry-point reach, with live counts from your graph. |
![]() |
![]() |
| Two callees open beside their caller — the common case while reading. Click a badge to add a card, Auto-arrange to lay them out. | The same view at six cards: a call tree on one canvas, arrows showing direction, Back closing them one at a time. |
![]() |
|
| Blast radius at two hops shows upstream dependents. K-hop follows downstream dependencies. |