AI Slop Code RIsk Monitor

letta-ai/letta-code

Stateful agents that are like people, with memory, identity, and the ability to learn and adapt

5.8 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for letta-ai/letta-code, a TypeScript project with 3,574 GitHub stars. SynthScan examined 645,365 lines of code across 2497 source files, recording 2910 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 5.8 (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.

5.8
Adjusted Signal
5.8
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
3.6K
Stars
TypeScript
Language
645.4K
Lines of Code
2.5K
Files
2.9K
Pattern Hits
2026-10-12
Scan Date
0.01
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 18.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 2568 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

Are imports declared and package/API names verified? 21 finding(s).

Agent Over-Engineering Ratio 24.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 2809 finding(s).

PR Review Velocity Impact 24.6/100 · LOW

Which changes need focused human review? 2910 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 5HIGH 10MEDIUM 317LOW 2578

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 2910 distinct pattern matches across 15 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.

Hyper-Verbose Identifiers2488 hits · 2568 pts
SeverityFileLineSnippetContext
LOWbuild.js47function rewriteDeclarationAliases(typesRoot) {CODE
LOWdocs/examples/mods/memory-citations.ts65function looksLikeMemoryRelativePath(value: string): boolean {CODE
LOWdocs/examples/mods/memory-citations.ts122function extractBashMemoryReferences(CODE
LOWdocs/examples/mods/memory-citations.ts193function createCitationInstruction(): string {CODE
LOWhooks/memory_logger.py58def get_api_key_from_keychain() -> Optional[str]:CODE
LOWscripts/check-skill-frontmatter.js53function checkSkillFrontmatterName(content) {CODE
LOWscripts/codex-watch/tracker.ts90export function validateLegacyCodexAuditCursor(CODE
LOWscripts/codex-watch/tracker.ts362function isAuditCursorSupportEntry(CODE
LOWscripts/codex-watch/release-analysis.ts290export function findLatestStableReleaseAfter(CODE
LOWscripts/claude-watch/state-branch.ts61export function loadStateSnapshotAtCommit(CODE
LOWscripts/claude-watch/runtime-probe.ts106export function isClaudeProbeContractCurrent(CODE
LOWscripts/claude-watch/runtime-probe.ts166export function createClaudeRuntimeCommandPlan(CODE
LOWscripts/claude-watch/release-analysis.ts117export function rebuildClaudeAnalysisFromState(CODE
LOWscripts/claude-watch/release-source.ts54export function normalizeGitHubReleaseTag(tag: string): string {CODE
LOWscripts/claude-watch/release-source.ts77function compareTimestampsThenVersions(CODE
LOWscripts/claude-watch/release-source.ts88export function parseClaudeGitHubReleases(CODE
LOWscripts/claude-watch/release-source.ts204export function selectClaudeReleaseCandidate(CODE
LOWscripts/claude-watch/release-source.ts376export async function fetchClaudeGitHubReleases(CODE
LOWscripts/pi-ai-watch/release-analysis.ts206export function findLatestStableReleaseAfter(CODE
LOWscripts/pi-ai-watch/release-analysis.ts245function findPreviousStableRelease(CODE
LOWscripts/builtin-skills-watch/reconcile-results.ts157export function selectCanonicalPullRequest(CODE
LOWscripts/builtin-skills-watch/reconcile-results.ts180function findCandidatePullRequests(CODE
LOWscripts/builtin-skills-watch/reconcile-results.ts210function closeDuplicatePullRequest(CODE
LOWscripts/builtin-skills-watch/tracker.ts211function terminalOutcomeForCandidate(CODE
LOWscripts/builtin-skills-watch/update-tracker.ts407export function verifyReconciledPullRequest(CODE
LOWscripts/builtin-skills-watch/update-tracker.ts424function verifyPullRequestIdentity(expectedGithubLogin: string): void {CODE
LOWscripts/builtin-skills-watch/update-tracker.ts451function verifyPullRequestAncestry(CODE
LOWscripts/builtin-skills-watch/update-tracker.ts483export function validateReconciledPullRequestView(CODE
LOWscripts/builtin-skills-watch/aggregate-results.ts235export function buildEvidenceCommentBatches(CODE
LOWscripts/builtin-skills-watch/analysis.ts44export function listBuiltinSkillsAtCommit(commit: string): string[] {CODE
LOWscripts/builtin-skills-watch/analysis.ts62export function collectSkillFilesAtCommit(CODE
LOWsrc/headless-listener-launch.ts99export async function cancelAcceptedListenerInput(CODE
LOWsrc/headless-listener-launch.ts144export async function launchListenerConversation(CODE
LOWsrc/runtime-version.ts6export function assertSupportedBunRuntime(CODE
LOWsrc/memory-confinement.ts22export function createMemoryConfinementLauncher(CODE
LOWsrc/mcp-oauth-identity.ts15function hashMcpOAuthCredentialKey(CODE
LOWsrc/mcp-oauth-identity.ts40export function legacyMcpOAuthCredentialKeys(CODE
LOWsrc/headless-message-sender.ts5export function buildHeadlessSenderReminder(CODE
LOWsrc/headless-response-state.ts9export function createHeadlessResponseState() {CODE
LOWsrc/headless-backend-lifecycle.test.ts13function expectManagedPromptUpdatesViaBackend(source: string): void {CODE
LOWsrc/mcp-oauth.ts164export async function createMcpOAuthSessionWithStorage(CODE
LOWsrc/mcp-oauth.ts757function retainCredentialCoordinator(coordinationKey: string): void {CODE
LOWsrc/mcp-oauth.ts761async function releaseCredentialCoordinator(CODE
LOWsrc/mcp-oauth.ts850export async function migrateLegacyMcpOAuthCredentials(CODE
LOWsrc/managed-cloud-runtime.ts10export function markManagedCloudRuntimeFromListenerIdentity(CODE
LOWsrc/headless-reflection-settings.ts14export async function applyHeadlessReflectionOverrides(CODE
LOWsrc/mcp-oauth-public.ts79export async function authorizeMcpServerWithStorage(CODE
LOWsrc/headless-memfs-policy.ts14export function resolveHeadlessMemfsPolicy(CODE
LOWsrc/startup-auto-update.ts7export function startStartupAutoUpdateCheck(CODE
LOWsrc/settings-manager.ts202export function shouldPersistSessionState(): boolean {CODE
LOWsrc/settings-manager.ts223function getLocalBackendSettingsKey(): string {CODE
LOWsrc/settings-manager.ts231function isAgentIdCompatibleWithServerKey(CODE
LOWsrc/settings-manager.ts243function isSessionCompatibleWithServerKey(CODE
LOWsrc/settings-manager.ts257function shouldSkipLegacyLocalBackendSessionFallback(): boolean {CODE
LOWsrc/memory-frontmatter.ts18export function validateMemoryFileFrontmatter({CODE
LOWsrc/maintainability-checks.test.ts143 "export function resolveSlackAccountDisplayName(): string { return 'Slack'; }\n",CODE
LOWsrc/headless-environment-response.ts45export function buildEnvironmentResponseMetadata(params: {CODE
LOWsrc/headless-environment-response.ts65export function buildEnvironmentLaunchResult(CODE
LOWsrc/headless-environment-response.ts106export function isCloudEnvironmentSelector(CODE
LOWsrc/headless-environment-response.ts114export function getEnvironmentRoutedMessagingUnsupportedReason(CODE
2428 more matches not shown…
Decorative Section Separators307 hits · 945 pts
SeverityFileLineSnippetContext
MEDIUM⚡hooks/memory_logger.py160# =============================================================================COMMENT
MEDIUM⚡hooks/memory_logger.py162# =============================================================================COMMENT
MEDIUMhooks/memory_logger.py32# =============================================================================COMMENT
MEDIUMhooks/memory_logger.py34# =============================================================================COMMENT
MEDIUMhooks/memory_logger.py110# =============================================================================COMMENT
MEDIUMhooks/memory_logger.py112# =============================================================================COMMENT
MEDIUMhooks/memory_logger.py249# =============================================================================COMMENT
MEDIUMhooks/memory_logger.py251# =============================================================================COMMENT
MEDIUMhooks/memory_logger.py313# =============================================================================COMMENT
MEDIUMhooks/memory_logger.py315# =============================================================================COMMENT
MEDIUMhooks/memory_logger.py371# =============================================================================COMMENT
MEDIUMhooks/memory_logger.py373# =============================================================================COMMENT
MEDIUMhooks/memory_logger.py584# =============================================================================COMMENT
MEDIUMhooks/memory_logger.py586# =============================================================================COMMENT
MEDIUMsrc/discord-debounce.test.ts8// ── resolveDiscordInboundDebounceMs ───────────────────────────────────COMMENT
MEDIUMsrc/discord-debounce.test.ts130// ── buildDiscordDebounceKey ───────────────────────────────────────────COMMENT
MEDIUMsrc/headless-queue-lifecycle.test.ts26// ── Helpers mirroring production logic ───────────────────────────COMMENT
MEDIUMsrc/headless-queue-lifecycle.test.ts72// ── Shared queue builder ──────────────────────────────────────────COMMENT
MEDIUMsrc/headless-queue-lifecycle.test.ts145// ── Tests ─────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/headless.ts3462 // ── Queue lifecycle tracking (stream-json only) ────────────────COMMENT
MEDIUMsrc/websocket/app-server-openai-tools.ts45// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/app-server-openai-tools.ts47// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/app-server-openai-tools.ts99// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/app-server-openai-tools.ts101// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/app-server-openai-tools.ts113// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/app-server-openai-tools.ts115// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/app-server-openai-tools.ts290// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/app-server-openai-tools.ts292// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/app-server-openai-tools.test.ts10// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/app-server-openai-tools.test.ts12// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/app-server-openai-tools.test.ts126// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/app-server-openai-tools.test.ts128// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/listen-queue-events.test.ts26// ── Helpers ───────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/listen-queue-events.test.ts121// ── Tests ─────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/terminal-handler.ts122// ── Bun spawn ──────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/terminal-handler.ts201// ── node-pty spawn (Node.js / Electron) ───────────────────────────────────COMMENT
MEDIUMsrc/websocket/terminal-handler.ts269// ── Public API ─────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/listener/worktree-watcher.ts112// ─── Internal ────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/listener/grep-in-files.ts20// ── Ripgrep binary resolution ──────────────────────────────────────COMMENT
MEDIUMsrc/websocket/listener/grep-in-files.ts36// ── Ripgrep JSON stream shapes ─────────────────────────────────────COMMENT
MEDIUMsrc/websocket/listener/grep-in-files.ts84// ── Public API ─────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/listener/grep-in-files.ts157// ── Execution ──────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/listener/grep-in-files.ts191// ── Parsing ────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/listener/grep-in-files.ts338// ── Helpers ────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts436 // ── Enable memfs command ────────────────────────────────────────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts487 // ── Memory history (git log for a specific file) ─────────────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts541 // ── Memory file at ref (git show for content at a commit) ────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts594 // ── Memory commit diff (git show for full commit patch) ────────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts645 // ── Read a file from the MemFS working tree ───────────────────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts749 // ── Write a file into MemFS (durable agent memory write + commit) ───────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts781 // ── Validate relative path ─────────────────────────────────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts803 // ── Ensure MemFS is enabled and checked out ───────────────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts821 // ── Decode + write bytes (binary-safe for base64) ──────────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts836 // ── Resolve agent identity for the commit author ───────────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts882 // ── Notify UI so the memory view auto-refreshes ────────────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts927 // ── Delete a file from MemFS (durable agent memory delete + commit) ──────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts959 // ── Validate relative path ─────────────────────────────────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts981 // ── Ensure MemFS is enabled and checked out ───────────────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts1001 // ── Idempotent delete: missing file is a no-op success ─────────COMMENT
MEDIUMsrc/websocket/listener/commands/memory.ts1032 // ── Resolve agent identity for the commit author ───────────────COMMENT
247 more matches not shown…
Structural Annotation Overuse28 hits · 51 pts
SeverityFileLineSnippetContext
LOW.skills/adding-models/SKILL.md20### Step 1: Find Valid Model HandlesCOMMENT
LOW.skills/adding-models/SKILL.md60### Step 2: Update the Owning CatalogCOMMENT
LOW.skills/adding-models/SKILL.md73### Step 3: Test the ModelCOMMENT
LOW.skills/adding-models/SKILL.md86### Step 4: Add to CI Test Matrix (Optional)COMMENT
LOW⚡src/integration-tests/lazy-approval-recovery.test.ts199 // Step 1: Wait for init, then send bash trigger promptCOMMENT
LOW⚡src/integration-tests/lazy-approval-recovery.test.ts206 // Step 2: A tool_call_message signals a tool was invoked. Approval-flowCOMMENT
LOWsrc/agent/resolve-startup-agent.ts83 // Step 1: Resume the last agent used in this project. Project continuityCOMMENT
LOW⚡src/agent/resolve-startup-agent.ts94 // Step 2: Pinned agentCOMMENT
LOW⚡src/agent/resolve-startup-agent.ts102 // Step 3: Multiple existing pins should ask instead of picking implicitly.COMMENT
LOW⚡src/agent/resolve-startup-agent.ts108 // Step 4: Global LRU (directory-switching fallback)COMMENT
LOW⚡src/agent/resolve-startup-agent.ts127 // Step 5: Custom API model pickerCOMMENT
LOW⚡src/agent/resolve-startup-agent.ts132 // Step 6: Show selector if any pinned agents existCOMMENT
LOW⚡src/agent/resolve-startup-agent.ts137 // Step 7: True fresh user — create default agentCOMMENT
LOWsrc/skills/builtin/creating-skills/SKILL.md214### Step 1: Understanding the Skill with Concrete ExamplesCOMMENT
LOWsrc/skills/builtin/creating-skills/SKILL.md231### Step 2: Planning the Reusable Skill ContentsCOMMENT
LOWsrc/skills/builtin/creating-skills/SKILL.md255### Step 3: Initializing the SkillCOMMENT
LOWsrc/skills/builtin/creating-skills/SKILL.md279### Step 4: Edit the SkillCOMMENT
LOWsrc/skills/builtin/creating-skills/SKILL.md334### Step 5: Packaging a SkillCOMMENT
LOWsrc/skills/builtin/creating-skills/SKILL.md361### Step 6: IterateCOMMENT
LOWsrc/skills/builtin/migrating-memory/SKILL.md64### Step 1: Identify Source AgentCOMMENT
LOW⚡src/channels/telegram/setup.ts34 // Step 1: Get tokenCOMMENT
LOW⚡src/channels/telegram/setup.ts41 // Step 2: Validate tokenCOMMENT
LOWsrc/channels/telegram/setup.ts55 // Step 3: Choose DM policyCOMMENT
LOWsrc/channels/telegram/setup.ts80 // Step 4: Allowlist if neededCOMMENT
LOWsrc/channels/telegram/setup.ts114 // Step 5: Write accountCOMMENT
LOW⚡src/channels/whatsapp/reactions-adapter.test.ts744 // Step 1: send outbound text — populates sentMessageIds + messageStore.COMMENT
LOW⚡src/channels/whatsapp/reactions-adapter.test.ts752 // Step 2: emit outbound upsert echo — sentMessageIds entry consumed,COMMENT
LOWsrc/channels/whatsapp/reactions-adapter.test.ts766 // Step 3: emit real-shape LID reaction with target.fromMe: false.COMMENT
Hallucination Indicators5 hits · 50 pts
SeverityFileLineSnippetContext
CRITICALsrc/web/memory-viewer-template.txt964!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?defCODE
CRITICALsrc/channels/slack/status-lifecycle.test.ts61 getSlackWriteClient().assistant.threads.setStatus.mock.calls.map(CODE
CRITICALsrc/channels/slack/status-lifecycle.test.ts127 const last = slack.assistant.threads.setStatus.mock.calls.at(-1)?.[0];CODE
CRITICALsrc/channels/slack/status-lifecycle.test.ts133 expect(slack.assistant.threads.setStatus.mock.calls.at(-1)?.[0]).toEqual(CODE
CRITICALsrc/channels/slack/adapter-test-harness.ts403 instance.client.assistant.threads.setStatus.mockClear();CODE
Empty Error Handlers8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHhooks/memory_logger.py53except (json.JSONDecodeError, IOError):CODE
HIGHhooks/memory_logger.py76except (subprocess.TimeoutExpired, FileNotFoundError, OSError):CODE
HIGHhooks/memory_logger.py260except (json.JSONDecodeError, IOError):CODE
HIGHhooks/memory_logger.py307except (json.JSONDecodeError, IOError):CODE
HIGHhooks/memory_logger.py401except (json.JSONDecodeError, IOError):CODE
HIGHhooks/memory_logger.py597except (json.JSONDecodeError, IOError):CODE
HIGHhooks/memory_logger.py147except Exception:CODE
HIGH…s/builtin/self-configuration/scripts/add_permission.py78except OSError:CODE
Verbosity Indicators17 hits · 34 pts
SeverityFileLineSnippetContext
LOW⚡src/integration-tests/lazy-approval-recovery.test.ts199 // Step 1: Wait for init, then send bash trigger promptCOMMENT
LOW⚡src/integration-tests/lazy-approval-recovery.test.ts206 // Step 2: A tool_call_message signals a tool was invoked. Approval-flowCOMMENT
LOWsrc/agent/resolve-startup-agent.ts83 // Step 1: Resume the last agent used in this project. Project continuityCOMMENT
LOW⚡src/agent/resolve-startup-agent.ts94 // Step 2: Pinned agentCOMMENT
LOW⚡src/agent/resolve-startup-agent.ts102 // Step 3: Multiple existing pins should ask instead of picking implicitly.COMMENT
LOW⚡src/agent/resolve-startup-agent.ts108 // Step 4: Global LRU (directory-switching fallback)COMMENT
LOW⚡src/agent/resolve-startup-agent.ts127 // Step 5: Custom API model pickerCOMMENT
LOW⚡src/agent/resolve-startup-agent.ts132 // Step 6: Show selector if any pinned agents existCOMMENT
LOW⚡src/agent/resolve-startup-agent.ts137 // Step 7: True fresh user — create default agentCOMMENT
LOW⚡src/channels/telegram/setup.ts34 // Step 1: Get tokenCOMMENT
LOW⚡src/channels/telegram/setup.ts41 // Step 2: Validate tokenCOMMENT
LOWsrc/channels/telegram/setup.ts55 // Step 3: Choose DM policyCOMMENT
LOWsrc/channels/telegram/setup.ts80 // Step 4: Allowlist if neededCOMMENT
LOWsrc/channels/telegram/setup.ts114 // Step 5: Write accountCOMMENT
LOW⚡src/channels/whatsapp/reactions-adapter.test.ts744 // Step 1: send outbound text — populates sentMessageIds + messageStore.COMMENT
LOW⚡src/channels/whatsapp/reactions-adapter.test.ts752 // Step 2: emit outbound upsert echo — sentMessageIds entry consumed,COMMENT
LOWsrc/channels/whatsapp/reactions-adapter.test.ts766 // Step 3: emit real-shape LID reaction with target.fromMe: false.COMMENT
Over-Commented Block14 hits · 14 pts
SeverityFileLineSnippetContext
LOWscripts/postinstall-patches.js221 // region always fits on screen, then take the normal log-update path:COMMENT
LOWsrc/websocket/listen-client-concurrency.test.ts221const realAgentMessageModule = await import("@/agent/message");COMMENT
LOWsrc/websocket/listener/constants.ts1export const MAX_RETRY_DURATION_MS = 5 * 60 * 1000; // 5 minutesCOMMENT
LOWsrc/backend/local/local-context-estimate.ts1import type { Usage } from "@earendil-works/pi-ai";COMMENT
LOWsrc/backend/api/mcp-servers.ts1// Server-side MCP servers are registered on the Letta server (via the ADE orCOMMENT
LOWsrc/backend/dev/pi-image-elision.ts1import type { LocalMessage } from "@/backend/local/local-message";COMMENT
LOWsrc/agent/memory-filesystem.test.ts761 },COMMENT
LOWsrc/agent/memory-filesystem.test.ts801 // The new SyncState uses blockHashes/fileHashes instead ofCOMMENT
LOWsrc/cli/hooks/use-token-smoothing.ts1// React hook that returns a smoothed version of a monotonic count.COMMENT
LOWsrc/cli/helpers/stream-processor.ts161COMMENT
LOWsrc/cli/helpers/stream.ts361 );COMMENT
LOWsrc/permissions/cross-agent-guard.ts1// src/permissions/cross-agent-guard.tsCOMMENT
LOWsrc/sandbox/bwrap.ts41 // Root view: read-only for write-scoped profiles, writable for cross-agent.COMMENT
LOWsrc/sandbox/bwrap.ts61 // masks, and bwrap is last-mount-wins for overlapping paths. A carve-out mustCOMMENT
Fake / Example Data14 hits · 14 pts
SeverityFileLineSnippetContext
LOWsrc/agent/memory-worktree.test.ts26 GIT_AUTHOR_EMAIL: "test@test.com",CODE
LOWsrc/agent/memory-worktree.test.ts28 GIT_COMMITTER_EMAIL: "test@test.com",CODE
LOWsrc/agent/memory-git.signing.test.ts73 GIT_AUTHOR_EMAIL: "test@test.com",CODE
LOWsrc/agent/memory-git.signing.test.ts75 GIT_COMMITTER_EMAIL: "test@test.com",CODE
LOWsrc/agent/memory-git.postcommit.test.ts38 GIT_AUTHOR_EMAIL: "test@test.com",CODE
LOWsrc/agent/memory-git.postcommit.test.ts40 GIT_COMMITTER_EMAIL: "test@test.com",CODE
LOWsrc/agent/memory-git.precommit.test.ts22 GIT_AUTHOR_EMAIL: "test@test.com",CODE
LOWsrc/agent/memory-git.precommit.test.ts24 GIT_COMMITTER_EMAIL: "test@test.com",CODE
LOWsrc/cli/reflection-worktree-completion.test.ts33 GIT_AUTHOR_EMAIL: "test@test.com",CODE
LOWsrc/cli/reflection-worktree-completion.test.ts35 GIT_COMMITTER_EMAIL: "test@test.com",CODE
LOWsrc/cli/helpers/reflection-launcher.test.ts59 GIT_AUTHOR_EMAIL: "test@test.com",CODE
LOWsrc/cli/helpers/reflection-launcher.test.ts61 GIT_COMMITTER_EMAIL: "test@test.com",CODE
LOWsrc/cli/helpers/reflection-arena.test.ts21 GIT_AUTHOR_EMAIL: "test@test.com",CODE
LOWsrc/cli/helpers/reflection-arena.test.ts23 GIT_COMMITTER_EMAIL: "test@test.com",CODE
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMscripts/postinstall-patches.js41 // Resolve root of installed ink package; add robust fallbacks for BunCOMMENT
MEDIUM.github/workflows/review.yml287 # channel, so this asks Amelia's Cloud harness to post through its existingCOMMENT
MEDIUMsrc/agent/memory-git.ts729 // Primary config: normalized origin key (most robust for git's credential lookup)COMMENT
MEDIUMsrc/agent/memory-git-hooks.ts261# Reflection and other harness worktrees commit on temporary branches; only theCOMMENT
Modern AI Meta-Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM…in/self-configuration/references/api-patch-examples.md16# Agent context windowCOMMENT
MEDIUM…in/self-configuration/references/api-patch-examples.md22# Conversation context windowCOMMENT
MEDIUMsrc/channels/AGENTS.md53## Adapters are orchestration entrypointsCOMMENT
MEDIUMsrc/channels/protocol-account-commands.ts165 // scaffold per-app plugin folders/channel IDs here.COMMENT
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHscripts/smoke-pypi.py55 assert.equal(resized.status, 0, resized.stderr.toString());CODE
HIGHscripts/smoke-pypi.py57 assert.ok(image.width > 0 && image.width < 3000, JSON.stringify(image));CODE
Deep Nesting10 hits · 8 pts
SeverityFileLineSnippetContext
LOWhooks/memory_logger.py184CODE
LOWhooks/memory_logger.py297CODE
LOWhooks/memory_logger.py476CODE
LOWhooks/memory_logger.py588CODE
LOWhooks/memory_logger.py520CODE
LOWscripts/build-pypi.py62CODE
LOWscripts/smoke-pypi.py78CODE
LOW…ills/builtin/self-configuration/scripts/show_config.py170CODE
LOW…ills/builtin/self-configuration/scripts/show_config.py259CODE
LOW…s/builtin/self-configuration/scripts/add_permission.py106CODE
Excessive Try-Catch Wrapping6 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMhooks/memory_logger.py428 print(f"Error reading block: {e}")CODE
MEDIUMhooks/memory_logger.py489 print(f"Error reading block: {e}")CODE
LOW⚡hooks/memory_logger.py147 except Exception:CODE
LOW⚡hooks/memory_logger.py154 except Exception as e:CODE
LOW…s/builtin/self-configuration/scripts/add_permission.py74 except Exception:CODE
LOW…s/builtin/self-configuration/scripts/add_permission.py122 except Exception as e:CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWhooks/typecheck-on-changes.sh5# Check if there are any uncommitted changes (staged or unstaged)COMMENT
LOWhooks/fix-on-changes.sh5# Check if there are any uncommitted changes (staged or unstaged)COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/channels/core-stream.ts185 async function processData(data: string): Promise<void> {CODE