Repository Analysis

agentscope-ai/agentscope

Build and run agents you can see, understand and trust.

42.2 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of agentscope-ai/agentscope, a Python project with 27,833 GitHub stars. SynthScan v2.0 examined 175,624 lines of code across 743 source files, recording 3621 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 42.2 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

42.2
Adjusted Score
42.2
Raw Score
100%
Time Factor
2026-07-14
Last Push
27.8K
Stars
Python
Language
175.6K
Lines of Code
743
Files
3.6K
Pattern Hits
2026-07-14
Scan Date
0.57
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 421MEDIUM 959LOW 2241

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 3621 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators899 hits · 2895 pts
SeverityFileLineSnippetContext
MEDIUMtests/mem0_middleware_test.py199# ----------------------------------------------------------------------COMMENT
MEDIUMtests/mem0_middleware_test.py201# ----------------------------------------------------------------------COMMENT
MEDIUMtests/mem0_middleware_test.py276# ----------------------------------------------------------------------COMMENT
MEDIUMtests/mem0_middleware_test.py278# ----------------------------------------------------------------------COMMENT
MEDIUMtests/mem0_middleware_test.py844# ----------------------------------------------------------------------COMMENT
MEDIUMtests/mem0_middleware_test.py846# ----------------------------------------------------------------------COMMENT
MEDIUMtests/mem0_middleware_test.py38# ----------------------------------------------------------------------COMMENT
MEDIUMtests/mem0_middleware_test.py40# ----------------------------------------------------------------------COMMENT
MEDIUMtests/mem0_middleware_test.py128# ----------------------------------------------------------------------COMMENT
MEDIUMtests/mem0_middleware_test.py130# ----------------------------------------------------------------------COMMENT
MEDIUMtests/mem0_middleware_test.py533# ----------------------------------------------------------------------COMMENT
MEDIUMtests/mem0_middleware_test.py535# ----------------------------------------------------------------------COMMENT
MEDIUMtests/model_ollama_test.py23# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/model_ollama_test.py25# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/model_ollama_test.py112# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/model_ollama_test.py114# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/model_ollama_test.py198# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/model_ollama_test.py200# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/model_ollama_test.py311# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/model_ollama_test.py313# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_openai_chat_test.py46 # ---------------------------------------------------------------COMMENT
MEDIUMtests/formatter_openai_chat_test.py49 # ---------------------------------------------------------------COMMENT
MEDIUMtests/formatter_openai_chat_test.py110 # ---------------------------------------------------------------COMMENT
MEDIUMtests/formatter_openai_chat_test.py115 # ---------------------------------------------------------------COMMENT
MEDIUMtests/formatter_openai_chat_test.py205 # ---------------------------------------------------------------COMMENT
MEDIUMtests/formatter_openai_chat_test.py211 # ---------------------------------------------------------------COMMENT
MEDIUMtests/formatter_openai_chat_test.py283 # -------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_openai_chat_test.py285 # -------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_openai_chat_test.py485 # -------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_openai_chat_test.py487 # -------------------------------------------------------------------COMMENT
MEDIUMtests/permission_engine_test.py678# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/permission_engine_test.py680# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/backend_opensandbox_test.py30# ── OpenSandbox availability check ─────────────────────────────────COMMENT
MEDIUMtests/backend_opensandbox_test.py60 # ── exec ───────────────────────────────────────────────────────COMMENT
MEDIUMtests/backend_opensandbox_test.py91 # ── file I/O ───────────────────────────────────────────────────COMMENT
MEDIUMtests/backend_opensandbox_test.py111 # ── derived filesystem helpers (shell-based) ───────────────────COMMENT
MEDIUMtests/formatter_ollama_test.py170 # ------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_ollama_test.py172 # ------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_ollama_test.py341 # ------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_ollama_test.py343 # ------------------------------------------------------------------COMMENT
MEDIUMtests/backend_e2b_test.py29# ── E2B availability check ─────────────────────────────────────────COMMENT
MEDIUMtests/backend_e2b_test.py54 # ── exec ───────────────────────────────────────────────────────COMMENT
MEDIUMtests/backend_e2b_test.py85 # ── file I/O ───────────────────────────────────────────────────COMMENT
MEDIUMtests/backend_e2b_test.py105 # ── derived filesystem helpers (shell-based) ───────────────────COMMENT
MEDIUMtests/formatter_xai_test.py249 # -------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_xai_test.py251 # -------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_xai_test.py336 # -------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_xai_test.py338 # -------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_xai_test.py32# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_xai_test.py34# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_xai_test.py107# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_xai_test.py109# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/workspace_docker_test.py62# ── docker daemon detection ────────────────────────────────────────COMMENT
MEDIUMtests/workspace_docker_test.py89# ── helper tool for agent-integration test ────────────────────────COMMENT
MEDIUMtests/workspace_docker_test.py136# ── offload tests ─────────────────────────────────────────────────COMMENT
MEDIUMtests/workspace_docker_test.py454# ── skill tests ────────────────────────────────────────────────────COMMENT
MEDIUMtests/workspace_docker_test.py653# ── lifecycle tests ───────────────────────────────────────────────COMMENT
MEDIUMtests/formatter_deepseek_test.py183 # ------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_deepseek_test.py185 # ------------------------------------------------------------------COMMENT
MEDIUMtests/formatter_deepseek_test.py258 # ------------------------------------------------------------------COMMENT
839 more matches not shown…
Cross-File Repetition295 hits · 1475 pts
SeverityFileLineSnippetContext
HIGHtests/service_cancel_dispatcher_test.py0yield the event loop a few times so spawned tasks make progress.STRING
HIGHtests/service_index_task_consumer_test.py0yield the event loop a few times so spawned tasks make progress.STRING
HIGHtests/service_wakeup_dispatcher_test.py0yield the event loop a few times so spawned tasks make progress.STRING
HIGHtests/model_ollama_test.py0non-stream text response returns a single chatresponse.STRING
HIGHtests/model_anthropic_test.py0non-stream text response returns a single chatresponse.STRING
HIGHtests/model_gemini_test.py0non-stream text response returns a single chatresponse.STRING
HIGHtests/model_dashscope_test.py0non-stream text response returns a single chatresponse.STRING
HIGHtests/model_deepseek_test.py0non-stream text response returns a single chatresponse.STRING
HIGHtests/model_openai_response_test.py0non-stream text response returns a single chatresponse.STRING
HIGHtests/model_moonshot_test.py0non-stream text response returns a single chatresponse.STRING
HIGHtests/model_openai_chat_test.py0non-stream text response returns a single chatresponse.STRING
HIGHtests/model_xai_test.py0non-stream text response returns a single chatresponse.STRING
HIGHtests/model_ollama_test.py0stream text yields deltas then final with full content.STRING
HIGHtests/model_openai_response_test.py0stream text yields deltas then final with full content.STRING
HIGHtests/model_xai_test.py0stream text yields deltas then final with full content.STRING
HIGHtests/formatter_openai_chat_test.py0set up shared message fixtures and expected ground-truth dicts.STRING
HIGHtests/formatter_anthropic_test.py0set up shared message fixtures and expected ground-truth dicts.STRING
HIGHtests/formatter_gemini_test.py0set up shared message fixtures and expected ground-truth dicts.STRING
HIGHtests/formatter_dashscope_test.py0set up shared message fixtures and expected ground-truth dicts.STRING
HIGHtests/formatter_moonshot_test.py0set up shared message fixtures and expected ground-truth dicts.STRING
HIGHtests/formatter_openai_response_test.py0set up shared message fixtures and expected ground-truth dicts.STRING
HIGHtests/formatter_openai_chat_test.py0chat formatter produces exact output for various subsets.STRING
HIGHtests/formatter_ollama_test.py0chat formatter produces exact output for various subsets.STRING
HIGHtests/formatter_deepseek_test.py0chat formatter produces exact output for various subsets.STRING
HIGHtests/formatter_anthropic_test.py0chat formatter produces exact output for various subsets.STRING
HIGHtests/formatter_gemini_test.py0chat formatter produces exact output for various subsets.STRING
HIGHtests/formatter_dashscope_test.py0chat formatter produces exact output for various subsets.STRING
HIGHtests/formatter_moonshot_test.py0chat formatter produces exact output for various subsets.STRING
HIGHtests/formatter_openai_response_test.py0chat formatter produces exact output for various subsets.STRING
HIGHtests/formatter_openai_chat_test.py0url images in tool results are promoted to a follow-up user message.STRING
HIGHtests/formatter_moonshot_test.py0url images in tool results are promoted to a follow-up user message.STRING
HIGHtests/formatter_openai_response_test.py0url images in tool results are promoted to a follow-up user message.STRING
HIGHtests/formatter_openai_chat_test.py0multiagent formatter produces exact output for various subsets.STRING
HIGHtests/formatter_ollama_test.py0multiagent formatter produces exact output for various subsets.STRING
HIGHtests/formatter_deepseek_test.py0multiagent formatter produces exact output for various subsets.STRING
HIGHtests/formatter_anthropic_test.py0multiagent formatter produces exact output for various subsets.STRING
HIGHtests/formatter_gemini_test.py0multiagent formatter produces exact output for various subsets.STRING
HIGHtests/formatter_dashscope_test.py0multiagent formatter produces exact output for various subsets.STRING
HIGHtests/formatter_moonshot_test.py0multiagent formatter produces exact output for various subsets.STRING
HIGHtests/formatter_openai_response_test.py0multiagent formatter produces exact output for various subsets.STRING
HIGHtests/formatter_openai_chat_test.py0complex multi-step sequence with interleaved thinking, text, tool calls, and tool results.STRING
HIGHtests/formatter_ollama_test.py0complex multi-step sequence with interleaved thinking, text, tool calls, and tool results.STRING
HIGHtests/formatter_xai_test.py0complex multi-step sequence with interleaved thinking, text, tool calls, and tool results.STRING
HIGHtests/formatter_deepseek_test.py0complex multi-step sequence with interleaved thinking, text, tool calls, and tool results.STRING
HIGHtests/formatter_anthropic_test.py0complex multi-step sequence with interleaved thinking, text, tool calls, and tool results.STRING
HIGHtests/formatter_gemini_test.py0complex multi-step sequence with interleaved thinking, text, tool calls, and tool results.STRING
HIGHtests/formatter_moonshot_test.py0complex multi-step sequence with interleaved thinking, text, tool calls, and tool results.STRING
HIGHtests/formatter_openai_response_test.py0complex multi-step sequence with interleaved thinking, text, tool calls, and tool results.STRING
HIGHtests/formatter_openai_chat_test.py0hintblock flushes preceding content and becomes a user message.STRING
HIGHtests/formatter_ollama_test.py0hintblock flushes preceding content and becomes a user message.STRING
HIGHtests/formatter_xai_test.py0hintblock flushes preceding content and becomes a user message.STRING
HIGHtests/formatter_deepseek_test.py0hintblock flushes preceding content and becomes a user message.STRING
HIGHtests/formatter_anthropic_test.py0hintblock flushes preceding content and becomes a user message.STRING
HIGHtests/formatter_gemini_test.py0hintblock flushes preceding content and becomes a user message.STRING
HIGHtests/formatter_dashscope_test.py0hintblock flushes preceding content and becomes a user message.STRING
HIGHtests/formatter_moonshot_test.py0hintblock flushes preceding content and becomes a user message.STRING
HIGHtests/formatter_openai_response_test.py0hintblock flushes preceding content and becomes a user message.STRING
HIGHtests/formatter_openai_chat_test.py0multimodal hintblock becomes a single user message with text + image.STRING
HIGHtests/formatter_anthropic_test.py0multimodal hintblock becomes a single user message with text + image.STRING
HIGHtests/formatter_gemini_test.py0multimodal hintblock becomes a single user message with text + image.STRING
235 more matches not shown…
Hyper-Verbose Identifiers1147 hits · 1069 pts
SeverityFileLineSnippetContext
LOWtests/embedding_openai_test.py154 async def test_retry_on_transient_error(CODE
LOWtests/mem0_middleware_test.py207 def test_missing_user_id_raises(self) -> None:CODE
LOWtests/mem0_middleware_test.py260 def test_client_alone_does_not_warn(self) -> None:CODE
LOWtests/mem0_middleware_test.py266 def test_only_one_of_chat_or_embedding_without_config_raises(CODE
LOWtests/mem0_middleware_test.py852 async def test_memory_msg_and_tool_hint_both_present(self) -> None:CODE
LOWtests/mem0_middleware_test.py146 def test_list_of_user_msgs_joined(self) -> None:CODE
LOWtests/mem0_middleware_test.py151 def test_resumption_events_return_none(self) -> None:CODE
LOWtests/mem0_middleware_test.py186 def test_plain_list_of_strings(self) -> None:CODE
LOWtests/mem0_middleware_test.py223 def test_neither_client_nor_models_nor_config_raises(self) -> None:CODE
LOWtests/mem0_middleware_test.py231 def test_client_wins_over_other_backend_kwargs_with_warning(CODE
LOWtests/mem0_middleware_test.py304 async def test_retrieve_inject_write(self) -> None:CODE
LOWtests/mem0_middleware_test.py380 async def test_memory_message_lands_after_user_message(self) -> None:CODE
LOWtests/mem0_middleware_test.py415 async def test_no_memories_no_injection(self) -> None:CODE
LOWtests/mem0_middleware_test.py434 async def test_search_failure_does_not_break_reply(self) -> None:CODE
LOWtests/mem0_middleware_test.py451 async def test_scope_search_by_agent_false_drops_agent_id(CODE
LOWtests/mem0_middleware_test.py470 async def test_sync_client_rejected(self) -> None:CODE
LOWtests/mem0_middleware_test.py490 async def test_async_method_wrapped_by_sync_decorator_accepted(CODE
LOWtests/mem0_middleware_test.py567 async def test_tools_listed_and_hint_in_prompt(self) -> None:CODE
LOWtests/mem0_middleware_test.py607 async def test_middleware_does_not_mutate_toolkit(self) -> None:CODE
LOWtests/mem0_middleware_test.py675 async def test_async_search_accepts_per_call_top_k(self) -> None:CODE
LOWtests/mem0_middleware_test.py695 async def test_tools_auto_allow_permission(self) -> None:CODE
LOWtests/mem0_middleware_test.py714 async def test_search_memory_dedupes_across_keywords(self) -> None:CODE
LOWtests/mem0_middleware_test.py736 async def test_search_memory_failure_returns_error_chunk(self) -> None:CODE
LOWtests/mem0_middleware_test.py757 async def test_add_memory_two_tier_fallback(self) -> None:CODE
LOWtests/mem0_middleware_test.py811 async def test_add_memory_does_not_persist_thinking(self) -> None:CODE
LOWtests/compress_context_test.py62 async def _call_api_with_structured_output(CODE
LOWtests/compress_context_test.py742 async def test_context_compression_clears_evicted_read_cache(self) -> None:CODE
LOWtests/compress_context_test.py814 async def test_context_compression_keeps_reserved_read_cache(CODE
LOWtests/compress_context_test.py893 async def test_context_compression_clears_unreferenced_read_cache(CODE
LOWtests/compress_context_test.py951 async def test_context_compression_injects_instructions_as_hint(CODE
LOWtests/compress_context_test.py1016 async def test_context_compression_overflow_retry_keeps_instructions(CODE
LOWtests/agui_protocol_test.py73 async def test_raw_json_stream_is_converted(self) -> None:CODE
LOWtests/agui_protocol_test.py88 async def test_sse_data_frame_is_converted(self) -> None:CODE
LOWtests/agui_protocol_test.py108 async def test_sse_heartbeat_is_passed_through(self) -> None:CODE
LOWtests/agui_protocol_test.py115 async def test_sse_data_frame_with_crlf_is_converted(self) -> None:CODE
LOWtests/agui_protocol_test.py135 async def test_fastapi_sse_response_is_converted(self) -> None:CODE
LOWtests/agui_protocol_test.py164 async def test_fastapi_json_response_is_not_converted(self) -> None:CODE
LOWtests/agui_protocol_test.py198 async def test_reply_start_to_run_started(self) -> None:CODE
LOWtests/agui_protocol_test.py212 async def test_reply_end_to_run_finished(self) -> None:CODE
LOWtests/agui_protocol_test.py225 async def test_exceed_max_iters_to_run_error(self) -> None:CODE
LOWtests/agui_protocol_test.py248 async def test_model_call_start_to_step_started(self) -> None:CODE
LOWtests/agui_protocol_test.py259 async def test_model_call_end_to_step_finished(self) -> None:CODE
LOWtests/agui_protocol_test.py335 async def test_thinking_block_start(self) -> None:CODE
LOWtests/agui_protocol_test.py347 async def test_thinking_block_delta(self) -> None:CODE
LOWtests/agui_protocol_test.py431 async def test_tool_result_end_with_buffered_content(self) -> None:CODE
LOWtests/agui_protocol_test.py461 async def test_tool_result_end_fallback_to_state(self) -> None:CODE
LOWtests/agui_protocol_test.py474 async def test_tool_result_start_to_custom(self) -> None:CODE
LOWtests/agui_protocol_test.py487 async def test_tool_result_text_delta_to_custom(self) -> None:CODE
LOWtests/agui_protocol_test.py500 async def test_tool_result_data_delta_to_custom(self) -> None:CODE
LOWtests/agui_protocol_test.py574 async def test_require_user_confirm(self) -> None:CODE
LOWtests/agui_protocol_test.py592 async def test_require_external_execution(self) -> None:CODE
LOWtests/agui_protocol_test.py629 async def test_external_execution_result(self) -> None:CODE
LOWtests/agui_protocol_test.py657 def _assert_no_snake_case_keys(self, d: dict, context: str) -> None:CODE
LOWtests/agui_protocol_test.py668 async def test_all_standard_events_produce_camel_case(self) -> None:CODE
LOWtests/service_cancel_dispatcher_test.py166 async def test_cancel_signal_cancels_local_chat_run(self) -> None:CODE
LOWtests/service_cancel_dispatcher_test.py192 async def test_cancel_signal_cancels_local_bg_tasks(self) -> None:CODE
LOWtests/service_cancel_dispatcher_test.py240 async def test_cancel_signal_for_remote_session_is_noop(self) -> None:CODE
LOWtests/service_cancel_dispatcher_test.py275 async def test_cancel_fans_out_to_both_chat_and_bg_in_one_signal(CODE
LOWtests/service_cancel_dispatcher_test.py315 async def test_cancels_only_matching_session(self) -> None:CODE
LOWtests/service_cancel_dispatcher_test.py346 async def test_no_matches_returns_zero(self) -> None:CODE
1087 more matches not shown…
Unused Imports616 hits · 586 pts
SeverityFileLineSnippetContext
LOWtests/rag_vdb_mongodb_test.py4CODE
LOWsrc/agentscope/__init__.py5CODE
LOWsrc/agentscope/__init__.py5CODE
LOWsrc/agentscope/__init__.py9CODE
LOWsrc/agentscope/__init__.py10CODE
LOWsrc/agentscope/middleware/_base.py8CODE
LOWsrc/agentscope/middleware/_base.py9CODE
LOWsrc/agentscope/middleware/_tts_middleware.py18CODE
LOWsrc/agentscope/middleware/__init__.py4CODE
LOWsrc/agentscope/middleware/__init__.py5CODE
LOWsrc/agentscope/middleware/__init__.py6CODE
LOWsrc/agentscope/middleware/__init__.py7CODE
LOWsrc/agentscope/middleware/__init__.py7CODE
LOWsrc/agentscope/middleware/__init__.py7CODE
LOWsrc/agentscope/middleware/__init__.py12CODE
LOWsrc/agentscope/middleware/__init__.py13CODE
LOWsrc/agentscope/middleware/_rag.py61CODE
LOWsrc/agentscope/middleware/_rag.py62CODE
LOWsrc/agentscope/middleware/_rag.py62CODE
LOWsrc/agentscope/middleware/_budget.py11CODE
LOWsrc/agentscope/middleware/_longterm_memory/__init__.py4CODE
LOWsrc/agentscope/middleware/_longterm_memory/__init__.py5CODE
LOWsrc/agentscope/middleware/_longterm_memory/__init__.py6CODE
LOW…iddleware/_longterm_memory/_agentic_memory/__init__.py4CODE
LOW…leware/_longterm_memory/_agentic_memory/_middleware.py8CODE
LOW…leware/_longterm_memory/_agentic_memory/_middleware.py25CODE
LOW…ddleware/_longterm_memory/_mem0/_agentscope_adapter.py32CODE
LOW…ddleware/_longterm_memory/_mem0/_agentscope_adapter.py55CODE
LOW…agentscope/middleware/_longterm_memory/_mem0/_tools.py19CODE
LOW…agentscope/middleware/_longterm_memory/_mem0/_tools.py29CODE
LOW…entscope/middleware/_longterm_memory/_mem0/__init__.py4CODE
LOW…scope/middleware/_longterm_memory/_mem0/_middleware.py13CODE
LOW…scope/middleware/_longterm_memory/_mem0/_middleware.py40CODE
LOW…scope/middleware/_longterm_memory/_mem0/_middleware.py41CODE
LOW…scope/middleware/_longterm_memory/_mem0/_middleware.py42CODE
LOW…scope/middleware/_longterm_memory/_mem0/_middleware.py43CODE
LOW…agentscope/middleware/_longterm_memory/_mem0/_utils.py8CODE
LOW…agentscope/middleware/_longterm_memory/_reme/_tools.py16CODE
LOW…agentscope/middleware/_longterm_memory/_reme/_tools.py25CODE
LOW…entscope/middleware/_longterm_memory/_reme/__init__.py12CODE
LOW…scope/middleware/_longterm_memory/_reme/_middleware.py28CODE
LOW…scope/middleware/_longterm_memory/_reme/_middleware.py50CODE
LOW…scope/middleware/_longterm_memory/_reme/_middleware.py51CODE
LOW…agentscope/middleware/_longterm_memory/_reme/_utils.py8CODE
LOWsrc/agentscope/middleware/_tracing/_extractor.py15CODE
LOWsrc/agentscope/middleware/_tracing/_extractor.py22CODE
LOWsrc/agentscope/middleware/_tracing/_extractor.py23CODE
LOWsrc/agentscope/middleware/_tracing/_extractor.py23CODE
LOWsrc/agentscope/middleware/_tracing/__init__.py4CODE
LOWsrc/agentscope/middleware/_tracing/_trace.py46CODE
LOWsrc/agentscope/middleware/_tracing/_trace.py47CODE
LOWsrc/agentscope/middleware/_tracing/_trace.py48CODE
LOWsrc/agentscope/credential/_base.py10CODE
LOWsrc/agentscope/credential/_base.py11CODE
LOWsrc/agentscope/credential/_base.py11CODE
LOWsrc/agentscope/credential/_base.py12CODE
LOWsrc/agentscope/credential/_base.py13CODE
LOWsrc/agentscope/credential/_ollama.py10CODE
LOWsrc/agentscope/credential/_ollama.py11CODE
LOWsrc/agentscope/credential/_moonshot.py10CODE
556 more matches not shown…
Cross-Language Confusion73 hits · 440 pts
SeverityFileLineSnippetContext
HIGHtests/builtin_bash_test.py199 cmd = "(cd /tmp && ls)"CODE
HIGHtests/builtin_bash_test.py507 "ls && rm -rf /",CODE
HIGHtests/builtin_bash_test.py508 "cd /tmp && rm -rf /usr",CODE
HIGHtests/permission_engine_test.py555 {"command": "ls -la && rm ~/.bashrc"},CODE
HIGHtests/permission_engine_test.py567 {"command": "ls -la && cat file.txt"},CODE
HIGHtests/permission_engine_test.py578 {"command": "ls -la && git commit -m 'test'"},CODE
HIGHtests/mcp_streamable_http_client_test.py144 "meta": null,STRING
HIGHtests/model_gemini_test.py549 """additionalProperties removed; anyOf[X, null] inlined to X."""STRING
HIGHtests/workspace_local_test.py1119 '"finished_at":"2026-01-01T00:00:00","usage":null}'CODE
HIGHtests/workspace_local_test.py1162 '"finished_at":null,"usage":null}'CODE
HIGHtests/workspace_local_test.py1170 '"finished_at":"2026-01-02T00:00:00","usage":null}'CODE
HIGHtests/backend_local_test.py322 ["/bin/sh", "-c", "true && echo chained"],CODE
HIGHtests/tts_dashscope_test.py151 resp = await model.push("ignored")CODE
HIGHtests/tts_dashscope_test.py566 await model.push("Hello")CODE
HIGHtests/tts_dashscope_test.py567 await model.push(" world")CODE
HIGHtests/tts_dashscope_test.py593 res = await model.push("Hello")CODE
HIGHtests/tts_dashscope_test.py603 await model.push("Hi")CODE
HIGHtests/tts_dashscope_test.py604 await model.push(" there")CODE
HIGHtests/tts_dashscope_test.py608 await model.push(" friend!")CODE
HIGHtests/tts_dashscope_test.py618 await model.push("Hello")CODE
HIGHtests/tts_dashscope_test.py621 await model.push(" world")CODE
HIGHtests/tts_dashscope_test.py632 await model.push("Hello")CODE
HIGHtests/tts_dashscope_test.py633 await model.push(" world")CODE
HIGHtests/tts_dashscope_test.py677 await model.push("Hello")CODE
HIGHtests/tts_dashscope_test.py708 await model.push("Hi")CODE
HIGHtests/tts_dashscope_test.py709 await model.push(" there")CODE
HIGHtests/tts_dashscope_test.py975 await model.push("Hello")CODE
HIGHtests/tts_dashscope_test.py976 await model.push(" world")CODE
HIGHtests/tts_dashscope_test.py1001 res = await model.push("Hello")CODE
HIGHtests/tts_dashscope_test.py1014 await model.push("Hi")CODE
HIGHtests/tts_dashscope_test.py1015 await model.push(" there")CODE
HIGHtests/tts_dashscope_test.py1019 await model.push(" friend!")CODE
HIGHtests/tts_dashscope_test.py1032 await model.push("Hello")CODE
HIGHtests/tts_dashscope_test.py1037 await model.push(" world")CODE
HIGHtests/tts_dashscope_test.py1053 await model.push("Hello")CODE
HIGHtests/tts_dashscope_test.py1054 await model.push(" world")CODE
HIGHtests/tts_dashscope_test.py1066 res = await model.push("Hello")CODE
HIGHtests/tts_dashscope_test.py1111 await model.push("Hello")CODE
HIGHtests/tts_dashscope_test.py1168 await model.push("Hi")CODE
HIGHtests/tts_dashscope_test.py1169 await model.push(" there")CODE
HIGHtests/tts_dashscope_test.py659 await model.push("Hello")CODE
HIGHtests/tts_dashscope_test.py1092 await model.push("Hello")CODE
HIGHtests/permission_bash_parser_test.py86 "npm install && npm run build && npm test",CODE
HIGHtests/permission_bash_parser_test.py100 ("npm run build || echo failed", ["npm run"]),CODE
HIGHtests/permission_bash_parser_test.py101 ("git commit || git status", ["git commit", "git status"]),CODE
HIGHtests/permission_bash_parser_test.py296 "ls -la && cat file.txt",CODE
HIGHtests/permission_bash_parser_test.py297 "git status && git log",CODE
HIGHtests/permission_bash_parser_test.py298 "pwd && ls",CODE
HIGHtests/permission_bash_parser_test.py299 "cat file1.txt || cat file2.txt",CODE
HIGHtests/permission_bash_parser_test.py314 "ls -la && git commit -m 'message'",CODE
HIGHtests/permission_bash_parser_test.py315 "cat file.txt && rm file.txt",CODE
HIGHtests/permission_bash_parser_test.py316 "git status && git push",CODE
HIGHtests/permission_bash_parser_test.py317 "pwd || mkdir new_dir",CODE
HIGHtests/permission_bash_parser_test.py551 "rm file1.txt && rm file2.txt",CODE
HIGHtests/permission_bash_parser_test.py555 "touch new.txt && chmod +x new.txt",CODE
HIGHtests/permission_bash_parser_test.py559 "cp src.txt dest.txt || mv src.txt dest.txt",CODE
HIGHtests/permission_bash_parser_test.py705 "echo 'a' > file1.txt && echo 'b' > file2.txt",CODE
HIGHtests/permission_bash_parser_test.py709 "cat file.txt > backup.txt || cp file.txt backup.txt",CODE
HIGHtests/permission_bash_parser_test.py1202 "ls -la && cat file.txt",CODE
HIGHtests/permission_bash_parser_test.py1204 "npm install || echo failed",CODE
13 more matches not shown…
Docstring Block Structure53 hits · 265 pts
SeverityFileLineSnippetContext
HIGHsrc/agentscope/app/deps.py31Return the caller's user ID from the ``X-User-ID`` request header. Args: x_user_id (`str`): Value of the ``STRING
HIGHsrc/agentscope/app/deps.py200Return the application-wide knowledge base service. Args: request (`Request`): The incoming FasSTRING
HIGHsrc/agentscope/app/deps.py231Return the application-wide knowledge base manager. Args: request (`Request`): The incoming FasSTRING
HIGHsrc/agentscope/app/deps.py259Return the application-wide blob store. Args: request (`Request`): The incoming FastAPI requestSTRING
HIGHsrc/agentscope/app/deps.py290Return the parser registry configured on the app. Args: request (`Request`): The incoming FastASTRING
HIGHsrc/agentscope/app/middleware/_protocol/_base.py201Deserialize event dictionary to AgentEvent object. Args: event_dict: Dictionary containing event daSTRING
HIGHsrc/agentscope/app/_router/_chat.py61Trigger a chat run for the specified session. Events produced during the run are published to the message bus and STRING
HIGHsrc/agentscope/app/_router/_session.py199Return all sessions for an agent as enriched :class:`SessionView` entries. Each entry bundles three things the STRING
HIGHsrc/agentscope/app/_router/_session.py272Create (or resume) a session for a given agent and workspace. At most one session exists per ``(user_id, agent_id, STRING
HIGHsrc/agentscope/app/_router/_session.py393Request interruption of an in-progress reply for a session. Thin HTTP wrapper around :meth:`ChatService.interrupt`;STRING
HIGHsrc/agentscope/app/_router/_session.py435Update the model configuration of an existing session. Args: session_id (`str`): The session to update. STRING
HIGHsrc/agentscope/app/_router/_session.py573Return the unified :class:`SessionStatus` for a session. Ownership validation, cluster-liveness probing, and parkedSTRING
HIGHsrc/agentscope/app/_router/_credential.py120Replace the payload of an existing credential. Args: credential_id (`str`): The credential to update. STRING
HIGHsrc/agentscope/app/_router/_agent.py176Create and persist a new agent configuration. Args: body (`CreateAgentRequest`): Agent configurSTRING
HIGHsrc/agentscope/app/_router/_agent.py228Partially update an existing agent configuration. Only the fields present in the request body are updated; all otheSTRING
HIGHsrc/agentscope/app/_router/_schedule.py74Create a new schedule and register it with the scheduler. The referenced agent may be either the viewer's own or onSTRING
HIGHsrc/agentscope/app/_router/_schedule.py143Partially update a schedule. Fields omitted from the request body keep their current values. Changing ``cron_exSTRING
HIGHsrc/agentscope/app/_router/_schedule.py231Return all sessions triggered by a given schedule. Args: schedule_id (`str`): ID of the schedule. uSTRING
HIGHsrc/agentscope/app/_service/_knowledge_base.py111Delegate creation to the manager, mapping policy errors. Args: user_id (`str`): TheSTRING
HIGHsrc/agentscope/app/_service/_knowledge_base.py230Persist an uploaded document and enqueue it for indexing. Streams ``stream`` into the blob store (so the bytes STRING
HIGHsrc/agentscope/app/_service/_knowledge_base.py311List every document registered against a knowledge base. Service-mode source of truth: reads from storage, NOT STRING
HIGHsrc/agentscope/app/_service/_knowledge_base.py350Batch-fetch documents for status polling. The endpoint backing this method accepts a comma-separated list STRING
HIGHsrc/agentscope/app/_service/_knowledge_base.py457Search a knowledge base by text query. Args: user_id (`str`): The viewer user id — STRING
HIGHsrc/agentscope/app/_service/_embedding.py29Construct an embedding model from an already-resolved credential. This is the record-in variant used by owner-interSTRING
HIGHsrc/agentscope/app/_service/_embedding.py100Resolve a credential through :class:`ResourceAccessService` and build the corresponding embedding model. Args: STRING
HIGHsrc/agentscope/app/_service/_model.py14Build a chat model instance from a stored credential and config. Credentials are resolved through :class:`ResourceASTRING
HIGHsrc/agentscope/app/_manager/_chat_run_registry.py43Create and register an asyncio task that runs ``coro``. The task auto-removes from the registry when it finisheSTRING
HIGHsrc/agentscope/app/rag/__init__.py51Lazy-load attributes that would cause an import cycle. ``run_worker`` is lazy-imported because :mod:`.index_worker`STRING
HIGHsrc/agentscope/app/rag/index_worker/__main__.py55Import ``module:attribute`` and return the attribute. Args: dotted (`str`): A ``module:attributSTRING
HIGHsrc/agentscope/app/rag/knowledge_base_manager/_base.py131Create a new knowledge base for the given user. Implementations must: 1. validate ``embedding_model_coSTRING
HIGHsrc/agentscope/app/rag/knowledge_base_manager/_base.py279Resolve a runtime :class:`KnowledgeBase` handle for one KB. Implementations are responsible for: - looSTRING
HIGH…e/app/rag/knowledge_base_manager/_collection_per_kb.py144Resolve a :class:`KnowledgeBase` runtime for one knowledge base. Looks the record up in storage (raising STRING
HIGHsrc/agentscope/workspace/_gateway_client.py481Relay one HTTP request through the sandbox. Writes ``body`` (if any) to a sandbox tempfile, runs ``pythSTRING
HIGHsrc/agentscope/workspace/_e2b/_e2b_backend.py125Read a file from the sandbox via ``files.read``. Args: path (`str`): Path to the fiSTRING
HIGHsrc/agentscope/workspace/_daytona/_daytona_backend.py127Read a file from the sandbox via ``fs.download_file``. Args: path (`str`): Path to STRING
HIGHsrc/agentscope/workspace/_k8s/_k8s_backend.py206Read a file from the Pod via tar stream extraction. Runs ``tar cf - -C <dir> <basename>`` inside the Pod, colleSTRING
HIGH…ntscope/workspace/_opensandbox/_opensandbox_backend.py114Read a file from the sandbox via ``files.read_bytes``. Args: path (`str`): Path to STRING
HIGHsrc/agentscope/workspace/_docker/_docker_backend.py137Fetch a file from the container via ``get_archive``. Args: path (`str`): Path to thSTRING
HIGHsrc/agentscope/embedding/_dashscope/_model.py487Convert a :class:`~agentscope.message.DataBlock` to the dict format expected by the DashScope multimodal embeddiSTRING
HIGHsrc/agentscope/embedding/_gemini/_model.py446Convert a :class:`~agentscope.message.DataBlock` to a Gemini ``Part`` object. Args: block (STRING
HIGHsrc/agentscope/agent/_agent.py1122Check if the agent is waiting for the incoming event, if no, raise error. Args: event (`UseSTRING
HIGHsrc/agentscope/agent/_agent.py1440Execute the given tool calls concurrently and yield the events. All tool calls are executed concurrently. If onSTRING
HIGHsrc/agentscope/mcp/_mcp_client.py368Get a tool by name from the MCP server. The returned MCPTool object implements ToolProtocol and can be: STRING
HIGHsrc/agentscope/rag/_knowledge.py284Embed and insert a list of chunks as a single source document. All chunks share the resolved ``document_id``; STRING
HIGHsrc/agentscope/rag/_parser/_word.py235Parse a DOCX file into a list of :class:`Section` objects. Args: file (`bytes | str`): STRING
HIGHsrc/agentscope/rag/_parser/_base.py79Parse a file into a list of :class:`Section` objects. The ``file`` argument is a union covering the three call STRING
HIGHsrc/agentscope/rag/_parser/_excel.py217Parse an Excel file into a list of :class:`Section` objects. Args: file (`bytes | str`): STRING
HIGHsrc/agentscope/rag/_parser/_text.py74Read the file as text and return a single :class:`Section`. Args: file (`bytes | str`): STRING
HIGHsrc/agentscope/rag/_parser/_image.py55Wrap the image bytes in a single :class:`Section`. Args: file (`bytes | str`): EithSTRING
HIGHsrc/agentscope/rag/_parser/_pdf.py40Read the PDF bytes and return one Section per page. Args: file (`bytes | str`): EitSTRING
HIGHsrc/agentscope/rag/_parser/_ppt.py168Parse a PPTX file into a list of :class:`Section` objects. Args: file (`bytes | str`): STRING
HIGHsrc/agentscope/tool/_builtin/_bash_parser.py438Extract command prefixes from a bash command. Automatically handles compound commands (&&, ||, ;, |) and extracSTRING
HIGHsrc/agentscope/tool/_builtin/_bash_parser.py824Check if command contains structures that cannot be statically analyzed. This detects command substitutSTRING
Excessive Try-Catch Wrapping164 hits · 170 pts
SeverityFileLineSnippetContext
LOWtests/_daytona_live_utils.py46 except Exception:CODE
LOWscripts/model_examples/run_tests.py87 except Exception:CODE
LOWsrc/agentscope/_utils/_common.py109 except Exception:CODE
LOWsrc/agentscope/_utils/_common.py217 except Exception as e:CODE
LOWsrc/agentscope/middleware/_rag.py280 except Exception as e: # pylint: disable=broad-exceptCODE
LOWsrc/agentscope/middleware/_rag.py730 except Exception: # pylint: disable=broad-exceptCODE
LOW…leware/_longterm_memory/_agentic_memory/_middleware.py623 except Exception:CODE
LOW…leware/_longterm_memory/_agentic_memory/_middleware.py757 except Exception:CODE
LOW…leware/_longterm_memory/_agentic_memory/_middleware.py798 except Exception:CODE
LOW…agentscope/middleware/_longterm_memory/_mem0/_tools.py135 except Exception as e: # noqa: BLE001CODE
LOW…agentscope/middleware/_longterm_memory/_mem0/_tools.py230 except Exception as e: # noqa: BLE001CODE
MEDIUM…scope/middleware/_longterm_memory/_mem0/_middleware.py715def _bg() -> None:CODE
LOW…scope/middleware/_longterm_memory/_mem0/_middleware.py343 except Exception as e: # noqa: BLE001CODE
LOW…scope/middleware/_longterm_memory/_mem0/_middleware.py707 except Exception as e: # noqa: BLE001CODE
LOW…scope/middleware/_longterm_memory/_mem0/_middleware.py734 except Exception as e: # noqa: BLE001CODE
LOW…agentscope/middleware/_longterm_memory/_reme/_tools.py146 except Exception as e: # noqa: BLE001CODE
LOW…scope/middleware/_longterm_memory/_reme/_middleware.py530 except Exception as e: # noqa: BLE001CODE
LOWsrc/agentscope/middleware/_tracing/_extractor.py164 except Exception:CODE
LOWsrc/agentscope/middleware/_tracing/_extractor.py297 except Exception:CODE
LOWsrc/agentscope/middleware/_tracing/_extractor.py407 except Exception:CODE
LOWsrc/agentscope/middleware/_tracing/_extractor.py428 except Exception:CODE
LOWsrc/agentscope/app/message_bus/_redis_message_bus.py626 except Exception: # pylint: disable=broad-exceptCODE
LOW…/agentscope/app/middleware/_tool_offload_middleware.py174 except Exception as exc: # pylint: disable=broad-exceptCODE
LOW…/agentscope/app/middleware/_tool_offload_middleware.py257 except Exception: # pylint: disable=broad-exceptCODE
LOWsrc/agentscope/app/_router/_workspace.py102 except Exception:CODE
LOWsrc/agentscope/app/_service/_knowledge_base.py292 except Exception:CODE
LOWsrc/agentscope/app/_service/_knowledge_base.py541 except Exception: # noqa: BLE001 — cleanup onlyCODE
LOWsrc/agentscope/app/_service/_index_sweeper.py109 except Exception: # noqa: BLE001 — keep the loop aliveCODE
LOWsrc/agentscope/app/_service/_index_sweeper.py143 except Exception: # noqa: BLE001 — keep iteratingCODE
LOWsrc/agentscope/app/_service/_chat.py213 except Exception as e:CODE
LOWsrc/agentscope/app/_service/_chat.py419 except Exception: # pylint: disable=broad-exceptCODE
LOWsrc/agentscope/app/_service/_chat.py705 except Exception as e: # pylint: disable=broad-exceptCODE
LOWsrc/agentscope/app/_service/_session.py681 except Exception as e: # pylint: disable=broad-exceptCODE
LOWsrc/agentscope/app/_service/_index_worker.py274 except Exception as exc: # noqa: BLE001 — terminal error sinkCODE
LOWsrc/agentscope/app/_service/_index_worker.py501 except Exception: # noqa: BLE001 — last-resort logCODE
LOWsrc/agentscope/app/_service/_index_task_consumer.py140 except Exception: # pylint: disable=broad-exceptCODE
LOWsrc/agentscope/app/_service/_index_task_consumer.py158 except Exception: # pylint: disable=broad-exceptCODE
LOWsrc/agentscope/app/_manager/_cancel_dispatcher.py131 except Exception:CODE
LOWsrc/agentscope/app/_manager/_cancel_dispatcher.py191 except Exception: # pylint: disable=broad-exceptCODE
LOWsrc/agentscope/app/_manager/_cancel_dispatcher.py220 except Exception: # pylint: disable=broad-exceptCODE
LOWsrc/agentscope/app/_manager/_background_task_manager.py349 except Exception as e: # pylint: disable=broad-exceptCODE
LOWsrc/agentscope/app/_manager/_wakeup_dispatcher.py169 except Exception: # pylint: disable=broad-exceptCODE
LOWsrc/agentscope/app/_manager/_wakeup_dispatcher.py182 except Exception: # pylint: disable=broad-exceptCODE
LOWsrc/agentscope/app/_manager/_wakeup_dispatcher.py247 except Exception: # pylint: disable=broad-exceptCODE
LOWsrc/agentscope/app/_manager/_wakeup_dispatcher.py363 except Exception: # pylint: disable=broad-exceptCODE
MEDIUMsrc/agentscope/app/_manager/_wakeup_dispatcher.py350def _retry() -> None:CODE
LOW…entscope/app/_manager/_scheduler/_scheduler_manager.py254 except Exception:CODE
LOW…e/app/rag/knowledge_base_manager/_collection_per_kb.py90 except Exception:CODE
LOW…e/app/rag/knowledge_base_manager/_collection_per_kb.py99 except Exception: # noqa: BLE001 — best-effort cleanupCODE
LOWsrc/agentscope/app/rag/blob_store/_s3.py263 except Exception as exc: # noqa: BLE001CODE
LOWsrc/agentscope/app/storage/_model/_schedule.py36 except Exception:CODE
LOW…ope/app/workspace_manager/_docker_workspace_manager.py368 except Exception:CODE
LOW…ope/app/workspace_manager/_docker_workspace_manager.py393 except Exception:CODE
LOW…cope/app/workspace_manager/_local_workspace_manager.py206 except Exception:CODE
LOW…pp/workspace_manager/_opensandbox_workspace_manager.py327 except Exception:CODE
LOW…pp/workspace_manager/_opensandbox_workspace_manager.py352 except Exception:CODE
LOW…tscope/app/workspace_manager/_k8s_workspace_manager.py320 except Exception:CODE
LOW…tscope/app/workspace_manager/_k8s_workspace_manager.py350 except Exception:CODE
LOW…pe/app/workspace_manager/_daytona_workspace_manager.py310 except Exception:CODE
LOW…pe/app/workspace_manager/_daytona_workspace_manager.py335 except Exception:CODE
104 more matches not shown…
Deep Nesting119 hits · 111 pts
SeverityFileLineSnippetContext
LOWtests/compress_tool_result_test.py275CODE
LOWtests/compress_tool_result_test.py405CODE
LOWtests/compress_tool_result_test.py290CODE
LOWtests/compress_tool_result_test.py420CODE
LOWexamples/long_term_memory/agentic_memory/main.py115CODE
LOWexamples/long_term_memory/mem0/oss_demo.py93CODE
LOWexamples/long_term_memory/reme/reme_demo.py127CODE
LOWscripts/model_examples/run_tests.py293CODE
LOWscripts/model_examples/_utils.py15CODE
LOWsrc/agentscope/_utils/_common.py243CODE
LOWsrc/agentscope/_utils/_common.py287CODE
LOWsrc/agentscope/middleware/_tts_middleware.py51CODE
LOWsrc/agentscope/middleware/_rag.py196CODE
LOWsrc/agentscope/middleware/_rag.py682CODE
LOWsrc/agentscope/middleware/_budget.py98CODE
LOW…leware/_longterm_memory/_agentic_memory/_middleware.py558CODE
LOW…ddleware/_longterm_memory/_mem0/_agentscope_adapter.py172CODE
LOW…ddleware/_longterm_memory/_mem0/_agentscope_adapter.py191CODE
LOW…agentscope/middleware/_longterm_memory/_mem0/_utils.py55CODE
LOW…agentscope/middleware/_longterm_memory/_reme/_utils.py51CODE
LOWsrc/agentscope/middleware/_tracing/_extractor.py67CODE
LOWsrc/agentscope/middleware/_tracing/_extractor.py370CODE
LOWsrc/agentscope/middleware/_tracing/_extractor.py432CODE
LOWsrc/agentscope/middleware/_tracing/_extractor.py521CODE
LOWsrc/agentscope/middleware/_tracing/_converter.py63CODE
LOWsrc/agentscope/middleware/_tracing/_trace.py136CODE
LOWsrc/agentscope/middleware/_tracing/_trace.py299CODE
LOWsrc/agentscope/middleware/_tracing/_utils.py15CODE
LOWsrc/agentscope/app/_router/_session.py686CODE
LOWsrc/agentscope/app/_router/_session.py729CODE
LOWsrc/agentscope/app/_service/_chat.py282CODE
LOWsrc/agentscope/app/_service/_session.py436CODE
LOWsrc/agentscope/skill/_local_loader.py99CODE
LOWsrc/agentscope/workspace/_base.py411CODE
LOWsrc/agentscope/workspace/_base.py467CODE
LOWsrc/agentscope/workspace/_gateway_client.py474CODE
LOWsrc/agentscope/workspace/_daytona/_daytona_workspace.py373CODE
LOWsrc/agentscope/workspace/_k8s/_k8s_workspace.py513CODE
LOWsrc/agentscope/workspace/_k8s/_k8s_backend.py80CODE
LOWsrc/agentscope/workspace/_k8s/_k8s_backend.py205CODE
LOWsrc/agentscope/workspace/_k8s/_k8s_backend.py260CODE
LOWsrc/agentscope/workspace/_k8s/_k8s_backend.py121CODE
LOWsrc/agentscope/workspace/_docker/_docker_backend.py136CODE
LOWsrc/agentscope/workspace/_docker/_docker_workspace.py212CODE
LOWsrc/agentscope/agent/_agent.py327CODE
LOWsrc/agentscope/agent/_agent.py667CODE
LOWsrc/agentscope/agent/_agent.py1118CODE
LOWsrc/agentscope/agent/_agent.py1209CODE
LOWsrc/agentscope/agent/_agent.py1566CODE
LOWsrc/agentscope/agent/_agent.py2313CODE
LOWsrc/agentscope/agent/_agent.py2462CODE
LOWsrc/agentscope/agent/_agent.py2545CODE
LOWsrc/agentscope/agent/_agent.py2674CODE
LOWsrc/agentscope/agent/_agent.py2803CODE
LOWsrc/agentscope/state/_state.py46CODE
LOWsrc/agentscope/rag/_vdb/_milvus_lite.py358CODE
LOWsrc/agentscope/rag/_parser/_word.py38CODE
LOWsrc/agentscope/rag/_parser/_word.py74CODE
LOWsrc/agentscope/rag/_parser/_word.py230CODE
LOWsrc/agentscope/rag/_parser/_excel.py212CODE
59 more matches not shown…
Self-Referential Comments36 hits · 104 pts
SeverityFileLineSnippetContext
MEDIUMtests/skill_loader_test.py18 # Create a temporary directory for testingCOMMENT
MEDIUMtests/skill_loader_test.py79 # Create a directory without SKILL.mdCOMMENT
MEDIUMtests/rag_vdb_milvus_lite_test.py79 # Creating an existing collection is a no-opCOMMENT
MEDIUMtests/builtin_grep_test.py22 # Create a temporary directory with test filesCOMMENT
MEDIUMtests/builtin_file_cache_test.py143 # Create a fileCOMMENT
MEDIUMtests/builtin_file_cache_test.py186 # Create a fileCOMMENT
MEDIUMtests/builtin_file_cache_test.py271 # Create a fileCOMMENT
MEDIUMtests/builtin_file_cache_test.py21 # Create a temporary directoryCOMMENT
MEDIUMtests/builtin_file_cache_test.py34 # Create a fileCOMMENT
MEDIUMtests/builtin_file_cache_test.py52 # Create a fileCOMMENT
MEDIUMtests/builtin_file_cache_test.py88 # Create a fileCOMMENT
MEDIUMtests/builtin_file_cache_test.py116 # Create a fileCOMMENT
MEDIUMtests/builtin_file_cache_test.py250 # Create a fileCOMMENT
MEDIUMtests/rag_vdb_qdrant_test.py90 # Creating an existing collection is a no-opCOMMENT
MEDIUMtests/builtin_edit_test.py21 # Create a temporary file for testingCOMMENT
MEDIUMtests/task_tool_test.py300 # Create a taskCOMMENT
MEDIUMtests/task_tool_test.py372 # Create a taskCOMMENT
MEDIUMtests/task_tool_test.py425 # Create a taskCOMMENT
MEDIUMtests/task_tool_test.py478 # Create a taskCOMMENT
MEDIUMtests/task_tool_test.py601 # Create a taskCOMMENT
MEDIUMtests/task_tool_test.py654 # Create a task with initial metadataCOMMENT
MEDIUMtests/workspace_local_test.py226 # Create a test image data (1x1 red pixel PNG)COMMENT
MEDIUMtests/workspace_local_test.py704 # Create a valid skillSTRING
MEDIUMtests/workspace_local_test.py710 # Create an invalid skill without SKILL.mdSTRING
MEDIUMtests/workspace_local_test.py660 # Create a test skillSTRING
MEDIUMtests/workspace_local_test.py723 # Create an invalid skill with malformed frontmatterSTRING
MEDIUMtests/toolkit_skill_test.py49 # Create a minimal SKILL.md so LocalSkillLoader can load itCOMMENT
MEDIUMtests/builtin_read_test.py22 # Create a temporary file for testingCOMMENT
MEDIUMtests/rag_vdb_mongodb_test.py308 # Creating an existing collection is a no-opCOMMENT
MEDIUMtests/builtin_glob_test.py22 # Create a temporary directory with test filesCOMMENT
MEDIUMsrc/agentscope/app/middleware/_protocol/_base.py75 # Create a new StreamingResponse with the converted streamCOMMENT
MEDIUMsrc/agentscope/workspace/_docker/_docker_workspace.py329 # Create the backend now that the container is running. AllCOMMENT
MEDIUMsrc/agentscope/agent/_agent.py1486 # Create a queue to collect events from all concurrent workers.COMMENT
MEDIUMsrc/agentscope/state/_state.py214 # Create a new assistant message with the current reply IDCOMMENT
MEDIUMsrc/agentscope/formatter/_formatter_base.py112 # Create an identifier for such multimodal data forCOMMENT
MEDIUMsrc/agentscope/tool/_utils.py91 # Create a dynamic model with the function signatureCOMMENT
Modern Structural Boilerplate74 hits · 75 pts
SeverityFileLineSnippetContext
LOWsrc/agentscope/__init__.py16__all__ = [CODE
LOWsrc/agentscope/_utils/_common.py26def set_id_factory(factory: Callable[[], str]) -> None:CODE
LOWsrc/agentscope/middleware/__init__.py15__all__ = [CODE
LOWsrc/agentscope/middleware/_longterm_memory/__init__.py8__all__ = [CODE
LOW…iddleware/_longterm_memory/_agentic_memory/__init__.py6__all__ = ["AgenticMemoryMiddleware"]CODE
LOW…entscope/middleware/_longterm_memory/_mem0/__init__.py6__all__ = ["Mem0Middleware"]CODE
LOW…entscope/middleware/_longterm_memory/_reme/__init__.py14__all__ = [CODE
LOWsrc/agentscope/middleware/_tracing/__init__.py6__all__ = [CODE
LOWsrc/agentscope/middleware/_tracing/_trace.py72def _set_span_success_status(span: "Span") -> None:CODE
LOWsrc/agentscope/middleware/_tracing/_trace.py78def _set_span_error_status(span: "Span", e: BaseException) -> None:CODE
LOWsrc/agentscope/credential/__init__.py16__all__ = [CODE
LOWsrc/agentscope/types/__init__.py14__all__ = [CODE
LOWsrc/agentscope/app/__init__.py9__all__ = [CODE
LOWsrc/agentscope/app/message_bus/__init__.py9__all__ = [CODE
LOWsrc/agentscope/app/middleware/__init__.py10__all__ = [CODE
LOWsrc/agentscope/app/middleware/_protocol/__init__.py7__all__ = [CODE
LOWsrc/agentscope/app/_router/__init__.py13__all__ = [CODE
LOWsrc/agentscope/app/_router/_schema/__init__.py59__all__ = [CODE
LOWsrc/agentscope/app/access/__init__.py24__all__ = [CODE
LOWsrc/agentscope/app/_service/__init__.py22__all__ = [CODE
LOWsrc/agentscope/app/_service/_projectors/__init__.py11__all__ = [CODE
LOWsrc/agentscope/app/_manager/__init__.py11__all__ = [CODE
LOWsrc/agentscope/app/_manager/_scheduler/__init__.py6__all__ = [CODE
LOW…/agentscope/app/_manager/_scheduler/_tools/__init__.py9__all__ = [CODE
LOWsrc/agentscope/app/rag/__init__.py79__all__ = [CODE
LOW…/agentscope/app/rag/knowledge_base_manager/__init__.py25__all__ = [CODE
LOWsrc/agentscope/app/rag/blob_store/__init__.py7__all__ = [CODE
LOWsrc/agentscope/app/storage/__init__.py31__all__ = [CODE
LOWsrc/agentscope/app/storage/_redis_storage.py165 async def _set_with_ttl(self, key: str, value: str) -> None:CODE
LOWsrc/agentscope/app/storage/_model/__init__.py25__all__ = [CODE
LOWsrc/agentscope/app/workspace_manager/__init__.py13__all__ = [CODE
LOWsrc/agentscope/app/_tool/__init__.py39__all__ = [CODE
LOWsrc/agentscope/skill/__init__.py7__all__ = [CODE
LOWsrc/agentscope/workspace/_base.py717 async def _setup_skills(self) -> None:CODE
LOWsrc/agentscope/workspace/__init__.py15__all__ = [CODE
LOWsrc/agentscope/workspace/_sandboxed_base.py371 async def _setup_mcp_gateway(self) -> None:CODE
LOWsrc/agentscope/workspace/_e2b/__init__.py12__all__ = ["E2BWorkspace", "E2BBackend"]CODE
LOWsrc/agentscope/workspace/_daytona/__init__.py12__all__ = [CODE
LOWsrc/agentscope/workspace/_k8s/__init__.py12__all__ = ["K8sWorkspace", "K8sBackend"]CODE
LOWsrc/agentscope/workspace/_opensandbox/__init__.py12__all__ = ["OpenSandboxWorkspace", "OpenSandboxBackend"]CODE
LOWsrc/agentscope/workspace/_docker/__init__.py13__all__ = ["DockerWorkspace", "DockerBackend"]CODE
LOWsrc/agentscope/embedding/__init__.py16__all__ = [CODE
LOWsrc/agentscope/embedding/_ollama/__init__.py6__all__ = [CODE
LOWsrc/agentscope/embedding/_openai/__init__.py6__all__ = [CODE
LOWsrc/agentscope/embedding/_dashscope/__init__.py6__all__ = [CODE
LOWsrc/agentscope/embedding/_gemini/__init__.py6__all__ = [CODE
LOWsrc/agentscope/message/__init__.py21__all__ = [CODE
LOWsrc/agentscope/agent/__init__.py6__all__ = ["Agent", "ContextConfig", "ModelConfig", "ReActConfig"]CODE
LOWsrc/agentscope/mcp/__init__.py9__all__ = [CODE
LOWsrc/agentscope/state/__init__.py7__all__ = [CODE
LOWsrc/agentscope/rag/__init__.py29__all__ = [CODE
LOWsrc/agentscope/rag/_chunker/__init__.py7__all__ = [CODE
LOWsrc/agentscope/rag/_vdb/__init__.py14__all__ = [CODE
LOWsrc/agentscope/rag/_parser/__init__.py12__all__ = [CODE
LOWsrc/agentscope/formatter/__init__.py42__all__ = [CODE
LOWsrc/agentscope/tts/__init__.py14__all__ = [CODE
LOWsrc/agentscope/tts/_openai/__init__.py6__all__ = [CODE
LOWsrc/agentscope/tts/_dashscope/__init__.py8__all__ = [CODE
LOWsrc/agentscope/model/__init__.py18__all__ = [CODE
LOWsrc/agentscope/model/_deepseek/__init__.py6__all__ = [CODE
14 more matches not shown…
Modern AI Meta-Vocabulary15 hits · 51 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml83# ------------ RAG ------------COMMENT
MEDIUMpyproject.toml150 # RAG parser tests — used to generate PDF fixtures in-memoryCOMMENT
MEDIUMtests/middleware_rag_test.py439 # embedding model isn't multimodal — the model only saw text.COMMENT
MEDIUMdocs/changelog.md89## RAGCOMMENT
MEDIUMexamples/rag/README.md1# RAG ExamplesCOMMENT
MEDIUMexamples/rag/integrate_with_agent.py177 # ---- Mode 2: agentic ----COMMENT
MEDIUMexamples/long_term_memory/mem0/README.md45# chat + embedding model. mem0 defaults for everything else.COMMENT
MEDIUMscripts/model_examples/README.md17├── openai_chat_multiagent.py # OpenAI Chat Completions – multi-agent conversationCODE
MEDIUMscripts/model_examples/deepseek_call.py30# Example 1: Simple user message (streaming, with chain-of-thought)COMMENT
MEDIUMsrc/agentscope/middleware/_rag.py303# Shared helpers — used by both the tool (agentic mode) and theCOMMENT
MEDIUMsrc/agentscope/middleware/_rag.py472 # Agent-driven search (agentic mode, the default)STRING
MEDIUM…leware/_longterm_memory/_agentic_memory/_middleware.py613 # Cap each file to avoid flooding the context window.COMMENT
MEDIUM…leware/_longterm_memory/_agentic_memory/_middleware.py626 # Truncate large files to avoid flooding the context window.COMMENT
MEDIUM…scope/middleware/_longterm_memory/_reme/_middleware.py255 # An embedding model turns on ReMe's vector store: the bundledCOMMENT
MEDIUMsrc/agentscope/app/_service/_chat.py391 # (own embedding model + vector store), so the middleware canCOMMENT
Redundant / Tautological Comments33 hits · 49 pts
SeverityFileLineSnippetContext
LOWtests/builtin_file_cache_test.py147 # Read the file to cache itCOMMENT
LOWtests/builtin_file_cache_test.py190 # Read the file to cache itCOMMENT
LOWtests/builtin_file_cache_test.py275 # Read the fileCOMMENT
LOWtests/builtin_file_cache_test.py92 # Read the file firstCOMMENT
LOWtests/builtin_file_cache_test.py120 # Read the file firstCOMMENT
LOWtests/builtin_edit_test.py86 # Write file with duplicate contentCOMMENT
LOWtests/builtin_edit_test.py101 # Write file with duplicate contentCOMMENT
LOWsrc/agentscope/skill/_local_loader.py44 # Check if SKILL.md existsCOMMENT
LOWsrc/agentscope/skill/_local_loader.py111 # Check if directory existsCOMMENT
LOWsrc/agentscope/workspace/_local_workspace.py368 # Check if SKILL.md existsCOMMENT
LOWsrc/agentscope/embedding/_dashscope/_model.py270 # Check if adding this item would exceed any limit.COMMENT
LOWsrc/agentscope/agent/_agent.py1606 # Check if the tool is availableCOMMENT
LOWsrc/agentscope/agent/_agent.py1022 # Check if res is an async generator (streaming response)COMMENT
LOWsrc/agentscope/agent/_agent.py2050 # Check if the reserved part has tool results that don't have theCOMMENT
LOWsrc/agentscope/state/_state.py59 # Check if cache is still validCOMMENT
LOWsrc/agentscope/formatter/_gemini_formatter.py49 # Check if media type is supportedCOMMENT
LOWsrc/agentscope/formatter/_anthropic_formatter.py276 # Check if media type is supportedCOMMENT
LOWsrc/agentscope/formatter/_ollama_formatter.py49 # Check if media type is supportedCOMMENT
LOWsrc/agentscope/tool/_base.py437 # Check if filename matches dangerous files (case-insensitive)COMMENT
LOWsrc/agentscope/tool/_base.py444 # Check if any path segment matches dangerous directoriesCOMMENT
LOWsrc/agentscope/tool/_types.py131 # Check if the two definitions are from the same BaseModelCOMMENT
LOWsrc/agentscope/tool/_response.py150 # Check if the last block is also a TextBlockCOMMENT
LOWsrc/agentscope/tool/_builtin/_read.py226 # Read file content via backendCOMMENT
LOWsrc/agentscope/tool/_builtin/_write.py246 # Check if file exists, it must be read first if it existsCOMMENT
LOWsrc/agentscope/tool/_builtin/_bash_parser.py573 # Check if environment variables are safeCOMMENT
LOWsrc/agentscope/tool/_builtin/_bash_parser.py577 # Check if the command is a safe command that doesn't need permissionCOMMENT
LOWsrc/agentscope/tool/_builtin/_bash_parser.py167 # Check if it's a compound commandCOMMENT
LOWsrc/agentscope/tool/_builtin/_bash_parser.py202 # Check if it starts with a read-only prefixCOMMENT
LOWsrc/agentscope/tool/_builtin/_bash_parser.py218 # Check if base command is in safe commandsCOMMENT
LOWsrc/agentscope/tool/_builtin/_bash_parser.py293 # Check if this is a file-manipulating commandCOMMENT
LOWsrc/agentscope/tool/_builtin/_bash_parser.py871 # Check if this node is a dangerous typeCOMMENT
LOWsrc/agentscope/tool/_builtin/_bash.py414 # Check if pattern is a prefix pattern (ends with :*)STRING
LOWsrc/agentscope/tool/_builtin/_bash.py419 # Check if pattern has unescaped wildcardsSTRING
Fake / Example Data24 hits · 27 pts
SeverityFileLineSnippetContext
LOWexamples/web_ui/frontend/src/i18n/locales/zh.json115 "placeholder": "输入消息...",CODE
LOWexamples/web_ui/frontend/src/i18n/locales/zh.json148 "placeholder": "我的 Agent"CODE
LOWexamples/web_ui/frontend/src/i18n/locales/zh.json191 "placeholder": "简要描述此 Agent 的专长;允许被邀请时必填。"CODE
LOWexamples/web_ui/frontend/src/i18n/locales/zh.json211 "placeholder": "会话名称"CODE
LOWexamples/web_ui/frontend/src/i18n/locales/zh.json232 "placeholder": "我的知识库"CODE
LOWexamples/web_ui/frontend/src/i18n/locales/zh.json236 "placeholder": "描述知识库用途"CODE
LOWexamples/web_ui/frontend/src/i18n/locales/zh.json262 "placeholder": "我的知识库"CODE
LOWexamples/web_ui/frontend/src/i18n/locales/zh.json266 "placeholder": "描述知识库用途"CODE
LOWexamples/web_ui/frontend/src/i18n/locales/zh.json363 "placeholder": "选择模型",CODE
LOWexamples/web_ui/frontend/src/i18n/locales/zh.json376 "placeholder": "选择 Embedding 模型",CODE
LOWexamples/web_ui/frontend/src/i18n/locales/zh.json386 "placeholder": "选择维度",CODE
LOWexamples/web_ui/frontend/src/i18n/locales/zh.json390 "placeholder": "选择权限模式",CODE
LOWexamples/web_ui/frontend/src/i18n/locales/en.json115 "placeholder": "Type a message...",CODE
LOWexamples/web_ui/frontend/src/i18n/locales/en.json148 "placeholder": "My agent"CODE
LOWexamples/web_ui/frontend/src/i18n/locales/en.json191 "placeholder": "Briefly describe this agent's expertise; required when invitable is on."CODE
LOWexamples/web_ui/frontend/src/i18n/locales/en.json211 "placeholder": "Session name"CODE
LOWexamples/web_ui/frontend/src/i18n/locales/en.json232 "placeholder": "My knowledge base"CODE
LOWexamples/web_ui/frontend/src/i18n/locales/en.json236 "placeholder": "Describe what this knowledge base is for."CODE
LOWexamples/web_ui/frontend/src/i18n/locales/en.json262 "placeholder": "My knowledge base"CODE
LOWexamples/web_ui/frontend/src/i18n/locales/en.json266 "placeholder": "Describe what this knowledge base is for."CODE
LOWexamples/web_ui/frontend/src/i18n/locales/en.json363 "placeholder": "Select a model",CODE
LOWexamples/web_ui/frontend/src/i18n/locales/en.json376 "placeholder": "Select an embedding model",CODE
LOWexamples/web_ui/frontend/src/i18n/locales/en.json386 "placeholder": "Select a dimension",CODE
LOWexamples/web_ui/frontend/src/i18n/locales/en.json390 "placeholder": "Select permission mode",CODE
Over-Commented Block22 hits · 21 pts
SeverityFileLineSnippetContext
LOWpyproject.toml101COMMENT
LOWexamples/long_term_memory/mem0/oss_demo.py201 # Qdrant in Docker and connect over the network instead of usingCOMMENT
LOWexamples/long_term_memory/mem0/oss_demo.py241 mode=MODE,COMMENT
LOWexamples/long_term_memory/reme/reme_demo.py261 # One middleware, shared across both sessions. ReMe is embeddedCOMMENT
LOWexamples/web_ui/frontend/src/vite-env.d.ts1/// <reference types="vite/client" />COMMENT
LOW…amples/web_ui/frontend/src/pages/chat/ChatViewport.tsx321 // outer page has a separate one). Its built-in fetch only fires onCOMMENT
LOW.github/workflows/github-monitor.yml1# ─────────────────────────────────────────────────────────────────────────────COMMENT
LOW…scope/middleware/_longterm_memory/_mem0/_middleware.py301COMMENT
LOWsrc/agentscope/app/_lifespan.py121 # (in-process or in a dedicated worker process) drains it.COMMENT
LOWsrc/agentscope/app/_router/_chat.py101 # ------------------------------------------------------------------COMMENT
LOWsrc/agentscope/app/_service/_toolkit.py201 ),COMMENT
LOWsrc/agentscope/app/_service/_chat.py381 tts_model = await get_tts_model(COMMENT
LOWsrc/agentscope/app/_service/_chat.py501 #COMMENT
LOWsrc/agentscope/app/_tool/_team_say.py201 ],COMMENT
LOWsrc/agentscope/app/_tool/_agent_invite.py381 leader_session.config.fallback_chat_model_configCOMMENT
LOWsrc/agentscope/app/_tool/_agent_create.py41 description="Default worker agent with standard configuration.",COMMENT
LOWsrc/agentscope/workspace/_gateway_shim.py21"""COMMENT
LOWsrc/agentscope/workspace/_opensandbox/_constants.py21#: Per-command timeout for first-time bootstrap shell commands.COMMENT
LOWsrc/agentscope/workspace/_docker/_docker_workspace.py241 logger.info("DockerWorkspace: building image %r", tag)COMMENT
LOWsrc/agentscope/tool/_constants.py61 "fdisk",COMMENT
LOWsrc/agentscope/tool/_constants.py101#COMMENT
LOWsrc/agentscope/tool/_builtin/_backend.py121 #: Defaults to :mod:`posixpath`, which is correct for any backendCOMMENT
Verbosity Indicators13 hits · 18 pts
SeverityFileLineSnippetContext
LOWtests/middleware_budget_test.py382 # Step 1: model produces a tool call that requires confirmationCOMMENT
LOWtests/service_agent_interrupt_test.py126 # Step 1: Publish interrupt (simulating API endpoint)COMMENT
LOWtests/service_agent_interrupt_test.py135 # Step 2: Verify agent was interruptedCOMMENT
LOWtests/service_agent_interrupt_test.py142 # Step 3: Verify chat-run task is doneCOMMENT
LOWsrc/agentscope/agent/_agent.py718 # Step 1: Checking agent input:COMMENT
LOWsrc/agentscope/agent/_agent.py725 # Step 2: Handling agent event if applicableCOMMENT
LOWsrc/agentscope/agent/_agent.py745 # Step 3: Enter the reasoning-acting loop until reaching max_itersCOMMENT
LOWsrc/agentscope/agent/_agent.py862 # Step 4: Handling the max iteration executedCOMMENT
LOWsrc/agentscope/agent/_agent.py1601 # Step 1: Check and parse the tool call input:COMMENT
LOWsrc/agentscope/agent/_agent.py1643 # Step 2: Check permission by toolkit and permission engineCOMMENT
LOWsrc/agentscope/agent/_agent.py1658 # Step 3: Handle the permission and execute the tool call if allowedCOMMENT
LOWsrc/agentscope/agent/_agent.py1721 # Step 4: Delegate raw execution to _acting (middleware hook point)COMMENT
LOWsrc/agentscope/agent/_agent.py1737 # Step 5: Truncate the tool result if exceedCOMMENT
Structural Annotation Overuse13 hits · 18 pts
SeverityFileLineSnippetContext
LOWtests/middleware_budget_test.py382 # Step 1: model produces a tool call that requires confirmationCOMMENT
LOWtests/service_agent_interrupt_test.py126 # Step 1: Publish interrupt (simulating API endpoint)COMMENT
LOWtests/service_agent_interrupt_test.py135 # Step 2: Verify agent was interruptedCOMMENT
LOWtests/service_agent_interrupt_test.py142 # Step 3: Verify chat-run task is doneCOMMENT
LOWsrc/agentscope/agent/_agent.py718 # Step 1: Checking agent input:COMMENT
LOWsrc/agentscope/agent/_agent.py725 # Step 2: Handling agent event if applicableCOMMENT
LOWsrc/agentscope/agent/_agent.py745 # Step 3: Enter the reasoning-acting loop until reaching max_itersCOMMENT
LOWsrc/agentscope/agent/_agent.py862 # Step 4: Handling the max iteration executedCOMMENT
LOWsrc/agentscope/agent/_agent.py1601 # Step 1: Check and parse the tool call input:COMMENT
LOWsrc/agentscope/agent/_agent.py1643 # Step 2: Check permission by toolkit and permission engineCOMMENT
LOWsrc/agentscope/agent/_agent.py1658 # Step 3: Handle the permission and execute the tool call if allowedCOMMENT
LOWsrc/agentscope/agent/_agent.py1721 # Step 4: Delegate raw execution to _acting (middleware hook point)COMMENT
LOWsrc/agentscope/agent/_agent.py1737 # Step 5: Truncate the tool result if exceedCOMMENT
AI Structural Patterns16 hits · 16 pts
SeverityFileLineSnippetContext
LOW…scope/middleware/_longterm_memory/_mem0/_middleware.py143CODE
LOWsrc/agentscope/app/_app.py43CODE
LOW…ope/app/_manager/_scheduler/_tools/_schedule_create.py163CODE
LOW…ope/app/workspace_manager/_docker_workspace_manager.py60CODE
LOW…pp/workspace_manager/_opensandbox_workspace_manager.py57CODE
LOW…tscope/app/workspace_manager/_k8s_workspace_manager.py43CODE
LOW…pe/app/workspace_manager/_daytona_workspace_manager.py48CODE
LOW…tscope/app/workspace_manager/_e2b_workspace_manager.py62CODE
LOWsrc/agentscope/workspace/_e2b/_e2b_workspace.py89CODE
LOWsrc/agentscope/workspace/_daytona/_daytona_workspace.py97CODE
LOWsrc/agentscope/workspace/_k8s/_k8s_workspace.py74CODE
LOW…scope/workspace/_opensandbox/_opensandbox_workspace.py64CODE
LOWsrc/agentscope/workspace/_docker/_docker_workspace.py65CODE
LOWsrc/agentscope/model/_ollama/_model.py56CODE
LOWsrc/agentscope/model/_openai_chat/_model.py112CODE
LOWsrc/agentscope/tool/_builtin/_grep.py320CODE
Dead Code7 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMtests/tool_middleware_test.py323CODE
MEDIUMtests/service_inbox_middleware_test.py190CODE
MEDIUMtests/service_inbox_middleware_test.py114CODE
MEDIUMtests/service_inbox_middleware_test.py125CODE
MEDIUMsrc/agentscope/middleware/_base.py89CODE
MEDIUMsrc/agentscope/middleware/_base.py112CODE
MEDIUMsrc/agentscope/middleware/_base.py158CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…scope/middleware/_longterm_memory/_mem0/_middleware.py296 # tools — so just pass through.COMMENT
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippetContext
LOWtests/workspace_local_test.py544 {"helper.py": "def helper():\n return 42\n"},STRING