AI Slop Code Risk Monitor

assistant-ui/assistant-ui

SlopCodeMonitor badge for assistant-ui/assistant-ui Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Typescript/React Library for AI Chat 💬🚀

1.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for assistant-ui/assistant-ui, a TypeScript project with 12,871 GitHub stars. SynthScan examined 1,182,166 lines of code across 6626 source files, recording 975 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 1.1 (Low 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.

1.1
Adjusted Signal
1.1
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
12.9K
Stars
TypeScript
Language
1.2M
Lines of Code
6.6K
Files
975
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 3.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.4/100 · LOW

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

Agent Over-Engineering Ratio 3.1/100 · LOW

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

PR Review Velocity Impact 5.5/100 · LOW

Which changes need focused human review? 975 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 1HIGH 33MEDIUM 100LOW 841

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 975 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.

Hyper-Verbose Identifiers635 hits · 628 pts
SeverityFileLineSnippetContext
LOWpython/assistant-transport-backend-langgraph/main.py346def should_continue_after_tools(state: GraphState) -> str:CODE
LOWpython/assistant-transport-backend-langgraph/main.py420async def configure_checkpointer_from_env() -> None:CODE
LOW…hon/assistant-transport-backend-langgraph/test_main.py16async def test_chat_preserves_user_message_id(CODE
LOW…hon/assistant-transport-backend-langgraph/test_main.py58def test_should_call_tools_routes_only_frontend_calls_to_client() -> None:CODE
LOW…hon/assistant-transport-backend-langgraph/test_main.py77def test_should_call_tools_routes_unknown_calls_to_error_handling() -> None:CODE
LOW…hon/assistant-transport-backend-langgraph/test_main.py84async def test_tool_executor_defers_frontend_calls() -> None:CODE
LOW…hon/assistant-transport-backend-langgraph/test_main.py102async def test_tool_executor_keeps_unknown_tool_error() -> None:CODE
LOW…hon/assistant-transport-backend-langgraph/test_main.py114async def test_tool_executor_errors_disabled_and_malformed_request_tools() -> None:CODE
LOW…hon/assistant-transport-backend-langgraph/test_main.py143async def test_tool_executor_defers_frontend_and_errors_unknown_calls() -> None:CODE
LOW…hon/assistant-transport-backend-langgraph/test_main.py160def test_should_continue_after_tools_stops_for_deferred_calls() -> None:CODE
LOW…hon/assistant-transport-backend-langgraph/test_main.py179def test_should_continue_after_tools_resumes_server_calls() -> None:CODE
LOW…hon/assistant-transport-backend-langgraph/test_main.py189async def test_mixed_graph_turn_does_not_reenter_agent(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOW⚡…hon/assistant-transport-backend-langgraph/test_main.py240def test_cors_allows_listed_origins_with_credentials(load_main) -> None:CODE
LOW⚡…hon/assistant-transport-backend-langgraph/test_main.py248def test_cors_rejects_unlisted_origins(load_main) -> None:CODE
LOW⚡…hon/assistant-transport-backend-langgraph/test_main.py255def test_cors_wildcard_turns_off_credentials(load_main) -> None:CODE
LOW⚡…hon/assistant-transport-backend-langgraph/test_main.py263def test_example_configuration_binds_loopback(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWpython/assistant-stream/tests/test_reasoning.py31async def test_mixed_text_and_reasoning():CODE
LOW…on/assistant-stream/tests/test_resumable_redis_unit.py112async def test_custom_client_without_fencing_capabilities_uses_legacy_mutations() -> None:CODE
LOW…on/assistant-stream/tests/test_resumable_redis_unit.py136async def test_stale_finalizer_cannot_finalize_reacquired_stream() -> None:CODE
LOW…on/assistant-stream/tests/test_resumable_redis_unit.py168async def test_in_flight_append_cannot_mutate_reacquired_stream() -> None:CODE
LOW…on/assistant-stream/tests/test_resumable_redis_unit.py204async def test_in_flight_delete_cannot_remove_reacquired_stream() -> None:CODE
LOW…on/assistant-stream/tests/test_resumable_redis_unit.py238async def test_delete_does_not_clear_same_store_reacquisition() -> None:CODE
LOW…on/assistant-stream/tests/test_resumable_redis_unit.py274async def test_stale_lease_cannot_mutate_reacquired_stream_on_one_store() -> None:CODE
LOW…on/assistant-stream/tests/test_resumable_redis_unit.py303async def test_leased_in_flight_append_on_reacquiring_store_is_superseded() -> None:CODE
LOW…on/assistant-stream/tests/test_resumable_redis_unit.py340async def test_finalize_keeps_the_fence_of_a_reacquisition_on_the_same_store() -> None:CODE
LOW…on/assistant-stream/tests/test_resumable_redis_unit.py375async def test_new_acquisition_preserves_legacy_data_without_replaying_it() -> None:CODE
LOW…on/assistant-stream/tests/test_resumable_redis_unit.py393async def test_legacy_metadata_and_data_remain_readable() -> None:CODE
LOW…on/assistant-stream/tests/test_resumable_redis_unit.py410async def test_redis_adapter_uses_registered_finalize_script() -> None:CODE
LOWpython/assistant-stream/tests/test_interop_fixture.py8async def test_encoder_matches_committed_fixture():CODE
LOWpython/assistant-stream/tests/test_tool_args_settle.py30def test_tool_call_args_settler_tracks_begin_append_and_finish() -> None:CODE
LOWpython/assistant-stream/tests/test_tool_args_settle.py43def test_tool_call_args_settler_configures_empty_args_completion() -> None:CODE
LOWpython/assistant-stream/tests/test_tool_args_settle.py58def test_tool_call_args_settler_drops_settled_ids_and_warns_once() -> None:CODE
LOWpython/assistant-stream/tests/test_tool_args_settle.py72def test_tool_call_args_settler_flushes_open_calls() -> None:CODE
LOWpython/assistant-stream/tests/test_with_parent_id.py9async def test_with_parent_id_shares_everything_but_the_parent_id():CODE
LOWpython/assistant-stream/tests/test_with_parent_id.py47async def test_with_parent_id_sets_every_field_init_sets():CODE
LOWpython/assistant-stream/tests/test_with_parent_id.py60async def test_with_parent_id_works_outside_a_running_loop():CODE
LOW⚡python/assistant-stream/tests/test_resumable_context.py127async def test_resume_returns_none_for_missing() -> None:CODE
LOW⚡python/assistant-stream/tests/test_resumable_context.py135async def test_require_resume_raises_missing() -> None:CODE
LOW⚡python/assistant-stream/tests/test_resumable_context.py145async def test_require_resume_returns_replay_when_exists() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py76async def test_producer_receives_full_byte_stream() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py85async def test_second_caller_is_consumer_with_identical_bytes() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py112async def test_late_consumer_after_done_replays_via_resume() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py157async def test_status_tracks_lifecycle() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py168async def test_delete_removes_stream_state() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py180async def test_producer_keeps_writing_after_consumer_closes_early() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py209async def test_runs_a_producer_through_acquire_when_acquire_lease_is_absent() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py225async def _run_fenced_stale_producer(CODE
LOWpython/assistant-stream/tests/test_resumable_context.py284async def test_stale_chunk_reports_store_supersession_without_finalizing() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py295async def test_stale_completion_reports_lost_ownership_without_finalizing() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py306async def test_stale_error_does_not_finalize_reacquired_stream() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py316async def test_propagates_producer_errors_to_consumers() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py332async def test_wait_until_receives_the_task() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py345async def test_on_acquire_fires_for_producer_and_consumer() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py361async def test_on_append_fires_per_chunk_with_byte_length() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py376async def test_on_finalize_fires_on_success() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py390async def test_on_finalize_and_on_error_fire_on_failure() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py415async def test_raising_on_acquire_does_not_break_producer_pipeline() -> None:CODE
LOWpython/assistant-stream/tests/test_resumable_context.py429async def test_raising_on_error_still_finalizes_error_status() -> None:CODE
LOW…n/assistant-stream/tests/test_response_cancellation.py31async def test_closing_response_body_cancels_and_awaits_run(response_type, heartbeat):CODE
LOW…n/assistant-stream/tests/test_response_cancellation.py59async def test_disconnect_during_send_cancels_and_awaits_run(CODE
575 more matches not shown…
Cross-Language Confusion (JS/TS)23 hits · 145 pts
SeverityFileLineSnippetContext
HIGH⚡packages/cli/src/lib/cloud-auth.ts204 print(`Confirm code ${authorization.userCode} at ${approvalUrl}`);CODE
HIGH⚡packages/cli/src/lib/cloud-auth.ts212 print("Signed in locally. The setup connection could not be updated.");CODE
HIGH⚡packages/cli/src/lib/cloud-auth.ts214 print(`Signed in as ${credentials.user.email || credentials.user.id}.`);CODE
HIGH⚡packages/cli/src/lib/cloud-auth.ts219 print(CODE
HIGHpackages/react-streamdown/src/__tests__/remend.test.ts28 print(f"total: $\{cost}")CODE
HIGH…amdown/src/__tests__/code-adapter.integration.test.tsx84 print("hi")CODE
HIGH…amdown/src/__tests__/code-adapter.integration.test.tsx494 print("hi")CODE
HIGHpackages/setup-agent/src/cli.ts406 print(pending);CODE
HIGHpackages/setup-agent/src/cli.ts875 print(summary(requireState(client)));CODE
HIGHpackages/setup-agent/src/cli.ts879 print(summary(requireState(client)));CODE
HIGHpackages/setup-agent/src/cli.ts898 print({ ok: true, stepId, status });CODE
HIGHpackages/setup-agent/src/cli.ts911 print({ ok: true, ...result });CODE
HIGHpackages/setup-agent/src/cli.ts924 print({ ok: true, revision });CODE
HIGHpackages/setup-agent/src/cli.ts928 print(decided(plan, requireState(client)));CODE
HIGH⚡packages/setup-agent/src/cli.ts959 print({ ok: true, inputId });CODE
HIGH⚡packages/setup-agent/src/cli.ts962 print(await waitForInput(client, inputId).then(answered));CODE
HIGH⚡packages/setup-agent/src/cli.ts971 print({CODE
HIGH⚡packages/setup-agent/src/cli.ts979 print(CODE
HIGHpackages/setup-agent/src/cli.ts990 print(await waitForInput(client, target).then(answered));CODE
HIGH⚡packages/setup-agent/src/cli.ts1052 print({ ok: true, envKey, file });CODE
HIGH⚡packages/setup-agent/src/cli.ts1058 print({ ok: true });CODE
HIGH⚡packages/setup-agent/src/cli.ts1064 print({ ok: true });CODE
HIGH⚡packages/setup-agent/src/cli.ts1074 print({CODE
Modern AI Meta-Vocabulary50 hits · 134 pts
SeverityFileLineSnippetContext
MEDIUMscripts/sync-templates.sh33# Base UI (base-nova) scaffold, so its copies mirror the base install shape:COMMENT
MEDIUMscripts/sync-templates.sh37# `ui/base` stand-ins. Base sources already use the scaffold import shape.COMMENT
MEDIUMscripts/sync-templates.sh386# diverges by definition) or as a scaffold copy the checks above keep in sync.COMMENT
MEDIUMscripts/sync-templates.sh569 annotate "templates/cloud-harness/${pair#*:}" "out of sync with its canonical scaffold source; run 'pnpm sync-teCODE
MEDIUMpackages/react-native/CHANGELOG.md7- [#10137](https://github.com/assistant-ui/assistant-ui/pull/10137) [`aa59585`](https://github.com/assistant-ui/assistanCODE
MEDIUMpackages/react-native/CHANGELOG.md21- [#9866](https://github.com/assistant-ui/assistant-ui/pull/9866) [`736c07f`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/react-native/CHANGELOG.md467- [#4514](https://github.com/assistant-ui/assistant-ui/pull/4514) [`19c0b86`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/vue/CHANGELOG.md7- [#10137](https://github.com/assistant-ui/assistant-ui/pull/10137) [`aa59585`](https://github.com/assistant-ui/assistanCODE
MEDIUMpackages/cli/CHANGELOG.md101- [#7492](https://github.com/assistant-ui/assistant-ui/pull/7492) [`de54fb0`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/cli/CHANGELOG.md101- [#7492](https://github.com/assistant-ui/assistant-ui/pull/7492) [`de54fb0`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/cli/CHANGELOG.md141- [#7348](https://github.com/assistant-ui/assistant-ui/pull/7348) [`1a1865c`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/cli/CHANGELOG.md141- [#7348](https://github.com/assistant-ui/assistant-ui/pull/7348) [`1a1865c`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/cli/CHANGELOG.md171- [#6802](https://github.com/assistant-ui/assistant-ui/pull/6802) [`0a2a599`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/cli/CHANGELOG.md171- [#6802](https://github.com/assistant-ui/assistant-ui/pull/6802) [`0a2a599`](https://github.com/assistant-ui/assistant-CODE
MEDIUM⚡packages/cli/CHANGELOG.md259- [#5021](https://github.com/assistant-ui/assistant-ui/pull/5021) [`00fea57`](https://github.com/assistant-ui/assistant-CODE
MEDIUM⚡packages/cli/CHANGELOG.md261- [#5013](https://github.com/assistant-ui/assistant-ui/pull/5013) [`fec32b1`](https://github.com/assistant-ui/assistant-CODE
MEDIUM⚡packages/cli/CHANGELOG.md261- [#5013](https://github.com/assistant-ui/assistant-ui/pull/5013) [`fec32b1`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/cli/CHANGELOG.md292- [#4979](https://github.com/assistant-ui/assistant-ui/pull/4979) [`4c6fc26`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/cli/CHANGELOG.md292- [#4979](https://github.com/assistant-ui/assistant-ui/pull/4979) [`4c6fc26`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/cli/CHANGELOG.md405- [#4115](https://github.com/assistant-ui/assistant-ui/pull/4115) [`107d6bd`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/cli/CHANGELOG.md420- [#4044](https://github.com/assistant-ui/assistant-ui/pull/4044) [`b8fa682`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/cli/CHANGELOG.md420- [#4044](https://github.com/assistant-ui/assistant-ui/pull/4044) [`b8fa682`](https://github.com/assistant-ui/assistant-CODE
MEDIUM⚡packages/cli/README.md23# scaffold a new Next.js projectCOMMENT
MEDIUM⚡packages/cli/README.md26# scaffold a minimal projectCOMMENT
MEDIUM⚡packages/cli/README.md29# scaffold from a feature exampleCOMMENT
MEDIUM⚡packages/cli/README.md32# scaffold an Expo / React Native projectCOMMENT
MEDIUM⚡packages/cli/README.md35# scaffold a React Ink terminal projectCOMMENT
MEDIUMpackages/cli/test/lib/create-project.test.ts519 // Paths inherited from the monorepo scaffoldCOMMENT
MEDIUMpackages/cli/src/commands/create.ts635 // 2. Resolve scaffold targetCOMMENT
MEDIUMpackages/create-assistant-ui/CHANGELOG.md108- [#6354](https://github.com/assistant-ui/assistant-ui/pull/6354) [`8ee4660`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/create-assistant-ui/CHANGELOG.md108- [#6354](https://github.com/assistant-ui/assistant-ui/pull/6354) [`8ee4660`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/create-assistant-ui/README.md18This wraps the `assistant-ui create` command from the [`assistant-ui` CLI](https://www.npmjs.com/package/assistant-ui). CODE
MEDIUMpackages/assistant-stream/CHANGELOG.md257- [#6414](https://github.com/assistant-ui/assistant-ui/pull/6414) [`bfc8bef`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/ai-sdk/CHANGELOG.md386- [#5932](https://github.com/assistant-ui/assistant-ui/pull/5932) [`d68918e`](https://github.com/assistant-ui/assistant-CODE
MEDIUMpackages/ai-sdk/src/runtime/useExternalHistory.ts532 // Debounce: wait one macrotask so agentic step flickers are absorbedCOMMENT
MEDIUMpackages/react/CHANGELOG.md7- [#10137](https://github.com/assistant-ui/assistant-ui/pull/10137) [`aa59585`](https://github.com/assistant-ui/assistanCODE
MEDIUMapps/docs/components/shared/setup-prompt.ts3// to scaffold and wire up assistant-ui inside the user's project.COMMENT
MEDIUM⚡apps/docs/lib/agent-skills.generated.json34 "content": "# assistant-ui Elements\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.com/lCODE
MEDIUM⚡apps/docs/lib/agent-skills.generated.json34 "content": "# assistant-ui Elements\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.com/lCODE
MEDIUM⚡apps/docs/lib/agent-skills.generated.json42 "content": "# assistant-ui Generative UI\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.CODE
MEDIUM⚡apps/docs/lib/agent-skills.generated.json50 "content": "# assistant-ui Ink\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.com/llms.tCODE
MEDIUM⚡apps/docs/lib/agent-skills.generated.json50 "content": "# assistant-ui Ink\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.com/llms.tCODE
MEDIUM⚡apps/docs/lib/agent-skills.generated.json74 "content": "# assistant-ui Primitives\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.comCODE
MEDIUM⚡apps/docs/lib/agent-skills.generated.json74 "content": "# assistant-ui Primitives\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.comCODE
MEDIUM⚡apps/docs/lib/agent-skills.generated.json74 "content": "# assistant-ui Primitives\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.comCODE
MEDIUM⚡apps/docs/lib/agent-skills.generated.json106 "content": "# assistant-ui Setup\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.com/llmsCODE
MEDIUM⚡apps/docs/lib/agent-skills.generated.json106 "content": "# assistant-ui Setup\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.com/llmsCODE
MEDIUM⚡apps/docs/lib/agent-skills.generated.json106 "content": "# assistant-ui Setup\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.com/llmsCODE
MEDIUM⚡apps/docs/lib/agent-skills.generated.json114 "content": "# assistant-ui Streaming\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.com/CODE
MEDIUMapps/docs/lib/agent-skills.generated.json130 "content": "# assistant-ui Tools\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.com/llmsCODE
Decorative Section Separators26 hits · 78 pts
SeverityFileLineSnippetContext
MEDIUMexamples/with-mcp/server/server.ts31// ───────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/with-mcp/server/server.ts33// ───────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/with-mcp/server/server.ts164// ───────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/with-mcp/server/server.ts166// ───────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/with-mcp/server/server.ts203// ───────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMexamples/with-mcp/server/server.ts205// ───────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…with-opencode/components/tools/tool-ui-apply-patch.tsx21// ── Patch format conversion ──────────────────────────────────────────────COMMENT
MEDIUM…with-opencode/components/tools/tool-ui-apply-patch.tsx142// ── Component ────────────────────────────────────────────────────────────COMMENT
MEDIUM…ples/with-opencode/components/tools/tool-ui-inline.tsx17// ── Helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUM…ples/with-opencode/components/tools/tool-ui-inline.tsx25// ── ToolCallShell ──────────────────────────────────────────────────────COMMENT
MEDIUM…ples/with-opencode/components/tools/tool-ui-inline.tsx54// ── Factory for simple inline tools ────────────────────────────────────COMMENT
MEDIUM…ples/with-opencode/components/tools/tool-ui-inline.tsx77// ── Per-tool inline components ─────────────────────────────────────────COMMENT
MEDIUM…ples/with-opencode/components/tools/tool-ui-inline.tsx134// ── Fallback — generic, for unknown/MCP tools ─────────────────────────COMMENT
MEDIUM…src/runtimes/tool-invocations/ToolInvocationTracker.ts245 // ───────────────────────── public API ─────────────────────────COMMENT
MEDIUM…src/runtimes/tool-invocations/ToolInvocationTracker.ts458 // ───────────────────── internal: tool wrapping ─────────────────────COMMENT
MEDIUM…src/runtimes/tool-invocations/ToolInvocationTracker.ts517 // ──────────────── internal: execution lifecycle callbacks ────────────────COMMENT
MEDIUM…src/runtimes/tool-invocations/ToolInvocationTracker.ts626 // ──────────────── internal: callback invocation (AF1/AF2) ────────────────COMMENT
MEDIUM…src/runtimes/tool-invocations/ToolInvocationTracker.ts650 // ──────────────── internal: status map mutations ────────────────COMMENT
MEDIUM…src/runtimes/tool-invocations/ToolInvocationTracker.ts678 // ──────────────── internal: snapshot processing ────────────────COMMENT
MEDIUM…odemods/v0-12/__tests__/primitive-if-to-aui-if.test.ts24 // ── ThreadPrimitive.If ─────────────────────────────────────────────COMMENT
MEDIUM…odemods/v0-12/__tests__/primitive-if-to-aui-if.test.ts188 // ── MessagePrimitive.If ────────────────────────────────────────────COMMENT
MEDIUM…odemods/v0-12/__tests__/primitive-if-to-aui-if.test.ts531 // ── ComposerPrimitive.If ──────────────────────────────────────────COMMENT
MEDIUM…odemods/v0-12/__tests__/primitive-if-to-aui-if.test.ts619 // ── ThreadPrimitive.Empty ───────────────────────────────────────────COMMENT
MEDIUM…odemods/v0-12/__tests__/primitive-if-to-aui-if.test.ts709 // ── Edge cases ─────────────────────────────────────────────────────COMMENT
MEDIUM⚡apps/docs/lib/agent-skills.generated.json10 "content": "# assistant-ui\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.com/llms.txt) CODE
MEDIUM⚡apps/docs/lib/agent-skills.generated.json10 "content": "# assistant-ui\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.com/llms.txt) CODE
Unused Imports76 hits · 70 pts
SeverityFileLineSnippetContext
LOWpython/assistant-stream/tests/test_reasoning.py1CODE
LOW…on/assistant-stream/tests/test_resumable_redis_unit.py1CODE
LOWpython/assistant-stream/tests/test_resumable_context.py1CODE
LOWpython/assistant-stream/tests/test_resumable_redis.py1CODE
LOW…hon/assistant-stream/tests/test_resumable_in_memory.py1CODE
LOW…thon/assistant-stream/tests/test_resumable_response.py1CODE
LOW…thon/assistant-stream/src/assistant_stream/__init__.py1CODE
LOW…thon/assistant-stream/src/assistant_stream/__init__.py4CODE
LOW…thon/assistant-stream/src/assistant_stream/__init__.py4CODE
LOW…thon/assistant-stream/src/assistant_stream/__init__.py10CODE
LOW…thon/assistant-stream/src/assistant_stream/__init__.py10CODE
LOW…-stream/src/assistant_stream/assistant_stream_chunk.py2CODE
LOW…on/assistant-stream/src/assistant_stream/create_run.py5CODE
LOW…-stream/src/assistant_stream/serialization/__init__.py1CODE
LOW…-stream/src/assistant_stream/serialization/__init__.py1CODE
LOW…-stream/src/assistant_stream/serialization/__init__.py5CODE
LOW…-stream/src/assistant_stream/serialization/__init__.py5CODE
LOW…-stream/src/assistant_stream/serialization/__init__.py9CODE
LOW…-stream/src/assistant_stream/serialization/__init__.py9CODE
LOW…ream/src/assistant_stream/serialization/data_stream.py1CODE
LOW…/assistant_stream/serialization/assistant_transport.py1CODE
LOW…/assistant_stream/serialization/assistant_transport.py1CODE
LOW…/assistant_stream/serialization/assistant_transport.py1CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py3CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py3CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py7CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py7CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py7CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py7CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py13CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py13CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py13CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py18CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py21CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py21CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py21CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py21CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py21CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py21CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py21CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py52CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py52CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py52CODE
LOW…tant-stream/src/assistant_stream/resumable/response.py1CODE
LOW…sistant-stream/src/assistant_stream/resumable/types.py1CODE
LOW…stant-stream/src/assistant_stream/resumable/context.py1CODE
LOW…istant-stream/src/assistant_stream/resumable/errors.py1CODE
LOW…ream/src/assistant_stream/resumable/stores/__init__.py3CODE
LOW…ream/src/assistant_stream/resumable/stores/__init__.py12CODE
LOW…-stream/src/assistant_stream/resumable/stores/redis.py1CODE
LOW…-stream/src/assistant_stream/resumable/stores/redis.py587CODE
LOW…eam/src/assistant_stream/resumable/stores/in_memory.py1CODE
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py1CODE
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py1CODE
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py1CODE
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py1CODE
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py1CODE
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py3CODE
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py4CODE
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py4CODE
16 more matches not shown…
Fake / Example Data54 hits · 58 pts
SeverityFileLineSnippetContext
LOWexamples/with-resumable-stream/app/api/chat/route.ts120 `lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod ` +CODE
LOWexamples/with-resumable-stream/app/api/chat/route.ts120 `lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod ` +CODE
LOW…components/react/assistant-ui/elements/empty-state.tsx77}: Omit<ComponentProps<"div">, "children" | "placeholder"> & {CODE
LOW…/components/react/assistant-ui/elements/chat-panel.tsx101}: Omit<ComponentProps<"div">, "children" | "placeholder"> & {CODE
LOW…ages/core/src/runtime/utils/message-repository.test.ts354 ...assistantMessage("placeholder", true),CODE
LOW…ages/core/src/runtime/utils/message-repository.test.ts358 expect(repository.headId).toBe("placeholder");CODE
LOW⚡…ages/core/src/runtime/utils/message-repository.test.ts371 ...assistantMessage("placeholder", true),CODE
LOW⚡…ages/core/src/runtime/utils/message-repository.test.ts374 repository.switchToBranch("placeholder");CODE
LOW⚡…ages/core/src/runtime/utils/message-repository.test.ts376 expect(repository.headId).toBe("placeholder");CODE
LOW⚡…ages/core/src/runtime/utils/message-repository.test.ts386 repository.addOrUpdateMessage("u", assistantMessage("placeholder", true));CODE
LOW⚡…ages/core/src/runtime/utils/message-repository.test.ts388 expect(repository.headId).toBe("placeholder");CODE
LOW…ages/core/src/runtime/utils/message-repository.test.ts400 repository.addOrUpdateMessage(null, assistantMessage("placeholder", true));CODE
LOW…ages/core/src/runtime/utils/message-repository.test.ts401 repository.switchToBranch("placeholder");CODE
LOW…ages/core/src/runtime/utils/message-repository.test.ts416 repository.addOrUpdateMessage("u", assistantMessage("placeholder", true));CODE
LOW…ages/core/src/runtime/utils/message-repository.test.ts417 repository.switchToBranch("placeholder");CODE
LOW…ages/core/src/runtime/utils/message-repository.test.ts434 repository.addOrUpdateMessage("u", assistantMessage("placeholder", true));CODE
LOW…ages/core/src/runtime/utils/message-repository.test.ts435 repository.switchToBranch("placeholder");CODE
LOW…ages/core/src/runtime/utils/message-repository.test.ts478 repository.addOrUpdateMessage("u", assistantMessage("placeholder", true));CODE
LOW…ages/core/src/runtime/utils/message-repository.test.ts479 expect(repository.headId).toBe("placeholder");CODE
LOW⚡packages/core/src/tests/MessageRepository.test.ts429 repository.addOrUpdateMessage("u", optimistic({ id: "placeholder" }));CODE
LOW⚡packages/core/src/tests/MessageRepository.test.ts430 repository.resetHead("placeholder");CODE
LOW⚡packages/core/src/tests/MessageRepository.test.ts435 expect(repository.headId).toBe("placeholder");CODE
LOWpackages/markdown/src/tokenizer/markdown-it.test.ts314 url: "mailto:me@example.org",CODE
LOWpackages/markdown/src/tokenizer/markdown-it.test.ts315 children: [{ type: "text", value: "me@example.org" }],CODE
LOWpackages/cli/src/lib/cloud-auth.test.ts83 user: { id: "user-1", email: "user@example.com", name: "User", image: null },CODE
LOWpackages/react-pi/src/node/extensionUi.test.ts75 const typed = bridge.ui.input("Name?", "placeholder");CODE
LOWpackages/react-pi/src/node/extensionUi.test.ts78 placeholder: "placeholder",CODE
LOWpackages/setup-agent/src/cli.ts533 "placeholder",CODE
LOWpackages/setup-agent/src/cli.ts639 const placeholder = flagText(flags, "placeholder");CODE
LOW…ages/assistant-stream/src/core/gorp/GorpStream.test.ts374 { type: "set", path: ["user", "email"], value: "user@example.com" },CODE
LOW…ages/assistant-stream/src/core/gorp/GorpStream.test.ts391 email: "user@example.com",CODE
LOW…ages/assistant-stream/src/core/gorp/GorpStream.test.ts407 email: "user@example.com",CODE
LOW…nt-stream/src/core/gorp/GorpStreamDeltaTracker.test.ts190 { type: "set", path: ["user", "email"], value: "user@example.com" },CODE
LOW…nt-stream/src/core/gorp/GorpStreamDeltaTracker.test.ts208 user: { name: "Updated", email: "user@example.com" },CODE
LOW…es/react-langchain/src/useSubagentTranscripts.test.tsx345 message("placeholder-ai", "ai", "placeholder"),CODE
LOW…es/react-langchain/src/useSubagentTranscripts.test.tsx364 ).toMatchObject([{ type: "text", text: "placeholder" }]),CODE
LOW…kages/generative-ui/src/buildPresentParameters.test.ts47 "placeholder",CODE
LOW…ckages/generative-ui/src/vue/vocabulary/interactive.ts153 "placeholder",CODE
LOW…ckages/generative-ui/src/vue/vocabulary/interactive.ts266 "placeholder",CODE
LOW…s/generative-ui/src/vue/vocabulary/interactive.test.ts1230 "placeholder",CODE
LOW…s/generative-ui/src/vue/vocabulary/interactive.test.ts1238 "placeholder",CODE
LOWpackages/generative-ui/src/a2ui/convert.ts784 const placeholder = stringProp(props, ["placeholder"]);CODE
LOWpackages/generative-ui/src/teams/toAdaptiveCard.ts565 const placeholder = asTextValue(props["placeholder"]);CODE
LOWpackages/generative-ui/src/teams/toAdaptiveCard.ts649 const placeholder = asString(props["placeholder"]);CODE
LOWpackages/generative-ui/src/slack/toSlackBlocks.ts578 asTextValue(props["placeholder"]),CODE
LOWpackages/generative-ui/src/slack/toSlackBlocks.ts581 "placeholder",CODE
LOWpackages/generative-ui/src/slack/toSlackBlocks.ts1784 asString(props["placeholder"]),CODE
LOWpackages/generative-ui/src/slack/toSlackBlocks.ts1787 "placeholder",CODE
LOWpackages/generative-ui/src/slack/fromSlackBlocks.ts232 const placeholder = element["placeholder"];CODE
LOWpackages/generative-ui/src/slack/fromSlackBlocks.ts422 const placeholder = element["placeholder"];CODE
LOW…s/docs/components/pages/shop/model-input-card.test.tsx130 "placeholder",CODE
LOW…docs/components/pages/shop/component-viewer-entries.ts780 { kind: "text", key: "placeholder", label: "Placeholder" },CODE
LOW…docs/components/pages/shop/component-viewer-entries.ts795 ...(str(values, "placeholder") && {CODE
LOW…docs/components/pages/shop/component-viewer-entries.ts796 placeholder: str(values, "placeholder"),CODE
Magic Placeholder Names8 hits · 42 pts
SeverityFileLineSnippetContext
HIGH…assistant-ui-sync-server-api/examples/basic_example.py18 headers={"Authorization": "Bearer your-api-key"}CODE
HIGH…assistant-ui-sync-server-api/examples/basic_example.py50 headers={"Authorization": "Bearer your-api-key"}CODE
HIGHexamples/with-resumable-stream/README.md52OPENAI_API_KEY=your-api-key-hereCODE
HIGHexamples/with-webmcp/README.md18OPENAI_API_KEY=your-api-key-hereCODE
HIGHexamples/with-ai-sdk-v7/README.md19OPENAI_API_KEY=your-api-key-hereCODE
HIGHexamples/with-openui/README.md21OPENAI_API_KEY=your-api-key-hereCODE
HIGHtemplates/eve/README.md10AI_GATEWAY_API_KEY=your-api-keyCODE
HIGH⚡apps/docs/lib/agent-skills.generated.json18 "content": "# assistant-ui Cloud\n\n**Always consult [assistant-ui.com/llms.txt](https://www.assistant-ui.com/llmsCODE
Self-Referential Comments13 hits · 39 pts
SeverityFileLineSnippetContext
MEDIUMpython/assistant-transport-backend-langgraph/main.py173# Create the Task toolCOMMENT
MEDIUMpython/assistant-transport-backend-langgraph/main.py232 # Create a prompt for the subagentCOMMENT
MEDIUMpython/assistant-transport-backend-langgraph/main.py440 # Create the main workflowCOMMENT
MEDIUMpython/assistant-stream/tests/test_reasoning.py20 # Create the run and collect chunksCOMMENT
MEDIUMpython/assistant-stream/tests/test_reasoning.py46 # Create the run and collect chunksCOMMENT
MEDIUM…hon/assistant-stream/tests/test_assistant_transport.py75 # Create the run and encode itCOMMENT
MEDIUM…hon/assistant-stream/tests/test_assistant_transport.py108 # Create the run and encode itCOMMENT
MEDIUM…hon/assistant-stream/tests/test_assistant_transport.py135 # Create the run and encode itCOMMENT
MEDIUM…hon/assistant-stream/tests/test_assistant_transport.py170 # Create the run and encode itCOMMENT
MEDIUM…-stream/src/assistant_stream/assistant_stream_chunk.py5# Define the data classes for different chunk typesCOMMENT
MEDIUM…-stream/src/assistant_stream/assistant_stream_chunk.py135# Define the union type for AssistantStreamChunkCOMMENT
MEDIUM…/src/assistant_stream/modules/langgraph_chunk_merge.py13# This function is designed to work with proxy objects that send updatesCOMMENT
MEDIUM…stant-stream/src/assistant_stream/modules/langgraph.py248 # Create a new tool message for this tool callCOMMENT
Over-Commented Block33 hits · 32 pts
SeverityFileLineSnippetContext
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py1from typing import Any, Dict, List, Optional, UnionCOMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py21# None (modifies chunk1_dict in-place)COMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py41# # Ensure type is setCOMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py61# # First is string, second is list - prepend string to listCOMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py81# def _merge_dict_field_inplace(COMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py101# elif type(dict1[key]) is not type(value):COMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py121COMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py141# usage2 = chunk2_dict.get("usage_metadata")COMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py161# # For numeric values, add themCOMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py181# merged_usage[key] = valueCOMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py201# # No ID in chunk1, use chunk2's IDCOMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py221# def _merge_dicts_inplace(dict1: Dict[str, Any], dict2: Dict[str, Any]) -> None:COMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py241# elif isinstance(dict1[key], dict):COMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py261COMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py281# for i, e_left in enumerate(merged)COMMENT
LOW…/src/assistant_stream/modules/langgraph_chunk_merge.py301# merged.append(e)COMMENT
LOWpython/assistant-ui-sync-server-api/tests/__init__.py1# Tests for assistant-ui packageCOMMENT
LOWexamples/with-expo/tsconfig.typecheck.json1{COMMENT
LOW…with-opencode/components/tools/tool-ui-apply-patch.tsx21// ── Patch format conversion ──────────────────────────────────────────────COMMENT
LOWscripts/update-deps.sh41' examples/with-expo "$expo_matrix_backup"COMMENT
LOW…s/external-store/external-store-thread-runtime-core.ts241 // repository once the host's array no longer carries them; an id the hostCOMMENT
LOW…s/external-store/external-store-thread-runtime-core.ts1201 // Buffering does not start a run, so the tool-abort below must waitCOMMENT
LOW…src/runtimes/remote-thread-list/remote-thread-state.ts221// initialized while the request was running) omits that thread, and theCOMMENT
LOW…untimes/tool-invocations/ToolInvocationTracker.test.ts2501 );COMMENT
LOWpackages/react-pi/src/types.ts461 };COMMENT
LOW…ckages/assistant-stream/src/core/utils/stream/merge.ts361COMMENT
LOW…ckages/assistant-stream/src/core/utils/stream/merge.ts381// this.mergeStream.addStream(COMMENT
LOW…ckages/assistant-stream/src/core/utils/stream/merge.ts401// number,COMMENT
LOW…ckages/assistant-stream/src/core/utils/stream/merge.ts421// writer.write(chunk);COMMENT
LOW…ckages/assistant-stream/src/core/utils/stream/merge.ts441// if (this.writers.size > 0) throw new Error("Not all writers closed");COMMENT
LOW…ckages/assistant-stream/src/core/utils/stream/merge.ts461// }COMMENT
LOWpackages/assistant-stream/src/utils/json/fix-json.ts1// LICENSE for this file onlyCOMMENT
LOWpackages/assistant-stream/src/utils/json/fix-json.ts41 | "INSIDE_ARRAY_AFTER_VALUE"COMMENT
Excessive Try-Catch Wrapping17 hits · 23 pts
SeverityFileLineSnippetContext
LOWpython/assistant-transport-backend/main.py140 except Exception as e:CODE
LOW…on/assistant-stream/src/assistant_stream/create_run.py37 except Exception:CODE
LOW…stant-stream/src/assistant_stream/resumable/context.py33 except Exception:CODE
LOW…stant-stream/src/assistant_stream/resumable/context.py150 except Exception as err:CODE
LOW…stant-stream/src/assistant_stream/resumable/context.py160 except Exception as finalize_err:CODE
MEDIUM…stant-stream/src/assistant_stream/resumable/context.py133def _pump() -> None:CODE
LOW…assistant-ui-sync-server-api/examples/basic_example.py37 except Exception as e:CODE
MEDIUM…assistant-ui-sync-server-api/examples/basic_example.py38 print(f"Error: {e}")CODE
LOW…assistant-ui-sync-server-api/examples/basic_example.py68 except Exception as e:CODE
MEDIUM…assistant-ui-sync-server-api/examples/basic_example.py69 print(f"Error: {e}")CODE
LOW…assistant-ui-sync-server-api/examples/basic_example.py128 except Exception as e:CODE
MEDIUM…assistant-ui-sync-server-api/examples/basic_example.py129 print(f"Error: {e}")CODE
LOW…assistant-ui-sync-server-api/examples/basic_example.py162 except Exception as e:CODE
MEDIUM…assistant-ui-sync-server-api/examples/basic_example.py163 print(f"Error: {e}")CODE
LOW…assistant-ui-sync-server-api/examples/basic_example.py199 except Exception as e:CODE
MEDIUM…assistant-ui-sync-server-api/examples/basic_example.py200 print(f"Error: {e}")CODE
LOWexamples/with-ag-ui/server/agent.py119 except Exception as e:CODE
Deep Nesting12 hits · 12 pts
SeverityFileLineSnippetContext
LOW…assistant-transport-backend-langgraph/subgraph_demo.py10CODE
LOW…n/assistant-transport-backend-langgraph/client_demo.py10CODE
LOWpython/assistant-transport-backend-langgraph/main.py270CODE
LOW…on/assistant-stream/src/assistant_stream/create_run.py303CODE
LOW…on/assistant-stream/src/assistant_stream/create_run.py311CODE
LOW…ream/src/assistant_stream/serialization/data_stream.py24CODE
LOW…ream/src/assistant_stream/serialization/data_stream.py116CODE
LOW…stream/src/assistant_stream/serialization/heartbeat.py40CODE
LOW…stant-stream/src/assistant_stream/modules/langgraph.py111CODE
LOW…stant-stream/src/assistant_stream/modules/langgraph.py169CODE
LOW…ssistant-ui-sync-server-api/src/assistant_ui/client.py13CODE
LOWexamples/with-ag-ui/server/agent.py43CODE
Redundant / Tautological Comments8 hits · 12 pts
SeverityFileLineSnippetContext
LOWpython/assistant-transport-backend-langgraph/main.py275 # Check if OpenAI API key is setCOMMENT
LOW…on/assistant-stream/src/assistant_stream/create_run.py251 # Add the chunk to the queueCOMMENT
LOW…stant-stream/src/assistant_stream/modules/langgraph.py131 # Check if this is an AIMessageChunkCOMMENT
LOW…stant-stream/src/assistant_stream/modules/langgraph.py221 # Check if this node is a subgraph nodeCOMMENT
LOW…stant-stream/src/assistant_stream/modules/langgraph.py234 # Check if it's an AI messageCOMMENT
LOW…stant-stream/src/assistant_stream/modules/langgraph.py236 # Check if the AI message has tool callsCOMMENT
LOW…stant-stream/src/assistant_stream/modules/langgraph.py262 # Check if last message is already a ToolMessageCOMMENT
LOWpackages/react/scripts/test-integration.sh6# Check if required environment variables are setCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL…es/react-opencode/src/OpenCodeThreadController.test.ts2975 client.session.messages.mock.calls.map(([request]) => request.sessionID),CODE
Modern Structural Boilerplate9 hits · 9 pts
SeverityFileLineSnippetContext
LOW…on/assistant-stream/src/assistant_stream/create_run.py28logger = logging.getLogger(__name__)CODE
LOW…-stream/src/assistant_stream/serialization/__init__.py14__all__ = [CODE
LOW…ream/src/assistant_stream/serialization/data_stream.py20logger = logging.getLogger(__name__)CODE
LOW…/assistant_stream/serialization/assistant_transport.py29logger = logging.getLogger(__name__)CODE
LOW…tant-stream/src/assistant_stream/resumable/__init__.py31__all__ = [CODE
LOW…stant-stream/src/assistant_stream/resumable/context.py17logger = logging.getLogger(__name__)CODE
LOW…ream/src/assistant_stream/resumable/stores/__init__.py7__all__ = [CODE
LOW…stant-stream/src/assistant_stream/modules/tool_call.py41 def set_result(self, result: Any) -> None:CODE
LOW…istant-ui-sync-server-api/src/assistant_ui/__init__.py17__all__ = [CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHpackages/diagrammatic/README.md107## AI-generated chartsCOMMENT
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMscripts/sync-templates.sh566 echo "✗ drift detected in ${#cloud_harness_drift[@]} cloud-harness kit file(s):"CODE
MEDIUMapps/docs/app/(catalog)/harness-sdk.md/route.ts5const markdown = `# Build a shared AI chat with harness-sdkCODE
MEDIUMapps/docs/app/(catalog)/install.md/route.test.ts41 expect(markdown).toContain("## 1. harness-sdk");CODE
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…on/assistant-stream/src/assistant_stream/create_run.py361except asyncio.CancelledError:CODE
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMpython/assistant-stream/tests/test_resumable_context.py403CODE
MEDIUMpython/assistant-stream/tests/test_cancellation.py126CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWexamples/with-langgraph/app/api/[..._path]/route.ts39async function handleRequest(req: NextRequest, method: string) {CODE
LOWtemplates/langchain/app/api/[..._path]/route.ts41async function handleRequest(req: NextRequest, method: string) {CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/sync-templates.sh5# Usage:COMMENT