What the agent does
The agent cloned pocketbase/pocketbase, confirmed go build ./... and go test ./tools/... ./core/... pass, then resolved the graph with go list -m all and go mod graph, fetching 38 graph-only modules with go mod download. It classified each module by keyword matching on its LICENSE text, not an SPDX scanner, and read npm licenses from the license field in ui/package-lock.json.
licenses.csv has 133 rows (80 Go modules, 53 npm packages) with an added ecosystem column, the shortest path from the root, and a [not in build of this repo] tag on modules no package imports. licenses.md lists the flags and the weak copyleft worth knowing. modernc.org/sqlite first matched AGPL; that text is MPL-2.0's definition of "Secondary License" in its LICENSE-3RD-PARTY.md, so the agent dismissed it.
Start it with one API call
POST https://api.phoenix.so/o/{org}/sessions with this body:
{
"agent": "claude",
"input": "Clone https://github.com/pocketbase/pocketbase, resolve its full dependency tree from the lockfile, and write licenses.csv (package, version, license, direct or transitive, path from the root) plus licenses.md summarizing any GPL, AGPL, LGPL, SSPL or unknown license and which top-level dependency brings it in."
}- Get an API key. In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
- Send the request. POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
- Read what came back. Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.
What comes back
Tried on pocketbase/pocketbase at 7f2773ec: no code change; 2 report files, licenses.csv (134 lines) and licenses.md (25 lines). The flagged section reads **None found.** Every package resolved to a license; no row is unknown. Four MPL-2.0 entries are listed: modernc.org/sqlite (direct, in the build), go-sql-driver/mysql via pocketbase/dbx, hashicorp/golang-lru/v2 via modernc.org/sqlite and modernc.org/libc, and lightningcss with 11 platform binaries via vite, dev-only. On the clone, go build ./... exited 0 and go test ./tools/... ./core/... passed, including ok github.com/pocketbase/pocketbase/core 12.342s; with the report written, only go build was re-run. Both files were copied to /workspace/.rush/artifacts/ and returned to the caller as session artifacts.
For the reviewer: whether the npm rows belong, since the UI ships prebuilt in ui/dist. Detection is a heuristic, and the modernc.org/sqlite row shows it: that module's LICENSE is BSD-3-Clause, and its third-party file puts MPL-2.0 only on modules not compiled in. The run did not build the UI.
Run it on every merge that changes go.mod
Your CI sends this request to POST /o/{org}/sessions with an API key after a merge that touches go.mod or go.sum, naming your repository in place of PocketBase's, so no connected repository is needed. On the key's webhook it downloads licenses.csv and licenses.md from the session's artifacts by name.
The use case this job follows, with its automation and trigger: Produce a report or file, no repo.
Why run it on Rush?
A plain text search flags PocketBase's SQLite driver as AGPL. The run checked the matched line, found it was MPL-2.0 boilerplate, and wrote the dismissal into the report, so a compliance reader sees why the most likely false alarm is not one.
Frequently asked questions
Is the license column SPDX-accurate?
Not guaranteed. Go licenses come from the agent's own keyword matching on LICENSE files, so several files give a combined value like BSD-3-Clause/MIT. npm licenses are the lockfile's declared field only, not read from package contents.
Does the path column show every route to a module?
No, only the shortest path in the module graph. The report's Limits section notes that gopkg.in/yaml.v2 is in the build list but unreachable in the pruned graph.