Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added images/platform/insights/dependencies-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion platform/insights.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Code Insights is available on every plan, including Free. See [Plans and pricing

## Hand an insight to your agent

Every card in [Findings](/platform/insights/findings) and [Repository health](/platform/insights/repository-health), and each row in [Different versions in use](/platform/insights/dependencies), has **Copy fix prompt for my agent**. Paste it into Claude Code, Cursor, Codex or any coding agent. The prompt includes:
Every card in [Findings](/platform/insights/findings) and [Repository health](/platform/insights/repository-health), and each row in [Version drift](/platform/insights/dependencies), has **Copy fix prompt for my agent**. Paste it into Claude Code, Cursor, Codex or any coding agent. The prompt includes:

- the repository, and the Git revision that was analyzed
- the file, lines and commit behind the insight
Expand Down
31 changes: 26 additions & 5 deletions platform/insights/dependencies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,38 @@
title: "Dependencies in Code Insights"
sidebarTitle: "Dependencies"
description: "See every declared package and where the same library is pinned to different versions across repositories."
keywords: ["dependency inventory", "dependency version skew", "different versions in use", "all dependencies", "package versions"]
keywords: ["dependency inventory", "dependency version skew", "version drift", "different versions in use", "all dependencies", "package versions"]
surface: "cloud"
icon: "package"
---

**Dependencies** in [Code Insights](/platform/insights) lists every package your repositories declare, read from their dependency files on each index.
**Dependencies** in [Code Insights](/platform/insights) lists every package your repositories declare, read from their dependency files on each index. It sits with **Findings**, **Repository health**, **Trends**, and **PR checks**.

- **Different versions in use** lists packages pinned to different versions in different repositories, with that sentence under the title. Each row reads like "requests is on 3 versions across 5 repositories" and has **Copy fix prompt for my agent**. This is version skew: the same library can behave differently from one service to the next.
- **All dependencies** lists every package and version, plus the manifest or lockfile and line where it's declared. Use **Search packages by name**, or pick one repository. **More** loads the next page.
<img src="/images/platform/insights/dependencies-light.png" alt="Code Insights Dependencies tab for Graphify-Labs/graphify, with All dependencies, package versions, manifest locations, and version drift badges" width="1700" height="1000" className="block h-auto w-full rounded-lg" />

**What to do.** Start with **Different versions in use**. Agree on one version, then ask your agent to update each repository and run its tests. The fix prompt tells the agent to investigate first and not to change code until you say so. See [Hand an insight to your agent](/platform/insights#hand-an-insight-to-your-agent).
Use **Search packages…** and **Search** to find a package by name. Four dropdowns sit to the right of search:

- Repository, which defaults to **All repositories**
- Ecosystem: **npm**, **PyPI**, **crates**, **Go**, **Maven**
- Kind: **Runtime**, **Dev**, **Optional**
- Packages: **All packages** or **Drifted only**

Two sub-tabs sit under the filters: **All dependencies** and **Version drift**. **Version drift** shows a count badge.

## All dependencies

When you pick a repository, the list says "Dependencies declared in this repository." Each row shows the package and version, then the ecosystem, kind and group, then the manifest or lockfile and line where it's declared, for example `pyproject.toml:145` or `uv.lock:26`. Some rows carry a badge such as "2 versions across 2 repositories."

## Version drift

**Version drift** is version skew: the same library can behave differently from one service to the next.

- When one repository is selected, the list says "Packages in this repository that are pinned to a different version in another repository."
- When **All repositories** is selected, it says "Packages pinned to different versions in different repositories."

Each row lists every version, the repositories pinned to that version, and **Copy fix prompt for my agent**.

**What to do.** Start with **Version drift**. Agree on one version, then ask your agent to update each repository and run its tests. The fix prompt tells the agent to investigate first and not to change code until you say so. See [Hand an insight to your agent](/platform/insights#hand-an-insight-to-your-agent).

If the tab says dependencies aren't available yet, wait for the next index, or check the build on [Repositories](/platform/repositories).

Expand Down
Loading