AI Slop Code RIsk Monitor

butterbase-ai/butterbase

Open-source backend-as-a-service. Postgres, auth, storage, functions, AI gateway, MCP.

5.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for butterbase-ai/butterbase, a TypeScript project with 3,688 GitHub stars. SynthScan examined 419,416 lines of code across 2167 source files, recording 1051 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 5.1 (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.1
Adjusted Signal
5.1
Raw Pattern Score
100%
Time Factor
2026-10-06
Last Push
3.7K
Stars
TypeScript
Language
419.4K
Lines of Code
2.2K
Files
1.1K
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 7.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.8/100 · LOW

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

Agent Over-Engineering Ratio 17.5/100 · LOW

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

PR Review Velocity Impact 21.7/100 · LOW

Which changes need focused human review? 1051 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 4HIGH 13MEDIUM 449LOW 585

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 1051 distinct pattern matches across 20 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.

Decorative Section Separators421 hits · 1292 pts
SeverityFileLineSnippetContext
MEDIUMpackages/cli/bin/butterbase.ts1089// ─── ai meetings ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/__tests__/people.test.ts3// ─── SDK mock ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/__tests__/people.test.ts34// ─── Fixtures ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/__tests__/people.test.ts65// ─── search-person ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/__tests__/people.test.ts127// ─── search-company ───────────────────────────────────────────────────────────COMMENT
MEDIUM⚡packages/cli/src/__tests__/people.test.ts174// ─── profile ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/__tests__/people.test.ts244// ─── email-lookup ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/__tests__/people.test.ts286// ─── email-status ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/lib/api-client.ts595// ─── RLS wrappers ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/lib/api-client.ts634// ─── Billing wrappers ─────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/lib/api-client.ts673// ─── Functions invoke + env wrappers ─────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/lib/api-client.ts687// ─── RAG wrappers ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/rag.ts29// ─── Collections ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/rag.ts129// ─── Ingest ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/rag.ts207// ─── Documents ───────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/rag.ts249// ─── Query ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/people.ts7// ─── Helpers ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/people.ts54// ─── search-person ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/people.ts127// ─── search-company ───────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/people.ts201// ─── profile ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/people.ts277// ─── email-lookup ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/people.ts310// ─── email-status ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/app-billing.ts22// ─── Plans ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/app-billing.ts80// ─── Products ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/app-billing.ts138// ─── Subscriptions ───────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/app-billing.ts193// ─── Orders ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/commands/ai.ts124// ─── Meetings ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/kv.test.ts39 // ─── existing tests ────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/kv.test.ts114 // ─── set with options ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/kv.test.ts132 // ─── setex ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/kv.test.ts143 // ─── incr / decr ──────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/kv.test.ts172 // ─── setnx ────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/kv.test.ts189 // ─── cas ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/kv.test.ts207 // ─── exists ───────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/kv.test.ts217 // ─── ttl ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/kv.test.ts233 // ─── expire ───────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/kv.test.ts245 // ─── mget ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/kv.test.ts267 // ─── mset ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/kv.test.ts284 // ─── new error classes ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/kv.test.ts343 // ─── quota / rate-limit error mapping ────────────────────────────────────COMMENT
MEDIUMpackages/sdk/src/auth/session-manager.ts149 // ── Internal helpers ─────────────────────────────────────COMMENT
MEDIUM…lates/butterbaseCRM/frontend/src/hooks/useCampaigns.ts107// ─── Campaigns ────────────────────────────────────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/lib/filterDsl.ts43// ─── Built-in field catalogs per object_type ──────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/lib/filterDsl.ts92// ─── Ops per kind ─────────────────────────────────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/lib/filterDsl.ts129// ─── Custom field helpers ─────────────────────────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/lib/filterDsl.ts155// ─── Apply filters to a SDK query builder (built-in only) ─────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/lib/agent.ts96// ── Proposal tool_name → REST endpoint map ───────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/lib/agent.ts137// ── Drawer UI Zustand store ──────────────────────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/pages/Login.tsx28// ── Schemas ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/pages/Login.tsx59// ── Signin form ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/pages/Login.tsx139// ── Magic link request form ───────────────────────────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/pages/Login.tsx209// ── Magic link verify form ────────────────────────────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/pages/Login.tsx265// ── Signup form ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/pages/Login.tsx357// ── Verify form ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/pages/Login.tsx421// ── Main Login page ───────────────────────────────────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/pages/Onboard.tsx29// ── Helpers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/pages/Onboard.tsx40// ── Schema ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtemplates/butterbaseCRM/frontend/src/pages/Onboard.tsx53// ── Page ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ocs/superpowers/plans/2026-06-05-workspace-ai-agent.md2045// ── Agent ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…ocs/superpowers/plans/2026-06-05-workspace-ai-agent.md2092// ── Agent SSE events ───────────────────────────────────────────────────COMMENT
361 more matches not shown…
Hyper-Verbose Identifiers233 hits · 250 pts
SeverityFileLineSnippetContext
LOWtests/e2e/helpers/move-app-flow.ts191export async function runForwardMoveAppToCompleted(opts: {CODE
LOWpackages/shared/src/regions.ts131export function butterbaseRegionToFlyRegion(CODE
LOWpackages/cli/src/lib/api-client.ts477export async function rotateIntegrationCredentials(CODE
LOWpackages/cli/src/lib/api-client.ts601export async function createUserIsolationPolicy(appId: string, body: {CODE
LOWpackages/cli/src/lib/lockfile-hash.ts5export function detectPackageManagerAndLockfile(projectDir: string): {CODE
LOWpackages/cli/src/commands/integrations.ts89export async function integrationsConfigCommand(options: { app?: string }) {CODE
LOWpackages/cli/src/commands/integrations.ts114export async function integrationsConfigureCommand(CODE
LOWpackages/cli/src/commands/integrations.ts144export async function integrationsRotateCommand(CODE
LOWpackages/cli/src/commands/integrations.ts168export async function integrationsDisableCommand(toolkit: string, options: { app?: string }) {CODE
LOWpackages/cli/src/commands/integrations.ts181export async function integrationsConnectCommand(toolkit: string, options: { app?: string; redirectUrl?: string; userId?CODE
LOWpackages/cli/src/commands/integrations.ts199export async function integrationsConnectionsCommand(options: { app?: string }) {CODE
LOWpackages/cli/src/commands/integrations.ts226export async function integrationsDisconnectCommand(connectionId: string, options: { app?: string }) {CODE
LOWpackages/cli/src/commands/integrations.ts263export async function integrationsExecuteCommand(toolName: string, options: { app?: string; data?: string; userId?: striCODE
LOWpackages/cli/src/commands/rag.ts31export async function ragCollectionsListCommand(options: { app?: string; json?: boolean }) {CODE
LOWpackages/cli/src/commands/rag.ts58export async function ragCollectionsCreateCommand(CODE
LOWpackages/cli/src/commands/rag.ts116export async function ragCollectionsDeleteCommand(name: string, options: { app?: string }) {CODE
LOWpackages/cli/src/commands/people.ts56export async function peopleSearchPersonCommand(CODE
LOWpackages/cli/src/commands/people.ts129export async function peopleSearchCompanyCommand(CODE
LOWpackages/cli/src/commands/apps.ts168export async function appsUnlinkSubstrateCommand(appId: string) {CODE
LOWpackages/cli/src/commands/apps.ts187export async function appsSubstrateAutopropagateCommand(appId: string, opts: { users?: boolean }) {CODE
LOWpackages/cli/src/commands/ai.ts199export async function aiMeetingsEstimateCommand(options: { app?: string; durationMinutes: number; transcript?: boolean; CODE
LOW⚡packages/cli/src/commands/substrate.ts55export async function substrateEntitiesListCommand(opts: { type?: string; limit?: string; json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts64export async function substrateEntitiesGetCommand(id: string, opts: { json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts71export async function substrateArtifactsListCommand(opts: { kind?: string; q?: string; limit?: string; json?: boolean })CODE
LOWpackages/cli/src/commands/substrate.ts82export async function substrateArtifactsGetCommand(id: string, _opts: { json?: boolean }) {CODE
LOWpackages/cli/src/commands/substrate.ts100export async function substrateMemoryListCommand(opts: {CODE
LOWpackages/cli/src/commands/substrate.ts124export async function substrateOutboxListCommand(opts: { state?: string; json?: boolean }) {CODE
LOWpackages/cli/src/commands/substrate.ts133export async function substrateRulesListCommand(opts: { enabled?: boolean; json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts149export async function substrateRulesFiringsCommand(id: string, opts: { limit?: string; json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts158export async function substrateSnapshotsCommand(opts: { days?: string; json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts167export async function substrateSettingsShowCommand(opts: { json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts174export async function substrateLedgerInspectCommand(actionId: string, _opts: { json?: boolean }) {CODE
LOWpackages/cli/src/commands/substrate.ts211export async function substrateEntitiesUpdateCommand(id: string, opts: { patch?: string; json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts223export async function substrateOutboxCancelCommand(id: string, opts: { json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts230export async function substrateOutboxRetryCommand(id: string, opts: { json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts237export async function substrateRulesCreateCommand(opts: { file?: string; json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts246export async function substrateRulesUpdateCommand(id: string, opts: { file?: string; json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts255export async function substrateRulesDeleteCommand(id: string, opts: { json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts262export async function substrateRulesEnableCommand(id: string, opts: { json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts269export async function substrateRulesDisableCommand(id: string, opts: { json?: boolean }) {CODE
LOW⚡packages/cli/src/commands/substrate.ts276export async function substrateSettingsYoloCommand(state: string, opts: { json?: boolean }) {CODE
LOWpackages/cli/src/commands/preview.ts219export async function previewPromoteCheckCommand(opts: { app?: string; json?: boolean }) {CODE
LOW…es/butterbaseCRM/frontend/src/hooks/useMeetingNotes.ts89export function useIngestMeetingTranscript() {CODE
LOW…es/butterbaseCRM/frontend/src/hooks/useCustomFields.ts156export function useUpsertCustomFieldValue() {CODE
LOW…/backend/functions/execute-comment-campaign/handler.ts22async function resolveWorkspaceIntegration(ctx: any, workspaceId: string, toolkit: string) {CODE
LOW…RM/backend/functions/comment-on-social-post/handler.ts26async function resolveWorkspaceIntegration(ctx: any, workspaceId: string, toolkit: string) {CODE
LOW…CRM/backend/functions/run-comment-discovery/handler.ts59async function discoverRedditForCompetitor(CODE
LOW…tterbaseCRM/backend/functions/enrich-person/handler.ts70async function peopleSearchByCompanyName(ctx: any, companyName: string, roleTitle: string | null, pageSize = 25) {CODE
LOW…butterbaseCRM/backend/functions/lead-search/handler.ts199function mapPersonResultToSearchResult(p: PeopleApiPersonResult): SearchResult | null {CODE
LOW…RM/backend/functions/unregister-integration/handler.ts95async function resolveComposioConnectionId(ctx, req, userId, toolkit, accountIdSnapshot) {CODE
LOW…/backend/functions/discover-comment-targets/handler.ts8async function resolveWorkspaceIntegration(ctx: any, workspaceId: string, toolkit: string) {CODE
LOW…rbaseCRM/backend/functions/send-social-post/handler.ts78async function resolveWorkspaceIntegration(ctx, workspaceId, toolkit) {CODE
LOWservices/mcp-server/src/create-server.ts87export async function createButterbaseMcpServer() {CODE
LOWservices/mcp-server/src/request-auth-context.ts47export function getRequestAuthorizationHeader(): string | undefined {CODE
LOWservices/mcp-server/src/active-window-cache.ts22export async function fetchAndCacheActiveWindow(): Promise<boolean> {CODE
LOWservices/mcp-server/src/eligibility-listener.ts11export async function startActiveWindowListener(connectionString: string) {CODE
LOWservices/mcp-server/src/tools/deploy-frontend.ts5export function registerCreateFrontendDeployment(server: McpServer) {CODE
LOWservices/mcp-server/src/tools/submit-hackathon-entry.ts85export function registerSubmitHackathonEntry(server: McpServer) {CODE
LOWservices/mcp-server/src/tools/manage-durable-objects.ts5export function registerManageDurableObjects(server: McpServer) {CODE
LOWservices/control-api/src/config.ts363export function assertInternalEmailSecret(): void {CODE
173 more matches not shown…
Over-Commented Block153 hits · 152 pts
SeverityFileLineSnippetContext
LOWscripts/rotate-do-invoker-token.sh1#!/usr/bin/env bashCOMMENT
LOW…es/static-frontend-worker/src/worker.miniflare.test.ts1// Integration tests for the static frontend worker against a real workerdCOMMENT
LOW…tatic-frontend-worker/src/worker-source.generated.d.ts1// Type declaration for the generated dist/worker-source.generated.js, writtenCOMMENT
LOWpackages/static-frontend-worker/src/redirects-parser.ts1// Cloudflare Pages-compatible `_redirects` parser.COMMENT
LOWpackages/static-frontend-worker/src/worker.ts1// Per-app static frontend worker.COMMENT
LOW…plates/butterbaseCRM/frontend/src/hooks/useMeetings.ts1// Substrate-primary meeting hooks.COMMENT
LOW…es/butterbaseCRM/frontend/src/hooks/useCustomFields.ts61// All values for one object_type (cheap — small N for now). Returns a mapCOMMENT
LOWtemplates/butterbaseCRM/frontend/src/lib/realtime.ts1import { useEffect, useState } from 'react';COMMENT
LOWtemplates/butterbaseCRM/frontend/src/lib/realtime.ts21// substrate stream will need its own loop with the same shape).COMMENT
LOWtemplates/butterbaseCRM/frontend/src/lib/substrate.ts1// Substrate access from the browser. All calls route through the substrate-proxyCOMMENT
LOW…erbaseCRM/backend/functions/substrate-proxy/handler.ts1// Single-tenant substrate proxy. All ops act as the linked substrate owner viaCOMMENT
LOW…aseCRM/backend/functions/crm-upsert-meeting/handler.ts1// crm-upsert-meeting — single substrate-primary write path for meetings.COMMENT
LOW…tterbaseCRM/backend/functions/enrich-person/handler.ts1// Enrich a person entity using the Butterbase People API.COMMENT
LOW…terbaseCRM/backend/functions/enrich-company/handler.ts1// Enrich a company entity using the Butterbase People API.COMMENT
LOW…erbaseCRM/backend/functions/check-allowlist/handler.ts1// App-wide allowlist gate. The frontend calls this immediately after login.COMMENT
LOWtemplates/butterbaseCRM/dev/smoke-sync.sh1#!/usr/bin/env bashCOMMENT
LOWtemplates/butterSupport/frontend/src/widget/Widget.tsx141 useEffect(() => {COMMENT
LOW…ates/butterSupport/durable-objects/widget-ticket-do.ts1import { DurableObject } from 'cloudflare:workers';COMMENT
LOW…rt/backend/durable-objects/widget-ticket-do/handler.ts1import { DurableObject } from 'cloudflare:workers';COMMENT
LOWtemplates/butterSupport/docs/butterbase/02-plan.md841async function outboundFilter(COMMENT
LOWtemplates/butterSupport/docs/butterbase/02-plan.md861 // 4. For each match: replace with [redacted] + record Violation.COMMENT
LOWservices/storage-indexer/wrangler.toml21# NEON_RUNTIME_PROJECT_ID_US_EAST_1 — runtime DB URL for us-east-1COMMENT
LOWservices/storage-indexer/worker-configuration.d.ts11881 // auth was used.COMMENT
LOWservices/storage-indexer/worker-configuration.d.ts11941 // Types that can be used through `Stub`sCOMMENT
LOWservices/storage-indexer/worker-configuration.d.ts11981 [K in keyof T]: Unstubify<T[K]>;COMMENT
LOWservices/storage-indexer/worker-configuration.d.ts12001 // Unwrapping `Stub`s allows calling with `Stubable` arguments.COMMENT
LOWservices/storage-indexer/worker-configuration.d.ts12021 // You can use `wrangler types` to generate the `Env` type automatically.COMMENT
LOWservices/storage-indexer/worker-configuration.d.ts13101 }COMMENT
LOWservices/mcp-server/src/request-auth-context.ts1import { AsyncLocalStorage } from 'node:async_hooks';COMMENT
LOWservices/control-api/src/plugins/helmet.ts1import fp from 'fastify-plugin';COMMENT
LOWservices/control-api/src/plugins/cors.ts21// preflight with 204 instead of falling through to its wildcard OPTIONSCOMMENT
LOWservices/control-api/src/plugins/cors.ts41// Endpoints any origin must be able to read for OAuth discovery to work from aCOMMENT
LOWservices/control-api/src/plugins/auth.ts181 scopes: [],COMMENT
LOW…ontrol-api/src/__tests__/clone-preflight-route.test.ts1// Unit tests for GET /v1/templates/:source_app_id/clone-preflightCOMMENT
LOW…vices/control-api/src/__tests__/execute-update.test.ts1import { describe, it, expect, beforeAll, beforeEach, vi } from 'vitest';COMMENT
LOW…vices/control-api/src/__tests__/execute-update.test.ts141 it('aborts when divergence could not be computed at all', () => {COMMENT
LOW…ices/control-api/src/__tests__/edge-ssr-routes.test.ts461// ---------------------------------------------------------------------------COMMENT
LOWservices/control-api/src/__tests__/clone-routes.test.ts361// count update-mode rowsCOMMENT
LOWservices/control-api/src/__tests__/clone-routes.test.ts561 expect(enqueued).toContain('incrementRetry');COMMENT
LOW…rvices/control-api/src/__tests__/agent-test-helpers.ts1// Shared test fixtures for the agent route tests.COMMENT
LOW…pi/src/__tests__/app-state-capture.integration.test.ts41// Regression coverage for the schema drift that let captureAppState shipCOMMENT
LOW…rvices/control-api/src/__tests__/clone-lineage.test.ts41});COMMENT
LOWservices/control-api/src/routes/clone.ts161 }COMMENT
LOWservices/control-api/src/routes/people-webhook.ts1// services/control-api/src/routes/people-webhook.tsCOMMENT
LOWservices/control-api/src/routes/staging.ts161 },COMMENT
LOWservices/control-api/src/routes/staging.ts321 }));COMMENT
LOWservices/control-api/src/routes/staging.ts381 });COMMENT
LOWservices/control-api/src/routes/init.ts141 app.post('/init', { schema: initSchema }, async (request, reply) => {COMMENT
LOWservices/control-api/src/routes/template-update.ts181 // The getActiveUpdateJob pre-check above is a read-then-write; twoCOMMENT
LOWservices/control-api/src/routes/template-update.ts261 created_at: job.created_at.toISOString(),COMMENT
LOWservices/control-api/src/routes/people.e2e.test.ts1// services/control-api/src/routes/people.e2e.test.tsCOMMENT
LOWservices/control-api/src/routes/auto-api.ts481 if (auth) {COMMENT
LOWservices/control-api/src/routes/auto-api.ts521 // Continue without user ID - function can handle authCOMMENT
LOWservices/control-api/src/routes/templates-discovery.ts1// Anonymous-readable template discovery — fans out across all runtime regionsCOMMENT
LOWservices/control-api/src/routes/templates-discovery.ts121 [unique],COMMENT
LOWservices/control-api/src/routes/templates-discovery.ts241COMMENT
LOWservices/control-api/src/routes/people.ts601 // });COMMENT
LOWservices/control-api/src/routes/dashboard-agent.ts381 // success cache keyed on approval_id. Because a repeated execution isCOMMENT
LOWservices/control-api/src/routes/dashboard-agent.ts1161 // turn by turn, for the dev-mode trace viewer in the dashboard. Delete thisCOMMENT
LOWservices/control-api/src/routes/notification-actions.ts1// Public, token-gated endpoint that backs the inline action buttons inCOMMENT
93 more matches not shown…
Fake / Example Data84 hits · 88 pts
SeverityFileLineSnippetContext
LOWExamples/agents/support-readonly/README.md30 -d '{"input": {"message": "Why was I charged twice last month?", "email": "user@example.com"}}'CODE
LOWpackages/cli/src/__tests__/people.test.ts59 name: 'Acme Corp',CODE
LOW⚡packages/cli/src/__tests__/people.test.ts160 expect(output).toContain('Acme Corp');CODE
LOW⚡packages/cli/src/__tests__/people.test.ts170 expect(parsed.data.results[0].name).toBe('Acme Corp');CODE
LOWpackages/sdk/README.md79 email: 'user@example.com',CODE
LOWpackages/sdk/README.md85 email: 'user@example.com',CODE
LOWpackages/sdk/README.md310 to: 'user@example.com',CODE
LOW…s/butterbaseCRM/frontend/src/pages/AgentOnboarding.tsx99 placeholder="Acme Corp"CODE
LOWtemplates/butterbaseCRM/frontend/src/pages/Onboard.tsx138 placeholder="Acme Corp"CODE
LOWtemplates/butterbaseCRM/docs/butterbase/02-plan.md155- **Seed data:** template ships with a demo workspace ("Acme Inc") containing sample companies, people, deals, notes, meCODE
LOW⚡templates/butterbaseCRM/docs/butterbase/02-plan.md177**Seed-workspace exception (D1):** logos uploaded to the demo "Acme Inc" workspace are flagged public-read so they can rCODE
LOWtemplates/butterbaseCRM/docs/butterbase/02-plan.md22011. **deploy** — deploy frontend, run the seed-data script for the "Acme Inc" demo workspace, smoke-test the live URL.CODE
LOW…ocs/superpowers/plans/2026-06-05-workspace-ai-agent.md3422Ask the agent "Add a company called Acme based in San Francisco". A `ProposalCard` appears. Edit "Acme" to "Acme Inc", cCODE
LOW…ocs/superpowers/plans/2026-06-05-workspace-ai-agent.md3627 <Input placeholder="Acme Corp" {...field} onBlur={() => { field.onBlur(); if (!form.getValues('sluCODE
LOW…tes/butterSupport/frontend/src/console/routes/Docs.tsx23 email: 'user@example.com',CODE
LOW…upport/frontend/src/console/routes/settings/Widget.tsx22 email: 'user@example.com',CODE
LOWtemplates/butterSupport/docs/butterbase/02-plan.md1432 name: 'Jane Doe',CODE
LOWservices/mcp-server/src/tools/integrations.ts72 Input: { app_id: "app_abc123", action: "execute_action", tool_name: "GMAIL_SEND_EMAIL", params: { to: "user@example.cCODE
LOWservices/mcp-server/src/tools/invoke-function.ts14 body: { email: "user@example.com", message: "hello" }CODE
LOWservices/mcp-server/src/docs/user-documentation.ts440 "client_secret": "placeholder",CODE
LOWservices/mcp-server/src/docs/user-documentation.ts522 "email": "user@example.com",CODE
LOWservices/mcp-server/src/docs/user-documentation.ts524 "display_name": "Jane Doe"CODE
LOWservices/mcp-server/src/docs/user-documentation.ts545 "email": "user@example.com",CODE
LOWservices/mcp-server/src/docs/user-documentation.ts559 "email": "user@example.com",CODE
LOWservices/mcp-server/src/docs/user-documentation.ts561 "display_name": "Jane Doe",CODE
LOWservices/mcp-server/src/docs/user-documentation.ts607 "email": "user@example.com",CODE
LOWservices/mcp-server/src/docs/user-documentation.ts624 "email": "user@example.com"CODE
LOWservices/mcp-server/src/docs/user-documentation.ts638 "email": "user@example.com",CODE
LOWservices/mcp-server/src/docs/user-documentation.ts2954 email: 'user@example.com',CODE
LOWservices/mcp-server/src/docs/user-documentation.ts2960 email: 'user@example.com',CODE
LOWservices/mcp-server/src/docs/user-documentation.ts3757butterbase integrations execute <tool-name> --data '{"to":"user@example.com","subject":"Hi"}' [--user-id <id>] [--app <aCODE
LOWservices/control-api/src/routes/people.test.ts117 fullName: 'Jane Doe',CODE
LOW…ces/control-api/src/routes/admin/organizations.test.ts33 return { rows: [{ id: 'admin-uid', email: 'admin@example.com', display_name: null, is_admin: isAdmin }] };CODE
LOW…s/control-api/src/routes/admin/special-pricing.test.ts20 return { rows: [{ id: 'admin-uid', email: 'admin@example.com', display_name: null, is_admin: isAdmin }] };CODE
LOW…ntrol-api/src/routes/__tests__/admin-apps-orgs.test.ts69 return { rows: [{ id: 'admin-uid', email: 'admin@example.com', display_name: null, is_admin: isAdmin }] };CODE
LOW…trol-api/src/routes/__tests__/admin-users-orgs.test.ts62 email: 'user@example.com',CODE
LOW…trol-api/src/routes/__tests__/admin-users-orgs.test.ts135 email: 'user@example.com',CODE
LOW…trol-api/src/routes/__tests__/admin-users-orgs.test.ts216 email: 'user@example.com',CODE
LOW…trol-api/src/routes/__tests__/admin-users-orgs.test.ts260 email: 'user@example.com',CODE
LOW…/src/routes/__tests__/admin-billing-plans-orgs.test.ts69 organization_name: 'Acme Corp',CODE
LOW…/src/routes/__tests__/admin-billing-plans-orgs.test.ts106 expect(sub1.organization_name).toBe('Acme Corp');CODE
LOW…/src/routes/__tests__/admin-billing-plans-orgs.test.ts135 owner_email: 'user@example.com',CODE
LOW…/src/routes/__tests__/admin-billing-plans-orgs.test.ts277 email: 'user@example.com',CODE
LOW…/src/routes/__tests__/admin-billing-plans-orgs.test.ts300 expect(body.recentEvents[0].email).toBe('user@example.com');CODE
LOW⚡…auth/__tests__/email-service-suggestion-status.test.ts20 await sendSuggestionStatusUpdateEmail('user@example.com', {CODE
LOW⚡…auth/__tests__/email-service-suggestion-status.test.ts28 expect(command.Destination.ToAddresses).toEqual(['user@example.com']);CODE
LOW⚡…auth/__tests__/email-service-suggestion-status.test.ts37 await sendSuggestionStatusUpdateEmail('user@example.com', {CODE
LOW…auth/__tests__/email-service-suggestion-status.test.ts53 sendSuggestionStatusUpdateEmail('user@example.com', {CODE
LOW…i/src/services/__tests__/clone-replay-env-vars.test.ts151 JSON.stringify({ BUTTERBASE_API_KEY: 'placeholder' }),CODE
LOW…/services/__tests__/durable-objects-clone-mint.test.ts188 BUTTERBASE_API_KEY: 'placeholder',CODE
LOW…/services/__tests__/durable-objects-clone-mint.test.ts256 BUTTERBASE_API_KEY: 'placeholder',CODE
LOWservices/control-api/src/services/people/cache.test.ts12 fullName: 'Jane Doe',CODE
LOW…ices/docs/src/content/docs/api-reference/people-api.md104 "fullName": "Jane Doe",CODE
LOW…ices/docs/src/content/docs/api-reference/people-api.md230 "fullName": "Jane Doe",CODE
LOW…rvices/docs/src/content/docs/api-reference/auth-api.md70 "client_secret": "placeholder",CODE
LOW…rvices/docs/src/content/docs/api-reference/auth-api.md88 "email": "user@example.com",CODE
LOW…rvices/docs/src/content/docs/api-reference/auth-api.md90 "display_name": "Jane Doe"CODE
LOW…rvices/docs/src/content/docs/api-reference/auth-api.md106 "email": "user@example.com",CODE
LOW…rvices/docs/src/content/docs/api-reference/auth-api.md108 "display_name": "Jane Doe",CODE
LOW…rvices/docs/src/content/docs/api-reference/auth-api.md119{ "email": "user@example.com" }CODE
24 more matches not shown…
Modern AI Meta-Vocabulary23 hits · 70 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md72- **Claude Code plugin** — `packages/plugin` (submodule of [butterbase-skills](https://github.com/butterbase-ai/butterbaCODE
MEDIUM⚡templates/butterbaseCRM/docs/butterbase/02-plan.md179## AI / RAG / realtime / durableCOMMENT
MEDIUM⚡templates/butterbaseCRM/docs/butterbase/02-plan.md189### RAG — not used (Q8).COMMENT
MEDIUM…ocs/superpowers/plans/2026-06-05-workspace-ai-agent.md59## Phase 0 — Migration scaffoldingCOMMENT
MEDIUM…ocs/superpowers/plans/2026-06-05-workspace-ai-agent.md770## Phase 3 — Tool-use loop scaffolding + first 3 read toolsCOMMENT
MEDIUM…s/superpowers/plans/2026-06-29-lead-finder-scaffold.md232## Task 2: `lead-search` function — orchestration with mock providerCOMMENT
MEDIUM…erpowers/specs/2026-06-05-workspace-ai-agent-design.md461### Cost guardrailsCOMMENT
MEDIUMtemplates/butterSupport/docs/butterbase/02-plan.md98### Commodity-tier knowledge (RAG)COMMENT
MEDIUMtemplates/butterSupport/docs/butterbase/02-plan.md332### 4. Commodity tier — RAG / docs ingestion (the front door)COMMENT
MEDIUMtemplates/butterSupport/docs/butterbase/02-plan.md499### Per-ticket budget guardrails (hardcoded in DO for v1)COMMENT
MEDIUMtemplates/butterSupport/docs/butterbase/02-plan.md550## RAGCOMMENT
MEDIUMtemplates/butterSupport/docs/butterbase/02-plan.md648### What we deliberately do NOT do with RAG in v1COMMENT
MEDIUMservices/mcp-server/src/docs/user-documentation.ts2310### Webhooks (event-driven flow)COMMENT
MEDIUMservices/mcp-server/src/docs/user-documentation.ts3411 rag: `## RAG (Retrieval-Augmented Generation)CODE
MEDIUM…c/routes/__tests__/dashboard-agent-builder.e2e.test.ts179 // Return empty repo — triggers template scaffold pathCOMMENT
MEDIUM…vices/control-api/src/services/dashboard-agent/loop.ts943 // Capture baseline BEFORE scaffold so every template file counts asCOMMENT
MEDIUM…ol-api/src/services/dashboard-agent/build-hydration.ts157 // empty" would send the build down a path that compiles a scaffold inCOMMENT
MEDIUM…c/services/dashboard-agent/__tests__/repo-http.test.ts177 // on a false here, and MUST NOT see a throw, or it would skip the scaffold.COMMENT
MEDIUM…c/services/dashboard-agent/__tests__/repo-http.test.ts191 // scaffold behaviour is identical whichever implementation is in play.COMMENT
MEDIUM…c/services/dashboard-agent/__tests__/repo-http.test.ts204 // the turn down the scaffold path and then try to PUSH a template intoCOMMENT
MEDIUM…vices/docs/src/content/docs/api-reference/mcp-tools.md241## RAG (Retrieval-Augmented Generation)COMMENT
MEDIUM…ices/docs/src/content/docs/templates/butter-support.md25### Docs ingestion and RAGCOMMENT
MEDIUM…ices/docs/src/content/docs/templates/butter-support.md157### 3. Create the RAG collection and ingest your docsCOMMENT
Structural Annotation Overuse39 hits · 67 pts
SeverityFileLineSnippetContext
LOWExamples/grocery-list-2026-04-03/BUTTERBASE_SETUP.md5## Step 1: Initialize appCOMMENT
LOWExamples/grocery-list-2026-04-03/BUTTERBASE_SETUP.md20## Step 2: Apply schemaCOMMENT
LOWExamples/grocery-list-2026-04-03/BUTTERBASE_SETUP.md85## Step 3: Row-level securityCOMMENT
LOWExamples/grocery-list-2026-04-03/BUTTERBASE_SETUP.md97## Step 4: CORSCOMMENT
LOWExamples/grocery-list-2026-04-03/BUTTERBASE_SETUP.md108## Step 5: Recipe assistant (serverless function)COMMENT
LOWExamples/todo-2026-04-02/BUTTERBASE_SETUP.md5## Step 1: Initialize AppCOMMENT
LOWExamples/todo-2026-04-02/BUTTERBASE_SETUP.md15## Step 2: Apply SchemaCOMMENT
LOWExamples/todo-2026-04-02/BUTTERBASE_SETUP.md77## Step 3: Enable RLSCOMMENT
LOWExamples/todo-2026-04-02/BUTTERBASE_SETUP.md94## Step 4: Configure CORSCOMMENT
LOW⚡packages/cli/src/commands/deploy-edge-ssr.ts98 // Step 1: Create deployment (get upload URL)COMMENT
LOW⚡packages/cli/src/commands/deploy-edge-ssr.ts101 // Step 2: Zip the directoryCOMMENT
LOW⚡packages/cli/src/commands/deploy-edge-ssr.ts105 // Step 3: Upload zip to presigned URLCOMMENT
LOW⚡packages/cli/src/commands/deploy-edge-ssr.ts109 // Step 4: Start the deployment pipelineCOMMENT
LOW⚡packages/cli/src/commands/deploy-edge-ssr.ts113 // Step 5: Poll until terminal state (5 s × 60 = 5 min max)COMMENT
LOW⚡packages/cli/src/commands/deploy.ts81 // Step 1: Create deploymentCOMMENT
LOW⚡packages/cli/src/commands/deploy.ts84 // Step 2: Zip directoryCOMMENT
LOW⚡packages/cli/src/commands/deploy.ts88 // Step 3: UploadCOMMENT
LOW⚡packages/cli/src/commands/deploy.ts92 // Step 4: Start deploymentCOMMENT
LOW⚡packages/cli/src/commands/deploy.ts96 // Step 5: Poll until doneCOMMENT
LOWpackages/sdk/src/rag/rag-client.ts105 // Step 1: Upload file to storage to get an object IDCOMMENT
LOWpackages/sdk/src/rag/rag-client.ts123 // Step 2: Upload the file to the presigned URLCOMMENT
LOWpackages/sdk/src/rag/rag-client.ts134 // Step 3: Ingest using the storage object IDCOMMENT
LOW⚡services/control-api/src/plugins/auth.ts346 // Step 1: Create a candidate personal org (may be discarded on conflict).COMMENT
LOW⚡services/control-api/src/plugins/auth.ts355 // Step 2: Upsert platform_users.COMMENT
LOWservices/control-api/src/routes/rag.ts807 // Step 1: Embed the queryCOMMENT
LOWservices/control-api/src/routes/rag.ts818 // Step 2: Similarity search with RLSCOMMENT
LOWservices/control-api/src/routes/rag.ts851 // Step 3: Optional synthesisCOMMENT
LOW⚡…l-api/src/routes/__tests__/dashboard-agent.e2e.test.ts338 // Step 1: USER_A creates conversationCOMMENT
LOW⚡…l-api/src/routes/__tests__/dashboard-agent.e2e.test.ts348 // Step 2: USER_A posts one message (mock a simple no-tool-call pass)COMMENT
LOW…l-api/src/routes/__tests__/dashboard-agent.e2e.test.ts391 // Step 4: USER_A can still access their conversation (DELETE was a no-op)COMMENT
LOWservices/control-api/src/services/neon-task-worker.ts1317 // Step 7: replay the source's most recent published frontend by copyingCOMMENT
LOW⚡services/control-api/src/services/app-plan-resolver.ts33 // Step 1: get owner_id from runtime DB (apps is a runtime-tier table)COMMENT
LOW⚡services/control-api/src/services/app-plan-resolver.ts40 // Step 2: get plan_id from the owner's personal org (Plan 07 movedCOMMENT
LOWservices/control-api/src/services/rag-worker.ts189 // Step 1: Download and parse the documentCOMMENT
LOWservices/control-api/src/services/rag-worker.ts208 // Step 2: Chunk the textCOMMENT
LOWservices/control-api/src/services/rag-worker.ts224 // Step 3: Batch embed chunksCOMMENT
LOWservices/control-api/src/services/rag-worker.ts246 // Step 4: Insert chunks into app databaseCOMMENT
LOWservices/docs/src/content/docs/guides/monetization.md20### Step 1: Onboard your Connect accountCOMMENT
LOWservices/docs/src/content/docs/guides/monetization.md28### Step 2: Check onboarding statusCOMMENT
Verbosity Indicators28 hits · 51 pts
SeverityFileLineSnippetContext
LOW⚡packages/cli/src/commands/deploy-edge-ssr.ts98 // Step 1: Create deployment (get upload URL)COMMENT
LOW⚡packages/cli/src/commands/deploy-edge-ssr.ts101 // Step 2: Zip the directoryCOMMENT
LOW⚡packages/cli/src/commands/deploy-edge-ssr.ts105 // Step 3: Upload zip to presigned URLCOMMENT
LOW⚡packages/cli/src/commands/deploy-edge-ssr.ts109 // Step 4: Start the deployment pipelineCOMMENT
LOW⚡packages/cli/src/commands/deploy-edge-ssr.ts113 // Step 5: Poll until terminal state (5 s × 60 = 5 min max)COMMENT
LOW⚡packages/cli/src/commands/deploy.ts81 // Step 1: Create deploymentCOMMENT
LOW⚡packages/cli/src/commands/deploy.ts84 // Step 2: Zip directoryCOMMENT
LOW⚡packages/cli/src/commands/deploy.ts88 // Step 3: UploadCOMMENT
LOW⚡packages/cli/src/commands/deploy.ts92 // Step 4: Start deploymentCOMMENT
LOW⚡packages/cli/src/commands/deploy.ts96 // Step 5: Poll until doneCOMMENT
LOWpackages/sdk/src/rag/rag-client.ts105 // Step 1: Upload file to storage to get an object IDCOMMENT
LOWpackages/sdk/src/rag/rag-client.ts123 // Step 2: Upload the file to the presigned URLCOMMENT
LOWpackages/sdk/src/rag/rag-client.ts134 // Step 3: Ingest using the storage object IDCOMMENT
LOW⚡services/control-api/src/plugins/auth.ts346 // Step 1: Create a candidate personal org (may be discarded on conflict).COMMENT
LOW⚡services/control-api/src/plugins/auth.ts355 // Step 2: Upsert platform_users.COMMENT
LOWservices/control-api/src/routes/rag.ts807 // Step 1: Embed the queryCOMMENT
LOWservices/control-api/src/routes/rag.ts818 // Step 2: Similarity search with RLSCOMMENT
LOWservices/control-api/src/routes/rag.ts851 // Step 3: Optional synthesisCOMMENT
LOW⚡…l-api/src/routes/__tests__/dashboard-agent.e2e.test.ts338 // Step 1: USER_A creates conversationCOMMENT
LOW⚡…l-api/src/routes/__tests__/dashboard-agent.e2e.test.ts348 // Step 2: USER_A posts one message (mock a simple no-tool-call pass)COMMENT
LOW…l-api/src/routes/__tests__/dashboard-agent.e2e.test.ts391 // Step 4: USER_A can still access their conversation (DELETE was a no-op)COMMENT
LOWservices/control-api/src/services/neon-task-worker.ts1317 // Step 7: replay the source's most recent published frontend by copyingCOMMENT
LOW⚡services/control-api/src/services/app-plan-resolver.ts33 // Step 1: get owner_id from runtime DB (apps is a runtime-tier table)COMMENT
LOW⚡services/control-api/src/services/app-plan-resolver.ts40 // Step 2: get plan_id from the owner's personal org (Plan 07 movedCOMMENT
LOWservices/control-api/src/services/rag-worker.ts189 // Step 1: Download and parse the documentCOMMENT
LOWservices/control-api/src/services/rag-worker.ts208 // Step 2: Chunk the textCOMMENT
LOWservices/control-api/src/services/rag-worker.ts224 // Step 3: Batch embed chunksCOMMENT
LOWservices/control-api/src/services/rag-worker.ts246 // Step 4: Insert chunks into app databaseCOMMENT
Cross-File Repetition9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHservices/agent-runtime/tests/test_runner.py0insert into agent_runs (app_id, agent_id, caller_kind, input, status) values ($1, $2, 'function', $3::jsonb, 'queued') rSTRING
HIGHservices/agent-runtime/tests/test_e2e_smoke.py0insert into agent_runs (app_id, agent_id, caller_kind, input, status) values ($1, $2, 'function', $3::jsonb, 'queued') rSTRING
HIGHservices/agent-runtime/tests/live/e2e_workflow.py0insert into agent_runs (app_id, agent_id, caller_kind, input, status) values ($1, $2, 'function', $3::jsonb, 'queued') rSTRING
HIGHservices/agent-runtime/tests/live/e2e_run.py0insert into agent_runs (app_id, agent_id, caller_kind, input, status) values ($1, $2, 'function', $3::jsonb, 'queued') rSTRING
HIGHservices/agent-runtime/tests/live/e2e_tools.py0insert into agent_runs (app_id, agent_id, caller_kind, input, status) values ($1, $2, 'function', $3::jsonb, 'queued') rSTRING
HIGHservices/agent-runtime/tests/test_e2e_smoke.py0insert into platform_users (id, email) values (gen_random_uuid(), $1) on conflict (email) do update set email = excludedSTRING
HIGHservices/agent-runtime/tests/live/e2e_workflow.py0insert into platform_users (id, email) values (gen_random_uuid(), $1) on conflict (email) do update set email = excludedSTRING
HIGHservices/agent-runtime/tests/live/e2e_run.py0insert into platform_users (id, email) values (gen_random_uuid(), $1) on conflict (email) do update set email = excludedSTRING
HIGHservices/agent-runtime/tests/live/e2e_tools.py0insert into platform_users (id, email) values (gen_random_uuid(), $1) on conflict (email) do update set email = excludedSTRING
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICAL…ontrol-api/src/services/move-app/saga-executor.test.ts59 const calls: string[] = ctx._client.query.mock.calls.map((c: any[]) =>CODE
CRITICAL…ontrol-api/src/services/move-app/saga-executor.test.ts62 const updateCall = ctx._client.query.mock.calls.find(CODE
CRITICAL…ontrol-api/src/services/move-app/saga-executor.test.ts84 const updateCall = ctx._client.query.mock.calls.find(CODE
CRITICAL…ontrol-api/src/services/move-app/saga-executor.test.ts105 const errorUpdateCall = ctx._client.query.mock.calls.find(CODE
Unused Imports21 hits · 21 pts
SeverityFileLineSnippetContext
LOWservices/agent-runtime/tests/test_hitl.py7CODE
LOWservices/agent-runtime/tests/test_safe_request.py2CODE
LOWservices/agent-runtime/tests/test_recovery.py4CODE
LOWservices/agent-runtime/tests/test_recovery.py4CODE
LOWservices/agent-runtime/tests/test_recovery.py4CODE
LOWservices/agent-runtime/tests/test_heartbeat.py3CODE
LOWservices/agent-runtime/tests/test_webhooks.py3CODE
LOWservices/agent-runtime/tests/test_runner.py9CODE
LOWservices/agent-runtime/tests/test_tools_base.py2CODE
LOWservices/agent-runtime/tests/test_routes_lifecycle.py12CODE
LOWservices/agent-runtime/src/agent_runtime/compiler.py8CODE
LOW…ices/agent-runtime/src/agent_runtime/tools/__init__.py3CODE
LOW…ices/agent-runtime/src/agent_runtime/tools/__init__.py3CODE
LOW…ices/agent-runtime/src/agent_runtime/tools/__init__.py3CODE
LOW…ices/agent-runtime/src/agent_runtime/tools/__init__.py3CODE
LOW…ices/agent-runtime/src/agent_runtime/tools/__init__.py3CODE
LOW…ices/agent-runtime/src/agent_runtime/tools/__init__.py3CODE
LOW…ices/agent-runtime/src/agent_runtime/tools/__init__.py3CODE
LOW…ices/agent-runtime/src/agent_runtime/tools/__init__.py3CODE
LOW…ices/agent-runtime/src/agent_runtime/tools/__init__.py3CODE
LOW…ices/agent-runtime/src/agent_runtime/tools/__init__.py3CODE
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMservices/mcp-server/src/docs/user-documentation.ts1563### Creating the zip file correctly (Windows and AI assistants)COMMENT
MEDIUMservices/mcp-server/src/docs/user-documentation.ts3098# Create a new appCOMMENT
MEDIUMservices/control-api/src/routes/llms-txt.ts20### Creating a Todo App BackendCOMMENT
MEDIUMservices/agent-runtime/tests/test_hitl.py86 # Create a registry with the interrupt toolCOMMENT
Excessive Try-Catch Wrapping12 hits · 12 pts
SeverityFileLineSnippetContext
LOWservices/agent-runtime/src/agent_runtime/runner.py299 except Exception as exc:CODE
LOWservices/agent-runtime/src/agent_runtime/compiler.py78 except Exception as e:CODE
LOWservices/agent-runtime/src/agent_runtime/compiler.py154 except Exception as e:CODE
LOWservices/agent-runtime/src/agent_runtime/cancel.py43 except Exception:CODE
LOWservices/agent-runtime/src/agent_runtime/events.py45 except Exception:CODE
LOW…rvices/agent-runtime/src/agent_runtime/safe_request.py41 except Exception as exc:CODE
LOW…rvices/agent-runtime/src/agent_runtime/redis_client.py17 except Exception:CODE
LOWservices/agent-runtime/src/agent_runtime/heartbeat.py41 except Exception:CODE
LOWservices/agent-runtime/src/agent_runtime/webhooks.py54 except Exception:CODE
LOWservices/agent-runtime/src/agent_runtime/webhooks.py62 except Exception:CODE
LOWservices/agent-runtime/src/agent_runtime/webhooks.py92 except Exception as exc:CODE
LOWservices/agent-runtime/src/agent_runtime/routes/runs.py79 except Exception:CODE
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHservices/agent-runtime/src/agent_runtime/cancel.py41except asyncio.CancelledError:CODE
HIGHservices/agent-runtime/src/agent_runtime/heartbeat.py41except Exception:CODE
Modern Structural Boilerplate8 hits · 9 pts
SeverityFileLineSnippetContext
LOW⚡services/agent-runtime/tests/test_runner_lifecycle.py158async def _set_graph_spec(pg_pool, run_id: str, graph_spec: dict) -> None:CODE
LOW⚡services/agent-runtime/tests/test_runner_lifecycle.py171async def _set_run_input(pg_pool, run_id: str, input_data: dict) -> None:CODE
LOWservices/agent-runtime/src/agent_runtime/cancel.py5logger = logging.getLogger(__name__)CODE
LOWservices/agent-runtime/src/agent_runtime/events.py8logger = logging.getLogger(__name__)CODE
LOWservices/agent-runtime/src/agent_runtime/app.py17logger = logging.getLogger(__name__)CODE
LOWservices/agent-runtime/src/agent_runtime/webhooks.py11logger = logging.getLogger(__name__)CODE
LOW…ices/agent-runtime/src/agent_runtime/tools/__init__.py16__all__ = [CODE
LOWservices/agent-runtime/src/agent_runtime/routes/runs.py21logger = logging.getLogger(__name__)CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…tterSupport/backend/functions/widget-ingest/handler.ts101 // detail view runs a nicer AI-generated retitle async, but we still want aCOMMENT
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWservices/agent-runtime/tests/live/fake_openrouter.py21CODE
LOWservices/agent-runtime/src/agent_runtime/runner.py90CODE
LOWservices/agent-runtime/src/agent_runtime/compiler.py28CODE
LOWservices/agent-runtime/src/agent_runtime/compiler.py174CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/rotate-do-invoker-token.sh14# Usage:COMMENT
LOWtemplates/butterbaseCRM/dev/smoke-sync.sh20# Usage:COMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMservices/control-api/src/services/neon-task-worker.ts1341 // robust to any future refactor that might decouple those two writes.COMMENT
Magic Placeholder Names1 hit · 2 pts
SeverityFileLineSnippetContext
HIGH.gitleaks.toml17 '''YOUR_API_KEY''',STRING
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdispatch-worker/index.js97export async function handleRequest(request, env, ctx) {CODE