Repository Analysis

letta-ai/letta

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

37.6 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of letta-ai/letta, a Python project with 23,787 GitHub stars. SynthScan v2.0 examined 263,162 lines of code across 1092 source files, recording 6792 pattern matches distributed across 24 syntactic categories. The overall adjusted score of 37.6 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).

37.6
Adjusted Score
37.6
Raw Score
100%
Time Factor
2026-07-03
Last Push
23.8K
Stars
Python
Language
263.2K
Lines of Code
1.1K
Files
6.8K
Pattern Hits
2026-07-14
Scan Date
0.27
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 4HIGH 292MEDIUM 1120LOW 5376

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 6792 distinct pattern matches across 24 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.

Hyper-Verbose Identifiers2976 hits · 2500 pts
SeverityFileLineSnippetContext
LOWtests/test_modal_sandbox_v2.py18 def test_execute_tool_dynamic_success(self):CODE
LOWtests/test_modal_sandbox_v2.py42 def test_execute_tool_dynamic_with_error(self):STRING
LOWtests/test_modal_sandbox_v2.py92 def test_execute_with_stdout_capture(self):STRING
LOWtests/test_modal_sandbox_v2.py124 async def test_register_and_get_deployment(self):CODE
LOWtests/test_modal_sandbox_v2.py374 def test_version_hash_calculation(self, mock_tool, mock_user, mock_sandbox_config):CODE
LOWtests/test_modal_sandbox_v2.py450 async def test_run_with_mocked_modal(self, mock_tool, mock_user, mock_sandbox_config):CODE
LOWtests/test_modal_sandbox_v2.py537 def test_detect_async_function(self, mock_user):CODE
LOWtests/test_context_window_calculator.py16 def test_returns_none_for_missing_tag(self):CODE
LOWtests/test_context_window_calculator.py21 def test_returns_none_for_missing_opening_tag(self):CODE
LOWtests/test_context_window_calculator.py26 def test_returns_none_for_unclosed_tag(self):CODE
LOWtests/test_context_window_calculator.py31 def test_handles_multiline_content(self):CODE
LOWtests/test_context_window_calculator.py36 def test_handles_nested_content(self):CODE
LOWtests/test_context_window_calculator.py41 def test_handles_empty_content(self):CODE
LOWtests/test_context_window_calculator.py46 def test_extracts_first_occurrence_with_duplicate_tags(self):CODE
LOWtests/test_context_window_calculator.py56 def test_extracts_standard_agent_sections(self):CODE
LOWtests/test_context_window_calculator.py106 def test_extracts_tool_usage_rules(self):CODE
LOWtests/test_context_window_calculator.py181 def test_returns_correct_dict_keys(self):CODE
LOWtests/test_context_window_calculator.py194 def test_no_base_instructions_tag_extracts_preamble(self):CODE
LOWtests/test_context_window_calculator.py216 def test_nested_memory_filesystem_not_extracted_as_top_level(self):CODE
LOWtests/test_context_window_calculator.py244 def test_top_level_memory_filesystem_outside_memory_blocks(self):CODE
LOWtests/test_context_window_calculator.py266 def test_letta_code_agent_real_format(self):CODE
LOWtests/test_context_window_calculator.py320 def test_git_enabled_agent_bare_file_blocks_captured_as_core_memory(self):CODE
LOWtests/test_context_window_calculator.py354 def test_git_enabled_agent_no_bare_blocks(self):CODE
LOWtests/test_context_window_calculator.py367 def test_extract_top_level_tag_dual_occurrence_nested_first(self):CODE
LOWtests/test_context_window_calculator.py380 def test_extract_system_prompt_pure_text_no_tags(self):CODE
LOWtests/test_context_window_calculator.py388 def test_git_backed_memory_without_memory_blocks_wrapper(self):CODE
LOWtests/test_context_window_calculator.py478 async def test_calculate_context_window_standard_agent(self):CODE
LOWtests/test_context_window_calculator.py519 async def test_calculate_context_window_skips_empty_sections(self):CODE
LOWtests/test_context_window_calculator.py546 async def test_calculate_context_window_all_sections(self):CODE
LOWtests/test_context_window_calculator.py598 async def test_calculate_context_window_git_enabled_agent(self):CODE
LOWtests/test_context_window_calculator.py88 def test_extracts_git_enabled_agent_sections(self):STRING
LOWtests/test_context_window_calculator.py121 def test_extracts_directories(self):STRING
LOWtests/test_context_window_calculator.py141 def test_handles_react_agent_no_memory_blocks(self):STRING
LOWtests/test_context_window_calculator.py157 def test_handles_all_sections_present(self):STRING
LOWtests/test_context_window_calculator.py176 def test_handles_empty_string(self):STRING
LOWtests/test_context_window_calculator.py423 def test_legacy_memory_blocks_wrapper(self):STRING
LOWtests/test_openai_ws_session.py56 async def test_iteration_without_context_manager(self):CODE
LOWtests/test_openai_ws_session.py77 async def test_aclose_is_idempotent(self):CODE
LOWtests/test_openai_ws_session.py84 async def test_stream_after_close_raises(self):CODE
LOWtests/test_openai_ws_session.py100 async def test_stream_responses_yields_events_and_stops_on_terminal(self):CODE
LOWtests/test_openai_ws_session.py162 def test_letta_llm_stream_adapter_stores_flag(self):CODE
LOWtests/test_openai_ws_session.py178 def test_default_flag_is_false(self):CODE
LOWtests/test_openai_ws_session.py193 async def test_aclose_default_is_noop(self):CODE
LOWtests/integration_test_turbopuffer.py163def test_should_use_tpuf_with_settings():CODE
LOWtests/integration_test_turbopuffer.py356async def test_native_only_operations(server, default_user, sarah_agent, disable_turbopuffer):CODE
LOWtests/integration_test_turbopuffer.py1899async def test_archive_namespace_tracking(server, default_user, enable_turbopuffer):CODE
LOWtests/integration_test_turbopuffer.py190async def test_archive_creation_with_tpuf_enabled(server, default_user, enable_turbopuffer):CODE
LOWtests/integration_test_turbopuffer.py200async def test_archive_creation_with_tpuf_disabled(server, default_user, disable_turbopuffer):CODE
LOWtests/integration_test_turbopuffer.py211async def test_dual_write_and_query_with_real_tpuf(server, default_user, sarah_agent, enable_turbopuffer):CODE
LOWtests/integration_test_turbopuffer.py287async def test_turbopuffer_metadata_attributes(default_user, enable_turbopuffer):CODE
LOWtests/integration_test_turbopuffer.py390async def test_hybrid_search_with_real_tpuf(default_user, enable_turbopuffer):CODE
LOWtests/integration_test_turbopuffer.py496async def test_tag_filtering_with_real_tpuf(default_user, enable_turbopuffer):CODE
LOWtests/integration_test_turbopuffer.py623async def test_temporal_filtering_with_real_tpuf(default_user, enable_turbopuffer):CODE
LOWtests/integration_test_turbopuffer.py761def test_should_use_tpuf_for_messages_settings():CODE
LOWtests/integration_test_turbopuffer.py803def test_message_text_extraction(server, default_user):CODE
LOWtests/integration_test_turbopuffer.py946async def test_message_embedding_without_config(server, default_user, sarah_agent, enable_message_embedding):CODE
LOWtests/integration_test_turbopuffer.py984async def test_generic_reciprocal_rank_fusion():CODE
LOWtests/integration_test_turbopuffer.py1085async def test_message_dual_write_with_real_tpuf(enable_message_embedding, default_user):CODE
LOWtests/integration_test_turbopuffer.py1147async def test_message_vector_search_with_real_tpuf(enable_message_embedding, default_user):CODE
LOWtests/integration_test_turbopuffer.py1208async def test_message_hybrid_search_with_real_tpuf(enable_message_embedding, default_user):CODE
2916 more matches not shown…
Decorative Section Separators504 hits · 1736 pts
SeverityFileLineSnippetContext
MEDIUMconf.yaml56 # =============================================================================COMMENT
MEDIUMconf.yaml58 # =============================================================================COMMENT
MEDIUMconf.yaml63 # =============================================================================COMMENT
MEDIUMconf.yaml65 # =============================================================================COMMENT
MEDIUMconf.yaml71 # =============================================================================COMMENT
MEDIUMconf.yaml73 # =============================================================================COMMENT
MEDIUMconf.yaml106 # =============================================================================COMMENT
MEDIUMconf.yaml108 # =============================================================================COMMENT
MEDIUMconf.yaml112 # =============================================================================COMMENT
MEDIUMconf.yaml114 # =============================================================================COMMENT
MEDIUMconf.yaml117 # =============================================================================COMMENT
MEDIUMconf.yaml119 # =============================================================================COMMENT
MEDIUMconf.yaml126 # =============================================================================COMMENT
MEDIUMconf.yaml128 # =============================================================================COMMENT
MEDIUMconf.yaml133 # =============================================================================COMMENT
MEDIUMconf.yaml135 # =============================================================================COMMENT
MEDIUMconf.yaml143 # =============================================================================COMMENT
MEDIUMconf.yaml145 # =============================================================================COMMENT
MEDIUMconf.yaml153 # =============================================================================COMMENT
MEDIUMconf.yaml155 # =============================================================================COMMENT
MEDIUMconf.yaml160 # =============================================================================COMMENT
MEDIUMconf.yaml162 # =============================================================================COMMENT
MEDIUMconf.yaml166 # =============================================================================COMMENT
MEDIUMconf.yaml168 # =============================================================================COMMENT
MEDIUMconf.yaml172 # =============================================================================COMMENT
MEDIUMconf.yaml174 # =============================================================================COMMENT
MEDIUMconf.yaml178 # =============================================================================COMMENT
MEDIUMconf.yaml180 # =============================================================================COMMENT
MEDIUMconf.yaml183 # =============================================================================COMMENT
MEDIUMconf.yaml185 # =============================================================================COMMENT
MEDIUMconf.yaml200 # =============================================================================COMMENT
MEDIUMconf.yaml202 # =============================================================================COMMENT
MEDIUMconf.yaml209 # =============================================================================COMMENT
MEDIUMconf.yaml211 # =============================================================================COMMENT
MEDIUMconf.yaml12 # =============================================================================COMMENT
MEDIUMconf.yaml14 # =============================================================================COMMENT
MEDIUMconf.yaml27 # =============================================================================COMMENT
MEDIUMconf.yaml29 # =============================================================================COMMENT
MEDIUMconf.yaml92 # =============================================================================COMMENT
MEDIUMconf.yaml94 # =============================================================================COMMENT
MEDIUMconf.yaml231# =============================================================================COMMENT
MEDIUMconf.yaml233# =============================================================================COMMENT
MEDIUMconf.yaml334# =============================================================================COMMENT
MEDIUMconf.yaml336# =============================================================================COMMENT
MEDIUMconf.yaml370# =============================================================================COMMENT
MEDIUMconf.yaml372# =============================================================================COMMENT
MEDIUMtests/integration_test_client_side_tools.py47# ------------------------------COMMENT
MEDIUMtests/integration_test_client_side_tools.py49# ------------------------------COMMENT
MEDIUMtests/integration_test_client_side_tools.py58# ------------------------------COMMENT
MEDIUMtests/integration_test_client_side_tools.py60# ------------------------------COMMENT
MEDIUMtests/integration_test_client_side_tools.py16# ------------------------------COMMENT
MEDIUMtests/integration_test_client_side_tools.py18# ------------------------------COMMENT
MEDIUMtests/test_utils.py70# -----------------------------------------------------------------------COMMENT
MEDIUMtests/test_utils.py77# -----------------------------------------------------------------------COMMENT
MEDIUMtests/integration_test_send_message.py37# ------------------------------COMMENT
MEDIUMtests/integration_test_send_message.py39# ------------------------------COMMENT
MEDIUMtests/integration_test_send_message.py1089# ------------------------------COMMENT
MEDIUMtests/integration_test_send_message.py1091# ------------------------------COMMENT
MEDIUMtests/integration_test_send_message.py2579# ============================COMMENT
MEDIUMtests/integration_test_send_message.py2581# ============================COMMENT
444 more matches not shown…
Self-Referential Comments436 hits · 1203 pts
SeverityFileLineSnippetContext
MEDIUMtests/locust_test.py21 # Create a user and get the tokenCOMMENT
MEDIUMtests/test_modal_sandbox_v2.py140 # Create a mock actorCOMMENT
MEDIUMtests/test_modal_sandbox_v2.py182 # Create a mock actorCOMMENT
MEDIUMtests/test_modal_sandbox_v2.py242 # Create a mock actorCOMMENT
MEDIUMtests/test_modal_sandbox_v2.py287 # Create a mock actorCOMMENT
MEDIUMtests/test_modal_sandbox_v2.py463 # Create a mock that has a remote attributeCOMMENT
MEDIUMtests/test_openai_ws_session.py200 # Create a concrete subclass just for testingCOMMENT
MEDIUMtests/integration_test_turbopuffer.py1901 # Create an archiveCOMMENT
MEDIUMtests/integration_test_turbopuffer.py214 # Create a TPUF-enabled archiveCOMMENT
MEDIUMtests/integration_test_turbopuffer.py634 # Create a unique archive ID for this testCOMMENT
MEDIUMtests/integration_test_turbopuffer.py2172 # Create a conversationCOMMENT
MEDIUMtests/integration_test_client_side_tools.py222 # Create the server-side toolSTRING
MEDIUMtests/test_utils.py708 # Create a dict that when serialized will exceed limitCOMMENT
MEDIUMtests/test_secret.py198 # Create a Secret from encrypted valueCOMMENT
MEDIUMtests/integration_test_tool_execution_sandbox.py251 # Create the SandboxConfigManagerCOMMENT
MEDIUMtests/integration_test_tool_execution_sandbox.py261 # Create the sandbox configurationCOMMENT
MEDIUMtests/integration_test_tool_execution_sandbox.py409 # Create a tool that uses the injected client and agent_id to actually clear a memory blockCOMMENT
MEDIUMtests/integration_test_tool_execution_sandbox.py456 # Create the toolSTRING
MEDIUMtests/integration_test_tool_execution_sandbox.py479 # Create the tool in the systemSTRING
MEDIUMtests/integration_test_tool_execution_sandbox.py482 # Create an agent with a memory blockSTRING
MEDIUMtests/integration_test_tool_execution_sandbox.py500 # Create the sandbox for the toolSTRING
MEDIUMtests/integration_test_async_tool_sandbox.py321 # Create the SandboxConfigManagerCOMMENT
MEDIUMtests/integration_test_async_tool_sandbox.py331 # Create the sandbox configurationCOMMENT
MEDIUMtests/integration_test_async_tool_sandbox.py1246 # Create the tool with proper schemaSTRING
MEDIUMtests/integration_test_async_tool_sandbox.py1282 # Create the sandbox and verify client injection is detectedSTRING
MEDIUMtests/integration_test_async_tool_sandbox.py1343 # Create the sandbox and verify client injection is detectedSTRING
MEDIUMtests/integration_test_send_message.py2385# # Create a streaming requestCOMMENT
MEDIUMtests/integration_test_override_model.py373 # Create a conversationCOMMENT
MEDIUMtests/integration_test_summarizer.py111 # Create a realistic-looking tool return with repeated dataCOMMENT
MEDIUMtests/integration_test_summarizer.py1387# # Create a new run for the repaired agentCOMMENT
MEDIUMtests/integration_test_summarizer.py1391# # Create a new agent loop with the repaired agent stateCOMMENT
MEDIUMtests/integration_test_summarizer.py1451# # Create an input message to trigger the agentCOMMENT
MEDIUMtests/integration_test_summarizer.py1457# # Create a proper run record in the databaseCOMMENT
MEDIUMtests/integration_test_summarizer.py1466# # Create the agent loop using LettaAgentV3COMMENT
MEDIUMtests/integration_test_summarizer.py1485# # Create a mock response with the required structureCOMMENT
MEDIUMtests/integration_test_summarizer.py1634# # Create an input message to trigger the agentCOMMENT
MEDIUMtests/integration_test_summarizer.py1640# # Create a proper run record in the databaseCOMMENT
MEDIUMtests/integration_test_summarizer.py1649# # Create the agent loop using LettaAgentV3COMMENT
MEDIUMtests/integration_test_summarizer.py1666# # Create a mock response with the required structureCOMMENT
MEDIUMtests/integration_test_summarizer.py333 # Create a small conversation with ~5 messagesCOMMENT
MEDIUMtests/integration_test_summarizer.py396 # Create a large tool returnCOMMENT
MEDIUMtests/integration_test_summarizer.py589# # Create an extremely large tool return (100k chars)COMMENT
MEDIUMtests/integration_test_summarizer.py694 # Create a conversation with enough messages to trigger summarizationCOMMENT
MEDIUMtests/integration_test_summarizer.py792 # Create a conversation with enough messages to summarizeCOMMENT
MEDIUMtests/integration_test_summarizer.py868 # Create a conversation with enough messages to summarizeCOMMENT
MEDIUMtests/integration_test_summarizer.py1048 # Create the V3 agent loopCOMMENT
MEDIUMtests/integration_test_summarizer.py1127 # Create a real summarizer config using the default factoryCOMMENT
MEDIUMtests/integration_test_summarizer.py1229 # Create a real summarizer config using the default factoryCOMMENT
MEDIUMtests/integration_test_summarizer.py1343# # Create a run for the agent using RunManagerCOMMENT
MEDIUMtests/integration_test_summarizer.py1347# # Create the agent loop using LettaAgentV3COMMENT
MEDIUMtests/integration_test_summarizer.py1789 # Create a summarizer config with "all" modeCOMMENT
MEDIUMtests/integration_test_summarizer.py1862 # Create a summarizer config with "self" modeCOMMENT
MEDIUMtests/integration_test_summarizer.py2232 # Create a conversation with enough messages to summarizeCOMMENT
MEDIUMtests/test_sonnet_nonnative_reasoning_buffering.py153 # Create the streamCOMMENT
MEDIUM…/integration_test_typescript_tool_execution_sandbox.py292 # Create a TypeScript tool that has 'agent_state' in its parametersCOMMENT
MEDIUM…/integration_test_typescript_tool_execution_sandbox.py435 # Create a tool that checks if the client variable existsCOMMENT
MEDIUM…/integration_test_typescript_tool_execution_sandbox.py480 # Create a tool that uses the 'lodash' npm packageCOMMENT
MEDIUMtests/test_agent_serialization_v2.py337 # Create a mock MCP toolCOMMENT
MEDIUMtests/test_internal_agents_count.py46 # Create a simple AgentState-like object for trackingCOMMENT
MEDIUMtests/test_letta_agent_batch.py432 # Create the mock for resultsCOMMENT
376 more matches not shown…
Cross-File Repetition188 hits · 940 pts
SeverityFileLineSnippetContext
HIGHtests/test_multi_agent.py0fixture to create and return the default organization.STRING
HIGHtests/conftest.py0fixture to create and return the default organization.STRING
HIGHtests/integration_test_tool_execution_sandbox.py0fixture to create and return the default organization.STRING
HIGHtests/integration_test_async_tool_sandbox.py0fixture to create and return the default organization.STRING
HIGH…/integration_test_typescript_tool_execution_sandbox.py0fixture to create and return the default organization.STRING
HIGHtests/test_embeddings.py0fixture to create and return the default organization.STRING
HIGHtests/test_agent_serialization_v2.py0fixture to create and return the default organization.STRING
HIGHtests/test_letta_agent_batch.py0fixture to create and return the default organization.STRING
HIGHtests/integration_test_token_counters.py0fixture to create and return the default organization.STRING
HIGHtests/integration_test_modal.py0fixture to create and return the default organization.STRING
HIGHtests/test_managers.py0fixture to create and return the default organization.STRING
HIGHtests/test_agent_serialization.py0fixture to create and return the default organization.STRING
HIGHtests/test_server_providers.py0fixture to create and return the default organization.STRING
HIGHtests/managers/test_provider_manager.py0fixture to create and return the default organization.STRING
HIGH.github/scripts/model-sweep/conftest.py0fixture to create and return the default organization.STRING
HIGHtests/test_multi_agent.py0fixture to create and return the default user within the default organization.STRING
HIGHtests/conftest.py0fixture to create and return the default user within the default organization.STRING
HIGHtests/integration_test_tool_execution_sandbox.py0fixture to create and return the default user within the default organization.STRING
HIGHtests/integration_test_async_tool_sandbox.py0fixture to create and return the default user within the default organization.STRING
HIGH…/integration_test_typescript_tool_execution_sandbox.py0fixture to create and return the default user within the default organization.STRING
HIGHtests/test_embeddings.py0fixture to create and return the default user within the default organization.STRING
HIGHtests/test_agent_serialization_v2.py0fixture to create and return the default user within the default organization.STRING
HIGHtests/test_letta_agent_batch.py0fixture to create and return the default user within the default organization.STRING
HIGHtests/integration_test_token_counters.py0fixture to create and return the default user within the default organization.STRING
HIGHtests/integration_test_modal.py0fixture to create and return the default user within the default organization.STRING
HIGHtests/test_managers.py0fixture to create and return the default user within the default organization.STRING
HIGHtests/test_agent_serialization.py0fixture to create and return the default user within the default organization.STRING
HIGHtests/test_server_providers.py0fixture to create and return the default user within the default organization.STRING
HIGHtests/managers/test_provider_manager.py0fixture to create and return the default user within the default organization.STRING
HIGH.github/scripts/model-sweep/conftest.py0fixture to create and return the default user within the default organization.STRING
HIGHtests/conftest.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/integration_test_cancellation.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/integration_test_async_tool_sandbox.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/integration_test_send_message.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/integration_test_override_model.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/integration_test_multi_agent.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/test_long_running_agents.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/integration_test_sleeptime_agent.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/integration_test_send_message_v2.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/integration_test_mcp.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/sdk/conftest.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/sdk/mcp_servers_test.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/test_agent_serialization.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/integration_test_builtin_tools.py0provides the url for the letta server. if letta_server_url is not set, starts the server in a background thread and pollSTRING
HIGHtests/conftest.py0creates and returns a synchronous letta rest client for testing.STRING
HIGHtests/integration_test_async_tool_sandbox.py0creates and returns a synchronous letta rest client for testing.STRING
HIGHtests/integration_test_send_message.py0creates and returns a synchronous letta rest client for testing.STRING
HIGHtests/integration_test_override_model.py0creates and returns a synchronous letta rest client for testing.STRING
HIGHtests/integration_test_system_prompt_prefix_caching.py0creates and returns a synchronous letta rest client for testing.STRING
HIGHtests/integration_test_multi_agent.py0creates and returns a synchronous letta rest client for testing.STRING
HIGHtests/test_long_running_agents.py0creates and returns a synchronous letta rest client for testing.STRING
HIGHtests/integration_test_sleeptime_agent.py0creates and returns a synchronous letta rest client for testing.STRING
HIGHtests/integration_test_builtin_tools.py0creates and returns a synchronous letta rest client for testing.STRING
HIGHtests/integration_test_mcp.py0creates and returns a synchronous letta rest client for testing.STRING
HIGHtests/sdk/conftest.py0creates and returns a synchronous letta rest client for testing.STRING
HIGHtests/sdk/mcp_servers_test.py0creates and returns a synchronous letta rest client for testing.STRING
HIGH.github/scripts/model-sweep/conftest.py0creates and returns a synchronous letta rest client for testing.STRING
HIGHtests/conftest.py0fetches the current weather for a given location. parameters: location (str): the location to get the weather for. returSTRING
HIGHtests/integration_test_chat_completions.py0fetches the current weather for a given location. parameters: location (str): the location to get the weather for. returSTRING
HIGHtests/test_letta_agent_batch.py0fetches the current weather for a given location. parameters: location (str): the location to get the weather for. returSTRING
128 more matches not shown…
Excessive Try-Catch Wrapping805 hits · 825 pts
SeverityFileLineSnippetContext
LOWtest_watchdog_hang.py88 except Exception as e:CODE
LOWtests/integration_test_turbopuffer.py154 except Exception:CODE
LOWtests/integration_test_turbopuffer.py346 except Exception as e:CODE
LOWtests/integration_test_turbopuffer.py350 except Exception:CODE
LOWtests/integration_test_turbopuffer.py1894 except Exception:CODE
LOWtests/integration_test_turbopuffer.py48 except Exception:CODE
LOWtests/integration_test_turbopuffer.py490 except Exception:CODE
LOWtests/integration_test_turbopuffer.py618 except Exception:CODE
LOWtests/integration_test_turbopuffer.py757 except Exception:CODE
LOWtests/integration_test_turbopuffer.py1141 except Exception:CODE
LOWtests/integration_test_turbopuffer.py1202 except Exception:CODE
LOWtests/integration_test_turbopuffer.py1265 except Exception:CODE
LOWtests/integration_test_turbopuffer.py1337 except Exception:CODE
LOWtests/integration_test_turbopuffer.py2398 except Exception:CODE
LOWtests/integration_test_turbopuffer.py2480 except Exception:CODE
LOWtests/integration_test_turbopuffer.py2536 except Exception:CODE
LOWtests/test_crypto_utils.py92 except Exception as e:CODE
LOWtests/conftest.py79 except Exception:CODE
LOWtests/conftest.py85 except Exception:CODE
LOWtests/integration_test_tool_execution_sandbox.py452 except Exception as e:CODE
LOWtests/integration_test_cancellation.py124 except Exception:CODE
LOWtests/integration_test_async_tool_sandbox.py360 except Exception as e:CODE
LOWtests/integration_test_async_tool_sandbox.py1242 except Exception as e:CODE
LOWtests/integration_test_send_message.py373 except Exception:CODE
LOWtests/integration_test_send_message.py511 except Exception:CODE
LOWtests/integration_test_send_message.py667 except Exception:CODE
LOWtests/integration_test_send_message.py703 except Exception:CODE
LOWtests/integration_test_send_message.py859 except Exception:CODE
LOWtests/integration_test_send_message.py1200 except Exception as e:CODE
LOWtests/integration_test_send_message.py2026 except Exception as e:CODE
LOWtests/integration_test_send_message.py2202 except Exception as e:CODE
LOWtests/mcp_test.py216 except Exception as e:CODE
LOWtests/mcp_test.py257 except Exception as e:CODE
LOWtests/mcp_test.py277 except Exception as e:CODE
LOWtests/integration_test_override_model.py117 except Exception as e:CODE
LOWtests/integration_test_override_model.py141 except Exception as e:CODE
LOWtests/test_sonnet_nonnative_reasoning_buffering.py87 except Exception:CODE
LOWtests/test_sonnet_nonnative_reasoning_buffering.py213 except Exception as e:CODE
LOWtests/integration_test_system_prompt_prefix_caching.py33 except Exception:CODE
LOWtests/test_provider_trace_agents.py94 except Exception:CODE
LOWtests/test_provider_trace_agents.py160 except Exception:CODE
LOWtests/test_internal_agents_count.py59 except Exception:CODE
LOWtests/integration_test_usage_tracking.py126 except Exception as e:CODE
LOWtests/integration_test_human_in_the_loop.py381 except Exception:CODE
LOWtests/integration_test_human_in_the_loop.py368 except Exception:CODE
LOWtests/integration_test_human_in_the_loop.py508 except Exception as e:CODE
LOWtests/integration_test_human_in_the_loop.py770 except Exception as e:CODE
LOWtests/integration_test_human_in_the_loop.py1035 except Exception as e:CODE
LOWtests/test_temporal_metrics_local.py115 except Exception:CODE
LOWtests/integration_test_send_message_v2.py138 except Exception:CODE
LOWtests/integration_test_send_message_v2.py209 except Exception:CODE
LOWtests/integration_test_send_message_v2.py262 except Exception:CODE
LOWtests/integration_test_chat_completions.py183 except Exception as e:CODE
LOWtests/integration_test_modal.py428 except Exception as e:CODE
LOWtests/test_managers.py11220 except Exception:CODE
LOWtests/test_sources.py1599 except Exception as e:CODE
LOWtests/test_tool_schema_parsing.py121 except Exception as e:CODE
LOWtests/test_tool_schema_parsing.py194 except Exception as e:CODE
LOWtests/test_tool_schema_parsing.py315 except Exception as e:CODE
LOWtests/test_tool_schema_parsing.py676 except Exception as e:CODE
745 more matches not shown…
Docstring Block Structure82 hits · 410 pts
SeverityFileLineSnippetContext
HIGHtests/conftest.py242 Fetches the current weather for a given location. Args: location (str): The location to geSTRING
HIGHtests/test_letta_agent_batch.py56 Fetches the current weather for a given location. Args: location: The location to get the STRING
HIGHtests/integration_test_chat_completions.py71 Fetches the current weather for a given location. Args: location (str): The location to geSTRING
HIGHtests/performance_tests/test_agent_mass_update.py97 Fetches the current weather for a given location. Parameters: location (str): The locationSTRING
HIGH.github/scripts/model-sweep/conftest.py68 Fetches the current weather for a given location. Parameters: location (str): The locationSTRING
HIGHletta/local_llm/grammars/gbnf_grammar_generator.py518 Generate GBNF Grammar from Pydantic Models. This method takes a list of Pydantic models and uses them to generSTRING
HIGHletta/server/rest_api/streaming_response.py161 Wraps a stream generator to provide real-time run cancellation checking. This wrapper periodically checks for STRING
HIGHletta/schemas/message.py943Parse tool response JSON and extract message and status. Args: response_text: Raw JSON response texSTRING
HIGHletta/schemas/providers/chatgpt_oauth.py197Perform OAuth token refresh with OpenAI's token endpoint. Args: creds: Current credentials containiSTRING
HIGHletta/functions/functions.py328 Dynamically imports a function from a specified module. Args: module_name (str): The name of the modulSTRING
HIGHletta/functions/functions.py354 Dynamically loads a specific function from a module and generates its JSON schema. Args: module_name (STRING
HIGHletta/functions/typescript_parser.py10Derives the OpenAI JSON schema for a given TypeScript function source code. This parser extracts the function signaSTRING
HIGHletta/functions/async_composio_toolset.py44 Execute an action asynchronously using the Composio API Args: action (str): The name of thSTRING
HIGHletta/functions/schema_generator.py527Extracts the 'Examples:' section from a Google-style docstring. Args: docstring (Optional[str]): The full dSTRING
HIGHletta/functions/ast_parsers.py56 Resolve a type annotation string into a Python type. Previously, primitive support for int, float, str, dict, lSTRING
HIGHletta/functions/ast_parsers.py91 Parse the source code to extract annotations for a given function name. Args: source_code (str): The PSTRING
HIGHletta/functions/function_sets/files.py11Open one or more files and load their contents into files section in core memory. Maximum of 5 files can be opened simulSTRING
HIGHletta/functions/function_sets/builtin.py43 Search the web using Exa's AI-powered search engine and retrieve relevant content. Examples: web_search("TSTRING
HIGHletta/functions/function_sets/base.py23 Memory management tool with various sub-commands for memory block operations. Args: command (str): TheSTRING
HIGHletta/functions/function_sets/base.py95 Search prior conversation history using hybrid search (text + semantic similarity). Args: query (OptioSTRING
HIGHletta/functions/function_sets/base.py165 Add information to long-term archival memory for later retrieval. Use this tool to store facts, knowledge, or STRING
HIGHletta/functions/function_sets/base.py203 Search archival memory using semantic similarity to find relevant information. This tool searches your long-teSTRING
HIGHletta/functions/function_sets/base.py312 The memory_replace command allows you to replace a specific string in a memory block with a new string. This is useSTRING
HIGHletta/functions/function_sets/base.py392 The memory_insert command allows you to insert text at a specific location in a memory block. Args: laSTRING
HIGHletta/orm/sqlite_functions.py75 Validates and transforms embeddings to ensure correct dimensionality. Args: embedding: Input embeddingSTRING
HIGHletta/orm/sqlalchemy_base.py441The primary accessor for an ORM record. Async version of read method. Args: db_session: the databaseSTRING
HIGHletta/orm/sqlalchemy_base.py844 Get the count of rows that match the provided filters. Args: db_session: SQLAlchemy sessionSTRING
HIGHletta/llm_api/llm_client.py19 Create an LLM client based on the model endpoint type. Args: provider: The model endpoint STRING
HIGHletta/llm_api/chatgpt_oauth_client.py106Get the ChatGPT OAuth provider and credentials with automatic refresh if needed. Args: llm_config: STRING
HIGHletta/llm_api/anthropic_client.py382 Sends a batch request to the Anthropic API using the provided agent messages and tools mappings. Args:STRING
HIGHletta/helpers/tpuf_client.py803Generic query execution for Turbopuffer. Args: namespace_name: Turbopuffer namespace to query STRING
HIGHletta/helpers/message_helper.py16 Async helper to fetch image from URL without blocking the event loop. Retries once on timeout to handle transieSTRING
HIGHletta/helpers/crypto_utils.py105 Encrypt a string using AES-256-GCM (synchronous version). WARNING: This performs CPU-intensive PBKDF2 STRING
HIGHletta/helpers/crypto_utils.py154 Encrypt a string using AES-256-GCM (async version). Runs the CPU-intensive PBKDF2 key derivation in a STRING
HIGHletta/helpers/crypto_utils.py203 Decrypt a string that was encrypted using AES-256-GCM (synchronous version). WARNING: This performs CPSTRING
HIGHletta/helpers/crypto_utils.py254 Decrypt a string that was encrypted using AES-256-GCM (async version). Runs the CPU-intensive PBKDF2 kSTRING
HIGHletta/services/provider_manager.py970Get an LLMConfig from a model handle. Args: handle: The model handle to look up actor: STRING
HIGHletta/services/provider_manager.py1097Get an EmbeddingConfig from a model handle. Args: handle: The model handle to look up aSTRING
HIGHletta/services/agent_generate_completion_manager.py77 Generate a completion directly from the LLM provider using the agent's configuration. This method makeSTRING
HIGHletta/services/tool_manager.py472 Bulk create or update multiple tools in a single database transaction. Uses optimized PostgreSQL bulk STRING
HIGHletta/services/tool_manager.py1397 Search tools using Turbopuffer semantic search. Args: actor: User performing the search STRING
HIGHletta/services/block_manager.py800 Bulk-update the `value` field for multiple blocks in one transaction. Args: updates: mappiSTRING
HIGHletta/services/archive_manager.py293Create a passage in an archive. Args: archive_id: ID of the archive to add the passage to STRING
HIGHletta/services/archive_manager.py383Create multiple passages in an archive. Args: archive_id: ID of the archive to add the passages to STRING
HIGHletta/services/job_manager.py329 Get messages associated with a job using cursor-based pagination. This is a wrapper around get_job_messSTRING
HIGHletta/services/job_manager.py387 Get steps associated with a job using cursor-based pagination. This is a wrapper around get_job_messageSTRING
HIGHletta/services/job_manager.py434 Verify that a job exists and the user has the required access. Args: session: The databaseSTRING
HIGHletta/services/job_manager.py553 Get all steps associated with a job. Args: job_id: The ID of the job to get steps for STRING
HIGHletta/services/agent_serialization_manager.py383 Export agents and their related entities to AgentFileSchema format. Args: agent_ids: List STRING
HIGHletta/services/agent_serialization_manager.py509 Import AgentFileSchema into the database. Args: schema: The agent file schema to import STRING
HIGHletta/services/agent_manager.py1975 Lists all sources attached to an agent with pagination. Args: agent_id: ID of the agent toSTRING
HIGHletta/services/agent_manager.py2758 Attaches a tool to an agent. Args: agent_id: ID of the agent to attach the tool to. STRING
HIGHletta/services/agent_manager.py2901 Attaches missing core file tools to an agent. Args: agent_state: The current agent state wSTRING
HIGHletta/services/agent_manager.py2962 Detach all core file tools from an agent. Args: agent_state: The current agent state with STRING
HIGHletta/services/message_manager.py910 Most performant query to list messages by directly querying the Message table. This function filters bSTRING
HIGHletta/services/message_manager.py1276 Search messages across entire organization using Turbopuffer. Args: actor: User performingSTRING
HIGHletta/services/step_manager.py286Update the transaction ID for a step. Args: actor: The user making the request step_id:STRING
HIGHletta/services/step_manager.py340Update the stop reason for a step. Args: actor: The user making the request step_id: ThSTRING
HIGHletta/services/step_manager.py378Update a step with error information. Args: actor: The user making the request step_id:STRING
HIGHletta/services/step_manager.py426Update a step with success status and final usage statistics. Args: actor: The user making the requSTRING
22 more matches not shown…
Deep Nesting449 hits · 360 pts
SeverityFileLineSnippetContext
LOWtests/test_modal_sandbox_v2.py450CODE
LOWtests/conftest.py24CODE
LOWtests/conftest.py70CODE
LOWtests/integration_test_cancellation.py91CODE
LOWtests/integration_test_async_tool_sandbox.py68CODE
LOWtests/integration_test_send_message.py215CODE
LOWtests/integration_test_send_message.py786CODE
LOWtests/integration_test_send_message.py895CODE
LOWtests/integration_test_send_message.py983CODE
LOWtests/integration_test_send_message.py1009CODE
LOWtests/integration_test_send_message.py984CODE
LOWtests/mcp_test.py240CODE
LOWtests/mcp_test.py260CODE
LOWtests/mcp_test.py280CODE
LOWtests/integration_test_override_model.py43CODE
LOWtests/test_sonnet_nonnative_reasoning_buffering.py134CODE
LOWtests/integration_test_agent_tool_graph.py501CODE
LOWtests/test_letta_agent_batch.py362CODE
LOWtests/test_letta_agent_batch.py448CODE
LOWtests/test_letta_agent_batch.py615CODE
LOWtests/test_letta_agent_batch.py781CODE
LOWtests/integration_test_multi_agent.py18CODE
LOWtests/integration_test_multi_agent.py135CODE
LOWtests/integration_test_multi_agent.py210CODE
LOWtests/integration_test_multi_agent.py325CODE
LOWtests/test_sdk_client.py1069CODE
LOWtests/test_sdk_client.py1154CODE
LOWtests/test_sdk_client.py1899CODE
LOWtests/test_sdk_client.py2164CODE
LOWtests/test_long_running_agents.py18CODE
LOWtests/integration_test_human_in_the_loop.py1175CODE
LOWtests/test_file_processor.py226CODE
LOWtests/integration_test_sleeptime_agent.py16CODE
LOWtests/integration_test_send_message_v2.py283CODE
LOWtests/integration_test_send_message_v2.py528CODE
LOWtests/test_managers.py5081CODE
LOWtests/test_tool_schema_parsing.py202CODE
LOWtests/test_agent_serialization.py39CODE
LOWtests/test_agent_serialization.py268CODE
LOWtests/test_agent_serialization.py486CODE
LOWtests/integration_test_modal_sandbox_v2.py632CODE
LOWtests/integration_test_builtin_tools.py24CODE
LOWtests/integration_test_builtin_tools.py161CODE
LOWtests/integration_test_clickhouse_llm_traces.py180CODE
LOWtests/integration_test_mcp.py27CODE
LOWtests/test_prompt_caching.py605CODE
LOWtests/test_prompt_caching.py697CODE
LOWtests/test_prompt_caching.py974CODE
LOWtests/performance_tests/test_agent_mass_creation.py253CODE
LOWtests/managers/test_cancellation.py1143CODE
LOWtests/managers/test_agent_manager.py1876CODE
LOWtests/managers/test_agent_manager.py1990CODE
LOWtests/managers/test_mcp_manager.py238CODE
LOWtests/managers/test_tool_manager.py1207CODE
LOWtests/sdk/conftest.py13CODE
LOWtests/sdk/conftest.py64CODE
LOWtests/sdk/conftest.py111CODE
LOWtests/sdk/conftest.py151CODE
LOWtests/sdk/mcp_servers_test.py31CODE
LOWtests/sdk/search_test.py294CODE
389 more matches not shown…
Modern AI Meta-Vocabulary113 hits · 360 pts
SeverityFileLineSnippetContext
MEDIUMtests/integration_test_turbopuffer.py411 # Create simple embeddings for testing (normally you'd use a real embedding model)COMMENT
MEDIUMtests/integration_test_summarizer.py1319# and memory blocks are very large, potentially consuming most of the context window.COMMENT
MEDIUMtests/integration_test_summarizer.py1323# # Override context window to be small so we trigger summarizationCOMMENT
MEDIUMtests/integration_test_summarizer.py1394# # Now the agent should be able to respond without context window errorsCOMMENT
MEDIUMtests/integration_test_summarizer.py1060 # this model's context window so that we always trigger theCOMMENT
MEDIUMtests/test_providers.py160 # All MiniMax models have 200K context windowCOMMENT
MEDIUMtests/test_providers.py297 # Test both sync and async context window methodsCOMMENT
MEDIUMtests/integration_test_system_prompt_prefix_caching.py58 # Step 1: Get initial context window, system prompt, and human block valueCOMMENT
MEDIUMtests/integration_test_system_prompt_prefix_caching.py156 # Step 1: Get initial context windowCOMMENT
MEDIUMtests/integration_test_system_prompt_prefix_caching.py183 # Step 5: Get context window and verify core memory was recompiledCOMMENT
MEDIUMtests/test_sdk_client.py660 # List groups (most agents won't have groups unless in a multi-agent setup)COMMENT
MEDIUMtests/test_managers.py901 # Non-production environment should include all multi-agent toolsCOMMENT
MEDIUMtests/test_managers.py918 # Production environment should exclude local-only multi-agent toolsCOMMENT
MEDIUMtests/test_managers.py922 # But should include standard multi-agent toolsCOMMENT
MEDIUMtests/test_managers.py927 # Non-production environment should include all multi-agent toolsCOMMENT
MEDIUMtests/test_managers.py936 # Upsert only multi-agent toolsCOMMENT
MEDIUMtests/test_managers.py941 # Should only have non-local multi-agent toolsCOMMENT
MEDIUMtests/test_managers.py946 # Should have all multi-agent toolsCOMMENT
MEDIUMtests/test_managers.py5136 # Adjust expected names for multi-agent tools in productionCOMMENT
MEDIUMtests/test_managers.py1046 # Get context window and check for basic appearancesCOMMENT
MEDIUMtests/test_managers.py1169 # test with small context window model (8k)COMMENT
MEDIUMtests/test_managers.py1189 # test with medium context window model (32k)COMMENT
MEDIUMtests/test_managers.py1209 # test with large context window model (128k)COMMENT
MEDIUMtests/test_sources.py282 # Get agent state to retrieve file config defaults (dynamic based on model context window)COMMENT
MEDIUMtests/test_sources.py352 # Get agent state to retrieve file config defaults (dynamic based on model context window)COMMENT
MEDIUMtests/integration_test_conversations_sdk.py537 # We use an extremely long message to trigger a context window errorCOMMENT
MEDIUMtests/integration_test_conversations_sdk.py538 very_long_message = "Hello " * 100000 # Very long message to exceed context windowCODE
MEDIUMtests/integration_test_conversations_sdk.py548 pass # Expected to fail due to context window exceededCODE
MEDIUMtests/manual_test_multi_agent_broadcast_large.py58 # Create "manager" agent with multi-agent broadcast toolCOMMENT
MEDIUMtests/test_client.py754 # get the sleeptime agent from the multi-agent groupCOMMENT
MEDIUMtests/test_server_providers.py497 assert model_check.max_context_window == 64000 # Org model's context windowCODE
MEDIUMtests/test_server_providers.py1683 assert model.max_context_window == 16384 # Org model's context windowCODE
MEDIUMtests/managers/test_agent_manager.py473 # Non-production environment should include all multi-agent toolsCOMMENT
MEDIUMtests/managers/test_agent_manager.py490 # Production environment should exclude local-only multi-agent toolsCOMMENT
MEDIUMtests/managers/test_agent_manager.py494 # But should include standard multi-agent toolsCOMMENT
MEDIUMtests/managers/test_agent_manager.py499 # Non-production environment should include all multi-agent toolsCOMMENT
MEDIUMtests/managers/test_agent_manager.py508 # Upsert only multi-agent toolsCOMMENT
MEDIUMtests/managers/test_agent_manager.py513 # Should only have non-local multi-agent toolsCOMMENT
MEDIUMtests/managers/test_agent_manager.py518 # Should have all multi-agent toolsCOMMENT
MEDIUMtests/managers/test_agent_manager.py610 # Get context window and check for basic appearancesCOMMENT
MEDIUMtests/managers/test_agent_manager.py1056 # test with small context window model (8k)COMMENT
MEDIUMtests/managers/test_agent_manager.py1077 # test with medium context window model (32k)COMMENT
MEDIUMtests/managers/test_agent_manager.py1098 # test with large context window model (128k)COMMENT
MEDIUMtests/managers/test_tool_manager.py1262 # Adjust expected names for multi-agent tools in productionCOMMENT
MEDIUMtests/managers/test_provider_manager.py385 # Test context window limit override would be done at server levelCOMMENT
MEDIUM.github/scripts/model-sweep/model_sweep.py737 # pydantic prevents us for overriding the context window paramter in the passed LLMConfigCOMMENT
MEDIUM…b/scripts/model-sweep/generate_model_sweep_markdown.py327 # Get context window and last scanned timeCOMMENT
MEDIUMletta/constants.py58# String in the error message for when the context window is too largeCOMMENT
MEDIUMletta/constants.py77# context window sizeCOMMENT
MEDIUMletta/constants.py442# Tool return truncation limit for LLM context window managementCOMMENT
MEDIUMletta/utils.py1365 # If no context window info, use conservative defaultsCOMMENT
MEDIUMletta/utils.py1368 # Define defaults based on context window rangesCOMMENT
MEDIUMletta/agent.py432 # check if we are going over the context window: this allows for articifial constraintsCOMMENT
MEDIUMletta/agent.py637 # overflow the agent context windowCOMMENT
MEDIUMletta/agent.py1279 # context window breakdown (in messages)COMMENT
MEDIUMletta/agent.py1288 # context window breakdown (in tokens)COMMENT
MEDIUMletta/agent.py1411 # context window breakdown (in messages)COMMENT
MEDIUMletta/agent.py1420 # context window breakdown (in tokens)COMMENT
MEDIUMletta/agent.py1569 # context window breakdown (in messages)COMMENT
MEDIUMletta/agent.py1578 # context window breakdown (in tokens)COMMENT
53 more matches not shown…
Redundant / Tautological Comments205 hits · 308 pts
SeverityFileLineSnippetContext
LOWtests/integration_test_turbopuffer.py150 # Check if our message ID is in the resultsCOMMENT
LOWtests/integration_test_turbopuffer.py64 # Set environment to DEV for testingCOMMENT
LOWtests/conftest.py187 # Set environment to DEV for testingCOMMENT
LOWtests/integration_test_send_message.py378 # Check if next message is LettaStopReason to detect this caseCOMMENT
LOWtests/integration_test_send_message.py831 # Check if there are tool calls in the responseCOMMENT
LOWtests/integration_test_send_message.py905 # Check if chunks are raw SSE strings (from background streaming)COMMENT
LOWtests/integration_test_summarizer.py1567# # Check if content has system_alert type with the summary message (object form)COMMENT
LOWtests/integration_test_summarizer.py1745# # Check if content has system_alert type with the summary message (object form)COMMENT
LOWtests/test_sonnet_nonnative_reasoning_buffering.py200 # Check if this is inner thoughtsCOMMENT
LOWtests/test_sonnet_nonnative_reasoning_buffering.py251 # Check if we detected large burstsCOMMENT
LOWtests/test_sdk_client.py631 # Check if modify method existsCOMMENT
LOWtests/test_temporal_metrics_local.py109 # Check if DogStatsD is listeningCOMMENT
LOWtests/integration_test_send_message_v2.py752 # Check if tool calls are grouped in a single message (parallel) or separate messages (sequential)COMMENT
LOWtests/integration_test_send_message_v2.py777 # Check if we have true parallel tool callingCOMMENT
LOWtests/integration_test_send_message_v2.py780 # Check if the single message contains multiple tool callsCOMMENT
LOWtests/test_tool_schema_parsing.py150 # Check if we expect the conversion to failCOMMENT
LOWtests/integration_test_multi_modal_tool_returns.py398 # Check if this is a tool return message that might contain our imageCOMMENT
LOWtests/test_server_providers.py2383 # Check if provider already existsCOMMENT
LOWtests/test_server_providers.py2633 # Set last_synced to indicate models are already syncedCOMMENT
LOWtests/test_prompt_caching.py827 # Check if ANY of the follow-up messages had a cache hitCOMMENT
LOWtests/test_prompt_caching.py961 # Check if ANY of the follow-up messages had a cache hitCOMMENT
LOWtests/managers/test_cancellation.py1280 # Check if message has tool_returns (new format) or tool_return (old format)COMMENT
LOWtests/managers/test_agent_manager.py2008 # Check if expected type is in the unionCOMMENT
LOWotel/start-otel-collector.sh92# Check if update is neededCOMMENT
LOWsandbox/node_server.py66 # Check if there was an errorCOMMENT
LOW.github/scripts/model-sweep/conftest.py166 # Check if already runningCOMMENT
LOW…d06594144ef3_add_and_migrate_encrypted_columns_for_.py37 # Check if encryption key is availableCOMMENT
LOW…rsions/8149a781ac1b_backfill_encrypted_columns_for_.py27 # Check if encryption key is availableCOMMENT
LOW…c/versions/74e860718e0d_add_archival_memory_sharing.py57 # Check if archives table already existsCOMMENT
LOW…/versions/eff256d296cb_mcp_encrypted_data_migration.py30 # Check if encryption key is availableCOMMENT
LOWletta/streaming_utils.py287 # Check if this same chunk also contains the terminating quote (and optional delimiter)COMMENT
LOWletta/utils.py1167 # Check if coro is an async generator instead of a coroutineCOMMENT
LOWletta/agent.py553 # Check if inner thoughts is in the function call arguments (possible apparently if you are using Azure)COMMENT
LOWletta/agent.py1217 # Check if there's a summary message in the message queueCOMMENT
LOWletta/agent.py1350 # Check if there's a summary message in the message queueCOMMENT
LOWletta/agent.py1488 # Check if there's a summary message in the message queueCOMMENT
LOWletta/local_llm/function_parser.py46 # Check if it's a user message or system messageCOMMENT
LOWletta/local_llm/utils.py50 # Check if the file existsCOMMENT
LOWletta/local_llm/settings/settings.py29 # Check if settings_dir folder exists (if not, create it)COMMENT
LOWletta/local_llm/grammars/gbnf_grammar_generator.py473 # Check if the field is optional (not required)COMMENT
LOWletta/local_llm/grammars/gbnf_grammar_generator.py85 if not parts: # Check if the list is emptyCODE
LOWletta/agents/letta_agent_v3.py289 # Check if we should use SGLang native adapter for multi-turn RL training.COMMENT
LOWletta/agents/letta_agent_v3.py358 # Check if step was cancelled - break out of the step loopCOMMENT
LOWletta/agents/letta_agent_v3.py424 # Set context_tokens to expose actual context window usage (vs accumulated prompt_tokens)COMMENT
LOWletta/agents/letta_agent_v3.py502 # Check if we should use SGLang native adapter for multi-turn RL trainingCOMMENT
LOWletta/agents/letta_agent_v3.py615 # Check if step was cancelled - break out of the step loopCOMMENT
LOWletta/agents/letta_agent_v3.py696 # Set context_tokens to expose actual context window usage (vs accumulated prompt_tokens)COMMENT
LOWletta/agents/letta_agent_v3.py1184 # Check if there's a fallback route for the current modelCOMMENT
LOWletta/agents/letta_agent_v3.py1625 # Check if there are required-before-exit tools that haven't been calledCOMMENT
LOWletta/agents/letta_agent_v3.py1999 # Check if the LLM hit max_tokens (finish_reason == "length")COMMENT
LOWletta/server/server.py1812 # Check if the server name is already in the configCOMMENT
LOWletta/server/server.py1883 # Check if the server name is already in the configCOMMENT
LOWletta/server/startup.sh23# Check if we're configured for external RedisCOMMENT
LOWletta/server/startup.sh38# Check if we're configured for external PostgresCOMMENT
LOWletta/server/ws_api/server.py110 # Check if a port argument is providedCOMMENT
LOWletta/server/ws_api/interface.py37 if self.clients: # Check if there are any clients connectedCODE
LOWletta/server/rest_api/streaming_response.py132 # Check if there's anything leftCOMMENT
LOWletta/server/rest_api/proxy_helpers.py319 # Set max_tokens to budget_tokens + reasonable buffer for responseCOMMENT
LOWletta/server/rest_api/proxy_helpers.py28 # Check if entire message is a policy spec (starts with tag)COMMENT
LOWletta/server/rest_api/proxy_helpers.py33 # Check if policy spec is appended (with prefix)COMMENT
145 more matches not shown…
Unused Imports320 hits · 291 pts
SeverityFileLineSnippetContext
LOWtests/test_openai_ws_session.py5CODE
LOWtests/integration_test_tool_execution_sandbox.py13CODE
LOWtests/integration_test_async_tool_sandbox.py18CODE
LOWtests/integration_test_async_tool_sandbox.py383CODE
LOWtests/integration_test_send_message.py32CODE
LOWtests/integration_test_modal.py14CODE
LOW…sions/b888f21b151f_add_vector_db_provider_to_source.py26CODE
LOW…sions/b888f21b151f_add_vector_db_provider_to_source.py26CODE
LOWletta/__init__.py25CODE
LOWletta/__init__.py26CODE
LOWletta/__init__.py27CODE
LOWletta/__init__.py28CODE
LOWletta/__init__.py29CODE
LOWletta/__init__.py30CODE
LOWletta/__init__.py31CODE
LOWletta/__init__.py31CODE
LOWletta/__init__.py31CODE
LOWletta/__init__.py32CODE
LOWletta/__init__.py33CODE
LOWletta/__init__.py34CODE
LOWletta/__init__.py34CODE
LOWletta/__init__.py34CODE
LOWletta/__init__.py34CODE
LOWletta/__init__.py34CODE
LOWletta/__init__.py41CODE
LOWletta/__init__.py42CODE
LOWletta/__init__.py43CODE
LOWletta/__init__.py44CODE
LOWletta/__init__.py45CODE
LOWletta/__init__.py46CODE
LOWletta/__init__.py47CODE
LOWletta/__init__.py19CODE
LOWletta/errors.py7CODE
LOWletta/errors.py8CODE
LOWletta/serialize_schemas/__init__.py1CODE
LOWletta/agents/base_agent.py18CODE
LOWletta/agents/agent_loop.py12CODE
LOWletta/agents/letta_agent.py9CODE
LOWletta/agents/letta_agent.py51CODE
LOWletta/agents/base_agent_v2.py14CODE
LOWletta/agents/base_agent_v2.py14CODE
LOWletta/agents/base_agent_v2.py15CODE
LOWletta/agents/voice_sleeptime_agent.py4CODE
LOWletta/agents/letta_agent_v3.py73CODE
LOWletta/server/rest_api/dependencies.py13CODE
LOWletta/server/rest_api/routers/v1/tags.py8CODE
LOWletta/server/rest_api/routers/v1/internal_agents.py5CODE
LOWletta/server/rest_api/routers/v1/users.py11CODE
LOWletta/server/rest_api/routers/v1/git_http.py20CODE
LOWletta/server/rest_api/routers/v1/internal_runs.py10CODE
LOWletta/server/rest_api/routers/v1/archives.py12CODE
LOWletta/server/rest_api/routers/v1/identities.py20CODE
LOWletta/server/rest_api/routers/v1/agents.py52CODE
LOWletta/server/rest_api/routers/v1/voice.py9CODE
LOWletta/server/rest_api/routers/v1/jobs.py9CODE
LOWletta/server/rest_api/routers/v1/providers.py12CODE
LOWletta/server/rest_api/routers/v1/organizations.py9CODE
LOWletta/server/rest_api/routers/v1/llms.py10CODE
LOWletta/server/rest_api/routers/v1/internal_templates.py10CODE
LOWletta/server/rest_api/routers/v1/runs.py24CODE
260 more matches not shown…
Verbosity Indicators128 hits · 185 pts
SeverityFileLineSnippetContext
LOWtests/integration_test_client_side_tools.py92 # Step 1: User asks for the secret code - agent should call the toolCOMMENT
LOWtests/integration_test_client_side_tools.py109 # Step 2: Provide the tool return (simulating client-side execution)COMMENT
LOWtests/integration_test_client_side_tools.py152 # Step 3: Ask the agent what the secret code was (testing memory/context)COMMENT
LOWtests/integration_test_client_side_tools.py173 # Step 4: Validate the full conversation history makes senseCOMMENT
LOWtests/integration_test_client_side_tools.py242 # Step 1: Call the tool WITH client_tools specified - should pause for approvalSTRING
LOWtests/integration_test_client_side_tools.py261 # Step 2: Provide client-side tool returnSTRING
LOWtests/integration_test_client_side_tools.py286 # Step 3: Verify the client value was used, not the server valueSTRING
LOWtests/integration_test_client_side_tools.py306 # Step 4: Test that WITHOUT client_tools, server tool executes directlySTRING
LOWtests/integration_test_client_side_tools.py354 # Step 1: Trigger the client-side tool callSTRING
LOWtests/integration_test_client_side_tools.py366 # Step 2: Provide an error responseSTRING
LOWtests/test_mcp_encryption.py251 # Step 1: Create OAuth session (without tokens initially)COMMENT
LOWtests/test_mcp_encryption.py264 # Step 2: Update session with tokens (simulating OAuth callback)COMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py58 # Step 1: Get initial context window, system prompt, and human block valueCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py109 # Step 5: Verify system prompt still hasn't changedCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py114 # Step 6: Manually update a block via the APICOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py156 # Step 1: Get initial context windowCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py161 # Step 2: Get the human blockCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py170 # Step 3: Update block via agent-specific endpoint (triggers recompilation)COMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py179 # Step 4: Verify the block was updatedCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py183 # Step 5: Get context window and verify core memory was recompiledCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py192 # Step 6: System prompt template should NOT change (only memory content changes)COMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py205 # Step 1: Get initial system promptCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py209 # Step 2: Manually update a block via the APICOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py224 # Step 3: Reset messages (this should trigger system prompt rebuild)COMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py227 # Step 4: Verify system prompt HAS changed and includes the new memoryCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py72 # Step 2: Tell the agent to update its memory using the memory toolCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py84 # Step 3: Verify block was modified but system prompt hasn't changedCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py97 # Step 4: Send another message to the agentCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py129 # Step 7: Send another message and verify system prompt still hasn't changedCOMMENT
LOWtests/test_sdk_client.py367 # Step 0: create an agent with no tagsCOMMENT
LOWtests/test_sdk_client.py380 # Step 1: Add multiple tags to the agentCOMMENT
LOWtests/test_sdk_client.py386 # Step 2: Retrieve tags for the agent and verify they match the added tagsCOMMENT
LOWtests/test_sdk_client.py392 # Step 3: Retrieve agents by each tag to ensure the agent is associated correctlyCOMMENT
LOWtests/test_sdk_client.py397 # Step 4: Delete a specific tag from the agent and verify its removalCOMMENT
LOWtests/test_sdk_client.py406 # Step 5: Delete all remaining tags from the agentCOMMENT
LOWtests/integration_test_human_in_the_loop.py1351 # Step 1: Send message that triggers approval requestCOMMENT
LOWtests/integration_test_human_in_the_loop.py1358 # Step 2: Start approval stream and wait for first chunk (sentinel approach)COMMENT
LOWtests/integration_test_human_in_the_loop.py1395 # Step 4: Accumulate remaining chunks (already collected above)COMMENT
LOWtests/integration_test_human_in_the_loop.py1397 # Step 5: Verify we got chunks AND a cancelled stop reasonCOMMENT
LOWtests/integration_test_human_in_the_loop.py1405 # Step 6: Verify run status is cancelledCOMMENT
LOWtests/integration_test_human_in_the_loop.py1412 # Step 7: Verify that approval response message is persistedCOMMENT
LOWtests/integration_test_human_in_the_loop.py1418 # Step 8: Attempt retry with same responseCOMMENT
LOWtests/integration_test_human_in_the_loop.py1438 # Step 9: Accumulate chunksCOMMENT
LOWtests/integration_test_human_in_the_loop.py1441 # Step 10: Verify we got chunks AND an end_turn stop reasonCOMMENT
LOWtests/integration_test_human_in_the_loop.py1449 # Step 11: Verify keep-alive message was sentCOMMENT
LOWtests/integration_test_human_in_the_loop.py1471 # Step 1: Send message that triggers approval requestCOMMENT
LOWtests/integration_test_human_in_the_loop.py1478 # Step 2: Start approval stream and wait for first chunk (sentinel approach)COMMENT
LOWtests/integration_test_human_in_the_loop.py1515 # Step 4: Verify we got cancelledCOMMENT
LOWtests/integration_test_human_in_the_loop.py1520 # Step 6: Verify tool return message is persistedCOMMENT
LOWtests/integration_test_human_in_the_loop.py1525 # Step 7: Call compact with mode='all' to evict all messages from contextCOMMENT
LOWtests/integration_test_human_in_the_loop.py1531 # Step 8: Verify only system and summary messages remain in context (should be 2)COMMENT
LOWtests/integration_test_human_in_the_loop.py1538 # Step 9: Retry the original approval response - should succeed via idempotency checkCOMMENT
LOWtests/integration_test_human_in_the_loop.py1558 # Step 10: Accumulate chunksCOMMENT
LOWtests/integration_test_human_in_the_loop.py1561 # Step 11: Verify we got chunks AND an end_turn stop reason (not an error)COMMENT
LOWtests/integration_test_human_in_the_loop.py1379 # Step 3: Wait for first chunk before triggering cancellationCOMMENT
LOWtests/integration_test_human_in_the_loop.py1499 # Step 3: Wait for first chunk before triggering cancellationCOMMENT
LOWtests/test_managers.py6569 # Step 1: Create blockCOMMENT
LOWtests/test_managers.py6575 # Step 2: Update to v2, checkpoint => seq=2COMMENT
LOWtests/test_managers.py6581 # Step 3: Update to v3, checkpoint => seq=3COMMENT
LOWtests/test_managers.py6732 # Step 1: create initial block => seq=1COMMENT
68 more matches not shown…
Structural Annotation Overuse128 hits · 179 pts
SeverityFileLineSnippetContext
LOWtests/integration_test_client_side_tools.py92 # Step 1: User asks for the secret code - agent should call the toolCOMMENT
LOWtests/integration_test_client_side_tools.py109 # Step 2: Provide the tool return (simulating client-side execution)COMMENT
LOWtests/integration_test_client_side_tools.py152 # Step 3: Ask the agent what the secret code was (testing memory/context)COMMENT
LOWtests/integration_test_client_side_tools.py173 # Step 4: Validate the full conversation history makes senseCOMMENT
LOWtests/integration_test_client_side_tools.py242 # Step 1: Call the tool WITH client_tools specified - should pause for approvalSTRING
LOWtests/integration_test_client_side_tools.py261 # Step 2: Provide client-side tool returnSTRING
LOWtests/integration_test_client_side_tools.py286 # Step 3: Verify the client value was used, not the server valueSTRING
LOWtests/integration_test_client_side_tools.py306 # Step 4: Test that WITHOUT client_tools, server tool executes directlySTRING
LOWtests/integration_test_client_side_tools.py354 # Step 1: Trigger the client-side tool callSTRING
LOWtests/integration_test_client_side_tools.py366 # Step 2: Provide an error responseSTRING
LOWtests/test_mcp_encryption.py251 # Step 1: Create OAuth session (without tokens initially)COMMENT
LOWtests/test_mcp_encryption.py264 # Step 2: Update session with tokens (simulating OAuth callback)COMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py58 # Step 1: Get initial context window, system prompt, and human block valueCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py109 # Step 5: Verify system prompt still hasn't changedCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py114 # Step 6: Manually update a block via the APICOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py156 # Step 1: Get initial context windowCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py161 # Step 2: Get the human blockCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py170 # Step 3: Update block via agent-specific endpoint (triggers recompilation)COMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py179 # Step 4: Verify the block was updatedCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py183 # Step 5: Get context window and verify core memory was recompiledCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py192 # Step 6: System prompt template should NOT change (only memory content changes)COMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py205 # Step 1: Get initial system promptCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py209 # Step 2: Manually update a block via the APICOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py224 # Step 3: Reset messages (this should trigger system prompt rebuild)COMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py227 # Step 4: Verify system prompt HAS changed and includes the new memoryCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py72 # Step 2: Tell the agent to update its memory using the memory toolCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py84 # Step 3: Verify block was modified but system prompt hasn't changedCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py97 # Step 4: Send another message to the agentCOMMENT
LOWtests/integration_test_system_prompt_prefix_caching.py129 # Step 7: Send another message and verify system prompt still hasn't changedCOMMENT
LOWtests/test_sdk_client.py367 # Step 0: create an agent with no tagsCOMMENT
LOWtests/test_sdk_client.py380 # Step 1: Add multiple tags to the agentCOMMENT
LOWtests/test_sdk_client.py386 # Step 2: Retrieve tags for the agent and verify they match the added tagsCOMMENT
LOWtests/test_sdk_client.py392 # Step 3: Retrieve agents by each tag to ensure the agent is associated correctlyCOMMENT
LOWtests/test_sdk_client.py397 # Step 4: Delete a specific tag from the agent and verify its removalCOMMENT
LOWtests/test_sdk_client.py406 # Step 5: Delete all remaining tags from the agentCOMMENT
LOWtests/integration_test_human_in_the_loop.py1351 # Step 1: Send message that triggers approval requestCOMMENT
LOWtests/integration_test_human_in_the_loop.py1358 # Step 2: Start approval stream and wait for first chunk (sentinel approach)COMMENT
LOWtests/integration_test_human_in_the_loop.py1395 # Step 4: Accumulate remaining chunks (already collected above)COMMENT
LOWtests/integration_test_human_in_the_loop.py1397 # Step 5: Verify we got chunks AND a cancelled stop reasonCOMMENT
LOWtests/integration_test_human_in_the_loop.py1405 # Step 6: Verify run status is cancelledCOMMENT
LOWtests/integration_test_human_in_the_loop.py1412 # Step 7: Verify that approval response message is persistedCOMMENT
LOWtests/integration_test_human_in_the_loop.py1418 # Step 8: Attempt retry with same responseCOMMENT
LOWtests/integration_test_human_in_the_loop.py1438 # Step 9: Accumulate chunksCOMMENT
LOWtests/integration_test_human_in_the_loop.py1441 # Step 10: Verify we got chunks AND an end_turn stop reasonCOMMENT
LOWtests/integration_test_human_in_the_loop.py1449 # Step 11: Verify keep-alive message was sentCOMMENT
LOWtests/integration_test_human_in_the_loop.py1471 # Step 1: Send message that triggers approval requestCOMMENT
LOWtests/integration_test_human_in_the_loop.py1478 # Step 2: Start approval stream and wait for first chunk (sentinel approach)COMMENT
LOWtests/integration_test_human_in_the_loop.py1515 # Step 4: Verify we got cancelledCOMMENT
LOWtests/integration_test_human_in_the_loop.py1520 # Step 6: Verify tool return message is persistedCOMMENT
LOWtests/integration_test_human_in_the_loop.py1525 # Step 7: Call compact with mode='all' to evict all messages from contextCOMMENT
LOWtests/integration_test_human_in_the_loop.py1531 # Step 8: Verify only system and summary messages remain in context (should be 2)COMMENT
LOWtests/integration_test_human_in_the_loop.py1538 # Step 9: Retry the original approval response - should succeed via idempotency checkCOMMENT
LOWtests/integration_test_human_in_the_loop.py1558 # Step 10: Accumulate chunksCOMMENT
LOWtests/integration_test_human_in_the_loop.py1561 # Step 11: Verify we got chunks AND an end_turn stop reason (not an error)COMMENT
LOWtests/integration_test_human_in_the_loop.py1379 # Step 3: Wait for first chunk before triggering cancellationCOMMENT
LOWtests/integration_test_human_in_the_loop.py1499 # Step 3: Wait for first chunk before triggering cancellationCOMMENT
LOWtests/test_managers.py6569 # Step 1: Create blockCOMMENT
LOWtests/test_managers.py6575 # Step 2: Update to v2, checkpoint => seq=2COMMENT
LOWtests/test_managers.py6581 # Step 3: Update to v3, checkpoint => seq=3COMMENT
LOWtests/test_managers.py6732 # Step 1: create initial block => seq=1COMMENT
68 more matches not shown…
AI Slop Vocabulary48 hits · 109 pts
SeverityFileLineSnippetContext
MEDIUMtests/integration_test_summarizer.py1307### in order to leverage caching (for self compaction)COMMENT
MEDIUMtests/test_agent_serialization_v2.py772 """Test file export functionality with comprehensive validation"""STRING
MEDIUMtests/integration_test_usage_tracking.py449 # Use Anthropic Sonnet 4.5 for this test as it has the most comprehensive cachingCOMMENT
MEDIUMtests/test_managers.py1279 # Create an agent using the comprehensive fixture.COMMENT
MEDIUMtests/test_managers.py1297 # Create an agent using the comprehensive fixture.COMMENT
MEDIUMtests/test_managers.py3612 """Test comprehensive tag functionality for passages."""STRING
MEDIUMtests/managers/conftest.py364 """Create a comprehensive test agent with all features."""STRING
MEDIUMtests/managers/test_passage_manager.py815 """Test comprehensive tag functionality for passages."""STRING
MEDIUMtests/managers/test_agent_manager.py1210 # Create an agent using the comprehensive fixture.COMMENT
MEDIUMtests/managers/test_agent_manager.py1228 # Create an agent using the comprehensive fixture.COMMENT
MEDIUM…empty_archival/agent_state/2024-01-11_12_44_32_PM.json1{"model": "gpt-4", "system": "You are Letta, the latest version of Limnal Corporation's digital companion, developed in CODE
MEDIUM…empty_archival/agent_state/2024-01-11_12_44_33_PM.json1{"model": "gpt-4", "system": "You are Letta, the latest version of Limnal Corporation's digital companion, developed in CODE
MEDIUM…nt_test_attach/agent_state/2024-01-11_12_42_19_PM.json1{"model": "gpt-4", "system": "You are Letta, the latest version of Limnal Corporation's digital companion, developed in CODE
MEDIUM…nt_test_attach/agent_state/2024-01-11_12_42_17_PM.json1{"model": "gpt-4", "system": "You are Letta, the latest version of Limnal Corporation's digital companion, developed in CODE
MEDIUM…nts/agent_test/agent_state/2024-01-11_12_43_59_PM.json1{"model": "gpt-4", "system": "You are Letta, the latest version of Limnal Corporation's digital companion, developed in CODE
MEDIUM…nts/agent_test/agent_state/2024-01-11_12_43_57_PM.json1{"model": "gpt-4", "system": "You are Letta, the latest version of Limnal Corporation's digital companion, developed in CODE
MEDIUMletta/streaming_utils.py268 # Not in message yet: accumulate until we see '<json_key>': (robust to split fragments)COMMENT
MEDIUMletta/agent.py1740 # If it exists in the input message, elevate it to the 'message' levelCOMMENT
LOWletta/agent.py950 # Fallback if for some reason context_window is missing, just set to the defaultCOMMENT
LOWletta/agent.py1134 # Fallback if for some reason context_window is missing, just set to the defaultCOMMENT
MEDIUMletta/agent.py314 """Get response from LLM API with robust retry mechanism."""STRING
LOWletta/serialize_schemas/marshmallow_agent.py117 # no user messages, just return system messageCOMMENT
LOWletta/serialize_schemas/marshmallow_agent.py152 # no user messages, just return system messageCOMMENT
MEDIUMletta/agents/letta_agent_v3.py1238 # NOTE: we no longer refresh the system prompt before compaction so we can leverage cachCOMMENT
MEDIUMletta/agents/letta_agent_v3.py1461 # NOTE: we no longer refresh the system prompt before compaction so we can leverage cache for self mCOMMENT
MEDIUMletta/server/rest_api/interface.py307 # To make streamed arguments robust, we add a JSON-aware incrementalCOMMENT
LOWletta/server/rest_api/interface.py1120 # Example where we just pass through the raw stream from the underlying OpenAI SSE streamCOMMENT
LOWletta/server/rest_api/auth_token.py15 # user is admin so we just return the default uuidCOMMENT
LOWletta/server/rest_api/routers/v1/tools.py557 # TODO: don't do this in the future (just return MCPServer)COMMENT
LOWletta/server/rest_api/routers/v1/tools.py612 # TODO: don't do this in the future (just return MCPServer)COMMENT
LOWletta/schemas/sandbox_config.py45 # If `data` is not a dict (e.g., it's another Pydantic model), just return itCOMMENT
LOWletta/schemas/sandbox_config.py73 # If `data` is not a dict (e.g., it's another Pydantic model), just return itCOMMENT
LOWletta/schemas/message.py641 # TODO remove the cast and just return the native typeCOMMENT
LOWletta/schemas/message.py728 # If assistant mode is off, just create one ToolCallMessage with all tool callsCOMMENT
LOWletta/schemas/providers/anthropic.py138 # just use a cheap model to count some tokens - as of 5/7/2025 this is faster than fetching the list of modeCOMMENT
LOWletta/schemas/providers/base.py96 # Simplified asyncio handling - just use asyncio.run()COMMENT
LOWletta/schemas/providers/base.py120 # Simplified asyncio handling - just use asyncio.run()COMMENT
LOWletta/functions/typescript_parser.py180 # Handle union types (simplified - just use string)COMMENT
LOWletta/functions/mcp_client/types.py94 # If the result still contains unreplaced templates, just return original valueCOMMENT
MEDIUMletta/orm/sqlalchemy_base.py278 # TODO (cliandy): can make this more robust down the lineCOMMENT
MEDIUMletta/llm_api/openai_client.py574 # don't raise error since this isn't robust against edge casesCOMMENT
LOWletta/llm_api/openai_client.py646 # For text or json_object, just pass the typeCOMMENT
MEDIUMletta/services/mcp_manager.py1130 # TODO: @jnjpng make this check more robust and remove direct os.getenvCOMMENT
MEDIUMletta/services/mcp_server_manager.py1326 # TODO: @jnjpng make this check more robust and remove direct os.getenvCOMMENT
MEDIUMletta/services/tool_sandbox/modal_sandbox_v2.py418 # Start with a more robust base image with development toolsCOMMENT
LOWletta/interfaces/anthropic_streaming_interface.py150 # This interface doesn't track cache tokens, so we just use the raw valuesCOMMENT
LOWletta/interfaces/anthropic_streaming_interface.py702 # This interface doesn't track cache tokens, so we just use the raw valuesCOMMENT
MEDIUMletta/interfaces/openai_streaming_interface.py476 # Minimal, robust extraction: only emit the value of "message".COMMENT
Over-Commented Block161 hits · 108 pts
SeverityFileLineSnippetContext
LOWconf.yaml1# Letta Configuration FileCOMMENT
LOWconf.yaml161 # Letta Client (LETTA_DEFAULT_*)COMMENT
LOWconf.yaml281 # api_key: ""COMMENT
LOWconf.yaml301COMMENT
LOWconf.yaml321 # sglang:COMMENT
LOWconf.yaml341 # sandbox_template_id: ""COMMENT
LOWconf.yaml361COMMENT
LOWconf.yaml381# health_metrics_enabled: falseCOMMENT
LOWconf.yaml401#COMMENT
LOWalembic.ini1# A generic, single database configuration.COMMENT
LOWalembic.ini21# Any required deps can installed by adding `alembic[tz]` to the pip requirementsCOMMENT
LOWalembic.ini41# The path separator used here should be the separator specified by "version_path_separator" below.COMMENT
LOWalembic.ini61# output_encoding = utf-8COMMENT
LOWtests/locust_test.py81 # response = requests.post(f"{self.base_url}/api/agents/{agent_id}/messages", json=request.model_dump(), headCOMMENT
LOWtests/locust_test.py101 # try:COMMENT
LOWtests/test_crypto_utils.py421 This simulates the real-world scenario of existing encrypted valuesCOMMENT
LOWtests/integration_test_async_tool_sandbox.py41COMMENT
LOWtests/integration_test_send_message.py1901 assert_greeting_with_assistant_message_response(messages_from_db, model_handle, model_settings, from_db=True)COMMENT
LOWtests/integration_test_send_message.py1921 # client.agents.update(agent_id=agent_state.id, model=model_handle, model_settings=model_settings)COMMENT
LOWtests/integration_test_send_message.py2281# # ids=[c.model for c in TESTED_LLM_CONFIGS],COMMENT
LOWtests/integration_test_send_message.py2301# # Verify the job was createdCOMMENT
LOWtests/integration_test_send_message.py2321# def test_job_cancellation_endpoint_validation(COMMENT
LOWtests/integration_test_send_message.py2341# disable_e2b_api_key: Any,COMMENT
LOWtests/integration_test_send_message.py2361# # Try to cancel the completed job - should failCOMMENT
LOWtests/integration_test_send_message.py2381# This verifies that jobs continue even if the client "disconnects" (simulated by not consuming the stream).COMMENT
LOWtests/integration_test_send_message.py2401# )COMMENT
LOWtests/integration_test_send_message.py2561COMMENT
LOWtests/integration_test_summarizer.py41COMMENT
LOWtests/integration_test_summarizer.py581# TESTED_LLM_CONFIGS,COMMENT
LOWtests/integration_test_summarizer.py601# content=[COMMENT
LOWtests/integration_test_summarizer.py621# ],COMMENT
LOWtests/integration_test_summarizer.py641# # Find tool return messages in the result and verify truncation occurredCOMMENT
LOWtests/integration_test_summarizer.py1301 )COMMENT
LOWtests/integration_test_summarizer.py1321# """COMMENT
LOWtests/integration_test_summarizer.py1341# agent_state = await server.agent_manager.create_agent_async(agent_create, actor=actor)COMMENT
LOWtests/integration_test_summarizer.py1361# )COMMENT
LOWtests/integration_test_summarizer.py1381# # Reload agent state after repairsCOMMENT
LOWtests/integration_test_summarizer.py1401# # Verify we got a valid response after repairCOMMENT
LOWtests/integration_test_summarizer.py1421# from unittest.mock import patchCOMMENT
LOWtests/integration_test_summarizer.py1441# messages.append(COMMENT
LOWtests/integration_test_summarizer.py1461# id=test_run_id,COMMENT
LOWtests/integration_test_summarizer.py1481# from unittest.mock import MagicMockCOMMENT
LOWtests/integration_test_summarizer.py1501# response=mock_response,COMMENT
LOWtests/integration_test_summarizer.py1521# stream_tokens=True,COMMENT
LOWtests/integration_test_summarizer.py1541# # Verify a summary message exists with the correct formatCOMMENT
LOWtests/integration_test_summarizer.py1561# if "prior messages" in text_to_check and "hidden" in text_to_check and "summary of the previous" inCOMMENT
LOWtests/integration_test_summarizer.py1581# # Verify we attempted multiple invocations (the failing one + retry after summarization)COMMENT
LOWtests/integration_test_summarizer.py1601# Note: This test only runs with OpenAI since it uses OpenAI-specific error handling.COMMENT
LOWtests/integration_test_summarizer.py1621# content=[TextContent(type="text", text=f"User message {i}: This is test message number {i}.")],COMMENT
LOWtests/integration_test_summarizer.py1641# run_manager = RunManager()COMMENT
LOWtests/integration_test_summarizer.py1661# if call_count == 1:COMMENT
LOWtests/integration_test_summarizer.py1681# message="This model's maximum context length is 8000 tokens. However, your messages resulted in 12000 tCOMMENT
LOWtests/integration_test_summarizer.py1701# run_id=test_run_id,COMMENT
LOWtests/integration_test_summarizer.py1721# # "prior messages ... have been hidden" and "summary of the previous"COMMENT
LOWtests/integration_test_summarizer.py1741# summary_message_text = parsed.get("message")COMMENT
LOWtests/test_providers.py261 assert len(embedding_models) == 0 # embedding models currently not supported by SGLangCOMMENT
LOWtests/integration_test_agent_tool_graph.py861 # Check orderCOMMENT
LOWtests/integration_test_agent_tool_graph.py881# -- flip_coinCOMMENT
LOWtests/integration_test_agent_tool_graph.py901# child_output_mapping={COMMENT
LOWtests/integration_test_agent_tool_graph.py921# found_secret_word = FalseCOMMENT
101 more matches not shown…
Cross-Language Confusion18 hits · 105 pts
SeverityFileLineSnippetContext
HIGH…/integration_test_typescript_tool_execution_sandbox.py595 assert "let client: any = null;" in scriptCODE
HIGH…/integration_test_typescript_tool_execution_sandbox.py615 result, agent_state = parse_typescript_result('{"results": 42, "agent_state": null}')CODE
HIGHtests/managers/test_message_manager.py1087 arguments='{"message": {"status": "success", "data": {"count": 42, "items": ["a", "b"]}, "meta": null}}'CODE
HIGHletta/streaming_utils.py106 # numbers, null, or a nested object/array) streamed in next, the streamCOMMENT
HIGHletta/local_llm/json_parser.py63 - if (function call is not send_message && prev message['role'] == user): insert heartbeatSTRING
HIGHletta/server/rest_api/routers/v1/groups.py168 include_return_message_types: Optional[List[MessageType]] = Query(None, description="Message types to include in resCODE
HIGHletta/server/rest_api/routers/v1/agents.py1601 include_return_message_types: Optional[List[MessageType]] = Query(None, description="Message types to include in resCODE
HIGHletta/server/rest_api/routers/v1/messages.py46 None, description="Message types to include in response. When null, all message types are returned."CODE
HIGHletta/server/rest_api/routers/v1/conversations.py214 include_return_message_types: Optional[List[MessageType]] = Query(None, description="Message types to include in resCODE
HIGHletta/schemas/providers.py283 # "param": null,COMMENT
HIGHletta/schemas/providers/openai.py184 # "param": null,COMMENT
HIGHletta/functions/schema_validator.py173 # They represent union types (e.g., string | null)COMMENT
HIGHletta/functions/helpers.py288 # If we have exactly one type and null, make it OptionalCOMMENT
HIGHletta/llm_api/helpers.py39 # If it's simple primitives only (string, null, integer, boolean, etc), flatten to type arrayCOMMENT
HIGHletta/services/mcp_server_manager.py9from sqlalchemy import delete, desc, null, selectCODE
HIGHletta/services/tool_sandbox/typescript_generator.py140 "let client: any = null;",CODE
HIGHletta/services/tool_sandbox/typescript_generator.py209 lines.append("const _output = { results: _result, agent_state: null };")CODE
HIGHletta/services/provider_trace_backends/clickhouse.py96 # OpenAI Responses API returns {"error": null} on successCOMMENT
AI Structural Patterns126 hits · 97 pts
SeverityFileLineSnippetContext
LOWtests/test_agent_serialization_v2.py184CODE
LOWtests/sdk/conftest.py256CODE
LOWletta/database_utils.py43CODE
LOWletta/agent.py300CODE
LOWletta/agent.py857CODE
LOWletta/local_llm/chat_completion_proxy.py33CODE
LOWletta/local_llm/grammars/gbnf_grammar_generator.py1014CODE
LOWletta/local_llm/grammars/gbnf_grammar_generator.py1050CODE
LOW…m/llm_chat_completion_wrappers/configurable_wrapper.py11CODE
LOWletta/local_llm/llm_chat_completion_wrappers/chatml.py32CODE
LOWletta/local_llm/llm_chat_completion_wrappers/llama3.py31CODE
LOWletta/agents/letta_agent.py83CODE
LOWletta/agents/letta_agent.py1714CODE
LOWletta/agents/base_agent_v2.py51CODE
LOWletta/agents/base_agent_v2.py76CODE
LOWletta/agents/letta_agent_v2.py191CODE
LOWletta/agents/letta_agent_v2.py300CODE
LOWletta/agents/letta_agent_v2.py1062CODE
LOWletta/agents/letta_agent_v3.py222CODE
LOWletta/agents/letta_agent_v3.py444CODE
LOWletta/agents/letta_agent_v3.py895CODE
LOWletta/agents/letta_agent_v3.py1595CODE
LOWletta/agents/letta_agent_v3.py2077CODE
LOWletta/server/server.py894CODE
LOWletta/server/server.py936CODE
LOWletta/server/server.py986CODE
LOWletta/server/rest_api/utils.py382CODE
LOWletta/server/rest_api/dependencies.py38CODE
LOWletta/server/rest_api/routers/v1/steps.py22CODE
LOWletta/server/rest_api/routers/v1/tags.py15CODE
LOWletta/server/rest_api/routers/v1/tools.py63CODE
LOWletta/server/rest_api/routers/v1/tools.py171CODE
LOWletta/server/rest_api/routers/v1/tools.py476CODE
LOWletta/server/rest_api/routers/v1/internal_runs.py30CODE
LOWletta/server/rest_api/routers/v1/archives.py91CODE
LOWletta/server/rest_api/routers/v1/groups.py18CODE
LOWletta/server/rest_api/routers/v1/groups.py150CODE
LOWletta/server/rest_api/routers/v1/identities.py26CODE
LOWletta/server/rest_api/routers/v1/identities.py158CODE
LOWletta/server/rest_api/routers/v1/agents.py125CODE
LOWletta/server/rest_api/routers/v1/agents.py218CODE
LOWletta/server/rest_api/routers/v1/agents.py296CODE
LOWletta/server/rest_api/routers/v1/agents.py415CODE
LOWletta/server/rest_api/routers/v1/agents.py465CODE
LOWletta/server/rest_api/routers/v1/agents.py1142CODE
LOWletta/server/rest_api/routers/v1/agents.py1510CODE
LOWletta/server/rest_api/routers/v1/agents.py1579CODE
LOWletta/server/rest_api/routers/v1/agents.py2348CODE
LOWletta/server/rest_api/routers/v1/mcp_servers.py212CODE
LOWletta/server/rest_api/routers/v1/jobs.py17CODE
LOWletta/server/rest_api/routers/v1/providers.py18CODE
LOWletta/server/rest_api/routers/v1/messages.py31CODE
LOWletta/server/rest_api/routers/v1/messages.py211CODE
LOWletta/server/rest_api/routers/v1/internal_blocks.py27CODE
LOWletta/server/rest_api/routers/v1/internal_blocks.py125CODE
LOWletta/server/rest_api/routers/v1/folders.py119CODE
LOWletta/server/rest_api/routers/v1/folders.py441CODE
LOWletta/server/rest_api/routers/v1/blocks.py28CODE
LOWletta/server/rest_api/routers/v1/blocks.py112CODE
LOWletta/server/rest_api/routers/v1/blocks.py192CODE
66 more matches not shown…
Modern Structural Boilerplate51 hits · 59 pts
SeverityFileLineSnippetContext
LOWtests/integration_test_send_message.py35logger = logging.getLogger(__name__)CODE
LOWtests/mcp_test.py36 async def set_tokens(self, tokens: OAuthToken) -> None:CODE
LOWtests/mcp_test.py42 async def set_client_info(self, client_info: OAuthClientInformationFull) -> None:CODE
LOWtests/integration_test_override_model.py24logger = logging.getLogger(__name__)CODE
LOWtests/integration_test_usage_tracking.py32logger = logging.getLogger(__name__)CODE
LOWtests/integration_test_human_in_the_loop.py12logger = logging.getLogger(__name__)CODE
LOWtests/integration_test_send_message_v2.py27logger = logging.getLogger(__name__)CODE
LOWtests/integration_test_conversations_sdk.py15logger = logging.getLogger(__name__)CODE
LOWtests/test_prompt_caching.py28logger = logging.getLogger(__name__)CODE
LOWtests/helpers/endpoints_helper.py12logger = logging.getLogger(__name__)CODE
LOWletta/log_context.py7def set_log_context(key: str, value: Any) -> None:CODE
LOWletta/log_context.py24def update_log_context(**kwargs: Any) -> None:CODE
LOWletta/types/__init__.py7__all__ = ["JsonDict", "JsonValue"]CODE
LOWletta/agents/letta_agent.py894 async def _update_agent_last_run_metrics(self, completion_time: datetime, duration_ms: float) -> None:CODE
LOWletta/agents/letta_agent_v2.py1464 async def _update_agent_last_run_metrics(self, completion_time: datetime, duration_ms: float) -> None:CODE
LOWletta/agents/letta_agent_batch.py386 async def _update_request_statuses_async(self, updates: List[RequestStatusUpdateInfo]) -> None:CODE
LOWletta/server/rest_api/routers/v1/git_http.py54def set_server_instance(server) -> None:CODE
LOWletta/server/rest_api/middleware/__init__.py5__all__ = ["CheckPasswordMiddleware", "LoggingMiddleware", "RequestIdMiddleware"]CODE
LOWletta/otel/db_pool_monitoring.py37 def _setup_pool_listeners(self, pool: Pool, engine_name: str, pool_mode: str) -> None:CODE
LOWletta/otel/sqlalchemy_instrumentation_integration.py21logger = logging.getLogger(__name__)CODE
LOWletta/schemas/tool_rule.py10logger = logging.getLogger(__name__)CODE
LOWletta/schemas/mcp.py8logger = logging.getLogger(__name__)CODE
LOWletta/schemas/mcp.py94 def set_token_secret(self, secret: Secret) -> None:CODE
LOWletta/schemas/mcp.py98 def set_custom_headers_secret(self, secret: Secret) -> None:CODE
LOWletta/schemas/mcp_server.py207 def set_access_token_secret(self, secret: Secret) -> None:CODE
LOWletta/schemas/mcp_server.py211 def set_refresh_token_secret(self, secret: Secret) -> None:CODE
LOWletta/schemas/mcp_server.py215 def set_client_secret_secret(self, secret: Secret) -> None:CODE
LOWletta/schemas/mcp_server.py219 def set_authorization_code_secret(self, secret: Secret) -> None:CODE
LOWletta/schemas/providers/chatgpt_oauth.py264 async def _update_stored_credentials(self, creds: ChatGPTOAuthCredentials, actor: Optional["User"] = None) -> None:CODE
LOWletta/schemas/providers/__init__.py27__all__ = [CODE
LOWletta/prompts/system_prompts/__init__.py29__all__ = ["SYSTEM_PROMPTS"]CODE
LOWletta/orm/base.py20 def set_updated_at(self, timestamp: Optional[datetime] = None) -> None:CODE
LOWletta/orm/base.py30 def _set_created_and_updated_by_fields(self, actor_id: str) -> None:CODE
LOWletta/monitoring/__init__.py5__all__ = [CODE
LOWletta/llm_api/openai_ws_session.py30logger = logging.getLogger(__name__)CODE
LOWletta/llm_api/baseten_client.py16logger = logging.getLogger(__name__)CODE
LOWletta/helpers/tpuf_client.py25logger = logging.getLogger(__name__)CODE
LOWletta/services/provider_manager.py244 async def update_provider_last_synced_async(self, provider_id: str, actor: Optional[PydanticUser] = None) -> None:CODE
LOWletta/services/webhook_service.py6logger = logging.getLogger(__name__)CODE
LOWletta/services/sandbox_credentials_service.py9logger = logging.getLogger(__name__)CODE
LOWletta/services/credit_verification_service.py8logger = logging.getLogger(__name__)CODE
LOWletta/services/lettuce/__init__.py6__all__ = ["LettuceClient"]CODE
LOWletta/services/llm_router/__init__.py15__all__ = [CODE
LOWletta/services/memory_repo/__init__.py12__all__ = [CODE
LOWletta/services/memory_repo/storage/__init__.py6__all__ = [CODE
LOWletta/services/mcp/oauth_utils.py56 async def set_tokens(self, tokens: OAuthToken) -> None:CODE
LOWletta/services/mcp/oauth_utils.py83 async def set_client_info(self, client_info: OAuthClientInformationFull) -> None:CODE
LOWletta/services/mcp/oauth_utils.py139 async def update_session_status(self, status: OAuthSessionStatus) -> None:CODE
LOWletta/services/mcp/oauth_utils.py179 async def set_authorization_url(self, url: str) -> None:CODE
LOWletta/services/provider_trace_backends/__init__.py15__all__ = [CODE
LOW…erfaces/openai_chat_completions_streaming_interface.py74 def _update_tool_call_info(self, tool_call: Any) -> None:CODE
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALletta/orm/sqlalchemy_base.py270 query = query.join(cls.identities).filter(cls.identities.property.mapper.class_.identifier_key.in_(identifieCODE
CRITICALletta/jobs/llm_batch_job_polling.py55 response = await server.anthropic_async_client.beta.messages.batches.retrieve(batch_id_str)CODE
CRITICALletta/jobs/llm_batch_job_polling.py80 results = await server.anthropic_async_client.beta.messages.batches.results(batch_resp_id)CODE
CRITICALletta/services/block_manager.py404 BlockModel.identities.property.mapper.class_.identifier_key.in_(identifier_keys)CODE
Synthetic Comment Markers4 hits · 25 pts
SeverityFileLineSnippetContext
HIGHletta/services/tool_sandbox/local_sandbox.py149 print(f"Auto-generated code for debugging:\n\n{code}")CODE
HIGHletta/services/tool_executor/tool_execution_sandbox.py49 # This is the variable name in the auto-generated code that contains the function resultsCOMMENT
HIGHletta/services/tool_executor/tool_execution_sandbox.py167 logger.error(f"Logging out tool {self.tool_name} auto-generated code for debugging: \n\n{code}")CODE
HIGHletta/services/tool_executor/tool_execution_sandbox.py233 logger.debug(f"Tool {self.tool_name} auto-generated code for debugging: \n\n{code}")CODE
Overly Generic Function Names20 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/test_modal_sandbox_v2.py338def test_function(x: int, y: int) -> int:CODE
LOWtests/test_modal_sandbox_v2.py395 mock_tool.source_code = "def test_function(x, y): return x * y"CODE
LOWtests/test_modal_sandbox_v2.py408 mock_tool.source_code = "def test_function(x, y): return x + y" # ResetCODE
LOWtests/test_utils.py92def my_function(a: int, b: float, c: str, d: list, e: dict, f: CustomClass = None):CODE
LOWtests/conftest.py111 def test_function(e2b_sandbox_mode, ...):STRING
LOWtests/conftest.py177 def test_function(turbopuffer_mode, ...):STRING
LOWtests/test_sdk_client.py1722# def main_function(x: int, y: int) -> int:COMMENT
LOWtests/test_sdk_client.py1752# def process_data(data: str, count: int) -> str:COMMENT
LOWtests/test_sdk_client.py1639 def main_function(x: int, y: int) -> int:STRING
LOWtests/managers/test_tool_manager.py1805def test_function(arg1: str) -> str:CODE
LOWtests/managers/test_tool_manager.py1834def test_function(arg1: str, arg2: int) -> str:CODE
LOWtests/managers/test_tool_manager.py1870def test_function(arg1: str, arg2: int = 5) -> str:CODE
LOWtests/managers/test_tool_manager.py1903def test_function(old_arg: str) -> str:CODE
LOWtests/managers/test_tool_manager.py1938def test_function():CODE
LOWtests/managers/test_tool_manager.py1957def test_function(arg1: str) -> str:CODE
LOWtests/managers/test_tool_manager.py1986def test_function() -> str:CODE
LOWtests/managers/test_tool_manager.py2019def test_function() -> str:CODE
LOWtests/managers/test_tool_manager.py2034def test_function(new_arg: str) -> str:CODE
LOWtests/managers/test_tool_manager.py2067 source_code="def test_function(): pass",CODE
LOWletta/validators.py136 def my_function(agent_id: str, folder_id: str):STRING
TODO Padding7 hits · 11 pts
SeverityFileLineSnippetContext
LOWletta/server/rest_api/routers/v1/zai.py114 # TODO: Add caching layer to avoid duplicate memory searchesCOMMENT
LOWletta/server/rest_api/routers/v1/anthropic.py118 # TODO: Add caching layer to avoid duplicate memory searchesCOMMENT
LOWletta/schemas/model.py227 # TODO: implement support for thisCOMMENT
LOWletta/schemas/model.py244 # TODO: implement support for theseCOMMENT
LOWletta/schemas/model.py316 # TODO: implement support for theseCOMMENT
LOWletta/services/block_manager.py833 # TODO: implement for asyncCOMMENT
LOWletta/services/helpers/agent_manager_helper.py588 # TODO: add tests to check if this works for ascending order but nulls are stil last?COMMENT
Dead Code5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMtests/managers/test_cancellation.py1504CODE
MEDIUMtests/managers/test_cancellation.py1576CODE
MEDIUMtests/managers/test_cancellation.py1629CODE
MEDIUMtests/managers/test_cancellation.py1681CODE
MEDIUMtests/managers/test_cancellation.py1733CODE
Slop Phrases5 hits · 9 pts
SeverityFileLineSnippetContext
LOWletta/local_llm/llm_chat_completion_wrappers/chatml.py24# Don't forget to use send_message, otherwise the user won't see your message"""COMMENT
LOWletta/local_llm/llm_chat_completion_wrappers/llama3.py23# Don't forget to use send_message, otherwise the user won't see your message"""COMMENT
LOWletta/server/server.py1847 # Write out the file, and make sure to in include the top-level mcpConfig (wrapped to avoid blocking event loop)COMMENT
LOWletta/server/server.py1891 # Write out the file, and make sure to in include the top-level mcpConfig (wrapped to avoid blocking event loop)COMMENT
LOWletta/llm_api/anthropic_client.py973 # make sure to check for overflow errors, regardless of error typeCOMMENT
Fake / Example Data9 hits · 8 pts
SeverityFileLineSnippetContext
LOW…/integration_test_typescript_tool_execution_sandbox.py425 assert result.func_return == "John Doe"CODE
LOWtests/sdk/mcp_servers_test.py1072 "content": 'Use the create_person tool to create a person named "John Doe", age 30, 'CODE
LOWtests/sdk/mcp_servers_test.py1073 'email "john@example.com", with address at "123 Main St", city "New York", zip "10001".',CODE
LOWtests/sdk/mcp_servers_test.py1089 assert "John Doe" in person_return.tool_return, "Expected person name in response"CODE
LOWtests/data/api_server.go360 userService.CreateUser("John Doe", "john@example.com")CODE
LOWtests/data/test.md781. Lorem ipsum dolor sit ametCODE
LOWtests/data/test.md781. Lorem ipsum dolor sit ametCODE
LOWscripts/migrate_tools.py10 fake_user = User(id="user-00000000-0000-4000-8000-000000000000", name="fake", organization_id=org.id)CODE
LOWscripts/migrate_tools.py12 ToolManager().upsert_base_tools(actor=fake_user)CODE