AI Slop Code RIsk Monitor

ag2ai/ag2

AG2 (formerly AutoGen): The Open-Source AgentOS.Join us at: https://discord.gg/sNGSwQME3x

35.0 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for ag2ai/ag2, a Python project with 4,988 GitHub stars. SynthScan examined 223,503 lines of code across 1256 source files, recording 6852 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 35.0 (High 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.

35.0
Adjusted Signal
35.0
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
5.0K
Stars
Python
Language
223.5K
Lines of Code
1.3K
Files
6.9K
Pattern Hits
2026-10-12
Scan Date
0.07
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 71.2/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 24.5/100 · LOW

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

Agent Over-Engineering Ratio 75.5/100 · CRITICAL

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

PR Review Velocity Impact 81.9/100 · CRITICAL

Which changes need focused human review? 6852 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 81MEDIUM 186LOW 6584

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 6852 distinct pattern matches across 24 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 Identifiers4841 hits · 5210 pts
SeverityFileLineSnippetContext
LOW⚡test/test_optional_imports.py21def test_version_constraint_is_rejected_rather_than_ignored(constraint: str) -> None:CODE
LOW⚡test/test_optional_imports.py28def test_names_that_can_never_be_imported_are_rejected(name: str) -> None:CODE
LOW⚡test/test_optional_imports.py33def test_missing_submodule_of_a_present_parent_still_raises() -> None:CODE
LOWtest/test_watch_advanced.py17 async def test_collects_events_in_window(self) -> None:CODE
LOWtest/test_watch_advanced.py53 async def test_ignores_non_matching(self) -> None:CODE
LOWtest/test_watch_advanced.py69 async def test_disarm_cancels_timer(self) -> None:CODE
LOWtest/test_watch_advanced.py86 async def test_disarm_resets_armed_flag(self) -> None:CODE
LOWtest/test_watch_advanced.py101async def test_cron_watch_arm_and_disarm() -> None:CODE
LOWtest/test_task.py82 async def test_clean_exit_auto_completes(self) -> None:CODE
LOWtest/test_task.py96 async def test_explicit_complete_records_result(self) -> None:CODE
LOWtest/test_task.py112 async def test_complete_is_idempotent(self) -> None:CODE
LOWtest/test_task.py124 async def test_exception_emits_task_failed_and_propagates(self) -> None:CODE
LOWtest/test_task.py148 async def test_explicit_fail_with_string(self) -> None:CODE
LOWtest/test_task.py165 async def test_progress_accumulates_into_metadata(self) -> None:CODE
LOWtest/test_task.py183 async def test_progress_after_terminal_is_noop(self) -> None:CODE
LOWtest/test_task.py199 async def test_expire_emits_task_expired(self) -> None:CODE
LOWtest/test_task.py216 async def test_events_fire_on_supplied_stream(self) -> None:CODE
LOWtest/test_task.py232 async def test_task_inject_stamped_during_block(self) -> None:CODE
LOWtest/test_task.py244 async def test_nested_tasks_restore_previous(self) -> None:CODE
LOW⚡test/test_task.py260 async def test_ttl_seconds_populates_expires_at(self) -> None:CODE
LOW⚡test/test_task.py269 async def test_no_ttl_leaves_expires_at_none(self) -> None:CODE
LOW⚡test/test_task.py276 def test_state_returns_created(self) -> None:CODE
LOW⚡test/test_task.py281 def test_task_id_raises_before_entry(self) -> None:CODE
LOW⚡test/test_task.py287 def test_metadata_raises_before_entry(self) -> None:CODE
LOWtest/test_task.py306 async def test_owner_id_is_agent_name(self) -> None:CODE
LOWtest/test_task.py313 async def test_payload_passed_through(self) -> None:CODE
LOWtest/test_alert_halt.py104 async def test_single_warning_injected(self) -> None:CODE
LOWtest/test_alert_halt.py122 async def test_multiple_severities_formatted(self) -> None:CODE
LOWtest/test_alert_halt.py143 async def test_fatal_emits_halt_event(self) -> None:CODE
LOWtest/test_alert_halt.py170 async def test_mixed_fatal_and_nonfatal(self) -> None:CODE
LOWtest/test_alert_halt.py216 async def test_new_alerts_delivered_after_dedup(self) -> None:CODE
LOWtest/test_alert_halt.py235 async def test_dedup_survives_history_replacement(self) -> None:CODE
LOWtest/test_alert_halt.py255 async def test_multiple_fatals_uses_first_for_halt(self) -> None:CODE
LOWtest/test_alert_halt.py286 async def test_no_halt_passes_through(self) -> None:CODE
LOWtest/test_alert_halt.py298 async def test_halt_short_circuits_second_llm_call(self) -> None:CODE
LOWtest/test_alert_halt.py342 async def test_halt_event_on_stream(self) -> None:CODE
LOWtest/test_alert_halt.py378 async def test_nonfatal_does_not_halt(self) -> None:CODE
LOWtest/test_alert_halt.py411 async def test_concurrent_fatal_from_two_observers(self) -> None:CODE
LOWtest/test_alert_halt.py446 def test_alert_before_reduction_no_warning(self) -> None:CODE
LOWtest/test_alert_halt.py455 def test_reduction_before_alert_warns(self) -> None:CODE
LOW⚡test/test_compact.py105 async def test_clean_cycle_boundary_kept(self) -> None:CODE
LOW⚡test/test_compact.py111 async def test_split_second_of_chained_cycles(self) -> None:CODE
LOW⚡test/test_compact.py119 async def test_split_cycle_persisted_whole(self) -> None:CODE
LOWtest/test_compact.py47 async def test_truncates_above_target(self) -> None:CODE
LOWtest/test_compact.py56 async def test_persists_dropped_to_store(self) -> None:CODE
LOWtest/test_compact.py71 async def test_no_persist_without_store(self) -> None:CODE
LOWtest/test_compact.py92 async def test_split_cycle_compacts_whole(self) -> None:CODE
LOWtest/test_compact.py140 async def test_intact_builtin_cycle_does_not_block_compaction(self) -> None:CODE
LOWtest/test_compact.py156 async def test_split_builtin_group_compacts_whole(self) -> None:CODE
LOWtest/test_compact.py175 async def test_usage_events_do_not_consume_window(self) -> None:CODE
LOWtest/test_compact.py187 async def test_telemetry_alone_is_no_op(self) -> None:CODE
LOWtest/test_compact.py193 async def test_summarizer_prompt_excludes_telemetry(self) -> None:CODE
LOWtest/test_compact.py207 async def test_usage_events_do_not_advance_trigger(self) -> None:CODE
LOWtest/test_compact.py278 async def test_spend_from_before_the_retained_window_survives(self) -> None:CODE
LOWtest/test_compact.py289 async def test_the_summarization_call_s_own_spend_survives_and_trails(self) -> None:CODE
LOWtest/test_compact.py304 async def test_carried_records_do_not_advance_the_compaction_trigger(self) -> None:CODE
LOWtest/test_compact.py321 async def test_a_second_compaction_carries_the_first_s_records_once(self) -> None:CODE
LOWtest/test_compact.py367 def test_custom_chars_per_token(self) -> None:CODE
LOWtest/test_compact.py377 async def test_fires_when_threshold_crossed(self) -> None:CODE
LOWtest/test_compact.py409 async def test_does_not_fire_below_threshold(self) -> None:CODE
4781 more matches not shown…
Unused Imports1221 hits · 1062 pts
SeverityFileLineSnippetContext
LOWtest/test_optional_imports.py13CODE
LOWtest/middleware/builtins/test_approval_subtasks.py5CODE
LOWtest/middleware/builtins/test_approval_subtasks.py14CODE
LOWtest/tools/test_local_shell.py8CODE
LOWtest/agent/test_hitl.py10CODE
LOWtest/agent/test_hitl.py10CODE
LOWag2/hitl.py13CODE
LOWag2/textual.py11CODE
LOWag2/__init__.py5CODE
LOWag2/__init__.py7CODE
LOWag2/__init__.py7CODE
LOWag2/__init__.py7CODE
LOWag2/__init__.py7CODE
LOWag2/__init__.py8CODE
LOWag2/__init__.py8CODE
LOWag2/__init__.py8CODE
LOWag2/__init__.py9CODE
LOWag2/__init__.py9CODE
LOWag2/__init__.py9CODE
LOWag2/__init__.py9CODE
LOWag2/__init__.py9CODE
LOWag2/__init__.py9CODE
LOWag2/__init__.py9CODE
LOWag2/__init__.py18CODE
LOWag2/__init__.py19CODE
LOWag2/__init__.py20CODE
LOWag2/__init__.py21CODE
LOWag2/__init__.py22CODE
LOWag2/__init__.py23CODE
LOWag2/__init__.py23CODE
LOWag2/__init__.py23CODE
LOWag2/__init__.py24CODE
LOWag2/__init__.py25CODE
LOWag2/__init__.py26CODE
LOWag2/__init__.py26CODE
LOWag2/__init__.py26CODE
LOWag2/__init__.py27CODE
LOWag2/__init__.py27CODE
LOWag2/__init__.py27CODE
LOWag2/__init__.py28CODE
LOWag2/mypy.py21CODE
LOWag2/stream.py14CODE
LOWag2/stream.py17CODE
LOWag2/context.py14CODE
LOWag2/context.py16CODE
LOWag2/context.py18CODE
LOWag2/context.py24CODE
LOWag2/agent.py85CODE
LOWag2/testing.py5CODE
LOWag2/testing.py26CODE
LOWag2/history.py6CODE
LOWag2/history.py9CODE
LOWag2/middleware/__init__.py5CODE
LOWag2/middleware/__init__.py5CODE
LOWag2/middleware/__init__.py5CODE
LOWag2/middleware/__init__.py5CODE
LOWag2/middleware/__init__.py5CODE
LOWag2/middleware/__init__.py5CODE
LOWag2/middleware/__init__.py5CODE
LOWag2/middleware/__init__.py5CODE
1161 more matches not shown…
Decorative Section Separators165 hits · 522 pts
SeverityFileLineSnippetContext
MEDIUM⚡test/network/test_observation.py62# ── Skill render unit tests ─────────────────────────────────────────────────COMMENT
MEDIUM⚡test/network/test_observation.py131# ── Capability index integration tests ──────────────────────────────────────COMMENT
MEDIUMtest/network/test_observation.py215# ── record_observation tests ────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_observation.py295# ── AgentClient mutation tests ──────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_observation.py339# ── TaskMirror end-to-end via Task lifecycle ────────────────────────────────COMMENT
MEDIUMtest/network/test_observability.py41# ── HubListener ───────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_observability.py170# ── HubArbiter ────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_observability.py257# ── Audit subscribe ────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_observability.py279# ── Handler exception trap ─────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_observability.py314# ── Hub.health() ───────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_observability.py350# ── Hub logging ────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_observability.py387# ── Coverage gap tests ──────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_sweeper_and_registry.py82# ── Real-clock expectation sweeper ──────────────────────────────────────────COMMENT
MEDIUMtest/network/test_sweeper_and_registry.py139# ── TransitionRegistry isolation ────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_sweeper_and_registry.py194# ── Cross-tool flow (no LLM — direct FunctionTool invocation) ───────────────COMMENT
MEDIUMtest/network/test_sweeper_and_registry.py279# ── Trust-boundary check ────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_expectations.py141# ── Evaluator unit tests ────────────────────────────────────────────────────COMMENT
MEDIUM⚡test/network/test_expectations.py265# ── Handler integration tests ───────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_expectations.py426# ── Audit log tests for identity changes ────────────────────────────────────COMMENT
MEDIUM⚡test/network/test_hub_races.py428# ── Lifecycle ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_hub_races.py50# ── Registration races ──────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_hub_races.py126# ── Unregister mid-flight ────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_hub_races.py197# ── Endpoint binding ────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_hub_races.py232# ── Concurrent post_envelope ────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_hub_races.py299# ── Channel-state edges ─────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_hub_races.py458# ── Outbound-access edge ────────────────────────────────────────────────────COMMENT
MEDIUM⚡test/network/test_workflow.py112# ── TransitionTarget unit tests ─────────────────────────────────────────────COMMENT
MEDIUM⚡test/network/test_workflow.py170# ── TransitionGraph serialization ───────────────────────────────────────────COMMENT
MEDIUM⚡test/network/test_workflow.py272# ── WorkflowAdapter integration tests ───────────────────────────────────────COMMENT
MEDIUMtest/network/test_human_client.py524# ── Helpers ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_adapter_tools.py39# ── Plugin attaches identity-level tools only ─────────────────────────────COMMENT
MEDIUMtest/network/test_adapter_tools.py56# ── Adapter tools_for ─────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_adapter_tools.py141# ── Layer-2 envelope helpers ──────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_adapter_tools.py183# ── channels(open, message=...) seed ──────────────────────────────────────COMMENT
MEDIUMtest/network/test_hub_invariants.py139# ── Fix #1: Hub.unregister disk cleanup ─────────────────────────────────────COMMENT
MEDIUMtest/network/test_hub_invariants.py187# ── Fix #4: Hub.register rejects duplicate name ──────────────────────────────COMMENT
MEDIUMtest/network/test_hub_invariants.py223# ── Fix #2: concurrency caps + inbox limits ──────────────────────────────────COMMENT
MEDIUMtest/network/test_hub_invariants.py377# ── Fix #3 / #5: delegate inbox race + fail-fast on close ────────────────────COMMENT
MEDIUMtest/network/test_hub_invariants.py613# ── Fix #6: expectation dedup keyed by identity ──────────────────────────────COMMENT
MEDIUMtest/network/test_hub_invariants.py687# ── Fix #7: task_mirror idempotent observation ───────────────────────────────COMMENT
MEDIUMtest/network/test_hub_invariants.py730# ── Edge cases the per-fix tests above don't reach ───────────────────────────COMMENT
MEDIUMtest/network/test_tools.py74# ── peers tool ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_tools.py158# ── channels tool ───────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_tools.py197# ── context tool ────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_tools.py277# ── tasks tool ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_tools.py470# ── Plugin attaches all 6 tools ────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_subclass_surface.py42# ── Subclass on_* hooks ───────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_subclass_surface.py121# ── Custom sweeper ────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_subclass_surface.py179# ── Audit kinds open set ──────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_subclass_surface.py201# ── Inbox pressure ────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_subclass_surface.py247# ── Task mirror error escalation ──────────────────────────────────────────COMMENT
MEDIUMtest/network/test_audit_and_lifecycle.py53# ── delegation_depth ────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_audit_and_lifecycle.py119# ── Hydrate with missing adapter ────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_audit_and_lifecycle.py181# ── Sweeper auto_close cross-channel bleed ──────────────────────────────────COMMENT
MEDIUMtest/network/test_audit_and_lifecycle.py246# ── Channel + task lifecycle audit ──────────────────────────────────────────COMMENT
MEDIUM⚡test/network/test_rule_enforcement.py81# ── Access: outbound_to + inbound_from ──────────────────────────────────────COMMENT
MEDIUMtest/network/test_rule_enforcement.py52# ── parse_duration ──────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_rule_enforcement.py231# ── delegation_depth ────────────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_rule_enforcement.py274# ── max_concurrent_channels ─────────────────────────────────────────────────COMMENT
MEDIUMtest/network/test_rule_enforcement.py325# ── max_concurrent_tasks (via observe_task) ─────────────────────────────────COMMENT
105 more matches not shown…
Cross-Language Confusion25 hits · 174 pts
SeverityFileLineSnippetContext
HIGH⚡test/tools/test_local_shell.py28 assert contains_shell_operator('echo "a && b" "$(c)"') is FalseCODE
HIGH⚡test/tools/test_local_shell.py224 cmd = f"sleep 5 && echo ok > {output_file}"CODE
HIGH⚡test/tools/sandbox/test_local_sandbox.py22 result = await sandbox.exec(["sh", "-c", "echo hello && echo world"])CODE
HIGH⚡test/tools/sandbox/adapter/test_shell_adapter.py125 pytest.param("true && touch pwned", id="and"),CODE
HIGH⚡test/a2ui/test_actions.py57 # Optional[str] (anyOf with null) resolves to the non-null branch;COMMENT
HIGH⚡ag2/mcp/apps.py712 var meta = params ? params._meta : null;CODE
HIGH⚡ag2/mcp/apps.py713 var name = meta ? meta[TOOL_KEY] : null;CODE
HIGH⚡ag2/mcp/apps.py714 if (name && byTool[name]) { emit(byTool[name], params); }CODE
HIGH⚡ag2/mcp/apps.py746 if (!message || message.jsonrpc !== "2.0") { return; }CODE
HIGH⚡ag2/mcp/apps.py748 if (message.id === undefined || message.id === null) { onNotification(message.method, message.params); }CODE
HIGH⚡ag2/mcp/apps.py748 if (message.id === undefined || message.id === null) { onNotification(message.method, message.params); }CODE
HIGH⚡ag2/mcp/apps.py808 var available = host.context ? host.context.availableDisplayModes : null;CODE
HIGH⚡ag2/mcp/apps.py809 if (!available || available.indexOf(mode) === -1) {CODE
HIGH⚡ag2/mcp/apps.py816 if (result && result.displayMode) { host.context.displayMode = result.displayMode; }CODE
HIGH⚡ag2/mcp/apps.py848 host.protocolVersion = result.protocolVersion || null;CODE
HIGH⚡ag2/mcp/apps.py848 host.protocolVersion = result.protocolVersion || null;CODE
HIGH⚡ag2/mcp/apps.py849 host.info = result.hostInfo || null;CODE
HIGH⚡ag2/mcp/apps.py849 host.info = result.hostInfo || null;CODE
HIGHag2/mcp/apps.py659 var host = { protocolVersion: null, info: null, capabilities: {}, context: {} };CODE
HIGHag2/mcp/apps.py687 if (window.console && window.console.error) { window.console.error("ag2ui subscriber failed", e); }CODE
HIGHag2/mcp/apps.py697 list.push(fn);CODE
HIGHag2/mcp/apps.py767 if (width === lastWidth && height === lastHeight) { return; }CODE
HIGHag2/live/observer.py94 if text := self._buffer.push(event.content):CODE
HIGHag2/live/cascade.py126 voice = detector.push(event.content)CODE
HIGHexamples/mcp/server_apps.py40 var current = null;CODE
Excessive Try-Catch Wrapping142 hits · 154 pts
SeverityFileLineSnippetContext
LOWtest/a2a/test_multi_replica.py167 except Exception: # noqa: BLE001 - not stored yetCODE
LOWtest/a2a/test_card_signing.py117 except Exception:CODE
LOW⚡test/events/test_tool_events.py37 except Exception as e:CODE
LOW⚡test/events/test_tool_events.py48 except Exception as e:CODE
LOW⚡website/mkdocs/_website/utils.py280 except Exception as e:CODE
MEDIUM⚡website/mkdocs/_website/utils.py281 print(f"Error processing {file_path}: {e}")CODE
MEDIUM⚡website/mkdocs/_website/utils.py290 print(f"Error reading authors file: {e}")CODE
LOWwebsite/mkdocs/_website/utils.py415 except Exception as e:STRING
LOWag2/context.py258 except Exception as exc:CODE
LOWag2/agent.py1789 except Exception as exc:CODE
LOWag2/agent.py1944 except Exception as e:CODE
LOWag2/agent.py2154 except Exception as exc:CODE
LOWag2/agent.py2344 except Exception as exc:CODE
LOWag2/watch.py220 except Exception:CODE
LOWag2/watch.py254 except Exception:CODE
LOWag2/watch.py470 except Exception:CODE
LOWag2/middleware/describe.py77 except Exception:CODE
LOWag2/middleware/builtin/telemetry.py105 except Exception:CODE
LOWag2/middleware/builtin/telemetry.py369 except Exception as exc:CODE
LOWag2/middleware/builtin/telemetry.py481 except Exception as exc:CODE
LOWag2/middleware/builtin/telemetry.py545 except Exception as exc:CODE
LOWag2/middleware/builtin/telemetry.py582 except Exception as exc:CODE
LOWag2/tools/executor.py172 except Exception as e:CODE
LOWag2/tools/subagents/run_task.py229 except Exception as e:CODE
LOWag2/tools/subagents/run_task.py236 except Exception:CODE
LOWag2/tools/toolkits/mcp_server/toolkit.py240 except Exception as e:CODE
LOWag2/tools/sandbox/filter.py136 except Exception:CODE
LOWag2/tools/final/function_tool.py159 except Exception as e:CODE
LOWag2/tools/skills/skill_search/toolkit.py136 except Exception as e:CODE
LOWag2/tools/skills/skill_search/toolkit.py197 except Exception as e:CODE
LOWag2/tools/skills/skill_search/extractor.py55 except Exception:CODE
LOWag2/tools/builtin/anthropic_bash.py97 except Exception as e:CODE
LOWag2/a2a/client.py306 except Exception as e:CODE
LOWag2/a2a/executor.py191 except Exception:CODE
LOWag2/network/task_mirror.py202 except Exception as exc:CODE
LOWag2/network/task_mirror.py213 except Exception as exc:CODE
LOWag2/network/task_mirror.py225 except Exception as exc:CODE
LOWag2/network/task_mirror.py238 except Exception as exc:CODE
LOWag2/network/task_mirror.py247 except Exception as exc:CODE
LOWag2/network/task_mirror.py260 except Exception as exc:CODE
LOWag2/network/task_mirror.py285 except Exception:CODE
LOWag2/network/task_mirror.py296 except Exception:CODE
LOWag2/network/transport/ws.py134 except Exception:CODE
LOWag2/network/transport/ws.py191 except Exception:CODE
LOWag2/network/client/human_client.py167 except Exception:CODE
LOWag2/network/client/handlers.py264 except Exception:CODE
LOWag2/network/client/handlers.py311 except Exception as exc:CODE
LOWag2/network/client/hub_client.py234 except Exception:CODE
LOWag2/network/client/hub_client.py248 except Exception:CODE
LOWag2/network/client/hub_client.py312 except Exception as exc:CODE
LOWag2/network/client/hub_client.py333 except Exception:CODE
LOWag2/network/client/tools/tasks.py103 except Exception as exc:CODE
LOWag2/network/client/tools/tasks.py112 except Exception as exc:CODE
LOWag2/network/client/tools/tasks.py134 except Exception:CODE
LOWag2/network/client/tools/tasks.py146 except Exception:CODE
LOWag2/network/client/tools/tasks.py158 except Exception:CODE
LOWag2/network/client/tools/tasks.py177 except Exception as exc:CODE
LOWag2/network/client/tools/say.py72 except Exception as exc:CODE
LOWag2/network/client/tools/say.py83 except Exception:CODE
LOWag2/network/client/tools/say.py95 except Exception as exc:CODE
82 more matches not shown…
Cross-File Repetition24 hits · 120 pts
SeverityFileLineSnippetContext
HIGHtest/beta/extensions/nlip/test_context_sync.py0a gated ``delete_account`` tool, the prompts it raised and the ids it deleted.STRING
HIGHtest/a2a/test_context_sync.py0a gated ``delete_account`` tool, the prompts it raised and the ids it deleted.STRING
HIGHtest/a2ui/test_context_sync.py0a gated ``delete_account`` tool, the prompts it raised and the ids it deleted.STRING
HIGHtest/config/gemini/test_convert_messages.py0json.loads must not crash on empty or none tool call arguments.STRING
HIGHtest/config/anthropic/test_convert_messages.py0json.loads must not crash on empty or none tool call arguments.STRING
HIGHtest/config/ollama/test_convert_messages.py0json.loads must not crash on empty or none tool call arguments.STRING
HIGHtest/config/gemini/test_response_schema_to_api.py0json schema for a primitive/union wrapped in ``{\"data\": ...}`` (default ``embed=true``).STRING
HIGHtest/config/anthropic/test_response_schema_to_api.py0json schema for a primitive/union wrapped in ``{\"data\": ...}`` (default ``embed=true``).STRING
HIGHtest/config/dashscope/test_response_schema_to_api.py0json schema for a primitive/union wrapped in ``{\"data\": ...}`` (default ``embed=true``).STRING
HIGHtest/config/ollama/test_response_schema_to_api.py0json schema for a primitive/union wrapped in ``{\"data\": ...}`` (default ``embed=true``).STRING
HIGHtest/config/openai/test_response_schema_to_api.py0json schema for a primitive/union wrapped in ``{\"data\": ...}`` (default ``embed=true``).STRING
HIGH…config/openai/test_response_schema_to_responses_api.py0json schema for a primitive/union wrapped in ``{\"data\": ...}`` (default ``embed=true``).STRING
HIGHtest/config/bedrock/_helpers.py0every event sent on `stream`, transient ones included — history keeps none of those.STRING
HIGHtest/config/ollama/_helpers.py0every event sent on `stream`, transient ones included — history keeps none of those.STRING
HIGHtest/config/openai/_helpers.py0every event sent on `stream`, transient ones included — history keeps none of those.STRING
HIGHtest/providers/test_network_mixed_provider.py0transfer the conversation to the engineering specialist.STRING
HIGHtest/providers/test_network_cross_process_smoke.py0transfer the conversation to the engineering specialist.STRING
HIGHtest/providers/anthropic/test_workflow_smoke.py0transfer the conversation to the engineering specialist.STRING
HIGHtest/providers/gemini/test_gemini_integration.py0a follow-up question after an empty-args tool call must not crash.STRING
HIGHtest/providers/anthropic/test_anthropic_integration.py0a follow-up question after an empty-args tool call must not crash.STRING
HIGHtest/providers/openai/test_openai_integration.py0a follow-up question after an empty-args tool call must not crash.STRING
HIGHtest/providers/gemini/test_gemini_integration.py0discover available agents, optionally filtered by capability.STRING
HIGHtest/providers/anthropic/test_anthropic_integration.py0discover available agents, optionally filtered by capability.STRING
HIGHtest/providers/openai/test_openai_integration.py0discover available agents, optionally filtered by capability.STRING
Empty Error Handlers23 hits · 115 pts
SeverityFileLineSnippetContext
HIGHtest/providers/test_network_mixed_provider.py65except ImportError:CODE
HIGHtest/providers/test_network_cross_process_smoke.py85except ImportError:CODE
HIGHtest/providers/gemini/test_network_smoke.py40except ImportError:CODE
HIGHtest/providers/anthropic/test_network_coverage_smoke.py62except ImportError:CODE
HIGHtest/providers/anthropic/test_workflow_smoke.py55except ImportError:CODE
HIGHtest/providers/anthropic/test_network_smoke.py41except ImportError:CODE
HIGHtest/providers/openai/test_prompt_cache.py40except ImportError:CODE
HIGHtest/providers/openai/test_network_smoke.py40except ImportError:CODE
HIGHwebsite/mkdocs/_website/generate_mkdocs.py512except (FileNotFoundError, yaml.YAMLError):CODE
HIGHag2/network/task_mirror.py211except NotFoundError:CODE
HIGHag2/network/task_mirror.py223except NotFoundError:CODE
HIGHag2/network/task_mirror.py236except NotFoundError:CODE
HIGHag2/network/task_mirror.py245except NotFoundError:CODE
HIGHag2/network/task_mirror.py258except NotFoundError:CODE
HIGHag2/network/hub/sweepers.py64except Exception:CODE
HIGHag2/extensions/docker/sandbox.py222except NotFound:CODE
HIGHag2/extensions/docker/sandbox.py229except NotFound:CODE
HIGHag2/extensions/daytona/sandbox.py167except DaytonaNotFoundError:CODE
HIGHag2/knowledge/polling.py77except Exception: # pragma: no coverCODE
HIGHag2/events/_serialization.py115except (ImportError, ValueError):CODE
HIGHag2/acp/client.py73except ProcessLookupError:CODE
HIGHag2/acp/client.py365except asyncio.CancelledError:CODE
HIGHag2/acp/bridge.py96except ProcessLookupError:CODE
Deep Nesting116 hits · 110 pts
SeverityFileLineSnippetContext
LOWtest/network/test_at_least_once.py658CODE
LOWwebsite/mkdocs/docs.py109CODE
LOWwebsite/mkdocs/_website/generate_mkdocs.py57CODE
LOWwebsite/mkdocs/_website/generate_mkdocs.py368CODE
LOWwebsite/mkdocs/_website/generate_mkdocs.py756CODE
LOWwebsite/mkdocs/_website/generate_mkdocs.py813CODE
LOWwebsite/mkdocs/_website/generate_mkdocs.py86CODE
LOWwebsite/mkdocs/_website/utils.py297CODE
LOWag2/textual.py56CODE
LOWag2/_replay.py93CODE
LOWag2/assembly.py93CODE
LOWag2/agent.py1977CODE
LOWag2/agent.py1985CODE
LOWag2/agent.py2289CODE
LOWag2/watch.py416CODE
LOWag2/annotations.py34CODE
LOWag2/annotations.py67CODE
LOWag2/middleware/builtin/telemetry.py150CODE
LOWag2/middleware/builtin/telemetry.py522CODE
LOWag2/tools/executor.py56CODE
LOWag2/tools/precedence.py92CODE
LOWag2/tools/toolkits/mcp_server/toolkit.py438CODE
LOWag2/tools/toolkits/mcp_server/answering.py247CODE
LOWag2/tools/sandbox/filter.py88CODE
LOWag2/tools/skills/runtime/local/loader.py146CODE
LOWag2/tools/skills/skill_search/extractor.py18CODE
LOWag2/tools/skills/skill_search/extractor.py62CODE
LOWag2/config/gemini/events.py79CODE
LOWag2/config/gemini/mappers.py93CODE
LOWag2/config/gemini/mappers.py264CODE
LOWag2/config/gemini/gemini_client.py169CODE
LOWag2/config/gemini/gemini_client.py246CODE
LOWag2/config/typesafe/mappers.py48CODE
LOWag2/config/xai/mappers.py256CODE
LOWag2/config/bedrock/bedrock_client.py220CODE
LOWag2/config/bedrock/mappers.py217CODE
LOWag2/config/bedrock/mappers.py237CODE
LOWag2/config/bedrock/mappers.py270CODE
LOWag2/config/anthropic/events.py124CODE
LOWag2/config/anthropic/mappers.py312CODE
LOWag2/config/anthropic/mappers.py418CODE
LOWag2/config/anthropic/mappers.py605CODE
LOWag2/config/anthropic/mappers.py654CODE
LOWag2/config/anthropic/mappers.py670CODE
LOWag2/config/anthropic/anthropic_client.py283CODE
LOWag2/config/anthropic/anthropic_client.py346CODE
LOWag2/config/dashscope/dashscope_client.py97CODE
LOWag2/config/dashscope/dashscope_client.py161CODE
LOWag2/config/dashscope/mappers.py62CODE
LOWag2/config/ollama/mappers.py63CODE
LOWag2/config/mistral/mappers.py231CODE
LOWag2/config/mistral/mappers.py273CODE
LOWag2/config/zai/zai_client.py204CODE
LOWag2/config/zai/mappers.py177CODE
LOWag2/config/openai/openai_responses_client.py236CODE
LOWag2/config/openai/openai_responses_client.py301CODE
LOWag2/config/openai/events.py124CODE
LOWag2/config/openai/decisions_mappers.py82CODE
LOWag2/config/openai/mappers.py188CODE
LOWag2/config/openai/mappers.py391CODE
56 more matches not shown…
Modern Structural Boilerplate82 hits · 82 pts
SeverityFileLineSnippetContext
LOWtest/test_plugin/test_invocation.py165def update_defaults(event: BaseEvent, ctx: Context) -> None:CODE
LOWtest/tools/test_task.py85 async def set_history(self, stream_id: StreamId, events: Iterable[BaseEvent]) -> None:CODE
LOWag2/_import_utils.py19__all__ = [CODE
LOWag2/context.py26logger = logging.getLogger(__name__)CODE
LOWag2/agent.py98logger = logging.getLogger(__name__)CODE
LOWag2/watch.py27logger = logging.getLogger(__name__)CODE
LOWag2/history.py26 async def set_history(self, stream_id: "StreamId", events: Iterable[BaseEvent]) -> None: ...CODE
LOWag2/history.py41 async def set_history(self, stream_id: "StreamId", events: Iterable["BaseEvent"]) -> None:CODE
LOWag2/tools/precedence.py17logger = logging.getLogger(__name__)CODE
LOWag2/tools/toolkits/mcp_server/toolkit.py131async def _settle_era(session: ClientSession, mode: ProtocolMode) -> None:CODE
LOWag2/tools/toolkits/mcp_server/answering.py60logger = logging.getLogger(__name__)CODE
LOWag2/tools/skills/runtime/memory/skill.py112 def _set_instructions(self, body: "str | Callable[..., Any]") -> None:CODE
LOWag2/tools/skills/runtime/local/loader.py15logger = logging.getLogger(__name__)CODE
LOWag2/config/typesafe/config.py70__all__ = ["TypeSafeConfig", "TypeSafeConfigOverrides"]CODE
LOWag2/config/typesafe/typesafe_client.py29__all__ = ["TypeSafeClient"]CODE
LOWag2/config/xai/xai_client.py42__all__ = ["CreateOptions", "IncludeOption", "ReasoningEffort", "ToolMode", "XAIClient"]CODE
LOWag2/config/bedrock/mappers.py55logger = logging.getLogger(__name__)CODE
LOWag2/config/anthropic/mappers.py67logger = logging.getLogger(__name__)CODE
LOWag2/config/anthropic/anthropic_client.py49logger = logging.getLogger(__name__)CODE
LOWag2/config/mistral/config.py113__all__ = ["MISTRAL_DEFAULT_SERVER_URL", "MistralConfig", "MistralConfigOverrides"]CODE
LOWag2/config/mistral/mistral_client.py66__all__ = ["CreateOptions", "MistralClient", "ReasoningEffort"]CODE
LOWag2/config/openai/openai_decisions_client.py29__all__ = ["OpenAIDecisionsClient"]CODE
LOWag2/a2a/mappers/__init__.py32__all__ = [CODE
LOWag2/streams/redis/storage.py51 async def set_history(self, stream_id: StreamId, events: Iterable[BaseEvent]) -> None:CODE
LOWag2/network/task_mirror.py40logger = logging.getLogger(__name__)CODE
LOWag2/network/workflow_helpers.py43async def set_context(channel: Channel, key: str, value: Any) -> None:CODE
LOWag2/network/transport/ws.py48logger = logging.getLogger(__name__)CODE
LOW⚡ag2/network/client/agent_client.py318 async def set_resume(self, resume: Resume) -> None:CODE
LOWag2/network/client/agent_client.py334 async def set_skill(self, skill_md: str | None) -> None:CODE
LOWag2/network/client/agent_client.py337 async def set_rule(self, rule: Rule) -> None:CODE
LOWag2/network/client/human_client.py47logger = logging.getLogger(__name__)CODE
LOWag2/network/client/handlers.py53logger = logging.getLogger(__name__)CODE
LOWag2/network/client/hub_client.py73logger = logging.getLogger(__name__)CODE
LOW⚡ag2/network/client/hub_client.py750 async def set_resume(self, agent_id: str, resume: Resume) -> None:CODE
LOW⚡ag2/network/client/hub_client.py756 async def set_skill(self, agent_id: str, skill_md: str | None) -> None:CODE
LOW⚡ag2/network/client/hub_client.py762 async def set_rule(self, agent_id: str, rule: Rule) -> None:CODE
LOWag2/network/hub/audit.py56logger = logging.getLogger(__name__)CODE
LOWag2/network/hub/telemetry.py84logger = logging.getLogger(__name__)CODE
LOWag2/network/hub/core.py141logger = logging.getLogger(__name__)CODE
LOWag2/network/hub/core.py1424 async def set_resume(self, agent_id: str, resume: Resume) -> None:CODE
LOWag2/network/hub/core.py1465 async def set_skill(self, agent_id: str, skill_md: str | None) -> None:CODE
LOWag2/network/hub/core.py1481 async def set_rule(self, agent_id: str, rule: Rule) -> None:CODE
LOWag2/a2ui/server_action.py41logger = logging.getLogger(__name__)CODE
LOWag2/a2ui/request.py23logger = logging.getLogger(__name__)CODE
LOWag2/a2ui/parser.py20logger = logging.getLogger(__name__)CODE
LOWag2/a2ui/capabilities.py18logger = logging.getLogger(__name__)CODE
LOWag2/a2ui/incoming.py17logger = logging.getLogger(__name__)CODE
LOWag2/a2ui/middleware.py22logger = logging.getLogger(__name__)CODE
LOWag2/a2ui/a2a/executor.py46logger = logging.getLogger(__name__)CODE
LOWag2/a2ui/transports/rest.py29logger = logging.getLogger(__name__)CODE
LOWag2/a2ui/transports/ag_ui.py76logger = logging.getLogger(__name__)CODE
LOWag2/mcp/server.py56logger = logging.getLogger(__name__)CODE
LOWag2/mcp/pause.py29logger = logging.getLogger(__name__)CODE
LOWag2/mcp/sampling.py51logger = logging.getLogger(__name__)CODE
LOWag2/mcp/elicitation.py34logger = logging.getLogger(__name__)CODE
LOWag2/extensions/docker/sandbox.py22logger = logging.getLogger(__name__)CODE
LOWag2/extensions/tealtiger/__init__.py24__all__ = [CODE
LOWag2/extensions/daytona/sandbox.py24logger = logging.getLogger(__name__)CODE
LOWag2/extensions/tenki/sandbox.py30logger = logging.getLogger(__name__)CODE
LOWag2/extensions/nlip/server.py16logger = logging.getLogger(__name__)CODE
22 more matches not shown…
Over-Commented Block81 hits · 78 pts
SeverityFileLineSnippetContext
LOWjog.yaml21# Note: The agent starts from the assumption that documentation is correct unless it finds clear evidence otherwise.COMMENT
LOWtest/_serving.py61 # *process-wide*. Left set, every later SSE response in this processCOMMENT
LOWtest/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/middleware/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/middleware/builtins/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/test_plugin/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/tools/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/tools/search/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/tools/sandbox/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/tools/sandbox/adapter/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/tools/skills/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/dynamic/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/response/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/config/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/config/gemini/tools/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/config/xai/tools/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/config/bedrock/tools/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/config/anthropic/tools/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/config/anthropic/tools/test_shell.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/config/dashscope/tools/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/config/ollama/tools/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/config/zai/tools/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/config/openai/tools/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/providers/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/providers/agent/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/stream/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/network/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/spec/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/observer/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/a2ui/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/a2ui/a2a/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/a2ui/transports/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/agent/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/policies/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/extensions/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/extensions/tools/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/extensions/tools/search/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/extensions/tealtiger/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/knowledge/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/live/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/orchestration/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/files/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/eval/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/eval/dataset/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/eval/runtime/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/eval/scorers/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/eval/results/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/eval/sources/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWtest/events/__init__.py1# Copyright (c) 2026, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWwebsite/mkdocs/_website/__init__.py1# Copyright (c) 2023 - 2025, AG2ai, Inc., AG2ai open-source projects maintainers and core contributorsCOMMENT
LOWag2/hitl.py21)COMMENT
LOWag2/agent.py1561COMMENT
LOWag2/middleware/builtin/telemetry.py181 # Fallback when the wrapper was never persisted; an id-less result cannot be paired.COMMENT
LOWag2/middleware/builtin/llm_retry.py61 for _ in range(self._max_retries):COMMENT
LOWag2/tools/executor.py61 tasks = [asyncio.ensure_future(_execute_call(context, call)) for call in event.calls]COMMENT
LOWag2/tools/subagents/run_task.py181 # same ``finally`` as the bridge above, so it cannot outlive the call.COMMENT
LOWag2/config/anthropic/mappers.py681 if isinstance(message, ModelResponse):COMMENT
LOWag2/a2a/executor.py81 returnCOMMENT
LOWag2/network/envelope.py41# Fixed set; new names are added in code, not at runtime. User-defined eventCOMMENT
LOWag2/network/client/human_client.py81 # Push callbacks. Run in registration order; exceptions areCOMMENT
21 more matches not shown…
AI Structural Patterns91 hits · 78 pts
SeverityFileLineSnippetContext
LOWwebsite/mkdocs/_website/generate_mkdocs.py132CODE
LOWwebsite/mkdocs/_website/generate_mkdocs.py959CODE
LOWag2/spec.py132CODE
LOWag2/agent.py210CODE
LOWag2/agent.py226CODE
LOWag2/agent.py242CODE
LOWag2/agent.py258CODE
LOWag2/agent.py272CODE
LOWag2/agent.py304CODE
LOWag2/agent.py320CODE
LOWag2/agent.py336CODE
LOWag2/agent.py352CODE
LOWag2/agent.py366CODE
LOWag2/agent.py702CODE
LOWag2/agent.py722CODE
LOWag2/agent.py742CODE
LOWag2/agent.py762CODE
LOWag2/agent.py781CODE
LOWag2/agent.py991CODE
LOWag2/agent.py1008CODE
LOWag2/agent.py1026CODE
LOWag2/agent.py1044CODE
LOWag2/agent.py1060CODE
LOWag2/agent.py1094CODE
LOWag2/agent.py1111CODE
LOWag2/agent.py1129CODE
LOWag2/agent.py1147CODE
LOWag2/agent.py1163CODE
LOWag2/agent.py1275CODE
LOWag2/agent.py1415CODE
LOWag2/tools/shell/tool.py79CODE
LOWag2/tools/search/tavily.py47CODE
LOWag2/tools/search/perplexity.py127CODE
LOWag2/tools/search/perplexity.py191CODE
LOWag2/tools/builtin/web_fetch.py99CODE
LOWag2/config/gemini/gemini_client.py89CODE
LOWag2/config/typesafe/typesafe_client.py33CODE
LOWag2/config/bedrock/bedrock_client.py64CODE
LOWag2/config/anthropic/anthropic_client.py90CODE
LOWag2/config/zai/zai_client.py91CODE
LOWag2/config/openai/openai_responses_client.py107CODE
LOWag2/config/openai/containers.py56CODE
LOWag2/config/openai/openai_decisions_client.py33CODE
LOWag2/config/openai/openai_client.py84CODE
LOWag2/a2a/server.py97CODE
LOWag2/a2a/tasks.py74CODE
LOWag2/a2a/client.py172CODE
LOWag2/a2a/card.py31CODE
LOWag2/a2a/transports/grpc.py80CODE
LOWag2/a2a/transports/rest.py34CODE
LOWag2/a2a/transports/jsonrpc.py34CODE
LOWag2/a2a/mappers/messages.py62CODE
LOWag2/network/client/tools/tasks.py66CODE
LOWag2/network/client/tools/context.py48CODE
LOWag2/network/client/tools/channels.py62CODE
LOWag2/network/hub/core.py514CODE
LOWag2/a2ui/server.py53CODE
LOWag2/a2ui/_runtime.py40CODE
LOWag2/a2ui/a2a/executor.py83CODE
LOWag2/mcp/server.py285CODE
31 more matches not shown…
Docstring Block Structure7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHag2/_import_utils.py61Parse a module name string to create a ModuleInfo object. Args: module_info (str): The importable mSTRING
HIGHag2/tools/skills/skill_search/client.py77Download a skill via the GitHub Tarball API and install it via *runtime*. Args: source: ``"owner/STRING
HIGHag2/a2ui/dispatch.py93Execute one turn and yield its prose then A2UI message frames. Server-side actions are handled first and never invoSTRING
HIGHag2/a2ui/request.py59Parse a raw request body into an :class:`A2UIServerRequest`. Args: body: The raw JSON request body (bytes/sSTRING
HIGHag2/extensions/tools/search/serply.py119Run one GET against the Serply REST API. Args: client_kwargs: Keyword arguments for the ``httpx.AsyncClientSTRING
HIGHag2/extensions/tenki/environment.py145Yield the sandbox matching the resolved parameters. Sandboxes are cached by those parameters, so repeated callsSTRING
HIGHag2/eval/runtime/runner.py79Run an evaluation suite end-to-end. The given :class:`~ag2.Agent` is run once per task with a :class:`~ag2.middSTRING
Self-Referential Comments5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMwebsite/mkdocs/_website/generate_mkdocs.py719 # Create the target posts directoryCOMMENT
MEDIUMwebsite/mkdocs/_website/generate_mkdocs.py722 # Create the index file in the target blog directoryCOMMENT
MEDIUMwebsite/mkdocs/_website/generate_mkdocs.py908 # Create the MkDocs admonitionCOMMENT
MEDIUMwebsite/mkdocs/_website/generate_mkdocs.py1052 # Create the front matter metadata js file for examples by notebook sectionCOMMENT
MEDIUMag2/textual.py69 # Create a buffer block for assistant streamingCOMMENT
Modern AI Meta-Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md72 - [Orchestrating Multiple Agents](#orchestrating-multiple-agents)CODE
MEDIUMREADME.md74 - [Advanced agentic design patterns](#advanced-agentic-design-patterns)CODE
MEDIUMREADME.md458### Advanced agentic design patternsCOMMENT
MEDIUM.github/review/TRIAGE_AI_TASKS.md11## Global guardrailsCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtest/extensions/tools/search/test_tinyfish.py243 assert set(route.calls.last.request.url.params.keys()) == {"query"}CODE
AI Slop Vocabulary4 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMag2/agent.py855 # Assembly policies (empty by default; bare Agent has no harness).COMMENT
LOWag2/network/adapters/workflow.py222 # the same packet just set (atomic state-update + speaker-COMMENT
LOWag2/extensions/tealtiger/middleware.py369 # OBSERVE mode: skip policy evaluation, just pass through with auditCOMMENT
MEDIUMag2/acp/testing.py379 # The same arguments the real transports pass: a harness that connectedCOMMENT
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtest/config/gemini/test_gemini_tool_config_request.py86 credentials=Credentials(token="fake-token"),CODE
LOWtest/a2ui/a2a/test_a2a_executor.py42 "context": {"email": "user@example.com"},CODE
LOWtest/a2ui/a2a/test_a2a_executor.py154 assert clicked == ["user@example.com"]CODE
LOWtest/a2ui/a2a/test_a2a_executor.py172 assert "user@example.com" not in synthesizedCODE
LOWtest/a2ui/a2a/test_a2a_executor.py202 assert recorder.emails == ["user@example.com"]CODE
LOWtest/a2ui/a2a/test_a2a_executor.py217 assert "user@example.com" in synthesizedCODE
LOWtest/extensions/tealtiger/test_governance_middleware.py168 event = _make_tool_event(name="send", arguments={"to": "user@example.com"})CODE
LOWag2/a2ui/v1_0/spec/basic_catalog.json644 "placeholder": {CODE
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWwebsite/mkdocs/_website/generate_mkdocs.py237 # Check if the path already has a file extensionCOMMENT
LOWwebsite/mkdocs/_website/generate_mkdocs.py692 # Check if the path starts with /snippets/COMMENT
LOWwebsite/mkdocs/_website/generate_mkdocs.py702 # Read the file contentCOMMENT
LOWwebsite/mkdocs/_website/generate_mkdocs.py789 # Open file in append modeCOMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHREADME.md139export OPENAI_API_KEY="<your-api-key>" # or ANTHROPIC_API_KEY, GEMINI_API_KEY, ...CODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH.github/review/TRIAGE_POLICY.md248Reviews from anyone else in the community are welcome and don't gate the PR, but they're still held to the [AI Policy](.CODE
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWwebsite/mkdocs/_website/generate_mkdocs.py469 # Step 1: First copy mdx files to destination as md filesCOMMENT
LOWwebsite/mkdocs/_website/generate_mkdocs.py486 # Step 2: Process the MD files we createdCOMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWwebsite/mkdocs/_website/generate_mkdocs.py469 # Step 1: First copy mdx files to destination as md filesCOMMENT
LOWwebsite/mkdocs/_website/generate_mkdocs.py486 # Step 2: Process the MD files we createdCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtest/network/test_hub_invariants.py965CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWag2/tools/subagents/run_task.py132async def run_task(CODE