Pixel office.
This report summarizes scanner evidence for pixel-agents-hq/pixel-agents, a TypeScript project with 9,643 GitHub stars. SynthScan examined 74,914 lines of code across 286 source files, recording 344 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 11.9 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 69 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 322 finding(s).
Which changes need focused human review? 344 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 344 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | core/asyncapi.yaml | 76 | # ── Top-level discriminated unions ──────────────────────────── | COMMENT |
| MEDIUM | core/asyncapi.yaml | 149 | # ── Server message variants ──────────────────────────────────── | COMMENT |
| MEDIUM | core/asyncapi.yaml | 789 | # ── Client message variants ──────────────────────────────────── | COMMENT |
| MEDIUM | core/asyncapi.yaml | 1067 | # ── Supporting schemas ───────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/schemas.ts | 12 | // ── Agent State ────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/schemas.ts | 49 | // ── Layout ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/schemas.ts | 93 | // ── Sprites & Assets ───────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/schemas.ts | 125 | // ── Hook Events ────────────────────────────────────────────── | COMMENT |
| MEDIUM | core/src/schemas.ts | 137 | // ── 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 | 39 | // ── parseAreaMappings ──────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/configPersistence.test.ts | 97 | // ── per-provider hooks consent + preference ────────────────── | COMMENT |
| MEDIUM | server/__tests__/configPersistence.test.ts | 220 | // ── 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__/consentFlow.test.ts | 97 | // ── hooksConsentRequest: who is asked, and on what terms ───── | COMMENT |
| MEDIUM | server/__tests__/consentFlow.test.ts | 167 | // ── hooksConsentResponse: what each answer writes ──────────── | COMMENT |
| MEDIUM | server/__tests__/claudeHookInstaller.test.ts | 463 | // ── W1: the write path throws instead of logging ────────────── | COMMENT |
| MEDIUM | server/__tests__/claudeHookInstaller.test.ts | 756 | // ── W3: exact-suffix hook identity ──────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/claudeHookInstaller.test.ts | 914 | // ── W4: event-scope reduction + stale-install migration ─────── | 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 | 109 | // ── Per-namespace state file (agents + seats) ─────────────── | COMMENT |
| MEDIUM | server/__tests__/clientMessageHandler.test.ts | 90 | // ── saveAreaMappings ───────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/clientMessageHandler.test.ts | 135 | // ── setShowAreas ───────────────────────────────────────────── | COMMENT |
| MEDIUM | server/__tests__/clientMessageHandler.test.ts | 182 | // ── setHooksEnabled: preference vs reality ─────────────────── | COMMENT |
| MEDIUM | server/__tests__/clientMessageHandler.test.ts | 294 | // ── 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 |
| 215 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/src/fileWatcher.ts | 574 | export function setTeammateRemovalCallback(cb: (teammateAgentId: number) => void): void { | CODE |
| LOW | server/src/fileWatcher.ts | 584 | export function setTeammateRegisterCallback( | CODE |
| LOW | server/src/fileWatcher.ts | 827 | export function scanForBackgroundAgentFiles( | CODE |
| LOW | server/src/fileWatcher.ts | 964 | export function scanTeamConfigsForRemovals(agents: AgentStateStore): number[] { | CODE |
| LOW | server/src/fileWatcher.ts | 1059 | export function adoptExternalSessionFromHook( | CODE |
| LOW | server/src/fileWatcher.ts | 1251 | export function startExternalSessionScanning( | CODE |
| LOW | server/src/fileWatcher.ts | 1563 | 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 | server/src/providers/hook/claude/claudeHookInstaller.ts | 67 | export function settingsNonArrayEventMessage(event: string): string { | CODE |
| LOW | server/src/providers/hook/claude/claudeHookInstaller.ts | 207 | export function settingsUnusableBackupMessage(backupPath: string): string { | 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 | webview-ui/src/office/engine/renderer.ts | 94 | export function isGhostHeadlessAgentsEnabled(): boolean { | CODE |
| LOW | webview-ui/src/components/introBubbleGeometry.ts | 52 | export function computeIntroBubbleGeometry(frame: IntroBubbleFrame): IntroBubbleGeometry { | 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/intro.ts | 17 | export async function advanceIntroToConsentStep(dialog: Locator): Promise<void> { | CODE |
| LOW | e2e/helpers/webview.ts | 535 | 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 | 222 | 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 | 221 | export async function expectTeammateSeatedNextToLead( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .gitleaks.toml | 1 | # Gitleaks configuration | COMMENT |
| LOW | server/__tests__/claudeHookInstaller.test.ts | 421 | expect(fs.existsSync(backupPath)).toBe(true); | COMMENT |
| LOW | server/src/fileWatcher.ts | 1181 | // | COMMENT |
| LOW | server/src/cli.ts | 241 | currentConfig = { port: config.port, token: config.token }; | COMMENT |
| LOW | server/src/providers/hook/claude/claudeHookInstaller.ts | 241 | // verify below pins: if the file gained user content after our read, the | COMMENT |
| LOW | server/src/providers/hook/claude/claudeHookInstaller.ts | 621 | throw new Error(SETTINGS_HOOKS_NOT_OBJECT_MESSAGE); | 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/consent.spec.ts | 361 | await finishIntro(dialog); | COMMENT |
| LOW | e2e/tests/claude/hooks-on/basic.spec.ts | 101 | narrator.check('the agent shows a 9% context gauge; the subtask has none'); | 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 | await expectOverlayVisible(frame, 'Reading foo.ts'); | COMMENT |
| LOW | e2e/tests/claude/hooks-on/lifecycle.spec.ts | 1601 | await closeBottomPanel(window); | COMMENT |
| LOW | e2e/helpers/launch.ts | 81 | // Pre-seed user-level config/layout under the isolated HOME, BEFORE VS Code | COMMENT |
| LOW | e2e/helpers/launch.ts | 141 | COMMENT | |
| LOW | e2e/helpers/launch.ts | 221 | fs.chmodSync(mockClaudeBinaryPath, 0o755); | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CHANGELOG.md | 33 | - **Context gauge on every agent** ([#351](https://github.com/pixel-agents-hq/pixel-agents/pull/351)) — Shows each agent | CODE |