AI Slop Code RIsk Monitor

langchain-ai/open-swe

An Open-Source Cloud Software Factory

12.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for langchain-ai/open-swe, a Python project with 10,990 GitHub stars. SynthScan examined 374,397 lines of code across 1945 source files, recording 4205 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 12.2 (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.

12.2
Adjusted Signal
12.2
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
11.0K
Stars
Python
Language
374.4K
Lines of Code
1.9K
Files
4.2K
Pattern Hits
2026-10-12
Scan Date
0.03
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 33.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 6.5/100 · LOW

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

Agent Over-Engineering Ratio 40.5/100 · MEDIUM

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

PR Review Velocity Impact 45.8/100 · MEDIUM

Which changes need focused human review? 4205 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 0HIGH 64MEDIUM 30LOW 4111

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 4205 distinct pattern matches across 18 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 Identifiers2819 hits · 2872 pts
SeverityFileLineSnippetContext
LOW…/src/features/assistant/useModelSelectionSubmission.ts6export function useModelSelectionSubmission(CODE
LOW…s/settings/components/WorkspaceRepositoriesSection.tsx9export function WorkspaceRepositoriesSection({CODE
LOW…res/settings/components/ManagedToolsGatewaySection.tsx15export function ManagedToolsGatewaySection({CODE
LOW…es/settings/components/PersonalInstructionsSection.tsx12export function PersonalInstructionsSection() {CODE
LOWui/src/features/agents/terminal/terminalLinks.ts65export function collectWrappedTerminalLinkLine(CODE
LOWui/src/features/agents/terminal/ghostty/surface.ts63function ensureTerminalSymbolsFont(): Promise<void> {CODE
LOWui/src/features/agents/terminal/ghostty/surface.ts79function quoteTerminalFontFamilies(list: string): string {CODE
LOWui/src/features/agents/terminal/ghostty/surface.ts93function uncheckedTerminalFontFamily(family?: string): string {CODE
LOWui/src/features/agents/terminal/ghostty/surface.ts152export function shouldBlinkTerminalCursor(state: {CODE
LOWui/src/features/agents/terminal/ghostty/surface.ts191export function terminalScrollbarGeometry(CODE
LOWui/src/features/agents/terminal/ghostty/surface.ts212export function terminalScrollbarOffsetAtPointer(CODE
LOWui/src/features/agents/terminal/ghostty/surface.ts297export function terminalLinkAtPositionWithRange(CODE
LOWui/src/features/agents/terminal/ghostty/surface.ts397export function isTerminalCompositionCommitInput(CODE
LOWui/src/features/agents/terminal/ghostty/surface.ts413export function shouldReportTerminalMouse(CODE
LOWui/src/features/agents/terminal/ghostty/surface.ts454export function isTerminalLinkPointerGesture(CODE
LOWui/src/features/agents/terminal/ghostty/surface.ts463export function shouldShowTerminalLinkHover(CODE
LOWui/src/features/agents/terminal/ghostty/surface.ts494export function advanceTerminalSelectionClickSequence(CODE
LOWui/src/features/agents/terminal/ghostty/keyCodes.ts223export function loadGhosttyKeyboardLayoutMap(): Promise<CODE
LOWui/src/features/agents/terminal/ghostty/keyCodes.ts242export function ghosttyUnshiftedCodepoint(CODE
LOWui/src/features/agents/utils/diffUtils.ts87function handleDiffOverflowStorage(event: StorageEvent): void {CODE
LOW…/src/features/agents/components/PullRequestPreview.tsx32export function parseGitHubPullRequestUrl(CODE
LOW…/src/features/agents/components/PullRequestPreview.tsx52export function PullRequestPreviewProvider({CODE
LOW…/src/features/agents/components/PullRequestPreview.tsx92export function PreviewablePullRequestLink({CODE
LOWui/src/features/agents/components/SidebarThreadRow.tsx140function openContextMenuFromKeyboard(CODE
LOW…/agents/components/chat/ManagedToolsConnectionCard.tsx17export function ManagedToolsConnectionCard({CODE
LOW…src/features/agents/components/chat/markdownPlugins.ts71function isSameLineOverIndentedCode(CODE
LOW…src/features/agents/components/chat/markdownPlugins.ts148export function remarkNormalizeListItemIndentation(this: MarkdownParser) {CODE
LOW…es/agents/components/composer/ComposerPromptEditor.tsx640function ComposerPromptEditorInner({CODE
LOW…features/agents/components/composer/composerTrigger.ts46function encodeMarkdownLinkDestination(path: string): string {CODE
LOW…features/agents/components/composer/composerTrigger.ts59export function serializeComposerFileLink(path: string): string {CODE
LOWui/src/features/agents/lib/autoSelectionIntent.ts2export function createAutoSelectionIntent() {CODE
LOWui/src/features/agents/lib/diffPanelStore.ts36export function migratePersistedDiffPanelState(persistedState: unknown): {CODE
LOWui/src/features/agents/lib/sidebarThreads.ts231export function groupSidebarThreadsByRepo(CODE
LOWui/src/features/agents/lib/sidebarThreads.ts305export function groupSidebarThreadsByWorkspace(CODE
LOWui/src/features/agents/lib/contextUsage.ts24export function contextUsageFromUsageMetadata(CODE
LOWui/src/features/agents/lib/queries.ts71export function invalidateAgentThreadLists(queryClient: QueryClient): void {CODE
LOWui/src/features/agents/lib/queries.ts222function snapshotAgentThreadQueries(CODE
LOWui/src/features/agents/lib/queries.ts290export function restoreAgentThreadQueries(CODE
LOWui/src/features/agents/lib/queries.ts505export function useOrganizationAgentSkills(enabled = true) {CODE
LOWui/src/features/agents/lib/queries.ts596export function useSeedAgentThreadDetails(CODE
LOWui/src/features/agents/lib/queries.ts851export function useAgentThreadPullRequestStatus(CODE
LOWui/src/features/agents/lib/queries.ts866export function useAgentThreadQueuedMessages(threadId: string) {CODE
LOWui/src/features/agents/lib/queries.ts885export function useAgentThreadWorkingTreeDiff(CODE
LOWui/src/features/agents/lib/queries.ts937export function useWorkflowApprovalDecision(threadId: string) {CODE
LOWui/src/features/agents/lib/queries.ts1162export function useAdminCancelAgentThread() {CODE
LOWui/src/features/agents/lib/queries.ts1211export function useShareThreadWithWorkspace() {CODE
LOWui/src/features/agents/lib/queries.ts1225export function useContinueThreadPrivately() {CODE
LOWui/src/features/agents/lib/terminalSession.ts151export function useDesktopTerminalMetadata(CODE
LOWui/src/features/agents/lib/terminalSession.ts245export function cloudTerminalReconnectDelay(attempt: number): number {CODE
LOWui/src/features/agents/lib/terminalSession.ts249export function shouldReconnectCloudTerminal(CODE
LOWui/src/features/agents/lib/api.ts191function filenameFromContentDisposition(value: string | null): string | null {CODE
LOWui/src/features/agents/lib/gitPanelPreferences.ts17export function writeStoredPanelCollapsed(CODE
LOWui/src/features/agents/lib/structuredInputMessages.ts268export function collectStructuredEntities(CODE
LOWui/src/features/agents/lib/rightPanelStore.ts177export function migratePersistedRightPanelState(persistedState: unknown): {CODE
LOWui/src/features/agents/lib/rightPanelStore.ts582export function selectThreadRightPanelState(CODE
LOWui/src/features/agents/lib/rightPanelStore.ts591export function selectSelectedRightPanelSurface(CODE
LOWui/src/features/agents/lib/rightPanelStore.ts602export function selectActiveRightPanelSurface(CODE
LOWui/src/features/agents/lib/legacyLocal.ts23export async function ensureDesktopModelCredential(CODE
LOWui/src/features/agents/lib/legacyLocal.ts43export function useReadyLegacyLocalThread(threadId: string) {CODE
LOWui/src/features/agents/lib/legacyLocal.ts100export function useMarkLegacyLocalThreadViewed() {CODE
2759 more matches not shown…
Excessive Try-Catch Wrapping565 hits · 576 pts
SeverityFileLineSnippetContext
LOWevals/reviewer/run_eval.py242 except Exception:CODE
LOWevals/reviewer/run_eval.py269 except Exception:CODE
LOWevals/reviewer/run_eval.py284 except Exception as exc:CODE
LOWevals/reviewer/run_eval.py297 except Exception:CODE
LOWevals/reviewer/store_reporter.py93 except Exception:CODE
LOWevals/reviewer/target.py214 except Exception:CODE
LOWevals/reviewer/build_dataset.py132 except Exception as exc:CODE
MEDIUMtests/e2e/harness.py98def _exit_when_orphaned() -> None:CODE
LOWtests/e2e/harness.py101 except Exception:CODE
LOWopenswe/store.py94 except Exception as exc:CODE
LOWopenswe/store.py116 except Exception as exc:CODE
LOW⚡openswe/server.py392 except Exception:CODE
LOW⚡openswe/server.py407 except Exception:CODE
LOW⚡openswe/server.py418 except Exception:CODE
LOW⚡openswe/server.py427 except Exception:CODE
LOWopenswe/server.py529 except Exception:CODE
LOWopenswe/server.py735 except Exception:CODE
LOWopenswe/server.py893 except Exception as e: # noqa: BLE001CODE
LOWopenswe/server.py1142 except Exception:CODE
LOWopenswe/server.py1161 except Exception:CODE
LOWopenswe/server.py1362 except Exception:CODE
LOWopenswe/server.py1451 except Exception:CODE
LOWopenswe/baby_sit.py58 except Exception:CODE
LOWopenswe/baby_sit.py67 except Exception:CODE
LOWopenswe/baby_sit.py180 except Exception:CODE
LOWopenswe/baby_sit.py229 except Exception:CODE
LOWopenswe/baby_sit.py234 except Exception:CODE
LOWopenswe/baby_sit.py247 except Exception:CODE
LOWopenswe/baby_sit.py295 except Exception:CODE
LOWopenswe/baby_sit.py316 except Exception:CODE
LOWopenswe/baby_sit.py327 except Exception:CODE
LOWopenswe/baby_sit.py352 except Exception:CODE
LOWopenswe/baby_sit.py528 except Exception:CODE
LOWopenswe/background_tasks.py258 except Exception:CODE
LOWopenswe/background_tasks.py298 except Exception:CODE
LOWopenswe/agent_cost.py91 except Exception: # noqa: BLE001CODE
LOWopenswe/agent_cost.py108 except Exception: # noqa: BLE001CODE
LOWopenswe/agent_cost.py146 except Exception: # noqa: BLE001CODE
LOWopenswe/agent_cost.py158 except Exception: # noqa: BLE001CODE
LOWopenswe/agent_cost.py219 except Exception: # noqa: BLE001CODE
LOWopenswe/completion.py186 except Exception: # noqa: BLE001CODE
LOWopenswe/completion.py337 except Exception: # noqa: BLE001CODE
LOWopenswe/completion.py351 except Exception: # noqa: BLE001CODE
LOWopenswe/completion.py359 except Exception: # noqa: BLE001CODE
LOWopenswe/completion.py380 except Exception:CODE
LOWopenswe/completion.py419 except Exception: # noqa: BLE001CODE
LOWopenswe/completion.py443 except Exception: # noqa: BLE001CODE
LOWopenswe/completion.py474 except Exception: # noqa: BLE001CODE
LOWopenswe/completion.py523 except Exception:CODE
LOWopenswe/completion.py571 except Exception: # noqa: BLE001CODE
LOWopenswe/completion.py607 except Exception: # noqa: BLE001CODE
LOWopenswe/completion.py629 except Exception: # noqa: BLE001CODE
LOWopenswe/session_cost.py107 except Exception:CODE
LOWopenswe/session_cost.py133 except Exception: # noqa: BLE001CODE
LOWopenswe/session_cost.py139 except Exception: # noqa: BLE001CODE
LOWopenswe/session_cost.py239 except Exception: # noqa: BLE001CODE
LOWopenswe/dispatch.py337 except Exception:CODE
LOWopenswe/rollout_events.py255 except Exception: # noqa: BLE001CODE
LOWopenswe/chat.py107 except Exception as e: # noqa: BLE001CODE
LOWopenswe/thread_title.py148 except Exception:CODE
505 more matches not shown…
Modern Structural Boilerplate344 hits · 346 pts
SeverityFileLineSnippetContext
LOWevals/reviewer/run_eval.py35logger = logging.getLogger(__name__)CODE
LOWevals/reviewer/store_reporter.py25logger = logging.getLogger(__name__)CODE
LOWevals/reviewer/costs.py29logger = logging.getLogger(__name__)CODE
LOWevals/reviewer/target.py26logger = logging.getLogger(__name__)CODE
LOWtests/reviewer/test_reviewer_outcomes.py40 def update_example(self, **kwargs: Any) -> None:CODE
LOW⚡tests/auth/test_encryption.py10def _set_key(monkeypatch: pytest.MonkeyPatch, value: str) -> None:CODE
LOWtests/utils/test_startup_trace.py24 def update_run(self, run_id: Any, **kwargs: Any) -> None:CODE
LOWtests/e2e/agent_entrypoint.py19__all__ = ["traced_agent"]CODE
LOWtests/e2e/chat_entrypoint.py18__all__ = ["traced_chat_agent"]CODE
LOWtests/e2e/scheduler_entrypoint.py20__all__ = ["get_scheduler"]CODE
LOWtests/e2e/patches.py24logger = logging.getLogger(__name__)CODE
LOWtests/e2e/review_scout_entrypoint.py18__all__ = ["traced_review_scout"]CODE
LOWtests/e2e/fakes.py653def set_repo_private(value: bool) -> None:CODE
LOWtests/e2e/fakes.py694def set_collaborator_permission(login: str, permission: str) -> None:CODE
LOWmda/reviewer/open_swe_reviewer/middleware.py32logger = logging.getLogger(__name__)CODE
LOWopenswe/store.py27logger = logging.getLogger(__name__)CODE
LOWopenswe/server.py20logger = logging.getLogger(__name__)CODE
LOWopenswe/encryption.py9logger = logging.getLogger(__name__)CODE
LOWopenswe/baby_sit.py36logger = logging.getLogger(__name__)CODE
LOWopenswe/background_tasks.py32logger = logging.getLogger(__name__)CODE
LOWopenswe/agent_cost.py21logger = logging.getLogger(__name__)CODE
LOWopenswe/completion.py48logger = logging.getLogger(__name__)CODE
LOWopenswe/completion.py143async def _settle_failed_reviewer_check(thread_id: str, metadata: dict[str, Any]) -> None:CODE
LOWopenswe/completion.py424async def _settle_transcript_turn(thread_id: str, run_id: str | None, status: object) -> None:CODE
LOWopenswe/session_cost.py23logger = logging.getLogger(__name__)CODE
LOWopenswe/dispatch.py61logger = logging.getLogger(__name__)CODE
LOWopenswe/webapp.py5__all__ = ["app"]CODE
LOWopenswe/rollout_events.py28logger = logging.getLogger(__name__)CODE
LOWopenswe/chat.py73logger = logging.getLogger(__name__)CODE
LOWopenswe/thread_ids.py13__all__ = [CODE
LOWopenswe/message_queue.py22logger = logging.getLogger(__name__)CODE
LOWopenswe/thread_title.py19logger = logging.getLogger(__name__)CODE
LOWopenswe/reviewer.py26logger = logging.getLogger(__name__)CODE
LOWopenswe/source_context.py29logger = logging.getLogger(__name__)CODE
LOWopenswe/thread_feedback.py14logger = logging.getLogger(__name__)CODE
LOWopenswe/scheduler.py31logger = logging.getLogger(__name__)CODE
LOWopenswe/prompt.py14logger = logging.getLogger(__name__)CODE
LOWopenswe/run_config.py36logger = logging.getLogger(__name__)CODE
LOWopenswe/reconcile.py16logger = logging.getLogger(__name__)CODE
LOWopenswe/local_checkpointer.py19logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/require_user_reply.py30logger = logging.getLogger(__name__)CODE
LOW⚡openswe/middleware/refresh_github_proxy.py20logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/sandbox_circuit_breaker.py22logger = logging.getLogger(__name__)CODE
LOW⚡openswe/middleware/deliver_event_matches.py14logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/transcript.py72logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/repair_orphaned_tool_calls.py26logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/model_call_timeout.py20logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/model_fallback.py46logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/notify_step_limit.py20logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/model_selection.py21logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/__init__.py37__all__ = [CODE
LOWopenswe/middleware/subdir_agents.py19logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/workflow_push_guard.py35logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/dynamic_tools.py27logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/settle_review_check.py22logger = logging.getLogger(__name__)CODE
LOW⚡openswe/middleware/record_run_usage.py16logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/tool_error_handler.py37logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/model_errors.py29logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/stale_workspace.py16logger = logging.getLogger(__name__)CODE
LOWopenswe/middleware/require_cli_result.py22logger = logging.getLogger(__name__)CODE
284 more matches not shown…
Cross-Language Confusion47 hits · 288 pts
SeverityFileLineSnippetContext
HIGHtests/tools/test_output_iframe.py76 "test -f /workspace/project/chart.html && wc -c < /workspace/project/chart.html",CODE
HIGH⚡tests/agent/test_repo_prep.py57 assert "git checkout --force abc123 --quiet 2>/dev/null || true" not in cmdCODE
HIGH⚡tests/agent/test_repo_prep.py59 assert "git fetch --all --quiet || true" in cmdCODE
HIGH⚡tests/agent/test_workflow_push_guard.py112 "cd /repo && git push -u origin HEAD:feature"CODE
HIGH⚡tests/agent/test_workflow_push_guard.py120 assert guard._parse_git_push("git status && git push") is NoneCODE
HIGH⚡tests/sandbox/test_sandbox_handoff.py27 _git(tmp_path, "git init -q --bare -b main origin.git && git clone -q origin.git seed")CODE
HIGH⚡tests/sandbox/test_sandbox_handoff.py28 _git(tmp_path / "seed", f"echo a>a && echo d>d && git add . && git {identity} commit -qm base")CODE
HIGH⚡tests/sandbox/test_sandbox_handoff.py33 _git(source, f"git checkout -qb feat && echo b>b && git add b && git {identity} commit -qm b")CODE
HIGH⚡tests/sandbox/test_sandbox_handoff.py34 _git(source, "echo edit>>a && rm d && echo new>untracked")CODE
HIGH⚡tests/sandbox/test_sandbox_handoff.py35 _git(tmp_path, "git clone -q origin.git mac && git -C mac worktree add -q -b local ../wt main")CODE
HIGH⚡tests/sandbox/test_sandbox_paths.py70 assert backend.commands == ["test -d /workspace && test -w /workspace"]CODE
HIGHtests/sandbox/test_sandbox_paths.py87 "test -d /workspace && test -w /workspace",CODE
HIGHtests/sandbox/test_sandbox_paths.py89 "test -d /home/daytona && test -w /home/daytona",CODE
HIGHtests/sandbox/test_langsmith_sandbox_timeout.py185 "test -e /workspace/repo/obsolete.txt || test -L /workspace/repo/obsolete.txt",CODE
HIGHtests/e2e/fake_llm.py757 {"name": "execute", "args": {"command": "echo planning && ls"}, "id": "call-plan-read"}STRING
HIGHtests/e2e/fake_llm.py811 "set -euo pipefail\nmkdir -p repos && echo provisioned > repos/.provisioned && ls -a repos"STRING
HIGHtests/e2e/fake_llm.py997 {"command": "sleep 3 && ls"},CODE
HIGHopenswe/background_tasks.py139 f"rmdir {shlex.quote(f'{TASK_ROOT}/{task_id}/notify.claim')} 2>/dev/null || true",CODE
HIGHopenswe/background_tasks.py353 f"rmdir {shlex.quote(MONITOR_LOCK)} 2>/dev/null || true", timeout=10CODE
HIGHopenswe/sandboxes/paths.py47 f'{{ test -e "$HOME"/{name}/.git && printf %s "$HOME"/{name}; }}'CODE
HIGH⚡openswe/sandboxes/handoff.py27cd {dir} 2>/dev/null && git rev-parse --git-dir >/dev/null 2>&1 || exit 0CODE
HIGH⚡openswe/sandboxes/handoff.py27cd {dir} 2>/dev/null && git rev-parse --git-dir >/dev/null 2>&1 || exit 0CODE
HIGH⚡openswe/sandboxes/handoff.py29git fetch -q --prune origin || trueCODE
HIGH⚡openswe/sandboxes/handoff.py31cp "$(git rev-parse --git-path index)" "$index" 2>/dev/null || rm -f "$index"CODE
HIGH⚡openswe/sandboxes/handoff.py40echo "{prefix}$(git symbolic-ref -q --short HEAD || true)"CODE
HIGH⚡openswe/sandboxes/handoff.py45test -e {dir}/.git || gh repo clone {repo} {dir}CODE
HIGH⚡openswe/sandboxes/handoff.py54 && git checkout -q -f -B "$b" "$wip^" 2>/dev/null; thenCODE
HIGH⚡openswe/sandboxes/repo_prep.py49 f" cd {q_repo_dir} && {{ git fetch --all --quiet || true; }}",CODE
HIGH⚡openswe/sandboxes/repo_prep.py56 lines.append(f"git fetch origin {q_base} --quiet 2>/dev/null || true")CODE
HIGH⚡openswe/sandboxes/repo_prep.py60 lines.append(f"git fetch origin {q_head} --quiet 2>/dev/null || true")CODE
HIGH⚡openswe/sandboxes/repo_prep.py63 lines.append(f"git fetch origin {pull_ref} --quiet 2>/dev/null || true")CODE
HIGHopenswe/tools/background_execute.py238 f"acquired=; for _ in 1 2 3 4 5 6 7 8 9 10; do mkdir {lock} 2>/dev/null && acquired=1 && break; sleep .1; done; STRING
HIGHopenswe/tools/repair_data.py35 """Replace one Store item, or delete it with value=null, after explicit confirmation."""STRING
HIGHopenswe/transcript/projections.py187 assignments.append("metadata = metadata || CAST(:metadata AS jsonb)")CODE
HIGHopenswe/transcript/projections.py458 text = thread_message.text || EXCLUDED.text,STRING
HIGHopenswe/transcript/projections.py459 reasoning = thread_message.reasoning || EXCLUDED.reasoningSTRING
HIGHopenswe/walkthrough/checkout.py82 ' git fetch --quiet origin "$ref" 2>/dev/null || true\n'CODE
HIGHopenswe/utils/turn_checkpoint.py26 "if git rev-parse --verify -q HEAD >/dev/null; then git read-tree HEAD; "CODE
HIGH⚡openswe/utils/turn_checkpoint.py58 'if B=$(git rev-parse --verify "${B_INPUT}^{tree}" 2>/dev/null); then :; 'CODE
HIGH⚡openswe/utils/turn_checkpoint.py59 'elif [ "$B_INPUT" = HEAD ]; then B=$(git hash-object -t tree /dev/null); 'CODE
HIGH⚡openswe/utils/turn_checkpoint.py61 'H=$(git rev-parse --verify "${H}^{tree}" 2>/dev/null) || exit 4'CODE
HIGHopenswe/workspaces/store.py286 f"rc=$?; cat {shlex.quote(log_path)} 2>/dev/null; exit $rc"CODE
HIGH⚡openswe/review/eval_jobs.py209 "command -v uv || curl -LsSf https://astral.sh/uv/install.sh | sh; "CODE
HIGH⚡openswe/review/eval_jobs.py210 "git init -q /root/open-swe && cd /root/open-swe && "CODE
HIGH⚡openswe/review/eval_jobs.py212 f"uv sync --locked && timeout {EVAL_TIMEOUT_SECONDS} "CODE
HIGHscripts/build_preview_branch.py471git fetch origin pull/{number}/head && git merge FETCH_HEAD # this oneCODE
HIGHscripts/build_preview_branch.py472git fetch origin pull/<other>/head && git merge FETCH_HEAD # each one it clashes withCODE
Unused Imports235 hits · 165 pts
SeverityFileLineSnippetContext
LOWtests/agent/test_agent_integration_tools.py25CODE
LOWtests/github/test_open_pull_request.py11CODE
LOWtests/e2e/agent_entrypoint.py17CODE
LOWtests/e2e/chat_entrypoint.py16CODE
LOWtests/e2e/scheduler_entrypoint.py18CODE
LOWtests/e2e/patches.py22CODE
LOWtests/e2e/review_scout_entrypoint.py16CODE
LOWopenswe/server.py166CODE
LOWopenswe/webapp.py3CODE
LOWopenswe/middleware/__init__.py70CODE
LOWopenswe/middleware/__init__.py71CODE
LOWopenswe/middleware/__init__.py72CODE
LOWopenswe/middleware/__init__.py72CODE
LOWopenswe/middleware/__init__.py73CODE
LOWopenswe/middleware/__init__.py74CODE
LOWopenswe/middleware/__init__.py75CODE
LOWopenswe/middleware/__init__.py76CODE
LOWopenswe/middleware/__init__.py77CODE
LOWopenswe/middleware/__init__.py78CODE
LOWopenswe/middleware/__init__.py79CODE
LOWopenswe/middleware/__init__.py80CODE
LOWopenswe/middleware/__init__.py80CODE
LOWopenswe/middleware/__init__.py81CODE
LOWopenswe/middleware/__init__.py82CODE
LOWopenswe/middleware/__init__.py83CODE
LOWopenswe/middleware/__init__.py84CODE
LOWopenswe/middleware/__init__.py85CODE
LOWopenswe/middleware/__init__.py86CODE
LOWopenswe/middleware/__init__.py87CODE
LOWopenswe/middleware/__init__.py88CODE
LOWopenswe/middleware/__init__.py89CODE
LOWopenswe/middleware/__init__.py90CODE
LOWopenswe/middleware/__init__.py91CODE
LOWopenswe/middleware/__init__.py91CODE
LOWopenswe/middleware/__init__.py92CODE
LOWopenswe/middleware/__init__.py93CODE
LOWopenswe/middleware/__init__.py94CODE
LOWopenswe/middleware/__init__.py95CODE
LOWopenswe/database/__init__.py3CODE
LOWopenswe/database/__init__.py3CODE
LOWopenswe/database/__init__.py3CODE
LOWopenswe/database/__init__.py3CODE
LOWopenswe/database/__init__.py3CODE
LOWopenswe/database/__init__.py3CODE
LOWopenswe/database/__init__.py3CODE
LOWopenswe/database/__init__.py3CODE
LOWopenswe/tools/__init__.py176CODE
LOWopenswe/tools/__init__.py177CODE
LOWopenswe/tools/__init__.py178CODE
LOWopenswe/tools/__init__.py179CODE
LOWopenswe/tools/__init__.py180CODE
LOWopenswe/tools/__init__.py181CODE
LOWopenswe/tools/__init__.py181CODE
LOWopenswe/tools/__init__.py181CODE
LOWopenswe/tools/__init__.py186CODE
LOWopenswe/tools/__init__.py187CODE
LOWopenswe/tools/__init__.py188CODE
LOWopenswe/tools/__init__.py189CODE
LOWopenswe/tools/__init__.py190CODE
LOWopenswe/tools/__init__.py191CODE
175 more matches not shown…
Deep Nesting87 hits · 81 pts
SeverityFileLineSnippetContext
LOWevals/reviewer/run_eval.py304CODE
LOWtests/auth/test_thread_credential_scope.py150CODE
LOWtests/dashboard/test_allowed_slack_bots.py18CODE
LOWtests/dashboard/test_allowed_slack_bots.py31CODE
LOWtests/github/test_github_app.py77CODE
LOWtests/slack/test_slack_context.py802CODE
LOWtests/slack/test_slack_untagged_flag.py264CODE
LOWtests/slack/test_slack_message_api.py168CODE
LOWopenswe/server.py1053CODE
LOWopenswe/baby_sit.py186CODE
LOWopenswe/background_tasks.py326CODE
LOWopenswe/dispatch.py102CODE
LOWopenswe/dispatch.py314CODE
LOWopenswe/thread_title.py64CODE
LOWopenswe/reconcile.py37CODE
LOWopenswe/middleware/pr_creation_guard.py152CODE
LOWopenswe/middleware/transcript.py96CODE
LOWopenswe/middleware/transcript.py258CODE
LOWopenswe/middleware/transcript.py417CODE
LOWopenswe/middleware/model_fallback.py186CODE
LOWopenswe/middleware/check_message_queue.py160CODE
LOWopenswe/database/notifications.py114CODE
LOWopenswe/sandboxes/tool_store.py28CODE
LOWopenswe/sandboxes/retry.py39CODE
LOWopenswe/sandboxes/providers/langsmith.py328CODE
LOWopenswe/tools/open_pull_request.py623CODE
LOWopenswe/tools/open_pull_request.py919CODE
LOWopenswe/tools/open_pull_request.py966CODE
LOWopenswe/tools/publish_review.py287CODE
LOWopenswe/tools/publish_review.py930CODE
LOWopenswe/tools/publish_review.py1070CODE
LOWopenswe/tools/workspaces.py101CODE
LOWopenswe/human_review/routes.py34CODE
LOWopenswe/transcript/routes.py205CODE
LOWopenswe/resources/recovery_patch.py104CODE
LOWopenswe/linear/webhook.py37CODE
LOWopenswe/walkthrough/plan.py95CODE
LOWopenswe/audit_logs/middleware.py53CODE
LOWopenswe/utils/jev.py43CODE
LOWopenswe/utils/model.py268CODE
LOWopenswe/utils/model.py303CODE
LOWopenswe/utils/thread_participants.py94CODE
LOWopenswe/utils/thread_participants.py220CODE
LOWopenswe/utils/thread_pr_state.py26CODE
LOWopenswe/mcp/runtime.py103CODE
LOWopenswe/ui_invalidations/hub.py63CODE
LOWopenswe/github/codeowners.py70CODE
LOWopenswe/github/webhook.py413CODE
LOWopenswe/github/webhook.py989CODE
LOWopenswe/github/webhook.py1394CODE
LOWopenswe/github/pull_requests.py373CODE
LOWopenswe/threads/terminal.py73CODE
LOWopenswe/threads/terminal.py116CODE
LOWopenswe/threads/handlers.py197CODE
LOWopenswe/threads/listing.py560CODE
LOWopenswe/threads/listing.py711CODE
LOWopenswe/threads/summary.py313CODE
LOWopenswe/threads/summary.py431CODE
LOWopenswe/threads/runs.py747CODE
LOWopenswe/threads/recent_context.py161CODE
27 more matches not shown…
Empty Error Handlers11 hits · 55 pts
SeverityFileLineSnippetContext
HIGHevals/reviewer/run_eval.py242except Exception:CODE
HIGHtests/ui_invalidations/test_ui_invalidations.py32except RuntimeError:CODE
HIGHopenswe/middleware/transcript.py575except asyncio.QueueEmpty:CODE
HIGHopenswe/bridge/listener.py111except asyncio.CancelledError:CODE
HIGHopenswe/bridge/listener.py136except TimeoutError:CODE
HIGHopenswe/bridge/routes.py165except TimeoutError:CODE
HIGHopenswe/utils/ttl_cache.py120except RuntimeError:CODE
HIGHopenswe/threads/terminal.py149except WebSocketDisconnect:CODE
HIGHopenswe/threads/terminal.py157except Exception: # noqa: BLE001CODE
HIGHopenswe/incidents/runtime.py273except ValueError:CODE
HIGHopenswe/analytics/worker.py28except TimeoutError:CODE
AI Slop Vocabulary14 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUMtests/e2e/local_desktop_login.py79 # harness's own callback and escape what reaches the page.COMMENT
MEDIUMtests/e2e/harness.py834 # dev:mock), not this harness, so the cookie + the hot-reloading UI line up.COMMENT
MEDIUMtests/e2e/dev-mock.sh2# Local dev against the mock harness, with a REAL LLM and a Vite HMR dev server.COMMENT
MEDIUMtests/e2e/dev-mock.sh5# Slack/GitHub + sign-in to the harness ($API). Same-origin is what lets theCOMMENT
MEDIUMtests/e2e/dev-mock.sh27# Pulled line-by-line, not by sourcing .env, which would clobber the harness'sCOMMENT
MEDIUMtests/e2e/dev-mock.sh47# own origin and Vite proxies it (and the WS) to the harness.COMMENT
MEDIUMtests/e2e/patches.py59 # Set E2E_REAL_LLM=1 to drive the harness (mock Slack/GitHub, real agent)COMMENT
MEDIUMtests/e2e/patches.py138 # from the harness origin instead, so teach the parser that one extra shapeCOMMENT
MEDIUMtests/e2e/patches.py167 # that a loopback harness cannot satisfy: the ticket URL must be onCOMMENT
MEDIUMtests/e2e/patches.py169 # rejects loopback. Widen both to this one harness path — skipping themCOMMENT
MEDIUMtests/e2e/e2e_env.py42# Where a browser reaches the dashboard: the app's own server, not this harness.COMMENT
MEDIUMopenswe/run_config.py181 # Eval harnessCOMMENT
MEDIUMopenswe/dashboard/auth_routes.py61# Module-level so a local harness can point the browser leg at a fake consentCOMMENT
MEDIUMopenswe/review/eval_jobs.py49# A launched sandbox clones and syncs before the harness writes its first heartbeat.COMMENT
Fake / Example Data33 hits · 38 pts
SeverityFileLineSnippetContext
LOWevals/reviewer/golden_comments/discourse.json62 "comment": "The case-sensitive email lookup in `BlockedEmail.should_block?` creates a bypass risk, allowing 'UseCODE
LOWtests/api_keys/test_api_key_routes.py13_ADMIN_SESSION = {"sub": "admin", "email": "admin@example.com"}CODE
LOW⚡tests/auth/test_authorship.py106 async def fake_token(**kwargs: Any) -> str:CODE
LOW⚡tests/auth/test_authorship.py109 monkeypatch.setattr(github_app, "get_github_app_installation_token", fake_token)CODE
LOW⚡tests/agent/test_server_prepare_analytics.py187 async def fake_token(**kwargs: Any) -> str:CODE
LOW⚡tests/agent/test_server_prepare_analytics.py190 monkeypatch.setattr("openswe.github.app.get_github_app_installation_token", fake_token)CODE
LOW⚡tests/agent/test_admin_workspaces.py279 monkeypatch.setenv("CONFIGURED_ADMINS", "admin@example.com")CODE
LOW⚡tests/agent/test_admin_workspaces.py287 admin_requester_config = _config(user_email="admin@example.com")CODE
LOWtests/workspaces/test_routes.py14_ADMIN_SESSION = {"sub": "admin", "email": "admin@example.com"}CODE
LOW⚡tests/dashboard/test_workspace_mcps.py194 monkeypatch.setenv("CONFIGURED_ADMINS", "admin@example.com")CODE
LOW⚡tests/dashboard/test_workspace_mcps.py198 session = {"sub": "admin", "email": "admin@example.com"}CODE
LOWtests/dashboard/test_workspace_mcps.py222 session = {"sub": "admin", "email": "admin@example.com"}CODE
LOWtests/dashboard/test_workspace_mcps.py237 monkeypatch.setenv("CONFIGURED_ADMINS", "admin@example.com")CODE
LOWtests/dashboard/test_workspace_mcps.py248 session = {"sub": "admin", "email": "admin@example.com"}CODE
LOWtests/dashboard/test_workspace_mcps.py265 session = {"sub": "admin", "email": "admin@example.com"}CODE
LOW⚡tests/dashboard/test_dashboard_thread_api.py1368 deps.require_admin({"sub": "not-admin", "email": "user@example.com"})CODE
LOWtests/dashboard/test_dashboard_thread_api.py1084 email="admin@example.com",CODE
LOW⚡tests/dashboard/test_thread_visibility.py61 assert summary.thread_is_readable(metadata, "someone", "admin@example.com")CODE
LOWtests/dashboard/test_thread_visibility.py18_ADMINS = {"admin", "admin@example.com"}CODE
LOWtests/dashboard/test_thread_visibility.py378 "private-thread", "someone", email="admin@example.com"CODE
LOW⚡tests/dashboard/test_public_repo_org_gate.py327 async def fake_token(**_kwargs) -> None:CODE
LOW⚡tests/dashboard/test_public_repo_org_gate.py333 monkeypatch.setattr(github_org_membership, "get_github_app_installation_token", fake_token)CODE
LOWtests/dashboard/test_public_repo_org_gate.py369 async def fake_token(**kwargs) -> str:CODE
LOWtests/dashboard/test_public_repo_org_gate.py376 monkeypatch.setattr(github_org_membership, "get_github_app_installation_token", fake_token)CODE
LOWtests/github/test_repo_extraction.py35 "user": {"id": "user-1", "name": "Test User", "email": "test@test.com"},CODE
LOWtests/github/test_repo_extraction.py72 "email": "test@test.com",CODE
LOWtests/e2e/harness.py1175 prefix = "dummy-user-oauth-token:"CODE
LOWtests/e2e/patches.py230 return f"dummy-user-oauth-token:{login}" if login else "dummy-user-oauth-token"CODE
LOWtests/e2e/tests/human_review.spec.ts273 headers: { Authorization: `Bearer dummy-user-oauth-token:${login}` },CODE
LOWdocs/CUSTOMIZATION.md595 "user_email": "user@example.com",CODE
LOWopenswe/slack/thread_feedback.py92 "placeholder": {"type": "plain_text", "text": "What could be better?"},CODE
LOWopenswe/slack/blocks.py300 element["placeholder"] = plain_text(placeholder)CODE
LOWopenswe/slack/blocks.py340 element["placeholder"] = plain_text(placeholder)CODE
AI Structural Patterns21 hits · 18 pts
SeverityFileLineSnippetContext
LOWtests/threads/test_recent_context.py47CODE
LOWopenswe/server.py899CODE
LOWopenswe/dispatch.py342CODE
LOWopenswe/dispatch.py436CODE
LOWopenswe/prompt.py113CODE
LOWopenswe/middleware/workflow_push_guard.py254CODE
LOWopenswe/sandboxes/providers/langsmith.py816CODE
LOWopenswe/tools/code_channel_set_view.py18CODE
LOWopenswe/tools/listen_events.py82CODE
LOWopenswe/tools/threads.py249CODE
LOWopenswe/tools/threads.py989CODE
LOWopenswe/tools/automations.py88CODE
LOWopenswe/tools/workspaces.py101CODE
LOWopenswe/threads/listing.py560CODE
LOWopenswe/threads/listing.py847CODE
LOWopenswe/threads/runs.py249CODE
LOWopenswe/threads/routes.py222CODE
LOWopenswe/slack/code_channels.py338CODE
LOWopenswe/slack/webhook.py443CODE
LOWopenswe/slack/tools/manage_code_channel.py50CODE
LOWopenswe/webhooks/common.py518CODE
Self-Referential Comments4 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUM⚡ui/native/libghostty-vt/include/ghostty/vt/terminal.h86 * ### Defining a write_pty callbackCOMMENT
MEDIUM⚡ui/native/libghostty-vt/include/ghostty/vt/terminal.h89 * ### Defining a bell callbackCOMMENT
MEDIUM⚡ui/native/libghostty-vt/include/ghostty/vt/terminal.h92 * ### Defining a title_changed callbackCOMMENT
MEDIUMui/native/libghostty-vt/include/ghostty/vt/sys.h33 * ### Defining a PNG decode callbackCOMMENT
Over-Commented Block15 hits · 15 pts
SeverityFileLineSnippetContext
LOWui/vite.config.ts341 route: `${prefix}/**`,COMMENT
LOWui/vitest.config.ts1import { defineConfig } from "vitest/config"COMMENT
LOWui/native/libghostty-vt/include/ghostty/vt.h121extern "C" {COMMENT
LOWui/native/libghostty-vt/include/ghostty/vt.h141#include <ghostty/vt/modes.h>COMMENT
LOWui/native/libghostty-vt/include/ghostty/vt/device.h21#define GHOSTTY_DA_CONFORMANCE_VT220 62COMMENT
LOWui/native/libghostty-vt/include/ghostty/vt/device.h41#define GHOSTTY_DA_FEATURE_NATIONAL_REPLACEMENT 9COMMENT
LOWui/native/libghostty-vt/include/ghostty/vt/types.h1/**COMMENT
LOWui/native/libghostty-vt/include/ghostty/vt/types.h21#if defined(GHOSTTY_STATIC)COMMENT
LOWui/native/libghostty-vt/include/ghostty/vt/formatter.h1/**COMMENT
LOWui/native/libghostty-vt/include/ghostty/vt/terminal.h1/**COMMENT
LOWui/native/libghostty-vt/include/ghostty/vt/modes.h61#define GHOSTTY_MODE_SLOW_SCROLL (ghostty_mode_new(4, false)) /**< Slow scroll */COMMENT
LOWui/native/libghostty-vt/include/ghostty/vt/modes.h81#define GHOSTTY_MODE_ALT_SCROLL (ghostty_mode_new(1007, false)) /**< Alternate scroll mode */COMMENT
LOWui/native/libghostty-vt/include/ghostty/vt/selection.h1/**COMMENT
LOWui/native/libghostty-vt/include/ghostty/vt/render.h1/**COMMENT
LOWtests/e2e/tests/expedited_review.spec.ts1import {COMMENT
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHui/src/features/settings/components/MCPImport.tsx161 '{\n "mcpServers": {\n "datadog": {\n "type": "http",\n "url": "https://mcp.us5.datadoghq.com/v1CODE
HIGHdocs/CUSTOMIZATION.md290 "DD_API_KEY": "YOUR_API_KEY",CODE
HIGHdocs/CUSTOMIZATION.md306Open SWE, then configure its `/mcp` URL with an `Authorization: Bearer YOUR_API_KEY`CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHopenswe/linear/webhook.py0slack webhook handler — moved out of common.py (behavior-identical). helpers and constants stay in common.py; they are aSTRING
HIGHopenswe/github/webhook.py0slack webhook handler — moved out of common.py (behavior-identical). helpers and constants stay in common.py; they are aSTRING
HIGHopenswe/slack/webhook.py0slack webhook handler — moved out of common.py (behavior-identical). helpers and constants stay in common.py; they are aSTRING
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMui/native/libghostty-vt/include/ghostty/vt/wasm.h33 * Here's a simple example of using the Wasm utilities with the key encoder:COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMopenwiki/workflows/scheduling-and-baby-sit.md163### Agent-facing guardrailsCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtests/tools/test_read_only_sql.py149CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/dotenv_value.sh2# Print the value of KEY from a dotenv FILE the way python-dotenv reads it: lastCOMMENT