AI Slop Code Risk Monitor

microsoft/copilot-sdk

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

Multi-platform SDK for integrating GitHub Copilot Agent into apps and services

7.0 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for microsoft/copilot-sdk, a Java project with 10,684 GitHub stars. SynthScan examined 552,666 lines of code across 1444 source files, recording 3244 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 7.0 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

7.0
Adjusted Signal
7.0
Raw Pattern Score
100%
Time Factor
2026-11-18
Last Push
10.7K
Stars
Java
Language
552.7K
Lines of Code
1.4K
Files
3.2K
Pattern Hits
2026-11-18
Scan Date
0.09
HC Hit Rate

Risk Review · Payload v1

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

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

Cognitive Ownership Risk 17.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 6.7/100 · LOW

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

Agent Over-Engineering Ratio 18.0/100 · LOW

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

PR Review Velocity Impact 33.6/100 · MEDIUM

Which changes need focused human review? 3244 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 30HIGH 107MEDIUM 242LOW 2865

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 3244 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers1400 hits · 1227 pts
SeverityFileLineSnippetContext
LOWnodejs/examples/host-helper-services.ts14export async function inspectHostHelperServices(CODE
LOWnodejs/examples/content-exclusion.ts8export async function validateContentExclusionPolicies(client: CopilotClient) {CODE
LOWnodejs/src/copilotRequestHandler.ts255export class CopilotRequestHandler {CODE
LOWnodejs/src/copilotRequestHandler.ts367export function createCopilotRequestAdapter(CODE
LOWnodejs/src/copilotRequestHandler.ts392 function getOrCreate(requestId: string): CopilotRequestExchange | undefined {CODE
LOWnodejs/src/workflow.ts589function validateRequiredWorkflowAgentString(CODE
LOWnodejs/src/workflow.ts598function validateOptionalWorkflowAgentString(CODE
LOWnodejs/src/workflow.ts813export function getWorkflowAgentReference(CODE
LOWnodejs/src/entra.ts9export function registerEntraTokenProvider(CODE
LOWnodejs/src/types.ts1500export function isAttributedPermissionResult(CODE
LOWnodejs/src/types.ts1513export function createAttributedPermissionResult(CODE
LOWnodejs/src/session.ts123function isWorkflowResumeErrorCode(value: unknown): value is WorkflowResumeErrorCode {CODE
LOWnodejs/src/session.ts177function throwIfWorkflowExecutionIsActive(): void {CODE
LOWnodejs/src/session.ts3476function strictJsonValidationError(CODE
LOWnodejs/src/client.ts484async function authenticateClientNegotiate(CODE
LOWnodejs/src/client.ts530function extractBearerTokenProviders(providers: readonly NamedProviderConfig[] | undefined): {CODE
LOWnodejs/src/client.ts581function toWireMemoryConfiguration(CODE
LOWnodejs/src/client.ts686function extractTransformCallbacks(systemMessage: CreateSessionOptions["systemMessage"]): {CODE
LOWnodejs/src/client.ts737async function getSpawnableBundledRuntimePath(): Promise<string> {CODE
LOWnodejs/src/runtimeArtifacts.ts236export function getRuntimeReleaseAssetName(version: string, platform: string): string {CODE
LOWnodejs/src/providerConfiguration.ts11export function toSavedProviderConfiguration(CODE
LOWnodejs/src/localModelJson.ts10export function createLocalModelJsonCodec() {CODE
LOWnodejs/src/installationConfirmation.ts37export function createInstallationConfirmationAdapter(CODE
LOWpython/test_copilot_request_handler_response.py25async def test_http_start_invocation_identity_survives_physical_retries(agent_invocation_id):CODE
LOWpython/test_copilot_request_handler_response.py75async def test_websocket_invocation_identity_is_per_queued_message(legacy):CODE
LOWpython/test_copilot_request_handler_response.py85 async def send_request_message_with_context(self, data, ctx):CODE
LOWpython/test_copilot_request_handler_response.py148async def test_default_websocket_forwarder_filters_handshake_headers():CODE
LOWpython/test_copilot_request_handler_response.py197async def test_default_websocket_forwarder_relays_messages_above_one_mebibyte():CODE
LOWpython/test_copilot_request_handler_response.py386async def test_reads_ahead_and_coalesces_with_one_data_rpc_outstanding() -> None:CODE
LOWpython/test_copilot_request_handler_response.py426async def test_response_iterator_is_advanced_by_one_persistent_task() -> None:CODE
LOWpython/test_copilot_request_handler_response.py444async def test_response_stream_is_closed_by_producer_when_read_ahead_is_full() -> None:CODE
LOWpython/test_copilot_request_handler_response.py459class _ResponseHandler(CopilotRequestHandler):CODE
LOWpython/test_copilot_request_handler_response.py504async def test_request_context_preserves_invocation_identity(CODE
LOWpython/test_copilot_request_handler_response.py524async def test_runtime_cancellation_stops_pending_read_and_closes_source() -> None:CODE
LOWpython/test_copilot_request_handler_response.py549async def test_upstream_error_follows_all_buffered_bytes() -> None:CODE
LOWpython/test_copilot_request_handler_response.py570async def test_rpc_rejection_stops_pending_read_and_closes_source() -> None:CODE
LOWpython/test_copilot_request_handler_response.py588async def test_connection_loss_stops_idle_read_and_closes_source() -> None:CODE
LOWpython/test_copilot_request_handler_response.py614class _EmptyResponseHandler(CopilotRequestHandler):CODE
LOWpython/test_copilot_request_handler_response.py640async def test_frames_after_request_finished_are_ignored() -> None:CODE
LOWpython/test_rpc_timeout.py32 async def test_default_timeout_not_forwarded(self):CODE
LOWpython/test_rpc_timeout.py44 async def test_custom_timeout_forwarded(self):CODE
LOW⚡python/test_rpc_timeout.py55 async def test_timeout_on_session_params_method(self):CODE
LOW⚡python/test_rpc_timeout.py68 async def test_timeout_on_session_no_params_method(self):CODE
LOW⚡python/test_rpc_timeout.py79 async def test_default_timeout_on_session_no_params_method(self):CODE
LOW⚡python/test_rpc_timeout.py92 async def test_timeout_on_server_params_method(self):CODE
LOW⚡python/test_rpc_timeout.py103 async def test_default_timeout_on_server_params_method(self):CODE
LOW⚡python/test_rpc_timeout.py116 async def test_timeout_on_server_no_params_method(self):CODE
LOWpython/test_rpc_timeout.py127 async def test_default_timeout_on_server_no_params_method(self):CODE
LOWpython/test_shell_authentication.py70 async def test_returns_a_secret_only_for_a_well_formed_answer(CODE
LOWpython/test_shell_authentication.py115 async def test_cancels_without_a_handler(self):CODE
LOWpython/test_shell_authentication.py122 async def test_a_handler_whose_answer_is_cancelled_cancels_the_prompt(CODE
LOWpython/test_shell_authentication.py148 async def test_cancelling_the_request_task_still_propagates(self):CODE
LOWpython/test_shell_authentication.py170 async def test_runtime_cancel_aborts_a_pending_request(self):CODE
LOWpython/test_shell_authentication.py190 async def test_a_duplicate_request_is_cancelled_without_closing_the_open_one(self):CODE
LOWpython/test_shell_authentication.py210 async def test_cancels_a_request_whose_handler_never_finishes(self):CODE
LOWpython/test_shell_authentication.py237 async def test_a_handler_that_fails_after_its_prompt_closes_is_not_reported(CODE
LOWpython/test_shell_authentication.py274 async def test_a_handler_that_ignores_cancellation_is_not_collected_while_running(CODE
LOWpython/test_shell_authentication.py316 async def test_passes_the_runtime_request_to_the_handler(self):CODE
LOWpython/test_shell_authentication.py340 async def test_cancels_a_malformed_request_without_asking(self):CODE
LOWpython/test_shell_authentication.py355 async def test_cancel_reaches_the_session_that_took_the_request_after_a_resume(self):CODE
1340 more matches not shown…
Over-Commented Block799 hits · 619 pts
SeverityFileLineSnippetContext
LOWnodejs/README.md2121const session = await client.createSession({COMMENT
LOWgo/github_token_provider.go21// GitHubTokenProviderArgs contains the context for a GitHub token request.COMMENT
LOWgo/github_token_provider.go81// cancellation, errors, and invalid token responses reject session creation orCOMMENT
LOWgo/copilot_request_handler.go61 AgentInvocationID *stringCOMMENT
LOWgo/copilot_request_handler.go101// Text decodes the frame payload as a UTF-8 string.COMMENT
LOWgo/copilot_request_handler.go121 // used. RoundTrip is called directly, so redirects are not followed.COMMENT
LOWgo/copilot_request_handler.go381 return w.sink.sinkError(message, code)COMMENT
LOWgo/copilot_request_handler.go621 }COMMENT
LOWgo/options.go21// ClientExtensionOptions configures client extensions.COMMENT
LOWgo/options.go41 // Recognized values: "none", "error", "warning", "info", "debug", "all".COMMENT
LOWgo/options.go61 UseLoggedInUser *boolCOMMENT
LOWgo/options.go81 RequestHandler *CopilotRequestHandlerCOMMENT
LOWgo/options.go101 // Requires GitHub.Capi.Enabled=false. Nil omits the option (preserving it onCOMMENT
LOWgo/options.go161 TrustWorkingDirectory WorkingDirectoryTrustCOMMENT
LOWgo/options.go181 // and retrieval. When false, session content is not written to or read from theCOMMENT
LOWgo/options.go201 // CreateSessionFSProvider supplies a handler for session filesystem operations.COMMENT
LOWgo/options.go221 // disables. Relative paths resolve once when supplied against the request's effectiveCOMMENT
LOWgo/options.go241 // discovery cache before constructing this new session. Nil or false retains the cache.COMMENT
LOWgo/options.go261 // Directories contains explicit discovery-only file-hook roots, separate from Hooks callbacks.COMMENT
LOWgo/options.go281// SessionSkillOptions configures session skills.COMMENT
LOWgo/options.go301 // releases. Implementations must be safe for concurrent calls.COMMENT
LOWgo/options.go321 // [ModeEmpty].COMMENT
LOWgo/options.go341 // configured.COMMENT
LOWgo/options.go361 // No filesystem grant. Available without EnableConfigDiscovery, subject to source/managedCOMMENT
LOWgo/options.go381 // Sandbox is applied when the session is constructed, before MCP servers start.COMMENT
LOWgo/options.go401 // token data or cancellation.COMMENT
LOWgo/options.go421 // flag or COPILOT_MCP_APPS=true environment override), the runtime adds theCOMMENT
LOWgo/options.go441type SessionGitHubOptions struct {COMMENT
LOWgo/options.go461 Token string `json:"-"`COMMENT
LOWgo/options.go481 // OnUserInputRequest handles legacy question-and-answer requests from the agentCOMMENT
LOWgo/options.go501 Commands []CommandDefinitionCOMMENT
LOWgo/options.go521COMMENT
LOWgo/options.go541 // the session.create RPC is issued. This guarantees that early events emittedCOMMENT
LOWgo/options.go561// SessionExperimentOptions configures session experiments.COMMENT
LOWgo/options.go581 Flags map[string]boolCOMMENT
LOWgo/options.go601 // RequestRenderer asks the host to enable canvas rendering for this session.COMMENT
LOWgo/options.go621 // Handler receives inbound canvas.open / canvas.close / canvas.action.invokeCOMMENT
LOWgo/options.go641 // injected into extension subprocesses. When set to an absolute path containingCOMMENT
LOWgo/options.go661 // the session. Unlike EnableManagedSettings (which asks the runtime toCOMMENT
LOWgo/options.go681 // Network lets the SDK host resolve the runtime's proxies and answerCOMMENT
LOWgo/options.go701 // runtime on the `server.connect` handshake. Declaring it lets theCOMMENT
LOWgo/options.go961 Interaction SessionInteractionOptionsCOMMENT
LOWgo/options.go981 SuppressResumeEvent boolCOMMENT
LOWgo/entra_token_provider.go21 MatsAppName *stringCOMMENT
LOWgo/types.go101type TCPConnection struct {COMMENT
LOWgo/types.go121// on amd64 or arm64. No build tag is required.COMMENT
LOWgo/types.go181 // COPILOT_SDK_DEFAULT_CONNECTION may select "inprocess" or "stdio";COMMENT
LOWgo/types.go201 ExtensionLaunchProvider ExtensionLaunchProviderCOMMENT
LOWgo/types.go221 // When provided, the token is passed to the runtime via environmentCOMMENT
LOWgo/types.go241 // RequestHandler registers a connection-level LLM inference callback. WhenCOMMENT
LOWgo/types.go261 // ClientInfo declares the integrating application's identity, forwarded to theCOMMENT
LOWgo/types.go301COMMENT
LOWgo/types.go421 // sibling sub-sections (tone, tool efficiency, etc.).COMMENT
LOWgo/types.go461 SectionActionPrepend SectionOverrideAction = "prepend"COMMENT
LOWgo/types.go501COMMENT
LOWgo/types.go541// PermissionHandlerWithEnvelopeFunc receives an explicit lossless request.COMMENT
LOWgo/types.go561 // prompt kinds must remain conservative.COMMENT
LOWgo/types.go721}COMMENT
LOWgo/types.go761 // ShellAuthenticationInputKindText is a visible answer, such as a user name.COMMENT
LOWgo/types.go861type ExitPlanModeRequestHandler func(request ExitPlanModeRequest, invocation ExitPlanModeInvocation) (ExitPlanModeResultCOMMENT
739 more matches not shown…
Decorative Section Separators197 hits · 553 pts
SeverityFileLineSnippetContext
MEDIUMpython/test_rpc_timeout.py29 # ── session-scoped, with params ──────────────────────────────────COMMENT
MEDIUM⚡python/test_rpc_timeout.py65 # ── session-scoped, no params ────────────────────────────────────COMMENT
MEDIUM⚡python/test_rpc_timeout.py89 # ── server-scoped, with params ─────────────────────────────────────COMMENT
MEDIUM⚡python/test_rpc_timeout.py113 # ── server-scoped, no params ─────────────────────────────────────COMMENT
MEDIUMpython/test_session_fs_provider.py1# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/test_session_fs_provider.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py30# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py32# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py325# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py327# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py425# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py427# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py1040# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py1042# ============================================================================COMMENT
MEDIUMpython/test_commands_and_elicitation.py916# ============================================================================COMMENT
MEDIUMpython/test_commands_and_elicitation.py918# ============================================================================COMMENT
MEDIUM⚡python/copilot/copilot_request_handler.py533# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/copilot/copilot_request_handler.py535# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/copilot/copilot_request_handler.py689# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/copilot/copilot_request_handler.py691# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py1# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py369# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py371# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py744# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py746# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/session_fs_provider.py1# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/session_fs_provider.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡python/copilot/client.py1497# ============================================================================COMMENT
MEDIUM⚡python/copilot/client.py1499# ============================================================================COMMENT
MEDIUM⚡python/copilot/client.py1502# ============================================================================COMMENT
MEDIUM⚡python/copilot/client.py1504# ============================================================================COMMENT
MEDIUMpython/copilot/client.py235# ============================================================================COMMENT
MEDIUMpython/copilot/client.py237# ============================================================================COMMENT
MEDIUMpython/copilot/client.py1378# ============================================================================COMMENT
MEDIUMpython/copilot/client.py1380# ============================================================================COMMENT
MEDIUMpython/copilot/client.py1635# ============================================================================COMMENT
MEDIUMpython/copilot/client.py1637# ============================================================================COMMENT
MEDIUMpython/copilot/session.py151# ============================================================================COMMENT
MEDIUMpython/copilot/session.py153# ============================================================================COMMENT
MEDIUMpython/copilot/session.py311# ============================================================================COMMENT
MEDIUMpython/copilot/session.py313# ============================================================================COMMENT
MEDIUMpython/copilot/session.py419# ============================================================================COMMENT
MEDIUMpython/copilot/session.py421# ============================================================================COMMENT
MEDIUMpython/copilot/session.py520# ============================================================================COMMENT
MEDIUMpython/copilot/session.py522# ============================================================================COMMENT
MEDIUMpython/copilot/session.py670# ============================================================================COMMENT
MEDIUMpython/copilot/session.py672# ============================================================================COMMENT
MEDIUMpython/copilot/session.py741# ============================================================================COMMENT
MEDIUMpython/copilot/session.py743# ============================================================================COMMENT
MEDIUMpython/copilot/session.py902# ============================================================================COMMENT
MEDIUMpython/copilot/session.py904# ============================================================================COMMENT
MEDIUMpython/copilot/session.py941# ============================================================================COMMENT
MEDIUMpython/copilot/session.py943# ============================================================================COMMENT
MEDIUMpython/copilot/session.py970# ============================================================================COMMENT
MEDIUMpython/copilot/session.py972# ============================================================================COMMENT
MEDIUMpython/copilot/session.py1026# ============================================================================COMMENT
MEDIUMpython/copilot/session.py1028# ============================================================================COMMENT
MEDIUMpython/copilot/session.py1063# ============================================================================COMMENT
MEDIUMpython/copilot/session.py1065# ============================================================================COMMENT
137 more matches not shown…
Hallucination Indicators30 hits · 255 pts
SeverityFileLineSnippetContext
CRITICALjava/docs/adr/adr-005-tool-definition.md163`javax.lang.model.element.VariableElement.getSimpleName()` always returns the real parameter name at compile time, regarCODE
CRITICAL…st/java/com/microsoft/copilot/GitHubTelemetryTest.java249 com.microsoft.copilot.generated.rpc.EntraAuthConfig.builder().clientId("host-entra-client")STRING
CRITICAL…a/com/microsoft/copilot/SessionAutoTierSwitchTest.java133 .setSupports(new com.microsoft.copilot.rpc.ModelCapabilitiesOverride.Supports().setVision(false)CODE
CRITICAL…a/com/microsoft/copilot/SessionAutoTierSwitchTest.java135 .setLimits(new com.microsoft.copilot.rpc.ModelCapabilitiesOverride.Limits().setMaxPromptTokens(0));CODE
CRITICAL…c/test/java/com/microsoft/copilot/RpcWrappersTest.java165 var params = com.microsoft.copilot.generated.rpc.PingParams.builder().message(null).build();STRING
CRITICAL…c/test/java/com/microsoft/copilot/RpcWrappersTest.java670 var limits = com.microsoft.copilot.generated.rpc.SessionLimitsConfig.builder().maxAiCredits(5.0).build();STRING
CRITICAL…c/test/java/com/microsoft/copilot/RpcWrappersTest.java1080 var params = com.microsoft.copilot.generated.rpc.SessionMcpAppsCallToolParams.builder().sessionId(null)STRING
CRITICAL…c/test/java/com/microsoft/copilot/RpcWrappersTest.java1093 var params = com.microsoft.copilot.generated.rpc.SessionMcpAppsCallToolParams.builder().sessionId(null)STRING
CRITICAL…c/test/java/com/microsoft/copilot/RpcWrappersTest.java1107 var params = com.microsoft.copilot.generated.rpc.SessionMcpAppsCallToolParams.builder().serverName("server")STRING
CRITICAL…c/test/java/com/microsoft/copilot/RpcWrappersTest.java1137 com.microsoft.copilot.generated.rpc.SessionMcpAppsCallToolParams.builder().serverName("server")STRING
CRITICAL…c/test/java/com/microsoft/copilot/RpcWrappersTest.java1173 var params = com.microsoft.copilot.generated.rpc.SessionMcpAppsCallToolParams.builder().sessionId(null)STRING
CRITICAL…a/com/microsoft/copilot/SessionRequestBuilderTest.java99 .inference(com.microsoft.copilot.generated.rpc.SessionOpenInferenceOptions.builder()CODE
CRITICAL…k/src/test/java/com/microsoft/copilot/AhpHostTest.java71 for (var mode : com.microsoft.copilot.rpc.CopilotClientMode.values()) {CODE
CRITICAL…test/java/com/microsoft/copilot/CopilotClientTest.java212 var assistedApprovalAssessment = com.microsoft.copilot.generated.AssistedApprovalAssessmentCompleted.builder()CODE
CRITICAL…/com/microsoft/copilot/CopilotClientTransportTest.java73 .completedFuture(com.microsoft.copilot.rpc.GitHubTokenProviderResult.cancelled()));CODE
CRITICAL…c/test/java/com/microsoft/copilot/PermissionsTest.java435 .setApproveAll(com.microsoft.copilot.generated.rpc.SessionPermissionsSetApproveAllParams.builder()CODE
CRITICAL…c/test/java/com/microsoft/copilot/McpOAuthE2ETest.java531 java.util.concurrent.locks.LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(1));CODE
CRITICAL…t/java/com/microsoft/copilot/e2e/RequireInProcess.java62 return org.junit.jupiter.api.extension.ConditionEvaluationResult.disabled(reason);CODE
CRITICAL…test/java/com/microsoft/copilot/e2e/SkipInProcess.java58 return org.junit.jupiter.api.extension.ConditionEvaluationResult.disabled(reason);CODE
CRITICAL…m/microsoft/copilot/tool/CopilotToolProcessorTest.java246 var arguments = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode().put(name, value);STRING
CRITICAL…m/microsoft/copilot/tool/CopilotToolProcessorTest.java424 var arguments = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();STRING
CRITICAL…rc/main/java/com/microsoft/copilot/CopilotSession.java3140 * .setSupports(new com.microsoft.copilot.rpc.ModelCapabilitiesOverride.Supports().setVision(false)))COMMENT
CRITICAL…rc/main/java/com/microsoft/copilot/CopilotSession.java3193 : com.microsoft.copilot.generated.rpc.ReasoningSummary.fromValue(reasoningSummary);CODE
CRITICAL…rc/main/java/com/microsoft/copilot/CopilotSession.java3221 return autoTier == null ? null : com.microsoft.copilot.generated.rpc.AutoTier.fromValue(autoTier.getValue());CODE
CRITICAL…rc/main/java/com/microsoft/copilot/CopilotSession.java3269 : com.microsoft.copilot.generated.rpc.ReasoningSummary.fromValue(options.getReasoningSummary());CODE
CRITICAL…src/main/java/com/microsoft/copilot/CopilotClient.java816 com.microsoft.copilot.generated.rpc.EntraAuthConfig.builder()CODE
CRITICAL…/src/main/java/com/microsoft/copilot/rpc/AutoTier.java67 return new AutoTier(com.microsoft.copilot.generated.rpc.AutoTier.fromValue(value).getValue());CODE
CRITICALdotnet/test/Unit/RuntimeWrapperTests.cs252 return System.Runtime.InteropServices.RuntimeInformation.RuntimeIdentifier.StartsWith(CODE
CRITICALdotnet/test/Unit/MSBuildTargetsTests.cs456 return System.Runtime.InteropServices.RuntimeInformation.RuntimeIdentifier.StartsWith(CODE
CRITICALdotnet/src/Client.cs3556 options.TypeInfoResolverChain.Add(new System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver())CODE
Empty Error Handlers48 hits · 240 pts
SeverityFileLineSnippetContext
HIGHpython/test_shell_authentication.py288except asyncio.CancelledError:CODE
HIGHpython/test_network.py591except asyncio.CancelledError:CODE
HIGHpython/test_auto_mode_recovery.py1281except asyncio.IncompleteReadError:CODE
HIGHpython/copilot/_cli_download.py125except FileNotFoundError:CODE
HIGHpython/copilot/_cli_download.py220except OSError:CODE
HIGHpython/copilot/_cli_download.py528except OSError:CODE
HIGHpython/copilot/_cli_download.py305except OSError:CODE
HIGHpython/copilot/copilot_request_handler.py684except Exception:CODE
HIGHpython/copilot/copilot_request_handler.py764except (asyncio.CancelledError, Exception):CODE
HIGHpython/copilot/copilot_request_handler.py870except StopAsyncIteration:CODE
HIGHpython/copilot/copilot_request_handler.py924except asyncio.CancelledError:CODE
HIGHpython/copilot/copilot_request_handler.py251except Exception:CODE
HIGHpython/copilot/copilot_request_handler.py265except Exception:CODE
HIGHpython/copilot/client.py5983except Exception:CODE
HIGHpython/copilot/client.py5990except Exception:CODE
HIGHpython/copilot/client.py6690except OSError:CODE
HIGHpython/copilot/client.py6697except OSError:CODE
HIGHpython/copilot/client.py6701except OSError:CODE
HIGHpython/copilot/client.py2963except subprocess.TimeoutExpired:CODE
HIGHpython/copilot/session.py3628except (JsonRpcError, ProcessExitedError, OSError):CODE
HIGHpython/copilot/session.py3546except (JsonRpcError, ProcessExitedError, OSError):CODE
HIGHpython/copilot/session.py3606except (JsonRpcError, ProcessExitedError, OSError):CODE
HIGHpython/copilot/session.py3674except (JsonRpcError, ProcessExitedError, OSError):CODE
HIGHpython/copilot/session.py3737except (JsonRpcError, ProcessExitedError, OSError):CODE
HIGHpython/copilot/_jsonrpc.py486except EOFError:CODE
HIGHpython/copilot/_generated/session_events.py79except Exception:CODE
HIGHpython/tests/test_installation_confirmation.py32except OSError:CODE
HIGHpython/tests/test_installation_confirmation.py40except OSError:CODE
HIGHpython/e2e/test_ui_elicitation_multi_client_e2e.py96except Exception:CODE
HIGHpython/e2e/test_session_fs_e2e.py484except Exception:CODE
HIGHpython/e2e/test_byok_bearer_token_provider_e2e.py110except Exception:CODE
HIGHpython/e2e/test_byok_bearer_token_provider_e2e.py127except Exception:CODE
HIGHpython/e2e/test_byok_bearer_token_provider_e2e.py133except Exception:CODE
HIGHpython/e2e/test_multi_client_e2e.py90except Exception:CODE
HIGHpython/e2e/test_multi_client_e2e.py97except Exception:CODE
HIGHpython/e2e/test_copilot_request_handler_e2e.py266except Exception:CODE
HIGHpython/e2e/test_suspend_e2e.py82except Exception:CODE
HIGHpython/e2e/_copilot_request_helpers.py387except Exception:CODE
HIGHpython/e2e/test_mcp_oauth_e2e.py88except asyncio.CancelledError:CODE
HIGHpython/e2e/test_mcp_oauth_e2e.py76except asyncio.CancelledError:CODE
HIGHpython/e2e/test_commands_e2e.py89except Exception:CODE
HIGHpython/e2e/test_copilot_request_cancel_error_e2e.py93except Exception: # noqa: BLE001CODE
HIGHpython/e2e/test_connection_token.py66except Exception:CODE
HIGHpython/e2e/test_connection_token.py148except Exception:CODE
HIGHpython/e2e/test_connection_token.py167except Exception:CODE
HIGHpython/e2e/testharness/proxy.py239except subprocess.TimeoutExpired:CODE
HIGHpython/e2e/testharness/proxy.py246except ProcessLookupError:CODE
HIGHpython/e2e/testharness/context.py204except ExceptionGroup:CODE
Unused Imports378 hits · 236 pts
SeverityFileLineSnippetContext
LOWpython/test_cli_download.py3CODE
LOWpython/test_canvas.py3CODE
LOWpython/test_network.py3CODE
LOWpython/test_e2e_harness_cli_path.py3CODE
LOWpython/test_tool_set.py3CODE
LOWpython/test_telemetry.py3CODE
LOWpython/test_github_token_provider.py1CODE
LOWpython/copilot/_cli_download.py20CODE
LOWpython/copilot/copilot_request_handler.py22CODE
LOWpython/copilot/_telemetry.py3CODE
LOWpython/copilot/session_fs_provider.py17CODE
LOWpython/copilot/host.py5CODE
LOWpython/copilot/client.py15CODE
LOWpython/copilot/client.py41CODE
LOWpython/copilot/tools.py10CODE
LOWpython/copilot/_diagnostics.py3CODE
LOWpython/copilot/session.py9CODE
LOWpython/copilot/session.py145CODE
LOWpython/copilot/_mode.py10CODE
LOWpython/copilot/__init__.py10CODE
LOWpython/copilot/__init__.py13CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
LOWpython/copilot/__init__.py14CODE
318 more matches not shown…
Cross-Language Confusion35 hits · 222 pts
SeverityFileLineSnippetContext
HIGHpython/test_session_e2e_cleanup.py33 assert params["prompt"] == "Run 'sleep 2 && echo done'"CODE
HIGHpython/test_stdio_shutdown.py43 if (status.status === 0 && status.stdout.trim().startsWith("Z")) return;CODE
HIGH⚡python/copilot/copilot_request_handler.py579 exchange._queue.push(_BodyItem(cancel=True, cancel_reason=params.cancel_reason))CODE
HIGH⚡python/copilot/copilot_request_handler.py582 exchange._queue.push(CODE
HIGH⚡python/copilot/copilot_request_handler.py589 exchange._queue.push(_BodyItem(end=True))CODE
HIGHpython/copilot/copilot_request_handler.py622 exchange._queue.push(_BodyItem(cancel=True, cancel_reason="RPC connection closed"))CODE
HIGH⚡python/e2e/test_session_e2e.py1153 "Run 'sleep 2 && echo done'",CODE
HIGHpython/e2e/test_session_e2e.py1074 send_task = asyncio.create_task(session.send("Run 'sleep 2 && echo done'"))CODE
HIGHpython/e2e/_scenario_fake_cli.py19const captureFile = captureIndex >= 0 ? process.argv[captureIndex + 1] : undefined;CODE
HIGHpython/e2e/_scenario_fake_cli.py45function writeError(id, code, message, data = null) {CODE
HIGHpython/e2e/_scenario_fake_cli.py86 parentId: null,CODE
HIGHpython/e2e/_scenario_fake_cli.py103 parentId: null,CODE
HIGHpython/e2e/_scenario_fake_cli.py117 parentId: null,CODE
HIGHpython/e2e/_scenario_fake_cli.py127 parentId: null,CODE
HIGHpython/e2e/_scenario_fake_cli.py154 capture.requests.push({ method: message.method, params: message.params });CODE
HIGHpython/e2e/_scenario_fake_cli.py189 workspacePath: null,CODE
HIGHpython/e2e/_scenario_fake_cli.py190 capabilities: null,CODE
HIGHpython/e2e/_scenario_fake_cli.py229 workspacePath: null,CODE
HIGHpython/e2e/_scenario_fake_cli.py230 capabilities: null,CODE
HIGH⚡python/e2e/_scenario_fake_cli.py276 capture.callbackResponses.push(message);CODE
HIGH⚡python/e2e/_scenario_fake_cli.py281 pendingCreateId = undefined;CODE
HIGH⚡python/e2e/_scenario_fake_cli.py284 workspacePath: null,CODE
HIGH⚡python/e2e/_scenario_fake_cli.py285 capabilities: null,CODE
HIGH⚡python/e2e/_scenario_fake_cli.py298 pendingResumeId = undefined;CODE
HIGH⚡python/e2e/_scenario_fake_cli.py301 workspacePath: null,CODE
HIGH⚡python/e2e/_scenario_fake_cli.py302 capabilities: null,CODE
HIGH⚡python/e2e/test_client_options_e2e.py156 clientResponses.push(message);CODE
HIGH⚡python/e2e/test_client_options_e2e.py158 if (message.id === 9001 && extensionRegistrationId !== undefined) {CODE
HIGH⚡python/e2e/test_client_options_e2e.py158 if (message.id === 9001 && extensionRegistrationId !== undefined) {CODE
HIGH⚡python/e2e/test_client_options_e2e.py160 extensionRegistrationId = undefined;CODE
HIGH⚡python/e2e/test_client_options_e2e.py164 requests.push({ method: message.method, params: message.params });CODE
HIGH⚡python/e2e/test_client_options_e2e.py186 writeResponse(message.id, { sessionId, workspacePath: null, capabilities: null });CODE
HIGH⚡python/e2e/test_client_options_e2e.py193 workspacePath: null,CODE
HIGH⚡python/e2e/test_client_options_e2e.py194 capabilities: null,CODE
HIGHpython/e2e/test_client_options_e2e.py95const captureFile = captureIndex >= 0 ? process.argv[captureIndex + 1] : undefined;CODE
Excessive Try-Catch Wrapping124 hits · 116 pts
SeverityFileLineSnippetContext
MEDIUMpython/README.md1803 print(f"Error in {input['errorContext']}: {input['error']}")STRING
LOWpython/test_force_stop.py95 except Exception as error:CODE
MEDIUMpython/test_auto_mode_recovery.py1325def write_file(self, _path, _content, _mode=None):CODE
MEDIUMpython/test_auto_mode_recovery.py1386def write_file(self, _path, _content, _mode=None):CODE
MEDIUMpython/test_auto_mode_recovery.py1432def hook(_input, _invocation):CODE
LOWpython/test_auto_mode_recovery.py1347 except Exception as error:CODE
LOWpython/test_auto_mode_recovery.py1395 except Exception as error:CODE
LOWpython/test_auto_mode_recovery.py1441 except Exception as error:CODE
MEDIUMpython/copilot/_cli_download.py639 print(f"Error: {exc}", file=sys.stderr)CODE
MEDIUMpython/copilot/copilot_request_handler.py256def aclose(self) -> None:CODE
MEDIUMpython/copilot/copilot_request_handler.py847def _produce(self) -> None:CODE
LOW⚡python/copilot/copilot_request_handler.py684 except Exception:CODE
LOW⚡python/copilot/copilot_request_handler.py875 except Exception as exc:CODE
LOW⚡python/copilot/copilot_request_handler.py885 except Exception as exc:CODE
LOW⚡python/copilot/copilot_request_handler.py889 except Exception as exc:CODE
LOWpython/copilot/copilot_request_handler.py244 except Exception as exc:CODE
LOWpython/copilot/copilot_request_handler.py251 except Exception:CODE
LOWpython/copilot/copilot_request_handler.py265 except Exception:CODE
LOWpython/copilot/copilot_request_handler.py600 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py274 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py287 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py316 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py330 except Exception as exc:CODE
LOW⚡python/copilot/session_fs_provider.py349 except Exception as exc:CODE
LOW⚡python/copilot/session_fs_provider.py356 except Exception as exc:CODE
LOW⚡python/copilot/session_fs_provider.py363 except Exception:CODE
LOWpython/copilot/session_fs_provider.py376 except Exception as exc:CODE
LOW⚡python/copilot/session_fs_provider.py396 except Exception as exc:CODE
LOW⚡python/copilot/session_fs_provider.py403 except Exception as exc:CODE
LOW⚡python/copilot/session_fs_provider.py411 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py425 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py432 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py486 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py512 except Exception:CODE
LOWpython/copilot/host.py392 except Exception:CODE
LOWpython/copilot/host.py395 except Exception:CODE
LOWpython/copilot/host.py508 except Exception:CODE
LOWpython/copilot/host.py563 except Exception:CODE
MEDIUMpython/copilot/host.py388def cleanup() -> None:CODE
MEDIUMpython/copilot/host.py558def invoke() -> None:CODE
LOWpython/copilot/client.py1131 except Exception:CODE
LOWpython/copilot/client.py2923 except Exception as cleanup_error:CODE
LOWpython/copilot/client.py2948 except Exception as e:CODE
LOWpython/copilot/client.py3075 except Exception as e:CODE
LOWpython/copilot/client.py3103 except Exception as e:CODE
LOWpython/copilot/client.py3153 except Exception:CODE
LOWpython/copilot/client.py3162 except Exception:CODE
LOWpython/copilot/client.py3284 except Exception:CODE
LOWpython/copilot/client.py3332 except Exception:CODE
LOWpython/copilot/client.py3342 except Exception:CODE
LOWpython/copilot/client.py4281 except Exception:CODE
LOWpython/copilot/client.py4336 except Exception:CODE
LOWpython/copilot/client.py4448 except Exception as error:CODE
LOWpython/copilot/client.py5983 except Exception:CODE
LOWpython/copilot/client.py5990 except Exception:CODE
LOWpython/copilot/client.py6397 except Exception:CODE
LOWpython/copilot/client.py7121 except Exception as cleanup_error:CODE
LOWpython/copilot/client.py7146 except Exception as error:CODE
LOWpython/copilot/client.py7161 except Exception as error:CODE
LOWpython/copilot/client.py7174 except Exception as error:CODE
64 more matches not shown…
Docstring Block Structure17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHpython/copilot/_cli_download.py260Provision a complete runtime bundle with a ``copilot[.exe]`` alias. Args: version: CLI version to download.STRING
HIGHpython/copilot/client.py3400 Create a new conversation session with the Copilot CLI. Sessions maintain conversation state, handle eSTRING
HIGHpython/copilot/client.py4545 Resume an existing conversation session by its ID. This allows you to continue a previous conversationSTRING
HIGHpython/copilot/client.py5561 Send a ping request to the server to verify connectivity. Starts the client if needed. Args: STRING
HIGHpython/copilot/client.py5715 List all available sessions known to the server. Returns metadata about each session including ID, timSTRING
HIGHpython/copilot/client.py5750 Get metadata for a specific session by ID. This provides an efficient O(1) lookup of a single session'STRING
HIGHpython/copilot/client.py7346 Handle a user input request from the CLI server. Args: params: The user input request paraSTRING
HIGHpython/copilot/session.py1081Shows a generic elicitation dialog with a custom schema. Args: params: Elicitation parameters incluSTRING
HIGHpython/copilot/session.py1105Shows a confirmation dialog and returns the user's boolean answer. Args: message: The question to aSTRING
HIGHpython/copilot/session.py1139Shows a selection dialog with a list of options. Args: message: Instruction to show the user. STRING
HIGHpython/copilot/session.py1176Shows a text input dialog. Args: message: Instruction to show the user. options: OptionSTRING
HIGHpython/copilot/session.py2356 Send a message to this session. The message is processed asynchronously. Subscribe to events via :methSTRING
HIGHpython/copilot/session.py2550 Send a message to this session and wait for its processing to finish. Supported local runtimes correlaSTRING
HIGHpython/copilot/session.py4628 Change the Auto routing preference without changing the selected model. **Experimental.** Part of an eSTRING
HIGHpython/copilot/session.py4680 Change the Copilot Fusion tier without changing the selected model. **Experimental.** Part of an experSTRING
HIGHpython/copilot/_jsonrpc.py222 Send a JSON-RPC request and wait for the response. Args: method: Method name pSTRING
HIGHpython/copilot/_jsonrpc.py558 Read exactly num_bytes, handling partial/short reads from pipes. Args: num_bytes: Number oSTRING
Deep Nesting66 hits · 48 pts
SeverityFileLineSnippetContext
LOWpython/test_session.py291CODE
LOWpython/test_cli_download.py262CODE
LOWpython/test_cli_download.py360CODE
LOWpython/test_skill_provider.py644CODE
LOWpython/test_force_stop.py32CODE
LOWpython/test_replay_proxy.py499CODE
LOWpython/test_replay_proxy.py500CODE
LOWpython/test_jsonrpc.py65CODE
LOWpython/test_jsonrpc.py484CODE
LOWpython/test_jsonrpc.py563CODE
LOWpython/test_jsonrpc.py955CODE
LOWpython/test_jsonrpc.py1023CODE
LOWpython/test_customization_directories.py51CODE
LOWpython/test_auto_mode_recovery.py1877CODE
LOWpython/test_client.py2799CODE
LOWpython/test_client.py3365CODE
LOWpython/copilot/_cli_download.py197CODE
LOWpython/copilot/_cli_download.py259CODE
LOWpython/copilot/_cli_download.py401CODE
LOWpython/copilot/_cli_download.py574CODE
LOWpython/copilot/host.py243CODE
LOWpython/copilot/host.py327CODE
LOWpython/copilot/client.py2371CODE
LOWpython/copilot/client.py2868CODE
LOWpython/copilot/client.py3040CODE
LOWpython/copilot/client.py3246CODE
LOWpython/copilot/client.py3366CODE
LOWpython/copilot/client.py4510CODE
LOWpython/copilot/client.py5904CODE
LOWpython/copilot/client.py7125CODE
LOWpython/copilot/client.py7275CODE
LOWpython/copilot/client.py4163CODE
LOWpython/copilot/client.py7140CODE
LOWpython/copilot/client.py4324CODE
LOWpython/copilot/client.py7281CODE
LOWpython/copilot/tools.py185CODE
LOWpython/copilot/tools.py449CODE
LOWpython/copilot/tools.py268CODE
LOWpython/copilot/tools.py301CODE
LOWpython/copilot/session.py3306CODE
LOWpython/copilot/session.py3549CODE
LOWpython/copilot/session.py4304CODE
LOWpython/copilot/_jsonrpc.py417CODE
LOWpython/copilot/_jsonrpc.py464CODE
LOWpython/copilot/_jsonrpc.py608CODE
LOWpython/copilot/_jsonrpc.py423CODE
LOWpython/copilot/_ffi_runtime_host.py540CODE
LOWpython/e2e/test_ui_elicitation_multi_client_e2e.py108CODE
LOWpython/e2e/test_compaction_e2e.py25CODE
LOWpython/e2e/test_compaction_e2e.py53CODE
LOWpython/e2e/test_host_authentication_e2e.py95CODE
LOWpython/e2e/test_multi_client_e2e.py110CODE
LOWpython/e2e/test_multi_provider_registry_e2e.py18CODE
LOWpython/e2e/test_session_config_e2e.py37CODE
LOWpython/e2e/test_session_config_e2e.py56CODE
LOWpython/e2e/test_session_config_e2e.py194CODE
LOWpython/e2e/test_session_fs_sqlite_e2e.py125CODE
LOWpython/e2e/test_pending_work_resume_e2e.py529CODE
LOWpython/e2e/timeout_diagnostics.py47CODE
LOWpython/e2e/test_mcp_oauth_e2e.py34CODE
6 more matches not shown…
Modern AI Meta-Vocabulary15 hits · 45 pts
SeverityFileLineSnippetContext
MEDIUMgo/types.go494// Removes all SDK guardrails including security restrictions.COMMENT
MEDIUMgo/rpc/zsession_events.go2293 // Zero-based agentic-loop iteration the interrupt landed inCOMMENT
MEDIUMgo/rpc/zsession_events.go2443 // True when the preceding agentic loop was cancelled via abort signalCOMMENT
MEDIUMgo/rpc/zsession_events.go2483 // True when the preceding agentic loop was cancelled via abort signalCOMMENT
MEDIUMgo/rpc/zsession_events.go2685 // How this message was delivered to the agentic loop relative to loop state (idle-start vs. steering/queued while busyCOMMENT
MEDIUMgo/rpc/zsession_events.go3230 // When true, tool calls and permission requests left in flight by the previous session lifetime remain pending after rCOMMENT
MEDIUMgo/rpc/zsession_events.go3825 // Identifier for this turn within the agentic loop, typically a stringified turn numberCOMMENT
MEDIUMgo/rpc/zsession_events.go5034 // The extension management operation (scaffold, reload)COMMENT
MEDIUMgo/rpc/zsession_events.go5346 // The extension management operation (scaffold, reload)COMMENT
MEDIUMgo/rpc/zsession_events.go7957// How this user message was delivered to the agentic loop, relative to whether the loop was already running. This is thCOMMENT
MEDIUMpython/copilot/_generated/session_events.py16912 # Compaction requested while switching to a model with a smaller context window, including a HydraFusion turn's routCOMMENT
MEDIUMpython/copilot/_generated/session_events.py16942 # Default context tier with standard context window size.COMMENT
MEDIUMpython/copilot/_generated/session_events.py16944 # Extended context tier with a larger context window.COMMENT
MEDIUMdocs/features/custom-agents.md1# Custom agents and sub-agent orchestrationCOMMENT
MEDIUMdocs/features/streaming-events.md992## Quick reference: agentic turn flowCOMMENT
Self-Referential Comments17 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUMpython/copilot/client.py6638 # Create a TCP socket connection with timeout. create_connection resolvesCOMMENT
MEDIUMpython/copilot/client.py6671 # Create a file-like wrapper for the socketCOMMENT
MEDIUMpython/copilot/client.py6674 # Create a mock process object that JsonRpcClient expectsCOMMENT
MEDIUMpython/copilot/client.py2349 >>> # Create a client with default transport (in-process runtime)STRING
MEDIUMpython/copilot/client.py2353 >>> # Create a session and send a messageSTRING
MEDIUMpython/e2e/test_skills_e2e.py34 # Create a skill subdirectory with SKILL.mdCOMMENT
MEDIUMpython/e2e/test_skills_e2e.py38 # Create a skill that instructs the model to include a specific marker in responsesCOMMENT
MEDIUMpython/e2e/test_skills_e2e.py157 # Create a session without skills firstCOMMENT
MEDIUM⚡python/e2e/test_session_e2e.py389 # Create a couple of sessions and send messages to persist themCOMMENT
MEDIUM⚡python/e2e/test_session_e2e.py514 # Create a session and send a message to persist itCOMMENT
MEDIUMpython/e2e/test_session_e2e.py440 # Create a session and send a message to persist itCOMMENT
MEDIUMpython/e2e/test_session_e2e.py478 # Create a session and send a message to persist itCOMMENT
MEDIUMpython/e2e/test_hooks_e2e.py34 # Create a file for the model to readCOMMENT
MEDIUMpython/e2e/test_hooks_e2e.py65 # Create a file for the model to readCOMMENT
MEDIUMpython/e2e/test_hooks_e2e.py137 # Create a fileCOMMENT
MEDIUMpython/e2e/test_multi_client_e2e.py349 # Create a file that the agent will try to editCOMMENT
MEDIUMpython/e2e/test_subagent_hooks_e2e.py167 # Create a client with the session-based subagents feature flagCOMMENT
Fake / Example Data37 hits · 37 pts
SeverityFileLineSnippetContext
LOWgo/internal/e2e/structured_output_e2e_test.go29 ModelID: "gpt-4.1", WireModel: "gpt-4.1", APIKey: "fake-token-for-e2e-tests",CODE
LOWgo/internal/e2e/runtime_host_e2e_test.go55 command := map[string]any{"op": "connect", "url": *host.URL, "githubToken": "fake-token-for-e2e-tests"}CODE
LOWgo/internal/e2e/session_e2e_test.go609 APIKey: "fake-key",CODE
LOWgo/internal/e2e/testharness/context.go19const defaultGitHubToken = "fake-token-for-e2e-tests"CODE
LOWpython/e2e/test_ui_elicitation_multi_client_e2e.py60 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_streaming_fidelity_e2e.py98 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_streaming_fidelity_e2e.py140 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_structured_output_e2e.py80 "api_key": "fake-token-for-e2e-tests",CODE
LOWpython/e2e/test_client_lifecycle_e2e.py49 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOW⚡python/e2e/test_session_e2e.py577 "api_key": "fake-key",CODE
LOW⚡python/e2e/test_session_e2e.py595 "api_key": "fake-key",CODE
LOWpython/e2e/test_session_e2e.py267 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_session_e2e.py622 "api_key": "fake-key",CODE
LOWpython/e2e/test_multi_client_e2e.py54 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_telemetry_e2e.py72 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_telemetry_e2e.py185 "token": "fake-token-for-e2e-tests"CODE
LOWpython/e2e/test_mode_empty_e2e.py34 "token": "fake-token-for-e2e-tests"CODE
LOWpython/e2e/test_copilot_request_handler_e2e.py250 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_suspend_e2e.py31 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/_copilot_request_helpers.py360 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_subagent_hooks_e2e.py171 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_commands_e2e.py53 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_connection_token.py45 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/testharness/context.py62DEFAULT_GITHUB_TOKEN = "fake-token-for-e2e-tests"CODE
LOW…est/java/com/microsoft/copilot/ExecutorWiringTest.java94 .setExecutor(executor).getGitHub().setToken("fake-token-for-e2e-tests"));CODE
LOW…ava/com/microsoft/copilot/StructuredOutputE2ETest.java75 .setModelId("gpt-4.1").setWireModel("gpt-4.1").setApiKey("fake-token-for-e2e-tests")CODE
LOW…a/com/microsoft/copilot/CopilotRequestTestSupport.java90 ctx.setCopilotUserByToken("fake-token-for-e2e-tests", "e2e-user", "individual_pro", ctx.getProxyUrl(),CODE
LOW…src/test/java/com/microsoft/copilot/RuntimeHostIT.java157 Map.of("op", "connect", "url", host.getUrl(), "githubToken", "fake-token-for-e2e-tests"));CODE
LOW…rc/test/java/com/microsoft/copilot/E2ETestContext.java75 private static final String DEFAULT_GITHUB_TOKEN = "fake-token-for-e2e-tests";CODE
LOWdotnet/test/Harness/E2ETestContext.cs17 private const string DefaultGitHubToken = "fake-token-for-e2e-tests";CODE
LOWdotnet/test/E2E/RuntimeHostE2ETests.cs131 ["githubToken"] = "fake-token-for-e2e-tests"CODE
LOWdotnet/test/E2E/SessionE2ETests.cs1017 { GitHub = new SessionGitHubOptions { Capi = new CapiSessionOptions { Enabled = false } }, Model = "claude-sonneCODE
LOWdotnet/test/E2E/SessionE2ETests.cs1036 { GitHub = new SessionGitHubOptions { Capi = new CapiSessionOptions { Enabled = false } }, Model = "claude-sonneCODE
LOWdotnet/test/E2E/SessionE2ETests.cs1059 { GitHub = new SessionGitHubOptions { Capi = new CapiSessionOptions { Enabled = false } }, Inference = ByokTestOCODE
LOWdotnet/test/E2E/StructuredOutputE2ETests.cs39 ApiKey = System.Environment.GetEnvironmentVariable("GITHUB_ACTIONS") == "true" ? "fake-token-for-e2e-tesCODE
LOWdotnet/test/E2E/ElicitationE2ETests.cs389 Default = "user@example.com",CODE
LOWdotnet/test/E2E/ElicitationE2ETests.cs397 Assert.Equal("user@example.com", options.Default);CODE
Structural Annotation Overuse20 hits · 32 pts
SeverityFileLineSnippetContext
LOWnodejs/docs/agent-author.md7### Step 1: Scaffold the extensionCOMMENT
LOW⚡nodejs/docs/agent-author.md18### Step 2: Edit the extension fileCOMMENT
LOW⚡nodejs/docs/agent-author.md26### Step 3: Reload extensionsCOMMENT
LOW⚡nodejs/docs/agent-author.md34### Step 4: VerifyCOMMENT
LOWdocs/getting-started.md29## Step 1: install the SDKCOMMENT
LOWdocs/getting-started.md150## Step 2: send your first messageCOMMENT
LOWdocs/getting-started.md411## Step 3: add streaming responsesCOMMENT
LOWdocs/getting-started.md1004## Step 4: add a custom toolCOMMENT
LOWdocs/getting-started.md1465## Step 5: build an interactive assistantCOMMENT
LOWdocs/setup/github-oauth.md75## Step 1: create a GitHub OAuth appCOMMENT
LOWdocs/setup/github-oauth.md89## Step 2: implement the OAuth flowCOMMENT
LOWdocs/setup/github-oauth.md115## Step 3: pass the token to the SDKCOMMENT
LOWdocs/setup/backend-services.md62## Step 1: start the runtime serverCOMMENT
LOWdocs/setup/backend-services.md138## Step 2: connect the SDKCOMMENT
LOWdocs/integrations/microsoft-agent-framework.md200// Step 1: Code review sessionCOMMENT
LOWdocs/integrations/microsoft-agent-framework.md213// Step 2: Documentation session using review outputCOMMENT
LOW.github/workflows/release-changelog.md44### Step 1: Identify the version rangeCOMMENT
LOW.github/workflows/release-changelog.md60### Step 2: Gather changesCOMMENT
LOW.github/workflows/release-changelog.md72### Step 3: Categorize and write upCOMMENT
LOW.github/workflows/release-changelog.md87### Step 4: Update the GitHub ReleaseCOMMENT
Modern Structural Boilerplate32 hits · 30 pts
SeverityFileLineSnippetContext
LOWpython/test_client_start.py768async def _settle(task: asyncio.Task) -> None:CODE
LOW⚡python/test_network.py61 def set_request_handler(self, method: str, handler: Any, **_options: Any) -> None:CODE
LOW⚡python/test_network.py64 def set_raw_request_handler(self, method: str, handler: Any) -> None:CODE
LOW⚡python/test_network.py67 def set_notification_method_handler(self, method: str, handler: Any) -> None:CODE
LOW⚡python/test_github_token_provider.py55 def set_request_handler(self, method: str, handler: Any, **_options: Any) -> None:CODE
LOW⚡python/test_github_token_provider.py58 def set_raw_request_handler(self, method: str, handler: Any) -> None:CODE
LOW⚡python/test_github_token_provider.py61 def set_notification_method_handler(self, method: str, handler: Any) -> None:CODE
LOWpython/copilot/copilot_request_handler.py446 def set_context(self, params: LlmInferenceHTTPRequestStartRequest) -> None:CODE
LOWpython/copilot/host.py44logger = logging.getLogger(__name__)CODE
LOWpython/copilot/host.py129 async def set_allow_creating_new_sessions(self, allowed: bool) -> None:CODE
LOW⚡python/copilot/client.py7264 async def _set_llm_inference_provider(self) -> None:CODE
LOWpython/copilot/client.py175logger = logging.getLogger(__name__)CODE
LOWpython/copilot/client.py5868 async def set_foreground_session_id(self, session_id: str) -> None:CODE
LOWpython/copilot/client.py6793 async def _set_session_fs_provider(self) -> None:CODE
LOW⚡python/copilot/session.py2219 def _set_disconnect_callback(self, callback: Callable[[], None]) -> None:CODE
LOW⚡python/copilot/session.py2223 def _set_release_from_client(self, release: Callable[[CopilotSession], None]) -> None:CODE
LOWpython/copilot/session.py131logger = logging.getLogger(__name__)CODE
LOWpython/copilot/session.py2479 async def set_tools(self, tools: list[Tool]) -> None:CODE
LOWpython/copilot/session.py3823 def _set_open_canvases(self, instances: list[OpenCanvasInstance]) -> None:CODE
LOWpython/copilot/session.py3851 def _set_capabilities(self, capabilities: SessionCapabilities | None) -> None:CODE
LOWpython/copilot/__init__.py340__all__ = [CODE
LOWpython/copilot/rpc.py20__all__ = [CODE
LOWpython/copilot/_jsonrpc.py20logger = logging.getLogger(__name__)CODE
LOWpython/copilot/_jsonrpc.py83 def set_event() -> None:CODE
LOWpython/copilot/entra.py19logger = logging.getLogger(__name__)CODE
LOWpython/copilot/installation_confirmation.py19logger = logging.getLogger(__name__)CODE
LOWpython/copilot/canvas.py34__all__ = [CODE
LOWpython/copilot/_generated/session_events.py18576__all__ = [CODE
LOWpython/copilot/_generated/lifecycle_diagnostics.py408__all__ = [CODE
LOWpython/e2e/testharness/proxy.py163 async def set_copilot_user_by_token(self, token: str, response: dict[str, Any]) -> None:CODE
LOWpython/e2e/testharness/__init__.py7__all__ = [CODE
LOWpython/e2e/testharness/context.py307 async def set_copilot_user_by_token(self, token: str, response: dict[str, Any]) -> None:CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHpython/test_session.py0a host-defined baseexception that is not an exception, like pytest's ``failed``.STRING
HIGHpython/test_skill_provider.py0a host-defined baseexception that is not an exception, like pytest's ``failed``.STRING
HIGHpython/test_memory_store.py0a host-defined baseexception that is not an exception, like pytest's ``failed``.STRING
Synthetic Comment Markers2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHgo/cmd/bundler/main.go857// Code generated by copilot-sdk bundler; DO NOT EDIT.COMMENT
HIGH…a/com/microsoft/copilot/tool/CopilotToolProcessor.java239 out.println("// GENERATED by CopilotToolProcessor — do not edit");CODE
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGH…/main/java/com/microsoft/copilot/rpc/AzureOptions.java21 * .setApiKey("your-api-key").setAzure(new AzureOptions().setApiVersion("2024-02-01"));COMMENT
HIGHdotnet/README.md1527 ApiKey = "your-api-key"STRING
AI Structural Patterns12 hits · 8 pts
SeverityFileLineSnippetContext
LOWpython/copilot/client.py891CODE
LOWpython/copilot/client.py2371CODE
LOWpython/copilot/client.py3366CODE
LOWpython/copilot/client.py4510CODE
LOWpython/copilot/tools.py134CODE
LOWpython/copilot/tools.py150CODE
LOWpython/copilot/tools.py168CODE
LOWpython/copilot/tools.py185CODE
LOWpython/copilot/session.py2343CODE
LOWpython/copilot/session.py2536CODE
LOWpython/copilot/session.py2876CODE
LOWpython/e2e/test_client_options_e2e.py44CODE
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMpython/e2e/testharness/proxy.py37 # The harness server is in the shared test directoryCOMMENT
MEDIUM…c/test/java/com/microsoft/copilot/SlashCommandsIT.java48 * {@link TestUtil#findCliPath()} so the test harness binary is found in CI.COMMENT
Redundant / Tautological Comments4 hits · 4 pts
SeverityFileLineSnippetContext
LOWpython/copilot/client.py2957 # Check if process exited and capture any remaining stderrCOMMENT
LOWpython/copilot/client.py6692 # Close the file wrapper — makefile() holds its ownCOMMENT
LOWpython/copilot/_jsonrpc.py610 # Check if it's a response to our requestCOMMENT
LOWpython/copilot/_jsonrpc.py662 # Check if it's a notification from the serverCOMMENT
Overly Generic Function Names3 hits · 3 pts
SeverityFileLineSnippetContext
LOWpython/copilot/entra.py77 async def handle_request(self, message: dict) -> None:CODE
LOWpython/copilot/installation_confirmation.py71 async def handle_request(self, message: dict) -> None:CODE
LOWpython/e2e/_scenario_fake_cli.py153function handleRequest(message) {CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWgo/session.go39// Example usage:COMMENT