Radar
Radar puts what your code actually does next to the design in sysgraph. The sysgraph-scan tool runs in CI: it scans the repository on every main branch build and every pull request and uploads the result here. Your code never reaches sysgraph, only the scan result. Radar works in cloud workspaces, under Radar in the top menu. Local workspaces and Lite have a smaller local Radar.
Setup
- Radar › Add repository.
- Edit the rules in the repository's Settings (below). The tool reads them with a token; no settings file is needed in the repository.
- The workspace owner creates a token under CI tokens. It is shown only once; add it to CI as the secret
SYSGRAPH_TOKEN. The server address (SYSGRAPH_URL) is shown there too. A token can only read the settings and upload results; it can expire and be revoked. - Add the CI step:
--upload --historyon the main branch,--upload --base origin/main --pr-commenton pull requests. Settings shows a ready GitHub Actions example.
An open repository has tabs at the top: Summary, Entry points, Findings, Pull requests, Imports, History and Settings. List pages work like the Endpoints page: a list with search and filters on the left, the selected item's details on the right. The selection is part of the address, so you can share the link.
Summary
The numbers of the last analysis (with the change since the previous one) and the trend across analyses: entry points, total dependencies, findings.
- Coverage:
- entry points in code without an endpoint in sysgraph;
- endpoints in sysgraph not found in code;
- endpoints used in no flow.
- Drift:
- flows imported from code that have changed in code since;
- calls between applications the code makes that no flow shows;
- calls drawn in flows with no counterpart in code;
- hand-drawn flows whose steps differ from the flow in code that starts with the same endpoint: the row shows how many steps are only in the design and only in code, and opens the flow compared with its state in code (Visual comparison).
Import the last analysis into sysgraph opens Importing from code without a file.
Entry points
The list is grouped by application. Next to each entry point: its total dependencies (the classes, other applications and data operations it reaches) and the change since the previous analysis. Filter to changed ones, ones with findings or new ones; sort by dependencies, complexity or name.
Pick an entry point to see:
- Flow: the sequence diagram derived from code, drawn by sysgraph's renderer. Calls to other applications, the message broker and databases appear in order; a database is one participant named after its DbContext in EF Core. Calls inside a loop are in a
loopblock, so N+1 shows up in the diagram too. if / else and switch arms arealt/elseblocks (the condition comes from the code, string literals hidden); a branch with calls in only one arm becomesopt. Every synchronous call gets a response arrow with its return type (e.g.List‹Order›) in the order the code runs; published messages have none. In HTTP endpoints everyreturnanswers the client inside its branch with its status code (return NotFound()→404). Drawing databases can be turned off in Settings › General. If it was imported into sysgraph, a link opens the flow, with a warning when the code has changed since. - In sysgraph: the matching catalog item and endpoint.
- Dependencies across analyses: how much responsibility the endpoint has gathered.
- Outbound calls and this entry point's findings.
Findings
| Rule | When |
|---|---|
| Database call in a loop (N+1) | A loop (foreach, for, while, LINQ Select…) reaches the database directly or through the methods it calls |
| Service call in a loop (N+1) | A loop calls another application |
| Cyclic calls between applications | A calls B and B calls A |
| Blocking wait on async code | .Result, .Wait(), GetAwaiter().GetResult() |
| Query without a limit | A list from a table without Take / First |
| Layer rule violated | A direct call against one of your layer rules |
| Too many dependencies, complex entry point | Above the limits you set |
The list is grouped by severity and can be filtered to open, suppressed or all findings, and by rule. Pick a finding to see its description, call chain and affected entry points. Suppress an intended finding with a reason: it is not reported again, not in pull request comments either. A suppression survives moved code.
Pull requests
Each pull request run shows the affected entry points (direct, indirect, new) and the findings that are new compared with the main branch. With --pr-comment in CI the same goes into one pull request comment, updated on every push.
Switch on sysgraph context in the pull request comment in the repository settings (General) to add what sysgraph knows: for each affected endpoint, the flows that use it, the open projects that cover it and the other applications that call it, with their owner teams. It is off by default because the comment is visible to everyone who can read the repository; person names are never written. When the branch name contains a task key (agent teams), the comment also lists the task's components and endpoints as a checklist (ticked when this pull request changes them) and the entry points outside the task.
Automatic import
When a main branch scan is uploaded, sysgraph imports it into the workspace by itself, with the rules of Importing from code. Nothing is deleted and manual work is kept:
- Applications are matched to catalog items by code name. A new application whose name looks like an item planned in the merged pull request's project is linked to that item and learns its code names. Any other application without a match waits for a decision; so do its endpoints and flows, and flows with a participant that has no match.
- Endpoints and contracts update with field ownership: the fields from code update, what you wrote stays. A new entry point that looks like an endpoint planned in a project is linked to it when the merged pull request belongs to that project; otherwise it waits.
- Flows you haven't edited update. Flows edited by hand wait for your decision; in Settings you can let them merge automatically when there is no conflict. A flow that is open in the editor is not touched. Flows no longer in code are marked, not deleted.
- Projects: a pull request scan is linked to its project by branch name (for example
feature/PRJ-007-pay), so the project page shows the changes. When the pull request is merged, the change is marked as merged in the project. The tool finds the merged pull request in the local git history; no GitHub key is stored in sysgraph.
The Imports tab lists every import with what it changed and what waits. Make decisions opens the scan in the import dialog, where you match applications, link planned endpoints and decide for flows; applying the dialog closes the import, and Decisions made closes it by hand. Undo puts the records an import wrote back to their previous state (records changed since are skipped). Editors also see waiting imports on Home, in the bell and in the email digest (Notifications).
Automatic import is on by default. Turn it off, or choose what it covers, in Settings › Automatic import.
Production metrics
Radar can show how much traffic your endpoints really get. Under Radar › Production metrics add a source (Prometheus, Elastic APM, Dynatrace, New Relic, Application Insights or a file) and, as the workspace owner, create a token for it. A scheduled job runs sysgraph-scan metrics once a day (examples for cron and Kubernetes are shown next to the token): it reads yesterday's summary from your monitoring tool and uploads requests, errors (5xx) and p95 per service, endpoint and service-to-service call. The monitoring address and key stay in the job's environment; sysgraph receives only the summary.
The traffic of the last 7 days then shows up:
- on endpoints (list and details) and catalog items, e.g. "1.2M requests a day · 0.8% errors · p95 140 ms";
- as unused in production on an endpoint whose application gets traffic but the endpoint itself doesn't;
- on a project's affected flows, sorted by traffic within each level, so the busiest flows are reviewed first;
- on Radar findings, so a problem on a busy endpoint stands out.
To review the busiest ones first: on the Endpoints page sort By traffic and filter Production (getting traffic / unused in production). Under Radar › Entry points sort By traffic or By risk (traffic combined with open findings); the repository summary lists the riskiest entry points.
Services are matched with catalog items by code name: add the monitoring tool's service name to the item's code names. For Dynatrace, the grail mode reads every endpoint (no key requests needed); the metrics mode reads services, key requests and an optional calculated metric. New Relic reads OpenTelemetry spans (or APM agent transactions with --nr-data transaction); Application Insights reads AppRequests and AppDependencies through the Log Analytics query API.
Environments
Every source has an environment (default production; for example staging or test), set when you add it and editable in the source's details. Once there is more than one environment, Environment shown picks whose traffic the endpoint, catalog, flow and architecture screens show; it is a personal setting per workspace. Radar's ordering (entry points and findings By traffic / By risk) and the pull request comment always use production.
In pull request comments and exports
- With sysgraph context in the pull request comment on, the comment gets a Production traffic column for the affected endpoints (requests a day, 5xx rate, p95).
- Radar › Findings can be sorted By traffic: findings on the busiest entry points come first, whatever their severity.
- In the architecture view with the traffic lens on, SVG and PNG exports keep the traffic badges, and the draw.io export writes the traffic into the node and arrow labels (arrow width by volume, red when the error rate is high).
Without the cloud
In a local workspace and in Lite, import the daily file under Workspace › Production metrics (sysgraph-scan metrics -o sysgraph-metrics.json writes it; the same day and environment imported again replaces it). The traffic shows in the same places. The metrics stay in that browser and are not part of backups.
Local Radar
In a local workspace and in Lite, Radar in the top menu keeps the sysgraph-scan files you import. Run the tool yourself (dotnet sysgraph-scan.dll path/to/repo -o sysgraph-scan.json) and either choose Add scan file there, or import the file with its content through Endpoints › Import from code — the analysis is saved to the local Radar too.
- Summary: applications, entry points and open findings of the last analysis, new and fixed findings compared with the previous one, and the history of analyses (the last 30 per repository).
- Findings: filter by state, rule and text; Suppress with a reason (kept per repository, also for later analyses) and Unsuppress.
- Entry points: search, sort by dependencies or complexity.
Trend charts, coverage, design drift, production metrics on findings and pull request analyses are calculated on the server, so they are in the cloud Radar only. The local Radar stays in that browser and is not part of backups; Delete removes a repository's analyses.
History
With --history, from the git history:
- Hotspots: files that change often and are complex.
- Change coupling: files that change together, a sign of hidden dependencies.
- Ownership: contributions per module, bus factor and modules that depend on one person (silo).
- Weekly commits.
People are anonymous by default ("Contributor 1"); the settings can show names. Email addresses never arrive.
Settings
Every rule is edited on screen. Settings are split into sections like the Settings page; switching sections keeps your changes and Save writes them all together. A section with missing fields is marked.
- Applications and target names: display name, code names to match the catalog, mapping a host name in code to a code name.
- Custom entry points: triggers in your team's own framework (job scheduler, Kafka listener, your own router). Matched by base type or attribute; the name comes from a template.
- Dependency mapping: classes your code calls indirectly, such as MediatR or a service locator (
Locator.Resolve<IOrderService>(),GetService(typeof(…)),Get("OrderService")). - Outbound calls: your company's own HTTP client or message bus.
- Findings: turn rules on or off, severities, limits, your own data access types, layer rules.
- Git history: number of days and how people are shown.
- Automatic import: on or off, endpoints, flows, linking pull requests to projects, what happens to a flow edited by hand (ask, or merge when there is no conflict), and the language of the folder and version labels.
- AI labels: your own model writes the branch, loop and response texts in flows instead of the code text (e.g. "order not found" instead of "order is null"). The screen only turns it on and sets the language and model; the model address and key stay in your CI's environment (
SYSGRAPH_AI_URL,SYSGRAPH_AI_KEY), so your code goes only to the address you give. sysgraph stores the labels, not the code; unchanged code keeps its label and the model is asked only for changed methods. Any OpenAI-compatible endpoint works: Ollama, llama.cpp, vLLM.
.NET (C#) and Java repositories are supported (Java: Spring, JAX-RS, Micronaut; see Endpoints › Java). The tool is distributed by hand and runs with the .NET 10 runtime.