Code graph
Code graph shows your system as it really runs and as the source is built. It has three tabs: Services (the service map, drawn from traces), Code (the codebase as a map, from the service down to the method, with what ran beside what never did) and Structure (the static code map: hubs, communities, and questions you can ask it). Open it to see which service calls which, where traffic goes, which parts of the code never ran, and how the code hangs together.
Where to find it
Sidebar, group Analyse → Code graph. The tab is part of the address, so a refresh or a shared link opens the same tab. The old Service map address redirects to the Services tab. The Dead code page links to the Code tab.
What it shows
Tabs and window
The toolbar holds the tabs Services, Code and Structure, and a window of 7 days, 30 days or 90 days (30 is the default). The window is hidden on Structure and on the Source treemap view, which do not depend on it.
Services tab
The services as traces saw them, at service level only.
- Mode: coverage, traffic or latency decides the node colour. Coverage runs from red (0%) through amber (50%) to green (100%); traffic is darker for more calls; latency is redder for a higher p95.
- Summary numbers: Nodes (services), Edges (service-to-service hops), Weighted coverage, and Frames / runs (recorded call frames and runs in the window).
- Monitoring selection warning: if the project monitors a list of services and none of them traced in the window while other services did, an amber notice names both lists and links to Projects.
- Cards and Node graph: two drawings of the same network. Cards lay the services out by call depth, callers above callees. Services with no recorded hop sit below a dashed line labelled "No recorded hops". Arrow thickness is call volume. The bar under a card's name is its share of traffic.
- Zoom controls: +, −, the zoom percentage, and a fit button that fits the whole network and restores the layout.
- Node detail: the selected service (the first one until you pick one) with Coverage, Calls, p95 latency, Fan-in / fan-out, Criticality and Methods seen; then On the code map (how many of its traced files the code map knows, their line coverage, the communities and hubs it is made of) or "Not on the code map" with the reason; Hottest methods (top 5 by calls); Hops (the 8 busiest hops in and out, with calls and average time).
- Code against traces: when a code map is available, this panel lists In code, never traced (references from one service's files into another's that no trace followed, up to 8 shown, with reference counts and examples) and Traced, no code reference (hops that go over the network, up to 8 shown), plus files shared by several services.
Code tab: Galaxy
The default view of the Code tab. The view switcher in the top-left corner of the frame offers Galaxy, Call graph and Source treemap.
- Summary numbers: Files in the source; Methods that ever ran as a percentage with
ran of total; Measured, never ran; Ran with no source behind it (classes that traced but have no indexed source). - The picture: the source tree packed into rings. Every file is a dot coloured by the share of its methods that ever ran; every directory is a ring. Classes that ran without source hang under a separate branch per service. Single-child directory chains are merged into one ring.
- Legend: every method ran, half ran, none ran, never measured, ran with no source, call in the code.
- File card: clicking a dot opens it with Calls, Methods, Ran (share), its methods by state with their lines, and Calls in the code (up to 8 outgoing and 8 incoming files, with call-site counts).
- Find a path: two fields (From and To) that suggest symbols as you type, a follow edges backwards too checkbox (on by default) and Find. The shortest chain is drawn on the galaxy and listed step by step, each step marked traced, in the code, both ran or in the code, never taken.
- Full screen: enlarges the frame; Esc exits.
Code tab: Call graph
The runtime hierarchy, opened one node at a time: service → package → class → method.
- Summary numbers: Methods that ran in the window; Call paths in the code, never taken; Measured, never ran; In the source, never measured. The last two show "—" when no source is indexed.
- Open: a chip per opened node; clicking a chip closes it and everything under it. Close all closes every node.
- Hidden methods notice: when an opened class has more methods than can be drawn, the busiest are drawn and the rest are counted.
- The graph: node size is traffic in the window; node colour is the share of methods that ran (grey when no source is indexed). Grey edges are traced calls, sized by traffic. Thin blue-grey edges are calls in the code where both ends ran. Red edges are calls in the code that were never taken. Hovering or selecting a node dims everything except its neighbours.
- Selected card: the node's level and name, an Open N … button for its children, Calls, Traces, Avg and p95 (shown as
≥when it falls in the open-ended top bucket), an In the source bar (ran, measured but never ran, never measured), Busiest methods (up to 12), Busiest routes at service level (up to 10, with the share of requests whose code the agent recorded, p95 and average), Every method the source has for a class or method (up to 200), and the files involved.
Code tab: Source treemap
The source tree, one folder at a time.
- Summary numbers: Methods under this folder, Ran, at some point, Measured, never ran, Never measured.
- Breadcrumb: starts at source; click a segment to go back up.
- Tiles: sized by the lines their methods span, coloured by how many ever ran. Click a folder or file tile to go in; inside a file the tiles are its methods. Hover a tile for its counts and line range.
Structure tab
The static code map built with graphify.
- Structural map: the build status (not built, queued, building…, ready, failed, unavailable), and when ready the number of files, symbols, edges and communities and when it finished. Below it a hint or the last error. Rebuild asks for a new build.
- Filter toolbar: shown when there are more than 15 hubs or more than 12 communities. A text filter (symbol, file or community), a sort (largest first, least covered first, most files first), fold communities under 3 files (on by default), and a count of communities shown.
- Hubs: the symbols everything leans on: the most connected symbols, with Edges and File coverage. 15 are shown; Show more adds 25.
- Communities: the code as features: clusters of files that belong together by their calls and imports, each with its symbol count,
measured/total files measuredand coverage. 30 are shown; Show more adds 30. - Ask the map: a question box (see below), with the answer as Text or Graph.
How it works
Services tab
- Traffic and hops come from traces recorded by agents, summed from daily roll-ups, so a 90-day window is as complete as a 7-day one. Only services in the project's monitoring selection are drawn; an empty selection means every service.
- Coverage per service is the line coverage of the files its traced methods live in, taken from the newest coverage of each file in the window. Weighted coverage adds up covered and total lines across all drawn services.
- p95 comes from per-method latency histograms with power-of-two millisecond buckets.
- Criticality is a 0–100 score: up to 60 points for traffic relative to the busiest service, plus 8 points per incoming or outgoing hop, capped at 40.
- A service appears under the name its agent reports. Two applications reporting the same service name merge into one node.
Code tab
- What ran comes from the same trace roll-ups: calls, traces and timing per method in the window.
- What exists comes from the source index: methods parsed from the source the agents uploaded and from connected repositories. Each method carries a state: ran (a trace named it or coverage hit a line in it), measured but never ran, or never measured.
- The two are joined by class name and method name. A node with no matching indexed class shows only the traced side.
- Calls in the code come from the call sites the source index found between classes. An edge is "in the code, both ends ran" when both ends have run, and "never taken" when one end never ran.
- Caps: up to 200 methods drawn per opened class, up to 200 opened nodes, up to 4,000 file-to-file edges in the galaxy, and a path search that stops at 8 hops. Results for a window are reused for one minute.
Structure tab and the code map
- The map is built by graphify from the source the agents uploaded, local repositories that are working copies on the server, and connected remote repositories (downloaded as archives). It reads code only (up to 20,000 files) and makes no model call.
- A build is requested automatically when source arrives or a repository is connected. Requests are coalesced: a build starts at least 90 seconds later and no sooner than 10 minutes after the previous build. Rebuild starts one right away. Maps with connected remote repositories are rebuilt on a schedule, every 24 hours by default.
- Hub and community coverage is the line coverage of each file from the newest run that measured it.
- Community names: by default a community is named from its files' directory names. When the project has an AI provider connected, the 60 largest communities with at least two files are named by the model (1 to 3 words). Connecting or removing the AI provider renames the communities right away, without a rebuild.
Asking the map
Ask the map offers four kinds of question:
- Question: a question in words. The map first tries to match your words directly against symbol names. If nothing matches, the words are turned into symbols: by the project's AI provider when one is connected (it picks up to 8 symbols from the map's 400 best-connected ones, in any language), or otherwise by a built-in glossary of common words and the identifiers code uses for them. The traversal then starts from those symbols. With an AI provider, the model also writes the answer in the language of your question, under 200 words, using only what the traversal shows, and lists the symbols it started from. Without one, you get a digest of the files reached grouped by community, in English or Turkish depending on your question.
- Explain a symbol: where a symbol is, its community and what it connects to.
- What a change reaches: what a change to a symbol reaches, following calls and imports backwards two levels.
- Path between two: the shortest chain between two symbols, in either direction.
When the answer can be drawn, Graph shows it left to right in the direction of the calls: each box is a class with the methods the question reached, the stripe is its community, a square-cornered box is UI code. Solid lines are calls, dashed lines are references. show imports adds import links. Click a box to list its methods; click its ? to explain it.
When a question was matched by the glossary, the answer says so and links to Integrations → AI provider. The same questions are available to an assistant over MCP.
Metadata-only projects
A project that keeps metadata only has no code on the server, so the Structure tab is not built: its status says the project keeps metadata only and how to change that. Services and Code keep working: methods come from the outlines the Java agent sends (ranges read from bytecode) and from coverageops outline (parsed, with the calls between classes). Without the CLI outline, a file shows only the calls traces took, not calls in the code.
What you can do
- Switch tabs and the window.
- On Services: change the mode, switch between Cards and Node graph, zoom, pan, drag nodes, fit the view, and click a node for its detail.
- On Code: switch between Galaxy, Call graph and Source treemap. In the galaxy, scroll to zoom, drag to pan, click a ring to enter it, click a dot to open the file, double-click to step out, find a path, and go full screen. In the call graph, click a node to select and open it, and close nodes from the chips. In the treemap, click tiles to go in and use the breadcrumb to go back.
- On Structure: Rebuild the map (needs write access to the project), filter, sort and fold the lists, show more rows, and ask questions. Asking is open to every member.
Limits and good to know
- On the Code tab, the window changes traffic and calls only. Whether a method ran, never ran or was never measured comes from the source index and covers all time.
- The source index parses Java, TypeScript and JavaScript. Code in other languages appears only on the traced side and on the Structure map.
- The service map is drawn at service level only.
- Methods seen on a service's detail counts the methods listed under Hottest methods, which is at most five.
- If graphify is not installed or is turned off on the server, the Structure tab says the map is unavailable and the code map overlays on the Services tab are missing.
- A build fails with an explanation when the files contain no symbols graphify can read, for example minified bundles.