Skip to content

Commit c87f4ce

Browse files
committed
Skip agent-tooling dirs in service detection
The project-tree service scan walked .agents/ and .claude/, which vendor example skill code that references services the project doesn't use. The mcp-builder skill ships an evaluation.py with "from anthropic import Anthropic", which tripped the Anthropic detector on plain Next.js apps. Add .agents and .claude to skipDirs, matching the existing handling of node_modules, vendor, and bundled WordPress plugins.
1 parent 9755fb3 commit c87f4ce

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

internal/config/detect.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,12 @@ func detectAnalyticsScripts(rootDir string, services map[string]bool) {
993993
"public": true, // Common public web root
994994
"wp-admin": true, // WordPress core
995995
"wp-includes": true, // WordPress core
996+
// Agent tooling vendors example skills/scripts that reference services
997+
// the project doesn't actually use (e.g. the mcp-builder skill ships an
998+
// evaluation.py with "from anthropic import Anthropic"). Skip them like
999+
// other bundled third-party code to avoid false positives.
1000+
".agents": true, // vendored agent skills (Claude Code, Cursor, etc.)
1001+
".claude": true, // Claude Code project config and skills
9961002
}
9971003

9981004
// Collect external script URLs to fetch

0 commit comments

Comments
 (0)