Repository Analysis

TracecatHQ/tracecat

Open-source security automation platform for teams and AI agents

16.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of TracecatHQ/tracecat, a Python project with 3,730 GitHub stars. SynthScan v2.0 examined 813,543 lines of code across 3053 source files, recording 11034 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 16.3 places this repository in the Moderate 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).

16.3
Adjusted Score
16.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
3.7K
Stars
Python
Language
813.5K
Lines of Code
3.1K
Files
11.0K
Pattern Hits
2026-07-14
Scan Date
0.08
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 3HIGH 247MEDIUM 958LOW 9826

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 11034 distinct pattern matches across 25 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 Identifiers7525 hits · 6656 pts
SeverityFileLineSnippetContext
LOWfrontend/tests/memo-render-count.test.tsx106function makeCompletedToolMessages(toolInput: unknown, toolOutput: unknown) {CODE
LOWfrontend/tests/org-vcs-github-manual-form.test.tsx37function installDeferredFileReader() {CODE
LOWfrontend/tests/use-chat.test.tsx57function createSessionReadWithMessages(CODE
LOWfrontend/tests/smoke/utils/auth.ts87export async function createOrganizationInvitation(CODE
LOWfrontend/src/types/workspace-chat-artifacts.ts231export function parseWorkspaceChatArtifactStreamPart(CODE
LOW…rc/app/organization/settings/service-accounts/page.tsx11export default function OrganizationServiceAccountsPage() {CODE
LOW…src/app/organization/settings/custom-registry/page.tsx10export default function CustomRegistrySettingsPage() {CODE
LOWfrontend/src/app/admin/registry/settings/page.tsx5export default function AdminRegistrySettingsPage() {CODE
LOWfrontend/src/app/admin/registry/versions/page.tsx5export default function AdminRegistryVersionsPage() {CODE
LOW…kspaceId]/workflows/[workflowId]/executions/layout.tsx49function WorkflowExecutionsPanelGroup({CODE
LOW…src/app/workspaces/[workspaceId]/integrations/page.tsx83function getIntegrationDisplayType(CODE
LOW…p/workspaces/[workspaceId]/service-accounts/layout.tsx7export default function WorkspaceServiceAccountsLayout({CODE
LOW…app/workspaces/[workspaceId]/service-accounts/page.tsx7export default function WorkspaceServiceAccountsPage() {CODE
LOW…/src/app/workspaces/[workspaceId]/mcp-servers/page.tsx90function connectionSpecFromIntegration(CODE
LOW…/src/app/workspaces/[workspaceId]/mcp-servers/page.tsx143function workspaceIntegrationToCatalogEntry(CODE
LOW…/src/app/workspaces/[workspaceId]/mcp-servers/page.tsx174function workspaceIntegrationMatches(CODE
LOW…/src/app/workspaces/[workspaceId]/mcp-servers/page.tsx219function isCatalogEntryConnectable(entry: PlatformMCPCatalogRead) {CODE
LOWfrontend/src/providers/builder.tsx51function readPersistedSelectedNode({CODE
LOWfrontend/src/providers/builder.tsx73function writePersistedSelectedNode({CODE
LOWfrontend/src/components/error-boundaries.tsx159export function WorkflowBuilderErrorBoundary({CODE
LOWfrontend/src/components/error-boundaries.tsx180export function TemplatePillErrorBoundary({CODE
LOWfrontend/src/components/mcp-catalog-icons.tsx8function createEmbeddedCatalogIcon(href: string) {CODE
LOWfrontend/src/components/dynamic-lucide-icon.tsx7function buildLegacyIconCandidates(rawName: string): string[] {CODE
LOWfrontend/src/components/provider-config-form.tsx574export function ProviderConfigFormSkeleton() {CODE
LOWfrontend/src/components/icons.tsx284function createCatalogIconRenderer(CODE
LOWfrontend/src/components/icons.tsx297function createColoredLucideRenderer(Icon: LucideIcon, colorClassName: string) {CODE
LOW…nd/src/components/entitlement-required-empty-state.tsx25export function EntitlementRequiredEmptyState({CODE
LOW…ntend/src/components/service-account-json-uploader.tsx28export function ServiceAccountJsonUploader({CODE
LOW…d/src/components/organization/workspace-mcp-access.tsx103function getDefaultCustomExpiration(): string {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2444 function handleProviderCredentialsSaved() {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2454 function handleOpenAddCatalogModel(providerSlug: string) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2461 function handleOpenEditCatalogModel(model: BuiltInCatalogEntry) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx257function buildCloudCatalogDefaults(CODE
LOW…end/src/components/organization/org-settings-agent.tsx304function buildCatalogCreatePayload(CODE
LOW…end/src/components/organization/org-settings-agent.tsx350function buildCatalogUpdatePayload(values: CloudCatalogModelFormValues) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx571function getCustomSourceFlavorLabel(flavor?: string | null): string | null {CODE
LOW…end/src/components/organization/org-settings-agent.tsx634function getCustomSourceModelTitle(CODE
LOW…end/src/components/organization/org-settings-agent.tsx684function canEnableBuiltInCatalogModel(model: BuiltInCatalogEntry): boolean {CODE
LOW…end/src/components/organization/org-settings-agent.tsx716function getProviderDialogDefaults(CODE
LOW…end/src/components/organization/org-settings-agent.tsx732function buildProviderCreatePayload(CODE
LOW…end/src/components/organization/org-settings-agent.tsx745function buildProviderUpdatePayload(CODE
LOW…end/src/components/organization/org-settings-agent.tsx1156function ProviderAllowlistModelRow({CODE
LOW…end/src/components/organization/org-settings-agent.tsx2173 function invalidateOrganizationAgentQueries() {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2185 function invalidateBuiltInAgentQueries() {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2279 async function handleDeleteBuiltInCredentials(CODE
LOW…end/src/components/organization/org-settings-agent.tsx2338 async function handleEnableAllProviderModels(CODE
LOW…end/src/components/organization/org-settings-agent.tsx2373 async function handleDisableAllProviderModels(CODE
LOW…end/src/components/organization/org-settings-agent.tsx2409 async function handleRefreshCustomProvider(source: CustomSourceCard) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2427 async function handleDeleteCustomProvider(provider: AgentCustomProviderRead) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2475 function handleOpenDeleteCatalogModel(model: BuiltInCatalogEntry) {CODE
LOW…end/src/components/organization/org-settings-agent.tsx2483 async function handleConfirmDeleteCatalogEntry(entry: AgentCatalogRead) {CODE
LOW…end/src/components/organization/org-settings-audit.tsx216function normalizePayloadAttribute(value: string | null | undefined): string {CODE
LOW…mponents/organization/org-settings-custom-registry.tsx45export function OrgSettingsCustomRegistryForm() {CODE
LOW…mponents/organization/org-agent-credentials-dialog.tsx54function getCredentialLayoutSections(CODE
LOW…ponents/organization/org-settings-service-accounts.tsx18export function OrgSettingsServiceAccounts() {CODE
LOW…c/components/organization/service-accounts-manager.tsx291function matchesServiceAccountStatusFilter(CODE
LOW…c/components/organization/service-accounts-manager.tsx313function matchesServiceAccountSearchQuery(CODE
LOW…c/components/organization/service-accounts-manager.tsx415function ServiceAccountDetailPanel({CODE
LOW…rc/components/organization/org-settings-agent-utils.ts15export function getAgentCatalogSourceName(CODE
LOW…tend/src/components/organization/org-secret-delete.tsx18export function DeleteOrgSecretAlertDialog({CODE
7465 more matches not shown…
Decorative Section Separators663 hits · 2224 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/src/components/skills/use-skills-studio.ts188 // ── State ──────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts216 // ── Data fetching ──────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts258 // ── Derived ────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts285 // ── Effects ────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts314 // ── Stable callbacks ────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts335 // ── Handlers ───────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/skills/use-skills-studio.ts786 // ── Return ─────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/lib/hooks.tsx6167// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/lib/hooks.tsx6169// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/conftest.py223# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py225# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py238# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py240# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py1925# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py1928# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py2042# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py2044# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py115# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py117# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py484# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py486# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py2210# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py2212# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py2700# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py2702# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py343# =============================================================================COMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py345# =============================================================================COMMENT
MEDIUMtests/temporal/test_agent_config_workflow_boundary.py217# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/temporal/test_agent_config_workflow_boundary.py227# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py23# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py25# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py60# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py62# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py88# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py171# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_deduplicate.py173# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/test_registry_repository.py81# =============================================================================COMMENT
MEDIUMtests/unit/test_registry_repository.py83# =============================================================================COMMENT
MEDIUMtests/unit/test_registry_repository.py255# =============================================================================COMMENT
MEDIUMtests/unit/test_registry_repository.py257# =============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py43# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py45# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py53# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py55# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py134# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py136# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py230# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py232# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py472# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py474# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py553# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py555# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py588# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py590# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py639# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py641# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py26# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py28# ==============================================================================COMMENT
MEDIUMtests/unit/test_claude_adapter.py74# ==============================================================================COMMENT
603 more matches not shown…
Unused Imports886 hits · 847 pts
SeverityFileLineSnippetContext
LOWtests/_route_utils.py16CODE
LOWtests/shared.py3CODE
LOWtests/temporal/test_payload_encryption.py3CODE
LOWtests/temporal/test_agent_config_sandbox_parity.py3CODE
LOWtests/temporal/test_workflow_concurrency_limits.py8CODE
LOWtests/temporal/test_agent_config_workflow_boundary.py9CODE
LOWtests/temporal/test_large_collection_regressions.py10CODE
LOWtests/unit/test_agent_session_search_attributes.py3CODE
LOWtests/unit/test_workspace_sync_service.py3CODE
LOWtests/unit/test_saml_client_config.py1CODE
LOWtests/unit/test_deduplicate.py9CODE
LOWtests/unit/test_executor_template_actions.py7CODE
LOWtests/unit/test_watchtower_service.py1CODE
LOWtests/unit/test_service_accounts_update.py1CODE
LOWtests/unit/test_agent_factory.py1CODE
LOWtests/unit/test_agent_llm_proxy.py1CODE
LOWtests/unit/test_registry_repository.py1CODE
LOWtests/unit/test_dynamic_workspace_service_rls.py1CODE
LOWtests/unit/test_agent_mcp_proxy_server.py1CODE
LOWtests/unit/test_admin_users_service.py3CODE
LOWtests/unit/test_registry_repositories_service.py3CODE
LOWtests/unit/test_registry_artifact_keys.py3CODE
LOWtests/unit/test_agent_session_approval_sink.py1CODE
LOWtests/unit/conftest.py1CODE
LOWtests/unit/test_mcp_config.py1CODE
LOWtests/unit/test_agent_sandbox_entrypoint.py1CODE
LOWtests/unit/test_temporal_codec.py1CODE
LOWtests/unit/test_role_acl.py1CODE
LOWtests/unit/test_dsl_workflow_logging.py1CODE
LOWtests/unit/test_mcp_auth.py1CODE
LOWtests/unit/test_workflow_execution_object_resolution.py1CODE
LOWtests/unit/test_tier_limits_cache.py1CODE
LOWtests/unit/test_rbac_service.py3CODE
LOWtests/unit/test_slack_helpers.py1CODE
LOWtests/unit/test_dsl_workflow_concurrency.py1CODE
LOWtests/unit/test_rbac_scopes.py3CODE
LOWtests/unit/test_dsl_validation.py1CODE
LOWtests/unit/test_mcp_json_patch.py1CODE
LOWtests/unit/test_workflow_execution_schemas.py1CODE
LOWtests/unit/test_stdio_probe_nsjail.py3CODE
LOWtests/unit/test_inbox_service.py1CODE
LOWtests/unit/test_tenant_rls_registry.py1CODE
LOWtests/unit/test_registry_sync_runner.py1CODE
LOWtests/unit/test_mcp_server.py1CODE
LOWtests/unit/test_agent_nsjail.py1CODE
LOWtests/unit/test_sandbox_networking.py1CODE
LOWtests/unit/test_agent_sandbox_litellm.py1CODE
LOWtests/unit/test_executor_token_service_id.py1CODE
LOWtests/unit/test_auth_discovery_service.py3CODE
LOWtests/unit/test_registry_import_race.py21CODE
LOWtests/unit/test_agent_skill_internal_router.py1CODE
LOWtests/unit/test_worker_activity_registration.py1CODE
LOWtests/unit/test_workspace_sync_acceptance_contract.py7CODE
LOWtests/unit/test_admin_registry_service.py3CODE
LOWtests/unit/test_webhook_execution_path.py11CODE
LOW…/unit/test_durable_agent_workflow_search_attributes.py3CODE
LOWtests/unit/test_agent_runtime_broker.py1CODE
LOWtests/unit/test_workflow_registry_resolution.py3CODE
LOWtests/unit/test_agent_preset_activities.py1CODE
LOWtests/unit/test_redis_client.py1CODE
826 more matches not shown…
Docstring Block Structure152 hits · 760 pts
SeverityFileLineSnippetContext
HIGHtracecat/store.py32Fetch the content for a specific source. Args: path: Path to the source file in the repository. STRING
HIGHtracecat/ssh.py328Get a Git SSH command for the given Git URL. Args: git_url: Git URL object containing repository informatioSTRING
HIGHtracecat/base62.py9Convert a non-negative integer to a base62 string. Args: num: Non-negative integer to encode Returns: STRING
HIGHtracecat/base62.py35Convert a base62 string back to an integer. Args: encoded: Base62 encoded string Returns: DecoSTRING
HIGHtracecat/organization/service.py63Accept an invitation and create organization membership + RBAC assignment. This is a standalone function (not a metSTRING
HIGHtracecat/organization/service.py266Retrieve a member of the organization by their user ID. Args: user_id (UserID): The unique identifiSTRING
HIGHtracecat/organization/service.py373 Update a member of the organization. This method updates the details of a specified member within the STRING
HIGHtracecat/organization/service.py626Get an invitation by ID (must belong to this organization). Args: invitation_id: The invitation UUISTRING
HIGHtracecat/organization/service.py647Get an invitation by its unique token. This method does not require scope checks as it is used during tSTRING
HIGHtracecat/organization/service.py671Accept an invitation and create organization membership + RBAC assignment. This method validates the invitationSTRING
HIGHtracecat/organization/service.py813Revoke a pending invitation. Args: invitation_id: The invitation UUID. Returns: STRING
HIGHtracecat/organization/management.py116Create an organization record. Args: session: Database session. name: Organization name. slSTRING
HIGHtracecat/organization/management.py154Create a new organization with default settings and workspace. This is the canonical way to create an organization.STRING
HIGHtracecat/organization/management.py296Get the ID of the first/default organization. Args: session: Database session. Returns: OrganiSTRING
HIGHtracecat/tables/service.py299List all lookup tables for a workspace. Args: workspace_id: The ID of the workspace to list tables STRING
HIGHtracecat/tables/service.py362Get a lookup table by name. Args: table_name: The name of the table to get Returns: STRING
HIGHtracecat/tables/service.py399Create a new lookup table. Args: params: Parameters for creating the table Returns: STRING
HIGHtracecat/tables/service.py543Add a new column to an existing table. Args: table: The table to add the column to paraSTRING
HIGHtracecat/tables/service.py620Update a column in an existing table. Args: column: The column to update params: ParameSTRING
HIGHtracecat/tables/service.py874Insert a new row into the table. Args: table: The table to insert into params: The row STRING
HIGHtracecat/tables/service.py1003Update an existing row in the table. Args: table: The table containing the row to update STRING
HIGHtracecat/tables/service.py1334List rows in a table with cursor-based pagination. Args: table: The table to search in STRING
HIGHtracecat/tables/service.py1605Insert multiple rows into the table atomically. Args: table: The table to insert into rSTRING
HIGHtracecat/tables/service.py2026Add a new column to an existing table. Args: params: Parameters for the new column ReturnsSTRING
HIGHtracecat/tables/service.py2082Update a column in an existing table. Args: params: Parameters for updating the column RetSTRING
HIGHtracecat/tables/service.py2309Update an existing row in the table. Args: row_id: The ID of the row to update data: DiSTRING
HIGHtracecat/tables/common.py246Convert a value to a SQL-compatible string based on type. Args: value: The value to convert to SQL format STRING
HIGHtracecat/auth/credentials.py1014 Factory for FastAPI dependency that enforces role-based access control. This function creates a dependency forSTRING
HIGHtracecat/secrets/service.py221Get a workspace secret by name. Args: secret_name: The name of the secret to retrieve eSTRING
HIGHtracecat/secrets/encryption.py38Encrypt a string using Fernet encryption. Args: value: The string to encrypt key: The encryption keSTRING
HIGHtracecat/secrets/encryption.py57Decrypt a Fernet-encrypted value back to a string. Args: encrypted_value: The encrypted bytes key: STRING
HIGHtracecat/cases/service.py800Get a case with its associated custom fields. Args: case_id: UUID of the case to retrieve STRING
HIGHtracecat/cases/service.py992Update a case and optionally its custom fields. Args: case: The case object to update pSTRING
HIGHtracecat/cases/service.py1468Ensure a workspace data row exists for the given case. Args: case_id: The case ID to ensure a row eSTRING
HIGHtracecat/cases/service.py1565Upsert custom field values for a case. This method ensures the workspace row exists and updates field values. STRING
HIGHtracecat/cases/service.py2228Update an existing comment. Args: comment: The comment to update params: The updated coSTRING
HIGHtracecat/cases/service.py2531Get a task by ID. Args: task_id: The ID of the task to get Returns: The task STRING
HIGHtracecat/cases/service.py2606Create a new task for a case. Args: case_id: The ID of the case to create a task for paSTRING
HIGHtracecat/cases/service.py2674Update a task. Args: task_id: The ID of the task to update params: The task update paraSTRING
HIGHtracecat/cases/attachments/service.py204Create a new attachment for a case with security validations. Args: case: The case to attach the fiSTRING
HIGHtracecat/cases/attachments/service.py412Download an attachment's content. Args: case: The case the attachment belongs to attachSTRING
HIGHtracecat/cases/attachments/service.py452Generate a presigned URL for downloading an attachment. Args: case: The case the attachment belongsSTRING
HIGHtracecat/agent/tools.py39Execute a Tracecat action in a subprocess. This spawns a separate process to run the action, providing process isolSTRING
HIGHtracecat/agent/tools.py142Create a Tool from a registry action using index-based lookup. Args: action_name: Full canonical action namSTRING
HIGHtracecat/agent/tools.py271Build tools from a list of actions using index-based lookups. Args: namespaces: Optional list of namespace STRING
HIGHtracecat/agent/tokens.py205Verify MCP JWT and return extracted claims. Args: token: The JWT string to verify Returns: MCPSTRING
HIGHtracecat/agent/tokens.py396Verify LLM JWT and return extracted claims. Args: token: The JWT string to verify Returns: LLMSTRING
HIGHtracecat/agent/skill/service.py287Normalize and validate a relative POSIX draft path. Args: path: User-provided file path. RSTRING
HIGHtracecat/agent/stream/writers.py111 Event stream handler for TemporalAgent. Args: run_context: The run context for the agent. evenSTRING
HIGHtracecat/agent/runtime/pydantic_ai/runtime.py97Run an AI agent with specified configuration and actions. This function creates and executes a Tracecat AI agent wiSTRING
HIGHtracecat/agent/mcp/user_client.py264Execute a tool on a user MCP server. Args: server_name: Name of the MCP server (from config). STRING
HIGHtracecat/agent/mcp/executor.py86Execute a registry UDF through the shared executor queue. Args: action_name: The action to execute (e.g., "STRING
HIGHtracecat/agent/common/socket_io.py61Read a framed message from the socket. Args: reader: The asyncio stream reader. expected_type: If pSTRING
HIGHtracecat/agent/sandbox/config.py226Build nsjail protobuf config for agent runtime execution. Args: rootfs: Path to the sandbox rootfs (same asSTRING
HIGHtracecat/agent/sandbox/config.py490Construct a sanitized environment for the nsjail agent process. Args: config: Agent sandbox configuration. STRING
HIGHtracecat/agent/sandbox/nsjail.py145Spawn the Claude shim inside an NSJail sandbox or direct subprocess. This is the entrypoint for the orchestrator toSTRING
HIGHtracecat/agent/sandbox/nsjail.py506Wait for a jailed runtime process to complete. Args: process: The nsjail subprocess. timeout_secondSTRING
HIGHtracecat/agent/executor/activity.py372Create one direct passthrough route. Args: base_url: Resolved custom provider base URL. STRING
HIGHtracecat/agent/session/service.py1345Run a session turn by spawning a DurableAgentWorkflow. This method prepares the chat turn and spawns a DurableASTRING
HIGHtracecat/agent/session/service.py1828Build agent configuration for a session based on its entity type. Args: agent_session: The session STRING
92 more matches not shown…
Self-Referential Comments239 hits · 753 pts
SeverityFileLineSnippetContext
MEDIUMdocker/sandbox/build.sh42# Create a temporary container and export its filesystemCOMMENT
MEDIUMtests/conftest.py513 # Create a registry repository for core actionsSTRING
MEDIUMtests/temporal/test_workflows.py764 # Create the child workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py2091 # Create a simple configuration variableCOMMENT
MEDIUMtests/temporal/test_workflows.py3505 # Create the child workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py4363 # Create a simple child workflow that doubles the inputCOMMENT
MEDIUMtests/temporal/test_workflows.py6246 # Define the DSL workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py6377 # Define the DSL workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py6463 # Define the DSL workflowCOMMENT
MEDIUMtests/temporal/test_workflows.py6664 # Create a workflow with sequential actions to verify time advancesCOMMENT
MEDIUMtests/temporal/test_workflows.py6801 # Create a child workflow that returns the current timeCOMMENT
MEDIUMtests/temporal/test_workflows.py6823 # Create a parent workflow that calls the child and also captures its own timeCOMMENT
MEDIUMtests/temporal/test_durable_agent_workflow.py191 # Create a mock registry lock for the toolsCOMMENT
MEDIUMtests/unit/test_oauth_state.py248 # Create a valid stateCOMMENT
MEDIUMtests/unit/test_oauth_state.py261 # Create an expired stateCOMMENT
MEDIUMtests/unit/test_oauth_state.py274 # Create a second workspace for the "wrong workspace" testCOMMENT
MEDIUMtests/unit/test_oauth_state.py284 # Create a state with wrong workspaceCOMMENT
MEDIUMtests/unit/test_executor_template_actions.py166 # Create a 2-step template: step1 adds 100, step2 multiplies by 2COMMENT
MEDIUMtests/unit/test_executor_template_actions.py251 # Create a template that passes data between steps using steps contextCOMMENT
MEDIUMtests/unit/test_executor_template_actions.py334 # Create a template with a complex returns expressionCOMMENT
MEDIUMtests/unit/test_executor_template_actions.py421 # Create a secretCOMMENT
MEDIUMtests/unit/test_executor_template_actions.py617 # Create a simple templateCOMMENT
MEDIUMtests/unit/test_identifiers.py121 # Create a different UUID for comparisonCOMMENT
MEDIUMtests/unit/test_identifiers.py201 # Create a model instanceCOMMENT
MEDIUMtests/unit/test_registry.py127 # Create a new moduleCOMMENT
MEDIUMtests/unit/test_registry.py130 # Create a module spec for the test moduleCOMMENT
MEDIUMtests/unit/test_registry.py139 # Create a file for the sync functionCOMMENT
MEDIUMtests/unit/test_registry.py270 # Create a new test module with datetime/UUID UDFsCOMMENT
MEDIUMtests/unit/test_registry.py279 # Create a file with UDF that accepts datetimeCOMMENT
MEDIUMtests/unit/test_registry.py158 # Create a file for the async functionCOMMENT
MEDIUMtests/unit/test_registry.py177 # Create a file for the deprecated functionCOMMENT
MEDIUMtests/unit/test_registry.py488 # Create a test directory structureCOMMENT
MEDIUMtests/unit/test_concurrency.py483 # Create a generator that would be expensive if fully loadedCOMMENT
MEDIUMtests/unit/test_concurrency.py18 # Create a GatheringTaskGroup instanceCOMMENT
MEDIUMtests/unit/test_webhook.py425 # Create a mock webhook with the ID attributeCOMMENT
MEDIUMtests/unit/test_webhook.py455 # Create a mock webhook with the ID attributeCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py42 # Create a test workflowCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py178 # Create a folder to renameCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py182 # Create a child folder to verify path updatesCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py240 # Create a folder hierarchyCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py265 # Create a folder to deleteCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py296 # Create a folder hierarchyCOMMENT
MEDIUMtests/unit/test_workflow_folders_service.py344 # Create a folderCOMMENT
MEDIUMtests/unit/test_validation.py658 # Create a test template action with both AC and CC OAuth secrets as optionalCOMMENT
MEDIUMtests/unit/test_validation.py702 # Create a second template action with required OAuth credentialCOMMENT
MEDIUMtests/unit/test_validation.py879 # Create a template action with optional OAuth credentials (both AC and CC)COMMENT
MEDIUMtests/unit/test_validation.py935 # Create a DSL that uses this actionCOMMENT
MEDIUMtests/unit/test_agent_preset_service.py3281 # Create a preset with comprehensive configurationCOMMENT
MEDIUMtests/unit/test_template_actions.py149 # Create a new moduleCOMMENT
MEDIUMtests/unit/test_template_actions.py152 # Create a module spec for the test moduleCOMMENT
MEDIUMtests/unit/test_template_actions.py859 # Create a template action that uses VARS expressionsCOMMENT
MEDIUMtests/unit/test_template_actions.py1044 # Create a template action with multi-level fallbackCOMMENT
MEDIUMtests/unit/test_template_actions.py1174 # Create a manifest with:COMMENT
MEDIUMtests/unit/test_mcp_integrations.py2847 # Create a second OAuth integrationCOMMENT
MEDIUMtests/unit/test_mcp_integrations.py4277 # Create a dummy MCP provider for testingCOMMENT
MEDIUMtests/unit/test_parse.py98 # Create a temporary pyproject.toml fileCOMMENT
MEDIUMtests/unit/test_pydantic_ai_adapter.py279 # Create a mock event that doesn't match any known typeCOMMENT
MEDIUMtests/unit/test_secrets_service.py614 # Create a secretCOMMENT
MEDIUMtests/unit/test_case_events_service.py417 # Create an event with the original service (original user)COMMENT
MEDIUMtests/unit/test_case_events_service.py425 # Create a service with a different userCOMMENT
179 more matches not shown…
Excessive Try-Catch Wrapping657 hits · 601 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py184 except Exception as exc:CODE
LOWtests/conftest.py267 except Exception:CODE
LOWtests/conftest.py322 except Exception as e:CODE
LOWtests/conftest.py1494 except Exception as e:CODE
LOWtests/conftest.py1528 except Exception as e:CODE
LOWtests/conftest.py1629 except Exception as e:CODE
LOWtests/conftest.py1642 except Exception as inner_e:CODE
LOWtests/conftest.py1660 except Exception as e:CODE
LOWtests/conftest.py1714 except Exception:CODE
LOWtests/conftest.py1145 except Exception as e:STRING
LOWtests/conftest.py1150 except Exception as e:STRING
LOWtests/conftest.py1305 except Exception as exc:STRING
LOWtests/temporal/test_workflows.py426 except Exception as e:CODE
LOWtests/temporal/test_durable_agent_workflow.py2325 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py2329 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py2443 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py2447 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py2563 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py2567 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py2691 except Exception:CODE
LOWtests/temporal/test_durable_agent_workflow.py2695 except Exception:CODE
LOWtests/unit/test_interactions.py177 except Exception:CODE
LOWtests/unit/test_interactions.py181 except Exception:CODE
LOWtests/unit/test_agent_preset_service.py84 except Exception:CODE
MEDIUMtests/unit/test_agent_sandbox_litellm.py954 " print('Error parsing JSON response', file=sys.stderr, flush=True)",CODE
LOWtests/unit/test_registry_import_race.py100 except Exception as e: # noqa: BLE001 - we collect all exceptionsCODE
LOWtests/unit/test_registry_import_race.py145 except Exception as e: # noqa: BLE001 - we collect all exceptionsCODE
LOWtests/unit/test_registry_import_race.py187 except Exception as e: # noqa: BLE001 - regression guardCODE
LOWtests/unit/test_registry_import_race.py250 except Exception as e: # noqa: BLE001 - collect all errors for assertionCODE
MEDIUMtests/unit/test_registry_import_race.py184def reloader() -> None:CODE
LOWtests/unit/test_skill_service.py76 except Exception:CODE
LOWtests/unit/test_action_environment_override.py317 except Exception:CODE
LOWtests/unit/test_action_environment_override.py325 except Exception:CODE
LOWtests/unit/test_action_environment_override.py384 except Exception:CODE
LOWtests/unit/test_tables_service.py2096 except Exception as e:STRING
LOWtests/unit/test_workflow_import_simple.py152 except Exception as e:CODE
LOWtests/unit/test_workflow_import_service.py754 except Exception as e:CODE
LOWtests/unit/test_case_attachments_service.py46 except Exception:CODE
LOWtests/unit/executor/test_run_python_sdk_context.py278 except Exception as exc:CODE
LOWtests/integration/test_syncv2_execv2_e2e.py469 except Exception:CODE
LOWtests/integration/test_syncv2_execv2_e2e.py739 except Exception as e:CODE
LOWtests/integration/test_syncv2_execv2_e2e.py778 except Exception:CODE
LOWtests/integration/test_pool_integration.py1116 except Exception:CODE
LOWtests/integration/test_pool_integration.py756 except Exception:CODE
LOWtests/integration/test_case_duration_benchmarks.py281 except Exception:CODE
LOWtests/integration/test_case_duration_benchmarks.py351 except Exception:CODE
LOWtests/backends/conftest.py84 except Exception:CODE
LOWtests/backends/test_backend_benchmarks.py209 except Exception:CODE
MEDIUMtests/registry/test_core_python.py542def main():CODE
MEDIUMtests/registry/test_core_python.py591def main():CODE
MEDIUMtests/registry/test_core_python.py714def main():CODE
LOWtests/registry/test_core_python.py547 except Exception as e:CODE
LOWtests/registry/test_core_python.py721 except Exception as e:CODE
LOWtests/registry/test_core_python.py596 except Exception as e:CODE
LOW…cat-automation-best-practices/references/run-python.md73 except Exception as exc:CODE
LOWtracecat/ssh.py215 except Exception as e:CODE
LOWtracecat/ssh.py257 except Exception as e:CODE
LOWtracecat/pagination.py109 except Exception as e:CODE
LOWtracecat/pagination.py147 except Exception:CODE
LOWtracecat/pagination.py184 except Exception:CODE
597 more matches not shown…
Cross-File Repetition70 hits · 350 pts
SeverityFileLineSnippetContext
HIGHtests/unit/test_oauth_state.py0create an integration service instance for testing.STRING
HIGHtests/unit/test_mcp_integrations.py0create an integration service instance for testing.STRING
HIGHtests/unit/test_integrations_service.py0create an integration service instance for testing.STRING
HIGHtests/unit/test_executor_template_actions.py0test helper: execute action using production code path.STRING
HIGHtests/unit/test_validation.py0test helper: execute action using production code path.STRING
HIGHtests/unit/test_template_actions.py0test helper: execute action using production code path.STRING
HIGHtests/unit/test_registry.py0pytest fixture that creates a mock package with files and cleans up after the test.STRING
HIGHtests/unit/test_template_actions.py0pytest fixture that creates a mock package with files and cleans up after the test.STRING
HIGHtests/unit/test_executor.py0pytest fixture that creates a mock package with files and cleans up after the test.STRING
HIGHtests/unit/test_dynamic_workspace_service_rls.py0disable minio-dependent workflow bucket setup for these tests.STRING
HIGHtests/unit/test_tables_service.py0disable minio-dependent workflow bucket setup for these tests.STRING
HIGHtests/unit/test_case_fields_service.py0disable minio-dependent workflow bucket setup for these tests.STRING
HIGHtests/unit/test_workflow_folders_service.py0create a test workflow in the database and return its id.STRING
HIGHtests/unit/test_workflow_definitions_service.py0create a test workflow in the database and return its id.STRING
HIGHtests/unit/test_tags_service.py0create a test workflow in the database and return its id.STRING
HIGHtests/unit/test_tenant_rls_registry.py0disable minio-dependent workflow bucket setup for pure unit repro tests.STRING
HIGHtests/unit/test_rls.py0disable minio-dependent workflow bucket setup for pure unit repro tests.STRING
HIGHtests/unit/test_rls_failure_repros.py0disable minio-dependent workflow bucket setup for pure unit repro tests.STRING
HIGHtests/unit/test_case_events_service.py0test that service initialization requires a workspace id.STRING
HIGHtests/unit/test_integrations_service.py0test that service initialization requires a workspace id.STRING
HIGHtests/unit/test_cases_service.py0test that service initialization requires a workspace id.STRING
HIGHtests/unit/test_case_comments_service.py0test that service initialization requires a workspace id.STRING
HIGHtests/unit/test_case_fields_service.py0test that service initialization requires a workspace id.STRING
HIGHtests/migration/test_dynamic_workspace_rls_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{test_db_name}STRING
HIGHtests/migration/test_case_fields_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{test_db_name}STRING
HIGHtests/migration/test_migration_advisory_lock.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{test_db_name}STRING
HIGH…s/migration/test_uuid_timestamp_user_type_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{test_db_name}STRING
HIGH…sts/migration/test_case_numbers_workspace_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{db_name}' andSTRING
HIGH…emove_legacy_org_scoped_builtin_registry_repository.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{db_name}' andSTRING
HIGH…ts/migration/test_workspace_skills_preset_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{db_name}' andSTRING
HIGHtests/migration/test_skill_slug_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{db_name}' andSTRING
HIGH…sts/migration/test_comment_activity_audit_migration.py0select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where pg_stat_activity.datname = '{db_name}' andSTRING
HIGH…emove_legacy_org_scoped_builtin_registry_repository.py0insert into organization (id, name, slug, is_active) values (:id, 'preset org', :slug, true)STRING
HIGH…sts/migration/test_comment_activity_audit_migration.py0insert into organization (id, name, slug, is_active) values (:id, 'preset org', :slug, true)STRING
HIGH…ts/migration/test_workspace_skills_preset_migration.py0insert into organization (id, name, slug, is_active) values (:id, 'preset org', :slug, true)STRING
HIGHtracecat/admin/registry/service.py0promote a registry version to be the current version for a repository.STRING
HIGHtracecat/admin/registry/router.py0promote a registry version to be the current version for a repository.STRING
HIGHpackages/tracecat-admin/tracecat_admin/client.py0promote a registry version to be the current version for a repository.STRING
HIGHtracecat/integrations/providers/google/sheets.py0google docs oauth provider using service account credentials.STRING
HIGH…cecat/integrations/providers/google/service_account.py0google docs oauth provider using service account credentials.STRING
HIGHtracecat/integrations/providers/google/docs.py0google docs oauth provider using service account credentials.STRING
HIGHtracecat/workflow/management/schemas.py0convert any valid workflow id format to workflowuuid.STRING
HIGHtracecat/workflow/executions/internal_router.py0convert any valid workflow id format to workflowuuid.STRING
HIGHtracecat/dsl/schemas.py0convert any valid workflow id format to workflowuuid.STRING
HIGHtracecat/dsl/common.py0convert any valid workflow id format to workflowuuid.STRING
HIGHtracecat/expressions/functions.py0return object with single level of keys (as jsonpath) and values.STRING
HIGH…acecat-registry/tracecat_registry/_internal/flatten.py0return object with single level of keys (as jsonpath) and values.STRING
HIGH…/tracecat-registry/tracecat_registry/core/transform.py0return object with single level of keys (as jsonpath) and values.STRING
HIGHtracecat/executor/backends/ephemeral.py0get artifact uris for registry environment (deterministic ordering).STRING
HIGHtracecat/executor/backends/test.py0get artifact uris for registry environment (deterministic ordering).STRING
HIGHtracecat/executor/backends/pool/backend.py0get artifact uris for registry environment (deterministic ordering).STRING
HIGHpackages/tracecat-admin/tracecat_admin/client.py0list versions for a specific repository in an organization.STRING
HIGH…tracecat-ee/tracecat_ee/admin/organizations/service.py0list versions for a specific repository in an organization.STRING
HIGH…/tracecat-ee/tracecat_ee/admin/organizations/router.py0list versions for a specific repository in an organization.STRING
HIGHpackages/tracecat-admin/tracecat_admin/client.py0promote a registry version to be the current version for an org repository.STRING
HIGH…tracecat-ee/tracecat_ee/admin/organizations/service.py0promote a registry version to be the current version for an org repository.STRING
HIGH…/tracecat-ee/tracecat_ee/admin/organizations/router.py0promote a registry version to be the current version for an org repository.STRING
HIGHpackages/tracecat-admin/tracecat_admin/client.py0update organization's tier assignment and overrides.STRING
HIGHpackages/tracecat-ee/tracecat_ee/admin/tiers/service.py0update organization's tier assignment and overrides.STRING
HIGHpackages/tracecat-ee/tracecat_ee/admin/tiers/router.py0update organization's tier assignment and overrides.STRING
10 more matches not shown…
Redundant / Tautological Comments124 hits · 190 pts
SeverityFileLineSnippetContext
LOWenv-migration.sh33# Check if .env file existsCOMMENT
LOWenv-migration.sh39# Check if .env.template file existsCOMMENT
LOWenv.sh24 # Check if running on macOS and adjust sed_option accordinglyCOMMENT
LOWdocker/scripts/entrypoint.sh14# Check if we need to run migrations (only for API)COMMENT
LOW…src/components/builder/panel/action-panel-tooltips.tsx26 # Check if user has admin roleCOMMENT
LOW…src/components/builder/panel/action-panel-tooltips.tsx36 # Check if failed login attempts exceed thresholdCOMMENT
LOWtests/conftest.py1408 # Check if organization existsCOMMENT
LOWtests/conftest.py1449 # Check if organization exists in this sessionCOMMENT
LOWtests/conftest.py1535 # Check if organization existsCOMMENT
LOWtests/conftest.py1589 # Set timeouts to avoid deadlocks with parallel workersCOMMENT
LOWtests/conftest.py1614 # Set timeouts to avoid deadlocks with parallel workersCOMMENT
LOWtests/conftest.py1647 # Set timeouts to avoid deadlocks with parallel workersCOMMENT
LOWtests/temporal/test_durable_agent_workflow.py370 # Check if user already existsCOMMENT
LOWtests/unit/test_registry.py133 # Set __path__ to the temporary directoryCOMMENT
LOWtests/unit/test_validation.py435 # Check if any error message matches the expected patternCOMMENT
LOWtests/unit/test_template_actions.py155 # Set __path__ to the temporary directoryCOMMENT
LOWtests/unit/test_integrations_service.py749 # Set expiration to 4 minutes in future (within refresh window)COMMENT
LOWtests/unit/test_executor.py185 # Set __path__ to the temporary directoryCOMMENT
LOWtests/unit/test_rls_policies.py298 # Set context to a random workspace ID (likely no matching rows)COMMENT
LOWtests/unit/test_rls_policies.py319 # Set context to a random org IDCOMMENT
LOWtests/integration/test_syncv2_execv2_e2e.py300 # Check if organization existsCOMMENT
LOWtests/backends/conftest.py77 # Check if any registry version has a tarball (regardless of org)COMMENT
LOWtests/registry/test_core_python.py20# Check if nsjail is available (required for the sandbox)COMMENT
LOWtests/registry/test_core_python.py23# Check if the sandbox rootfs existsCOMMENT
LOW.devcontainer/safe-yolo.sh7# Check if Docker is installedCOMMENT
LOW.devcontainer/safe-yolo.sh13# Check if Docker is runningCOMMENT
LOWtracecat/ssh.py155 # Check if host already exists in known_hostsCOMMENT
LOWtracecat/organization/service.py548 # Check if user with this email is already a member (case-insensitive)COMMENT
LOWtracecat/organization/management.py320 # Check if any organization existsCOMMENT
LOWtracecat/organization/router.py730 # Check if authenticated user's email matches the invitation (case-insensitive)COMMENT
LOWtracecat/tables/service.py756 # Check if another index already existsCOMMENT
LOWtracecat/tables/service.py921 # Check if we have any unique columns to use for conflict resolutionCOMMENT
LOWtracecat/tables/service.py1456 # Check if cursor was created with the same sort columnCOMMENT
LOWtracecat/tables/service.py1554 # Check if there are more itemsCOMMENT
LOWtracecat/auth/users.py131 # Check if this is attempting to be the first user (superadmin)COMMENT
LOWtracecat/auth/credentials.py755 # Check if user is an org owner/admin via RBAC - they can access all workspacesCOMMENT
LOWtracecat/auth/saml.py768 # Check if request has expired but don't delete yetCOMMENT
LOWtracecat/auth/saml.py843 # Check if the request has expiredCOMMENT
LOWtracecat/cases/service.py485 # Check if cursor was created with the same sort column (for proper pagination)COMMENT
LOWtracecat/cases/service.py569 # Check if there are more itemsCOMMENT
LOWtracecat/cases/service.py2754 # Check if the field was provided in the update payload using model_fields_setCOMMENT
LOWtracecat/cases/tags/service.py294 # Check if already existsCOMMENT
LOWtracecat/cases/attachments/service.py300 # Check if file already exists (deduplication)COMMENT
LOWtracecat/cases/attachments/service.py353 # Check if attachment already exists for this case and fileCOMMENT
LOWtracecat/cases/attachments/service.py516 # Check if user has permission (must be creator or admin)COMMENT
LOWtracecat/cases/attachments/router.py91 # Read file content with bounded memory to avoid DoS via large uploadsCOMMENT
LOWtracecat/agent/service.py408 # Check if credentials already existCOMMENT
LOWtracecat/agent/context.py73 # Check if any tool returns need truncationCOMMENT
LOWtracecat/agent/context.py155 # Check if next message has matching returnsCOMMENT
LOWtracecat/agent/context.py171 # Check if previous kept message has matching callsCOMMENT
LOWtracecat/agent/preset/service.py675 # Check if all requested IDs existCOMMENT
LOWtracecat/agent/mcp/proxy_server.py187 # Check if this is a user MCP toolCOMMENT
LOWtracecat/agent/session/service.py1972 # Check if this is a forked session (has parent_session_id)COMMENT
LOWtracecat/agent/session/router.py337 # Check if this is a legacy chat (read-only)COMMENT
LOWtracecat/agent/session/router.py412 # Check if this is a legacy chat (read-only)COMMENT
LOWtracecat/agent/session/router.py461 # Check if this is a legacy chat (read-only)COMMENT
LOWtracecat/workspaces/service.py366 # Check if the existing invitation is expired - if so, delete and retryCOMMENT
LOWtracecat/workspaces/service.py479 # Check if user is already a member of the organizationCOMMENT
LOWtracecat/workspaces/service.py498 # Check if user is already a member of the workspaceCOMMENT
LOWtracecat/tags/service.py58 # Check if ref already existsCOMMENT
64 more matches not shown…
Deep Nesting231 hits · 184 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py176CODE
LOWtests/conftest.py376CODE
LOWtests/conftest.py491CODE
LOWtests/conftest.py1574CODE
LOWtests/conftest.py386CODE
LOWtests/conftest.py507CODE
LOWtests/temporal/test_workflows.py352CODE
LOWtests/temporal/test_durable_agent_workflow.py2220CODE
LOWtests/temporal/test_durable_agent_workflow.py2339CODE
LOWtests/temporal/test_durable_agent_workflow.py2457CODE
LOWtests/temporal/test_durable_agent_workflow.py2577CODE
LOWtests/unit/test_interactions.py76CODE
LOWtests/unit/test_mcp_server.py10013CODE
LOWtests/unit/test_workflow_executions.py125CODE
LOWtests/unit/test_workflow_executions.py634CODE
LOWtests/unit/test_workflow_executions.py730CODE
LOWtests/unit/test_storage_cache.py21CODE
LOWtests/unit/test_vercel_sse_resume.py37CODE
LOWtests/unit/test_tables_service.py286CODE
LOWtests/unit/test_executor_sandbox_nsjail.py482CODE
LOWtests/unit/test_config.py120CODE
LOWtests/unit/test_formatters.py331CODE
LOWtests/unit/test_agent_socket_io.py74CODE
LOWtests/unit/test_agent_socket_io.py184CODE
LOWtests/unit/test_agent_socket_io.py279CODE
LOWtests/unit/test_agent_socket_io.py352CODE
LOWtests/unit/test_agent_socket_io.py414CODE
LOWtests/integration/test_pool_integration.py1075CODE
LOWtests/registry/test_core_transform.py771CODE
LOWtests/migration/test_dynamic_workspace_rls_migration.py1047CODE
LOWtests/migration/test_dynamic_workspace_rls_migration.py1185CODE
LOWtracecat/ssh.py130CODE
LOWtracecat/temporal/codec.py313CODE
LOWtracecat/tables/service.py238CODE
LOWtracecat/tables/service.py615CODE
LOWtracecat/tables/service.py869CODE
LOWtracecat/tables/service.py1322CODE
LOWtracecat/tables/service.py1597CODE
LOWtracecat/tables/service.py1740CODE
LOWtracecat/tables/service.py2260CODE
LOWtracecat/tables/service.py2308CODE
LOWtracecat/tables/importer.py49CODE
LOWtracecat/tables/schemas.py66CODE
LOWtracecat/tables/common.py27CODE
LOWtracecat/workspace_sync/service.py1332CODE
LOWtracecat/workspace_sync/service.py1529CODE
LOWtracecat/workspace_sync/resources.py36CODE
LOWtracecat/workspace_sync/resources.py369CODE
LOWtracecat/workspace_sync/resources.py514CODE
LOWtracecat/workspace_sync/adapters/case_field.py88CODE
LOWtracecat/workspace_sync/adapters/case_field.py192CODE
LOWtracecat/auth/credentials.py501CODE
LOWtracecat/auth/credentials.py876CODE
LOWtracecat/auth/credentials.py1005CODE
LOWtracecat/auth/saml.py526CODE
LOWtracecat/secrets/service.py68CODE
LOWtracecat/secrets/secrets_manager.py133CODE
LOWtracecat/secrets/secrets_manager.py305CODE
LOWtracecat/cases/service.py371CODE
LOWtracecat/cases/service.py898CODE
171 more matches not shown…
Fake / Example Data152 hits · 151 pts
SeverityFileLineSnippetContext
LOWfrontend/tests/profile-settings.test.ts5 expect(getProfileNameUpdate("Jane Doe", " Jane Doe ")).toBeNull()CODE
LOWfrontend/tests/profile-settings.test.ts9 expect(getProfileNameUpdate("Jane Doe", " ")).toEqual({CODE
LOWfrontend/tests/profile-settings.test.ts16 expect(getProfileNameUpdate("Jane Doe", " Ada Lovelace ")).toEqual({CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx297 target: { value: "user@example.com" },CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx304 email: "user@example.com",CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx328 target: { value: "user@example.com" },CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx335 email: "user@example.com",CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx345 mockUser = { email: "admin@example.com", isSuperuser: true }CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx358 mockUser = { email: "admin@example.com", isSuperuser: true }CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx415 mockUser = { email: "admin@example.com", isSuperuser: true }CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx426 mockUser = { email: "admin@example.com", isSuperuser: true }CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx436 mockUser = { email: "admin@example.com", isSuperuser: true }CODE
LOWfrontend/tests/auth-ui-matrix.test.tsx454 mockUser = { email: "user@example.com", isSuperuser: false }CODE
LOWfrontend/tests/workspace-sync-settings.test.tsx209 "placeholder",CODE
LOW…ntend/src/components/service-account-json-uploader.tsx299 placeholder="user@example.com"CODE
LOW…tend/src/components/organization/org-members-table.tsx145 placeholder="user@example.com"CODE
LOW…nd/src/components/admin/create-organization-dialog.tsx133 placeholder="Acme Inc"CODE
LOWfrontend/src/components/admin/admin-users-table.tsx227 placeholder="user@example.com"CODE
LOW…/src/components/admin/admin-org-invitations-dialog.tsx201 placeholder="user@example.com"CODE
LOWtests/unit/test_table_csv_importer.py206 csv_row = {"csv_name": "John Doe"}CODE
LOWtests/unit/test_table_csv_importer.py215 "\ufeffcsv_name": "John Doe",CODE
LOWtests/unit/test_table_csv_importer.py130 "csv_name": "John Doe",CODE
LOWtests/unit/test_table_csv_importer.py148 "name": "John Doe",CODE
LOWtests/unit/test_table_csv_importer.py226 "name": "John Doe",CODE
LOWtests/unit/test_table_csv_importer.py269 "csv_name": "John Doe",CODE
LOWtests/unit/test_table_csv_importer.py282 "name": "John Doe",CODE
LOWtests/unit/test_saml_client_config.py161 fake_session, uuid.uuid4(), "user@example.com"CODE
LOWtests/unit/test_saml_client_config.py239 fake_session, uuid.uuid4(), ["user@example.com"]CODE
LOWtests/unit/test_saml_client_config.py242 assert email == "user@example.com"CODE
LOWtests/unit/test_saml_client_config.py338 fake_session, uuid.uuid4(), ["admin@example.com"]CODE
LOWtests/unit/test_saml_client_config.py341 assert email == "admin@example.com"CODE
LOWtests/unit/test_saml_client_config.py403 monkeypatch.setattr(saml, "TRACECAT__AUTH_SUPERADMIN_EMAIL", "admin@example.com")CODE
LOWtests/unit/test_saml_client_config.py408 fake_session, "admin@example.com"CODE
LOWtests/unit/test_saml_client_config.py417 monkeypatch.setattr(saml, "TRACECAT__AUTH_SUPERADMIN_EMAIL", "admin@example.com")CODE
LOWtests/unit/test_saml_client_config.py422 fake_session, "admin@example.com"CODE
LOWtests/unit/test_saml_client_config.py431 monkeypatch.setattr(saml, "TRACECAT__AUTH_SUPERADMIN_EMAIL", "admin@example.com")CODE
LOWtests/unit/test_saml_client_config.py435 fake_session, "user@example.com"CODE
LOWtests/unit/test_saml_client_config.py363 fake_session, uuid.uuid4(), ["admin@example.com"]CODE
LOWtests/unit/test_saml_client_config.py455 fake_session, org_id, "admin@example.com"CODE
LOWtests/unit/test_saml_client_config.py474 fake_session, uuid.uuid4(), "admin@example.com"CODE
LOWtests/unit/test_watchtower_service.py220 last_user_email="user@example.com",CODE
LOWtests/unit/test_watchtower_service.py282 email="user@example.com",CODE
LOWtests/unit/test_expressions.py159 "metadata": {"name": "John Doe", "age": 30},CODE
LOWtests/unit/test_expressions.py202 "metadata": {"name": "John Doe", "age": 30},CODE
LOWtests/unit/test_invitation.py132 email="admin@example.com",CODE
LOWtests/unit/test_invitation.py364 email="admin@example.com",CODE
LOWtests/unit/test_mcp_auth.py803 assert merged.claims["email"] == "user@example.com"CODE
LOWtests/unit/test_mcp_auth.py821 email="user@example.com",CODE
LOWtests/unit/test_mcp_auth.py840 "email": "user@example.com",CODE
LOWtests/unit/test_mcp_auth.py878 email="user@example.com",CODE
LOWtests/unit/test_mcp_auth.py1059 email="user@example.com",CODE
LOWtests/unit/test_mcp_auth.py1076 assert captured["email"] == "user@example.com"CODE
LOWtests/unit/test_mcp_auth.py1087 email="user@example.com",CODE
LOWtests/unit/test_mcp_auth.py1138 assert captured["email"] == "user@example.com"CODE
LOWtests/unit/test_mcp_auth.py1152 email="user@example.com",CODE
LOWtests/unit/test_mcp_auth.py634 assert email == "user@example.com"CODE
LOWtests/unit/test_mcp_auth.py647 assert claims == {"email": "user@example.com"}CODE
LOWtests/unit/test_mcp_auth.py974 assert identity.email == "user@example.com"CODE
LOWtests/unit/test_mcp_auth.py1103 assert captured["email"] == "user@example.com"CODE
LOWtests/unit/test_mcp_auth.py1197 email="user@example.com",CODE
92 more matches not shown…
Cross-Language Confusion21 hits · 90 pts
SeverityFileLineSnippetContext
HIGHtests/temporal/test_workflows.py5686 items="${{ ACTIONS.is_one.result || ACTIONS.is_two.result || ACTIONS.is_three.result }}"CODE
HIGHtests/temporal/test_workflows.py5753 "value": "${{ ACTIONS.is_one.result || ACTIONS.is_two.result }}"CODE
HIGHtests/unit/test_template_actions.py637 "data": "${{ inputs.limit || 100 }}",CODE
HIGHtests/unit/test_template_actions.py886 "value": "${{ inputs.url || VARS.test.url }}",CODE
HIGHtests/unit/test_template_actions.py910 "value": "${{ inputs.custom_timeout || VARS.test.timeout }}",CODE
HIGHtests/unit/test_template_actions.py1065 "value": '${{ inputs.url || VARS.config.url || "http://default-url.com" }}',CODE
HIGHtests/unit/test_template_actions.py1021 """Test template action with multi-level fallback chain using || operator.STRING
HIGHtests/unit/test_template_actions.py1024 ${{ inputs.url || VARS.config.url || "http://default-url.com" }}STRING
HIGHtests/unit/test_template_actions.py835 3. VARS expressions work with fallback logic (e.g., inputs.value || VARS.default)STRING
HIGHtests/registry/test_core_http.py1518 "previous": null,STRING
HIGH…sts/migration/test_comment_activity_audit_migration.py165 f'{{"comment_id":"{comment_id}","parent_id":null,'STRING
HIGHtracecat/agent/service.py792 non-null) are intentionally left alone — they represent explicitSTRING
HIGHtracecat/agent/tokens.py306 "and catalog_id is null, the gateway resolves workspace provider "CODE
HIGHtracecat/agent/session/schemas.py62 "If null, the session follows the preset's current version."CODE
HIGHtracecat/workflow/management/router.py1009 If folder_id is null, the workflow will be moved to the root (no folder).STRING
HIGHtracecat/db/models.py2423 doc="The ID of the user who made the comment. If null, the comment is system generated.",CODE
HIGHtracecat/db/models.py2453 doc="The ID of the parent comment. If null, the comment is a top-level comment.",CODE
HIGHtracecat/db/models.py2513 doc="The ID of the user who made the event. If null, the event is system generated.",CODE
HIGH…istry/tracecat_registry/integrations/cloudflare_sdk.py112 "If null, fetches every page."CODE
HIGH…-registry/tracecat_registry/integrations/google_api.py277 description="Maximum number of pages to fetch. If null, fetches every page.",CODE
HIGH…ges/tracecat-ee/tracecat_ee/agent/workflows/durable.py418 "If null, the run follows the preset's current version."CODE
Modern Structural Boilerplate89 hits · 89 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_rbac_scopes.py43def _set_role_with_scopes(scopes: frozenset[str]) -> None:CODE
LOWtests/unit/test_mcp_server.py2347 async def update_schedule(self, schedule_id: uuid.UUID, params: Any) -> None:CODE
LOWtests/unit/test_gitlab_vcs.py818 async def _update_org_secret(self, secret: Any, params: Any) -> None:CODE
LOWtests/unit/test_agent_filesystem.py687 async def update_current_snapshot(self, **_kwargs: Any) -> None:CODE
LOWtests/unit/test_agent_filesystem.py922 async def update_current_snapshot(self, **_kwargs: Any) -> None:CODE
LOWtests/unit/test_agent_provider_service.py37def set_db_encryption_key(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/test_agent_channel_service.py38def set_db_encryption_key(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/test_agent_channel_service.py492def _set_signing_secret(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/executor/test_minimal_runner_protocol.py205 def set_context(ctx: LegacyRegistryContext) -> None:CODE
LOWtracecat/config.py11logger = logging.getLogger(__name__)CODE
LOWtracecat/ssh.py29__all__ = [CODE
LOWtracecat/contexts.py15__all__ = [CODE
LOWtracecat/middleware/__init__.py5__all__ = [CODE
LOWtracecat/settings/service.py291 async def update_git_settings(self, params: GitSettingsUpdate) -> None:CODE
LOWtracecat/settings/service.py299 async def update_saml_settings(self, params: SAMLSettingsUpdate) -> None:CODE
LOWtracecat/settings/service.py305 async def update_audit_settings(self, params: AuditSettingsUpdate) -> None:CODE
LOWtracecat/settings/service.py311 async def update_app_settings(self, params: AppSettingsUpdate) -> None:CODE
LOWtracecat/settings/service.py317 async def update_agent_settings(self, params: AgentSettingsUpdate) -> None:CODE
LOWtracecat/feature_flags/__init__.py12__all__ = ["is_feature_enabled", "FeatureFlag"]CODE
LOWtracecat/tables/service.py2081 async def update_column(self, column_name: str, params: TableColumnUpdate) -> None:CODE
LOWtracecat/workspace_sync/importer.py17__all__ = ["ImportedResource", "WorkspaceResourceImportService"]CODE
LOWtracecat/workspace_sync/projector.py22__all__ = [CODE
LOWtracecat/workspace_sync/adapters/__init__.py40__all__ = [CODE
LOWtracecat/logger/__init__.py3__all__ = ["logger"]CODE
LOWtracecat/auth/sandbox.py100 def _set_secrets(self) -> None:CODE
LOWtracecat/ee/interactions/connectors.py10__all__ = ["parse_slack_interaction_input"]CODE
LOWtracecat/ee/interactions/decorators.py19__all__ = ["maybe_interactive"]CODE
LOWtracecat/secrets/service.py68 async def _update_secret(self, secret: BaseSecret, params: SecretUpdate) -> None:CODE
LOWtracecat/secrets/service.py279 async def update_secret(self, secret: Secret, params: SecretUpdate) -> None:CODE
LOWtracecat/custom_fields/service.py176 async def update_field(self, field_id: str, params: CustomFieldUpdate) -> None:CODE
LOWtracecat/custom_fields/service.py202__all__ = ["CustomFieldsService"]CODE
LOWtracecat/custom_fields/__init__.py4__all__ = [CODE
LOWtracecat/custom_fields/schemas.py81__all__ = [CODE
LOWtracecat/cases/durations/__init__.py16__all__ = [CODE
LOWtracecat/cases/attachments/__init__.py11__all__ = [CODE
LOWtracecat/agent/service.py310 async def _set_org_setting_value(self, *, key: str, value: str) -> None:CODE
LOWtracecat/agent/litellm_compat.py15logger = logging.getLogger(__name__)CODE
LOWtracecat/agent/catalog/loader.py13logger = logging.getLogger(__name__)CODE
LOWtracecat/agent/mcp/stdio_probe.py37__all__ = [CODE
LOWtracecat/agent/mcp/proxy_server.py33__all__ = [CODE
LOWtracecat/agent/common/__init__.py52__all__ = [CODE
LOWtracecat/agent/folders/service.py649 async def _update_descendant_paths(self, old_path: str, new_path: str) -> None:CODE
LOWtracecat/agent/approvals/__init__.py8__all__ = [CODE
LOWtracecat/agent/channels/sinks/__init__.py5__all__ = ["ExternalChannelSink"]CODE
LOWtracecat/agent/channels/sinks/slack.py143 async def _set_in_progress_reaction(self) -> None:CODE
LOWtracecat/agent/channels/sinks/slack.py155 async def _set_terminal_reaction(self, *, is_error: bool) -> None:CODE
LOWtracecat/agent/channels/handlers/slack_helpers.py76async def set_in_progress(client: AsyncWebClient, *, channel_id: str, ts: str) -> None:CODE
LOWtracecat/agent/channels/handlers/slack_helpers.py88async def set_complete(client: AsyncWebClient, *, channel_id: str, ts: str) -> None:CODE
LOWtracecat/agent/channels/handlers/slack_helpers.py106async def set_error(client: AsyncWebClient, *, channel_id: str, ts: str) -> None:CODE
LOWtracecat/mcp/server.py1485async def _update_template_file_artifact(artifact: TemplateFileArtifact) -> None:CODE
LOWtracecat/identifiers/__init__.py102__all__ = [CODE
LOWtracecat/storage/object.py364def set_object_storage(storage: ObjectStorage | None) -> None:CODE
LOWtracecat/storage/object.py425__all__ = [CODE
LOWtracecat/storage/backends/__init__.py6__all__ = [CODE
LOWtracecat/integrations/providers/google/__init__.py7__all__ = [CODE
LOWtracecat/integrations/providers/microsoft/__init__.py34__all__ = [CODE
LOW…cat/integrations/providers/microsoft/azure/__init__.py16__all__ = [CODE
LOW…cat/integrations/providers/microsoft/graph/__init__.py16__all__ = [CODE
LOW…/integrations/providers/microsoft/defender/__init__.py12__all__ = [CODE
LOWtracecat/integrations/catalog/loader.py56logger = logging.getLogger(__name__)CODE
29 more matches not shown…
AI Structural Patterns79 hits · 74 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_inbox_service.py30CODE
LOWtracecat/concurrency.py52CODE
LOWtracecat/tables/service.py1286CODE
LOWtracecat/inbox/service.py40CODE
LOWtracecat/inbox/types.py55CODE
LOWtracecat/inbox/router.py39CODE
LOWtracecat/workspace_sync/adapters/base.py626CODE
LOWtracecat/cases/service.py250CODE
LOWtracecat/cases/service.py371CODE
LOWtracecat/cases/service.py684CODE
LOWtracecat/cases/internal_router.py121CODE
LOWtracecat/cases/internal_router.py209CODE
LOWtracecat/cases/router.py159CODE
LOWtracecat/cases/router.py263CODE
LOWtracecat/cases/router.py428CODE
LOWtracecat/agent/runtime/pydantic_ai/runtime.py78CODE
LOWtracecat/agent/sandbox/nsjail.py127CODE
LOWtracecat/agent/channels/sinks/slack.py205CODE
LOWtracecat/mcp/server.py5246CODE
LOWtracecat/mcp/server.py5476CODE
LOWtracecat/mcp/server.py7767CODE
LOWtracecat/mcp/server.py7847CODE
LOWtracecat/mcp/oidc/endpoints.py404CODE
LOWtracecat/mcp/oidc/endpoints.py527CODE
LOWtracecat/sandbox/service.py317CODE
LOWtracecat/sandbox/service.py414CODE
LOWtracecat/ai/ranker.py369CODE
LOWtracecat/workflow/management/management.py1464CODE
LOWtracecat/workflow/executions/service.py430CODE
LOWtracecat/workflow/executions/common.py322CODE
LOWtracecat/workflow/executions/router.py416CODE
LOWtracecat/expressions/expectations.py144CODE
LOWtracecat/registry/sync/base_service.py277CODE
LOWtracecat/webhooks/router.py573CODE
LOW…cecat-registry/tracecat_registry/_internal/registry.py11CODE
LOW…es/tracecat-registry/tracecat_registry/core/presets.py30CODE
LOW…es/tracecat-registry/tracecat_registry/core/presets.py207CODE
LOW…ages/tracecat-registry/tracecat_registry/core/cases.py58CODE
LOW…ages/tracecat-registry/tracecat_registry/core/cases.py133CODE
LOW…ages/tracecat-registry/tracecat_registry/core/cases.py390CODE
LOW…ages/tracecat-registry/tracecat_registry/core/email.py102CODE
LOW…kages/tracecat-registry/tracecat_registry/core/http.py584CODE
LOW…kages/tracecat-registry/tracecat_registry/core/http.py685CODE
LOW…kages/tracecat-registry/tracecat_registry/core/http.py824CODE
LOW…ages/tracecat-registry/tracecat_registry/core/agent.py228CODE
LOW…ages/tracecat-registry/tracecat_registry/core/agent.py362CODE
LOW…ages/tracecat-registry/tracecat_registry/core/table.py101CODE
LOW…s/tracecat-registry/tracecat_registry/core/workflow.py32CODE
LOW…y/tracecat_registry/integrations/google_secops_soar.py46CODE
LOW…ecat-registry/tracecat_registry/integrations/tavily.py39CODE
LOW…at-registry/tracecat_registry/integrations/okta_sdk.py954CODE
LOW…at-registry/tracecat_registry/integrations/okta_sdk.py1167CODE
LOW…at-registry/tracecat_registry/integrations/okta_sdk.py1225CODE
LOW…gistry/tracecat_registry/integrations/mcp/runreveal.py79CODE
LOW…-registry/tracecat_registry/integrations/mcp/linear.py79CODE
LOW…at-registry/tracecat_registry/integrations/mcp/jira.py82CODE
LOW…-registry/tracecat_registry/integrations/mcp/notion.py79CODE
LOW…-registry/tracecat_registry/integrations/mcp/github.py79CODE
LOW…-registry/tracecat_registry/integrations/mcp/sentry.py79CODE
LOW…cat-registry/tracecat_registry/integrations/mcp/wiz.py79CODE
19 more matches not shown…
Verbosity Indicators33 hits · 62 pts
SeverityFileLineSnippetContext
LOW…ontend/src/components/builder/canvas/selector-node.tsx370 // Step 1: create nodeCOMMENT
LOW…ontend/src/components/builder/canvas/selector-node.tsx385 // Step 2: connect incoming edge to the new nodeCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py378 # Step 1: Authorize — get redirect with codeCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py402 # Step 2: Exchange code for tokensCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py411 # Step 3: Verify access token claimsCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py420 # Step 4: Verify id_token claimsCOMMENT
LOWtracecat/registry/sync/artifact.py402 # Step 1: Create a minimal venv using uvCOMMENT
LOWtracecat/registry/sync/artifact.py417 # Step 2: Install the package and all dependencies into the venvCOMMENT
LOWtracecat/registry/sync/artifact.py439 # Step 3: Locate the site-packages directory (PYTHONPATH entry)COMMENT
LOWtracecat/registry/sync/artifact.py452 # Step 4: Pre-compile Python bytecode for faster imports in sandboxCOMMENT
LOWtracecat/registry/sync/artifact.py472 # Step 5: Pack site-packages into a SquashFS imageCOMMENT
LOWtracecat/registry/sync/artifact.py488 # Step 6: Compute content hashCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py152 # Step 1: Fetch repositoriesCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py159 # Step 2: Display numbered list of repositoriesCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py178 # Step 3: Prompt user to select repositoryCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py192 # Step 4: Fetch versions for selected repositoryCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py201 # Step 5: Display numbered list of versionsCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py227 # Step 6: Prompt user to select versionCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py251 # Step 7: Confirm selectionCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py260 # Step 8: Call promote endpointCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py266 # Step 9: Display resultCOMMENT
LOW…4f54f0a2b_canonicalize_duplicate_custom_scope_links.py26 # Step 1: Remap role_scope links from duplicate custom scopes to theCOMMENT
LOW…4f54f0a2b_canonicalize_duplicate_custom_scope_links.py55 # Step 2: Drop stale role_scope links that point to custom duplicates.COMMENT
LOW…4f54f0a2b_canonicalize_duplicate_custom_scope_links.py80 # Step 3: Delete the now-orphaned custom scope rows that are duplicatesCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py18 # Step 1: Add the owner_id column to case_fields table as nullable initiallyCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py26 # Step 2: Create an index on the owner_id column for better query performanceCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py36 # Step 3: Populate the new owner_id column with data from the related cases tableCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py51 # Step 4: Delete orphaned case_fields records that don't have a valid owner_idCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py62 # Step 5: Create a foreign key constraint linking owner_id to workspace.idCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py76 # Step 6: Make the owner_id column NOT NULL after populating it with dataCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py87 # Step 1: Remove the foreign key constraint first (dependencies must be removed before columns)COMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py90 # Step 2: Remove the index on owner_id columnCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py97 # Step 3: Finally, drop the owner_id column entirelyCOMMENT
Structural Annotation Overuse33 hits · 62 pts
SeverityFileLineSnippetContext
LOW…ontend/src/components/builder/canvas/selector-node.tsx370 // Step 1: create nodeCOMMENT
LOW…ontend/src/components/builder/canvas/selector-node.tsx385 // Step 2: connect incoming edge to the new nodeCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py378 # Step 1: Authorize — get redirect with codeCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py402 # Step 2: Exchange code for tokensCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py411 # Step 3: Verify access token claimsCOMMENT
LOWtests/integration/test_mcp_oidc_flow.py420 # Step 4: Verify id_token claimsCOMMENT
LOWtracecat/registry/sync/artifact.py402 # Step 1: Create a minimal venv using uvCOMMENT
LOWtracecat/registry/sync/artifact.py417 # Step 2: Install the package and all dependencies into the venvCOMMENT
LOWtracecat/registry/sync/artifact.py439 # Step 3: Locate the site-packages directory (PYTHONPATH entry)COMMENT
LOWtracecat/registry/sync/artifact.py452 # Step 4: Pre-compile Python bytecode for faster imports in sandboxCOMMENT
LOWtracecat/registry/sync/artifact.py472 # Step 5: Pack site-packages into a SquashFS imageCOMMENT
LOWtracecat/registry/sync/artifact.py488 # Step 6: Compute content hashCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py152 # Step 1: Fetch repositoriesCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py159 # Step 2: Display numbered list of repositoriesCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py178 # Step 3: Prompt user to select repositoryCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py192 # Step 4: Fetch versions for selected repositoryCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py201 # Step 5: Display numbered list of versionsCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py227 # Step 6: Prompt user to select versionCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py251 # Step 7: Confirm selectionCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py260 # Step 8: Call promote endpointCOMMENT
LOW…ges/tracecat-admin/tracecat_admin/commands/registry.py266 # Step 9: Display resultCOMMENT
LOW…4f54f0a2b_canonicalize_duplicate_custom_scope_links.py26 # Step 1: Remap role_scope links from duplicate custom scopes to theCOMMENT
LOW…4f54f0a2b_canonicalize_duplicate_custom_scope_links.py55 # Step 2: Drop stale role_scope links that point to custom duplicates.COMMENT
LOW…4f54f0a2b_canonicalize_duplicate_custom_scope_links.py80 # Step 3: Delete the now-orphaned custom scope rows that are duplicatesCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py18 # Step 1: Add the owner_id column to case_fields table as nullable initiallyCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py26 # Step 2: Create an index on the owner_id column for better query performanceCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py36 # Step 3: Populate the new owner_id column with data from the related cases tableCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py51 # Step 4: Delete orphaned case_fields records that don't have a valid owner_idCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py62 # Step 5: Create a foreign key constraint linking owner_id to workspace.idCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py76 # Step 6: Make the owner_id column NOT NULL after populating it with dataCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py87 # Step 1: Remove the foreign key constraint first (dependencies must be removed before columns)COMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py90 # Step 2: Remove the index on owner_id columnCOMMENT
LOW…mbic/versions/a6c2d9e7f5b1_add_owner_to_case_fields.py97 # Step 3: Finally, drop the owner_id column entirelyCOMMENT
AI Slop Vocabulary21 hits · 55 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_agent_preset_service.py3281 # Create a preset with comprehensive configurationCOMMENT
MEDIUMtests/unit/test_action_environment_override.py493 # Create a comprehensive workflow with various environment scenariosCOMMENT
LOWtests/unit/test_tables_service.py2079 # Don't start a new transaction, just use the existing oneSTRING
MEDIUMtests/unit/test_functions.py1801 # Definitely not the year 2000COMMENT
MEDIUMtracecat/tables/importer.py155 """Normalize CSV headers for robust matching across parsers."""STRING
MEDIUMtracecat/agent/types.py53# These are used by the legacy pydantic-ai harness, not the sandbox runtimeCOMMENT
MEDIUMtracecat/agent/types.py91# Union type for messages from either harnessCOMMENT
MEDIUMtracecat/agent/exceptions.py28 # Build comprehensive error message with debug infoCOMMENT
MEDIUMtracecat/agent/adapter/vercel.py1104 # Unified approval request from any harness (pydantic-ai or claude)COMMENT
MEDIUMtracecat/agent/adapter/vercel.py1683 # Skip approval header for both harness typesCOMMENT
MEDIUMtracecat/agent/executor/aio.py52# This is an execution harness for an agent that adds persistence + streamingCOMMENT
MEDIUMtracecat/agent/executor/aio.py144 # Unified streaming: emit harness-agnostic eventCOMMENT
MEDIUMtracecat/storage/validation.py88 # Normalize extensions: trim whitespace and lowercase for robust comparisonCOMMENT
LOWtracecat/sandbox/service.py265 # beat us), this will fail on POSIX - that's fine, we just use theirs.COMMENT
LOWtracecat/registry/actions/service.py1500 # If this action is already in the repo, we can just use itCOMMENT
MEDIUMtracecat/db/models.py2910 # Agent harness fieldsCOMMENT
LOWtracecat/executor/service.py810 # ExecutionError already has proper error info, just add loop context if neededCOMMENT
LOWtracecat/webhooks/router.py419 # Currently just return the last response's wf_exec_idCOMMENT
MEDIUM…plates/tools/splunk/kv_store/batch_save_kv_entries.yml9 doc_url: https://help.splunk.com/en/splunk-cloud-platform/leverage-rest-apis/rest-api-reference/10.0.2503/kv-store-endCODE
MEDIUM…/tracecat-ee/tracecat_ee/inbox/providers/agent_runs.py72# not appear here. Add a harness to this set to make its runs inbox-eligible.COMMENT
MEDIUM…/tracecat-ee/tracecat_ee/inbox/providers/agent_runs.py189 # Root sessions only: runs of any inbox-eligible harness, plus legacyCOMMENT
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICALtests/registry/test_core_http.py224 assert route.calls.last.request.content.replace(b" ", b"") == b'{"data":"value"}'CODE
CRITICALtests/registry/test_core_http.py589 content_type_header = route.calls.last.request.headers.get("content-type", "")CODE
CRITICALtests/registry/test_core_http.py651 content_type_header = route.calls.last.request.headers.get("content-type", "")CODE
Modern AI Meta-Vocabulary12 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_mcp_server.py2993 # The publish orchestration lives in WorkflowsManagementService.publish_workflow;COMMENT
MEDIUMtests/unit/api/test_api_workflows.py261 # The build/validate/lock/commit orchestration lives inCOMMENT
MEDIUMtracecat/executor/service.py800 # This handles both template orchestration and UDF executionCOMMENT
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json926 "docs": "https://docs.wiz.io/docs/connect-remote-wiz-mcp-server#agentic-workflows",CODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json926 "docs": "https://docs.wiz.io/docs/connect-remote-wiz-mcp-server#agentic-workflows",CODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json2199 "docs": "https://docs.snyk.io/integrations/snyk-studio-agentic-integrations",CODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json2253 "https://docs.snyk.io/cli-ide-and-ci-cd-integrations/snyk-cli/developer-guardrails-for-agentic-workflows/snyk-CODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json2254 "https://docs.snyk.io/integrations/developer-guardrails-for-agentic-workflows/quickstart-guides-for-mcp"CODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json2616 "https://www.redhat.com/en/blog/it-automation-agentic-ai-introducing-mcp-server-red-hat-ansible-automation-plaCODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json2655 "research_notes": "This is the Microsoft Agent 365 \"Work IQ User\" MCP server (internal server ID mcp_MeServer,CODE
MEDIUM…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json2760 "research_notes": "The official first-party SharePoint MCP server is the \"Work IQ SharePoint\" server in MicrosCODE
MEDIUM…workspace_chat/skills/tracecat-platform-guide/SKILL.md71## Correctness guardrailsCOMMENT
Over-Commented Block23 hits · 21 pts
SeverityFileLineSnippetContext
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
LOWenv-migration.sh1#!/bin/bashCOMMENT
LOWdocker/sandbox/build.sh1#!/usr/bin/env bashCOMMENT
LOWfrontend/jest.setup.js101// Alternatively,COMMENT
LOWfrontend/next-env.d.ts1/// <reference types="next" />COMMENT
LOWfrontend/src/components/chat/chat-session-pane.tsx421 //COMMENT
LOW…de/mermaid-code-block-node/mermaid-code-block-node.tsx201#${svgId} foreignObject span,COMMENT
LOWfrontend/src/lib/workspace.ts1// Workspace role utilities are now handled via RBAC roles.COMMENT
LOWtests/conftest.py221COMMENT
LOWtests/temporal/test_workflows.py5261 "TRIGGER": {},COMMENT
LOWtests/temporal/test_error_handling.py41COMMENT
LOWtests/temporal/test_error_handling.py61 # ),COMMENT
LOWtracecat/expressions/validator/base.py221 returnCOMMENT
LOWtracecat/executor/service.py781 try:COMMENT
LOWtracecat/dsl/scheduler.py621 ) -> None:COMMENT
LOWtracecat/dsl/scheduler.py1461 # await block. If not, streams at the current level will observe 0COMMENT
LOWscripts/openapi/openapi_to_template.py1#!/usr/bin/env python3COMMENT
LOW.github/workflows/run-integration-tests.yml121 #COMMENT
LOWalembic/env.py61# this is the Alembic Config object, which providesCOMMENT
LOWdeployments/fargate/modules/ecs/secrets.tf1# Required secrets in AWS Secrets Manager (all services):COMMENT
Dead Code9 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_agent_runtime.py160CODE
MEDIUMtests/unit/test_agent_runtime.py753CODE
MEDIUMtests/unit/test_agent_runtime.py793CODE
MEDIUMtests/unit/test_agent_runtime.py1715CODE
MEDIUMtests/unit/test_concurrency.py424CODE
MEDIUMtests/unit/test_tier_permits.py42CODE
MEDIUMtests/unit/test_tier_permits.py111CODE
MEDIUMtests/unit/test_agent_socket_io.py68CODE
MEDIUMtracecat/agent/stream/connector.py323CODE
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json841 "description": "The Iru API key sent as the X-API-Key HTTP header. Must be copied exactly as Iru shows it, iCODE
HIGH…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json1568 "description": "Sixtyfour API key. For the Filter Search MCP server it is passed as a query-string parameterCODE
HIGH…at-ee/tracecat_ee/mcp/catalog/mcp_catalog_private.json1576 "research_notes": "Our catalog assumed STDIO, but Sixtyfour's official MCP offering is HTTP (streamable HTTP), pCODE
Overly Generic Function Names6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_registry.py152 def test_function(num: int) -> int:STRING
LOWtests/registry/test_core_python.py90def helper():CODE
LOWtests/registry/test_core_python.py103def process_data(x):CODE
LOWtests/registry/test_core_python.py152def process_data(a, b, c):CODE
LOWtests/registry/test_core_python.py745def process_data(data):CODE
LOWtracecat/dsl/workflow.py747 async def execute_task(self, task: ActionStatement) -> TaskResult:CODE
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHfrontend/tests/markdown-with-frontmatter.test.tsx102 print("hello")CODE
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/src/middleware.ts13 * Feel free to modify this pattern to include more paths.COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdocker-compose.sandbox.yml2# Usage:COMMENT