Pixel office.
This report presents the forensic synthetic code analysis of pixel-agents-hq/pixel-agents, a TypeScript project with 8,772 GitHub stars. SynthScan v2.0 examined 66,514 lines of code across 260 source files, recording 319 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 12.6 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 319 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | core/asyncapi.yaml | 76 | # ── Top-level discriminated unions ──────────────────────────── | COMMENT |
| MEDIUM | core/asyncapi.yaml | 145 | # ── Server message variants ──────────────────────────────────── | COMMENT |
| MEDIUM | core/asyncapi.yaml | 718 | # ── Client message variants ──────────────────────────────────── | COMMENT |
| MEDIUM | core/asyncapi.yaml | 937 | # ── Supporting schemas ───────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/schemas.ts | 12 | // ── Agent State ────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/schemas.ts | 44 | // ── Layout ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/schemas.ts | 88 | // ── Sprites & Assets ───────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/schemas.ts | 120 | // ── Hook Events ────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/schemas.ts | 132 | // ── Disposable ─────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | core/src/constants.ts | 9 | // ── Hook API ───────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | core/src/constants.ts | 16 | // ── Display ────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | core/src/constants.ts | 21 | // ── Transport ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/adapter.ts | 16 | // ── Per-adapter persisted state (agents + seats) ──────────────────── | COMMENT |
| MEDIUM | core/src/adapter.ts | 24 | // ── User-level settings (shared file, namespaced per adapter) ───── | COMMENT |
| MEDIUM | core/src/provider.ts | 12 | // ── Normalized Events (all provider types produce these) ────── | COMMENT |
| MEDIUM | core/src/provider.ts | 65 | // ── Hook-based Provider (CLIs with hooks APIs) ──────────────── | COMMENT |
| MEDIUM | core/src/assets/loader.ts | 21 | // ── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/assets/loader.ts | 35 | // ── Decoders ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/assets/constants.ts | 8 | // ── PNG / Asset Parsing ───────────────────────────────────── | COMMENT |
| MEDIUM | core/src/assets/constants.ts | 21 | // ── Pet Sprite Dimensions (96×96 spritesheet) ────────────── | COMMENT |
| MEDIUM | core/src/assets/constants.ts | 32 | // ── Carpet auto-tile parsing ──────────────────────────────── | COMMENT |
| MEDIUM | core/src/assets/pngDecoder.ts | 35 | // ── Sprite decoding ────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/assets/manifestUtils.ts | 8 | // ── Manifest types ────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/assets/build.ts | 16 | // ── Furniture catalog ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/assets/build.ts | 100 | // ── Asset index ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/configPersistence.test.ts | 27 | // ── parseAreaMappings ──────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/configPersistence.test.ts | 85 | // ── readConfig / writeConfig round-trip ────────────────────── | COMMENT |
| MEDIUM | server/__tests__/backgroundAgents.test.ts | 238 | // ── Unnamed spawn = Sub-agent (shadow-watched) ────────────────────── | COMMENT |
| MEDIUM | server/__tests__/backgroundAgents.test.ts | 435 | // ── Foreground spawns (open Agent tool, no async result) ─────────── | COMMENT |
| MEDIUM | server/__tests__/backgroundAgents.test.ts | 494 | // ── Named spawn = Teammate ────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/backgroundAgents.test.ts | 609 | // ── Shared gate ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 73 | // ── PermissionRequest ─────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 122 | // ── Notification ──────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 160 | // ── Stop ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 208 | // ── hookDelivered ─────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 223 | // ── Buffering ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 293 | // ── Auto-discovery ────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 307 | // ── Dispose ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 315 | // ── SessionStart ──────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 384 | // ── SessionEnd ────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 466 | // ── PreToolUse / PostToolUse ───────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 541 | // ── Pending external session confirmation ──────────────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 585 | // ── Resume ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 687 | // ── Provider-agnostic (optional transcript_path) ──────────── | COMMENT |
| MEDIUM | server/__tests__/hookEventHandler.test.ts | 766 | // ── Basic subagent regression (Agent Teams feature OFF) ───────────── | COMMENT |
| MEDIUM | server/__tests__/fileStateAdapter.test.ts | 102 | // ── Per-namespace state file (agents + seats) ─────────────── | COMMENT |
| MEDIUM | server/__tests__/clientMessageHandler.test.ts | 83 | // ── saveAreaMappings ───────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/clientMessageHandler.test.ts | 128 | // ── setShowAreas ───────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/clientMessageHandler.test.ts | 142 | // ── handleWebviewReady ordering ────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/fileWatcherDismissal.test.ts | 106 | // ── dismissedJsonlFiles: user-close cooldown ─────────────────────── | COMMENT |
| MEDIUM | server/__tests__/fileWatcherDismissal.test.ts | 139 | // ── clearDismissedFiles: permanent block ─────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/fileWatcherDismissal.test.ts | 177 | // ── seededMtimes: mtime-change detection ─────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/fileWatcherDismissal.test.ts | 222 | // ── pendingClearFiles: two-tick delay for /clear content ─────────── | COMMENT |
| MEDIUM | server/__tests__/fileWatcherDismissal.test.ts | 255 | // ── scanForNewJsonlFiles (project-scan helper) ───────────────────── | COMMENT |
| MEDIUM | server/__tests__/fileWatcherDismissal.test.ts | 528 | // ── Constants sanity check ──────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/sessionRouter.test.ts | 18 | // ── Session → Agent mapping ──────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/sessionRouter.test.ts | 43 | // ── Pending external sessions ────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/sessionRouter.test.ts | 68 | // ── Event buffering ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/sessionRouter.test.ts | 114 | // ── Lifecycle ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | server/src/agentStateStore.ts | 52 | // ── Adapter ────────────────────────────────────────────────── | COMMENT |
| 201 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/src/fileWatcher.ts | 572 | export function setTeammateRemovalCallback(cb: (teammateAgentId: number) => void): void { | CODE |
| LOW | server/src/fileWatcher.ts | 582 | export function setTeammateRegisterCallback( | CODE |
| LOW | server/src/fileWatcher.ts | 819 | export function scanForBackgroundAgentFiles( | CODE |
| LOW | server/src/fileWatcher.ts | 950 | export function scanTeamConfigsForRemovals(agents: AgentStateStore): number[] { | CODE |
| LOW | server/src/fileWatcher.ts | 1045 | export function adoptExternalSessionFromHook( | CODE |
| LOW | server/src/fileWatcher.ts | 1235 | export function startExternalSessionScanning( | CODE |
| LOW | server/src/fileWatcher.ts | 1547 | export function startStaleExternalAgentCheck( | CODE |
| LOW | server/src/teamUtils.ts | 49 | export function hasPromotedBackgroundAgent( | CODE |
| LOW | server/src/assetLoader.ts | 522 | export async function loadExternalCharacterSprites( | CODE |
| LOW | server/src/assetLoader.ts | 584 | export function sendCharacterSpritesToWebview( | CODE |
| LOW⚡ | server/src/transcriptParser.ts | 52 | export function setBackgroundAgentDetectedCallback(cb: (leadAgentId: number) => void): void { | CODE |
| LOW⚡ | server/src/transcriptParser.ts | 61 | export function setBackgroundAgentCompletedCallback( | CODE |
| LOW⚡ | server/src/transcriptParser.ts | 71 | export function notifyBackgroundAgentCompleted(leadAgentId: number, toolUseId: string): void { | CODE |
| LOW | webview-ui/src/office/layout/layoutSerializer.ts | 27 | export function layoutToFurnitureInstances(furniture: PlacedFurniture[]): FurnitureInstance[] { | CODE |
| LOW | webview-ui/src/office/sprites/carpetTiles.ts | 238 | function getDualColorizedCarpetSprite( | CODE |
| LOW | scripts/asset-manager.html | 1914 | function updateGroupMembershipDisplay(asset) { | CODE |
| LOW⚡ | scripts/jsonl-viewer.html | 1085 | function openDetailForCurrentSession(jumpToRecord) { | CODE |
| LOW | e2e/global-setup.ts | 91 | function patchProductJsonForWindows(vscodePath: string): void { | CODE |
| LOW | e2e/tests/claude/hooks-off/matrix.spec.ts | 44 | async function expectExternalAgentAdoption(frame: Frame): Promise<void> { | CODE |
| LOW | e2e/tests/claude/hooks-off/carpet.spec.ts | 273 | function firstDefaultFurnitureType(): string { | CODE |
| LOW | e2e/helpers/webview.ts | 497 | export async function configureHookServerTestSettings(frame: WebviewSurface): Promise<void> { | CODE |
| LOW | e2e/helpers/lifecycle.ts | 16 | export function withNamedInlineTeammateSession( | CODE |
| LOW | e2e/helpers/lifecycle.ts | 31 | export function withInlineTeammateSessions( | CODE |
| LOW | e2e/helpers/lifecycle.ts | 42 | export function withInlineTeammateSession( | CODE |
| LOW | e2e/helpers/team.ts | 51 | export function buildAssistantToolUseRecord( | CODE |
| LOW | e2e/helpers/team.ts | 59 | export function buildAssistantToolUseBatchRecord( | CODE |
| LOW | e2e/helpers/team.ts | 88 | export function buildUserToolResultRecord( | CODE |
| LOW | e2e/helpers/team.ts | 95 | export function buildUserToolResultBatchRecord( | CODE |
| LOW | e2e/helpers/team.ts | 117 | export function buildTeammateSpawnResultRecord( | CODE |
| LOW | e2e/helpers/team.ts | 136 | export function buildAsyncAgentLaunchResultRecord(toolUseId: string): Record<string, unknown> { | CODE |
| LOW | e2e/helpers/team.ts | 145 | export function buildBackgroundAgentDoneRecord(toolUseId: string): Record<string, unknown> { | CODE |
| LOW | e2e/helpers/team.ts | 159 | export function buildAssistantUsageRecord(cacheReadTokens: number): Record<string, unknown> { | CODE |
| LOW | e2e/helpers/external-monitor.ts | 15 | export function getExternalNarrationLogPath(tmpHome: string): string { | CODE |
| LOW | e2e/helpers/mock-claude.ts | 280 | export async function arrangeNextClaudeInvocation( | CODE |
| LOW | e2e/helpers/mock-claude.ts | 327 | export async function killTrackedExternalProcesses(): Promise<void> { | CODE |
| LOW | e2e/helpers/mock-claude.ts | 340 | export async function spawnExternalClaudeScenario(options: { | CODE |
| LOW | e2e/helpers/hooks.ts | 197 | export function notificationPermissionPrompt(sessionId: string): HookEventPayload { | CODE |
| LOW | e2e/helpers/internal-agent.ts | 59 | export async function spawnInternalAgentAndWait( | CODE |
| LOW | e2e/helpers/internal-agent.ts | 108 | export async function spawnInternalAgentAndWaitForInvocation( | CODE |
| LOW | e2e/helpers/office.ts | 71 | export async function expectOverlayVisibleWithTexts( | CODE |
| LOW | e2e/helpers/office.ts | 79 | export async function expectOverlayVisibleForAgent( | CODE |
| LOW | e2e/helpers/office.ts | 188 | export async function expectTeammateSeatedNextToLead( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .gitleaks.toml | 1 | # Gitleaks configuration | COMMENT |
| LOW | server/src/fileWatcher.ts | 1161 | // mock-claude scenarios: tool_use at t=1s, scanner ticks at t=3s). If we | COMMENT |
| LOW | server/src/fileWatcher.ts | 1381 | // external adoption. Newer harnesses run each spawned agent as its own | COMMENT |
| LOW | webview-ui/src/office/engine/existingAgents.ts | 1 | // webview-ui/src/office/engine/existingAgents.ts | COMMENT |
| LOW | scripts/asset-manager.html | 61 | .add-mode-bar { padding: 5px 10px; background: #1a3a1a; border-bottom: 1px solid #2a5a2a; display: flex; gap: 10px; | COMMENT |
| LOW | e2e/playwright.config.ts | 41 | }, | COMMENT |
| LOW | e2e/tests/claude/hooks-off/lifecycle.spec.ts | 121 | // but the user immediately types /resume (or aborts and runs claude --resume) | COMMENT |
| LOW | e2e/tests/claude/hooks-off/lifecycle.spec.ts | 781 | // | COMMENT |
| LOW | e2e/tests/claude/hooks-off/lifecycle.spec.ts | 861 | }); | COMMENT |
| LOW | e2e/tests/claude/hooks-on/lifecycle.spec.ts | 1101 | }); | COMMENT |
| LOW | e2e/tests/claude/hooks-on/lifecycle.spec.ts | 1361 | { timeout: 5_000 }, | COMMENT |
| LOW | e2e/tests/claude/hooks-on/lifecycle.spec.ts | 1561 | }); | COMMENT |
| LOW | e2e/tests/claude/hooks-on/lifecycle.spec.ts | 1601 | }); | COMMENT |
| LOW | e2e/helpers/launch.ts | 121 | // processes see the long path via %CD%. .native uses GetFinalPathNameByHandleW | COMMENT |
| LOW | e2e/helpers/launch.ts | 201 | // VS Code user settings for the isolated profile. Together with | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CHANGELOG.md | 9 | - **Context gauge on every agent** ([#351](https://github.com/pixel-agents-hq/pixel-agents/pull/351)) — Shows each agent | CODE |