AI Slop Code RIsk Monitor

github/copilot-sdk

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

6.5 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for github/copilot-sdk, a TypeScript project with 10,544 GitHub stars. SynthScan examined 575,410 lines of code across 2002 source files, recording 2991 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 6.5 (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.

6.5
Adjusted Signal
6.5
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
10.5K
Stars
TypeScript
Language
575.4K
Lines of Code
2.0K
Files
3.0K
Pattern Hits
2026-10-12
Scan Date
0.06
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 16.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 5.5/100 · LOW

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

Agent Over-Engineering Ratio 17.4/100 · LOW

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

PR Review Velocity Impact 31.0/100 · MEDIUM

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

What These Metrics Mean

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

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

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

CRITICAL 17HIGH 104MEDIUM 301LOW 2569

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 2991 distinct pattern matches across 24 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

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

Hyper-Verbose Identifiers1321 hits · 1174 pts
SeverityFileLineSnippetContext
LOWnodejs/test/copilot-request-handler.test.ts52class StaticResponseHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/client-api-codegen.test.ts63function expectOnlyPublicClientSessionHandlers(code: string): void {CODE
LOWnodejs/test/client-api-codegen.test.ts81 expect(allInternalCode).toContain("export function registerClientSessionApiHandlers(");CODE
LOWnodejs/test/client-api-codegen.test.ts174 expect(allInternalCode).toContain("def register_client_session_api_handlers(");CODE
LOWnodejs/test/set-tools.test.ts13function sessionWithPendingToolsSet() {CODE
LOWnodejs/test/npm-auth-refresh.test.ts39async function createTemporaryNpmrcPaths(): Promise<string[]> {CODE
LOW…dejs/test/e2e/copilot_request_cancel_error.e2e.test.ts93class ThrowingRequestHandler extends CopilotRequestHandler {CODE
LOW…dejs/test/e2e/copilot_request_cancel_error.e2e.test.ts109class CancellingRequestHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/e2e/permissions.e2e.test.ts741async function createUniqueWorkDirectory(baseDir: string, prefix: string): Promise<string> {CODE
LOWnodejs/test/e2e/rpc_server_misc.e2e.test.ts39 async function createIsolatedStartedClient(CODE
LOWnodejs/test/e2e/subagent_hooks.e2e.test.ts34class RecordingRequestHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/e2e/subagent_hooks.e2e.test.ts75function expectSubagentRequestMetadata(records: RequestRecord[]): void {CODE
LOWnodejs/test/e2e/hydrafusion_max.e2e.test.ts22class FusionRequestHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/e2e/rpc_server.e2e.test.ts16 function createAuthenticatedClient(token: string): CopilotClient {CODE
LOWnodejs/test/e2e/rpc_server.e2e.test.ts50 async function configureAuthenticatedUser(CODE
LOWnodejs/test/e2e/rpc_server.e2e.test.ts89 function createUniqueWorkDirectory(prefix: string): string {CODE
LOWnodejs/test/e2e/session_fs.e2e.test.ts1715function createTestSessionFsHandler(CODE
LOWnodejs/test/e2e/mcp_remote_session_closure.e2e.test.ts151async function startSessionExpiryMcpServer(): Promise<{CODE
LOWnodejs/test/e2e/auto_fusion_routing.e2e.test.ts13class AutoFusionRequestHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/e2e/hooks.e2e.test.ts175 async function expectPreToolUseAfterResume(target: CopilotClient): Promise<void> {CODE
LOWnodejs/test/e2e/copilot_request_session_id.e2e.test.ts41class RecordingRequestHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/e2e/copilot_request_session_id.e2e.test.ts103function buildNonInferenceResponse(url: string): Response {CODE
LOWnodejs/test/e2e/mcp_scoped_sign_in.e2e.test.ts210async function authenticationStateChanged(CODE
LOWnodejs/test/e2e/mode_empty.e2e.test.ts39 async function getSystemMessageSentToLLM(): Promise<string> {CODE
LOWnodejs/test/e2e/pending_work_resume.e2e.test.ts65async function waitForPendingPermissionRequestId(session: CopilotSession): Promise<string> {CODE
LOWnodejs/test/e2e/pending_work_resume.e2e.test.ts79function waitForExternalToolRequests(CODE
LOWnodejs/test/e2e/pending_work_resume.e2e.test.ts191 async function forceStopAfterSessionLockObserved(CODE
LOWnodejs/test/e2e/subagent_prompt_resume.e2e.test.ts35class RecordingRequestHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/e2e/subagent_prompt_resume.e2e.test.ts339 function expectAdaptedExplorePrompt(prompt: string): void {CODE
LOWnodejs/test/e2e/subagent_prompt_resume.e2e.test.ts345 function expectAdaptedGeneralPurposePrompt(prompt: string): void {CODE
LOWnodejs/test/e2e/byok_bearer_token_provider.e2e.test.ts52class CapturingRequestHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/e2e/rpc_shell_user_requested.e2e.test.ts28 function createMarkerThenSleepCommand(markerPath: string, seconds: number): string {CODE
LOW…js/test/e2e/autopilot_assisted_permissions.e2e.test.ts23class AssistedPermissionRequestHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/e2e/compaction.e2e.test.ts209function expectNoConversationCacheMarkers(request: CacheWireRequest): void {CODE
LOWnodejs/test/e2e/rpc_server_plugins.e2e.test.ts51 async function createIsolatedStartedClient(): Promise<{CODE
LOWnodejs/test/e2e/rpc_server_plugins.e2e.test.ts90 function createLocalMarketplaceFixture(): string {CODE
LOWnodejs/test/e2e/rpc_server_plugins.e2e.test.ts115 function createDirectPluginFixture(): string {CODE
LOWnodejs/test/e2e/rpc_session_state_extras.e2e.test.ts32 function createAuthenticatedClient(token: string): CopilotClient {CODE
LOWnodejs/test/e2e/rpc_session_state_extras.e2e.test.ts41 async function configureAuthenticatedUser(token: string): Promise<void> {CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts233 async function expectGitHubMcpConfigApplied(session: CopilotSession): Promise<void> {CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts260 function assertSessionLimitsStatus(CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts317 class RecordingRequestHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts361 function anthropicMessageStreamBody(CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts425 function buildNonInferenceResponse(url: string): Response {CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts521 function assertAnthropicDocumentCitationsEnabled(requestBody: string) {CODE
LOWnodejs/test/e2e/plan_exit_mode_notice.e2e.test.ts31function waitForExitPlanModeRequest(CODE
LOWnodejs/test/e2e/tools_anthropic_updates.e2e.test.ts59function streamRejectionAfterOutput(): Response {CODE
LOWnodejs/test/e2e/telemetry-skills.e2e.test.ts50function expectNoLegacySkillFields(attributes: Record<string, unknown>): void {CODE
LOWnodejs/test/e2e/disabled_mcp_servers.e2e.test.ts24class PersistingRequestHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/e2e/extension_env_access.e2e.test.ts45async function runExtensionAgainstStubHost(options: {CODE
LOW…ejs/test/e2e/assisted_autopilot_permission.e2e.test.ts1038async function configureAssistedAutopilot(session: CopilotSession, workDir: string): Promise<void> {CODE
LOW…ejs/test/e2e/assisted_autopilot_permission.e2e.test.ts1059async function expectAssistedAutopilotConfigured(CODE
LOWnodejs/test/e2e/session_fs_sqlite.e2e.test.ts140function createTestSessionFsHandlerWithSqlite(CODE
LOWnodejs/test/e2e/session_fs_sqlite.e2e.test.ts148 function getOrCreateDb(): DatabaseSync {CODE
LOWnodejs/test/e2e/harness/sdkTestHelper.ts101export async function withFinalAssistantMessage(CODE
LOWnodejs/test/e2e/harness/webSocketResponsesServer.ts12export async function startWebSocketResponsesServer() {CODE
LOWnodejs/scripts/package-release.ts62export function writeRustReleaseSnapshots(CODE
LOWnodejs/scripts/prepare-runtime.ts14export async function resolvePreparedRuntimePath({CODE
LOWnodejs/scripts/package-set-manifest.js22export function verifyPackageSetManifestFiles(manifest, packageDirectory) {CODE
LOWnodejs/scripts/releaseArtifacts.ts31export async function downloadVerifiedReleaseAsset(CODE
1261 more matches not shown…
Decorative Section Separators245 hits · 697 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.py43# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py45# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py310# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py312# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py402# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py404# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py778# ============================================================================COMMENT
MEDIUM⚡python/test_commands_and_elicitation.py780# ============================================================================COMMENT
MEDIUM⚡python/copilot/copilot_request_handler.py499# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/copilot/copilot_request_handler.py501# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/copilot/copilot_request_handler.py620# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/copilot/copilot_request_handler.py622# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py1# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py338# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py340# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py675# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py677# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/session_fs_provider.py1# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/session_fs_provider.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/client.py199# ============================================================================COMMENT
MEDIUMpython/copilot/client.py201# ============================================================================COMMENT
MEDIUMpython/copilot/client.py868# ============================================================================COMMENT
MEDIUMpython/copilot/client.py870# ============================================================================COMMENT
MEDIUMpython/copilot/client.py998# ============================================================================COMMENT
MEDIUMpython/copilot/client.py1000# ============================================================================COMMENT
MEDIUMpython/copilot/client.py1220# ============================================================================COMMENT
MEDIUMpython/copilot/client.py1222# ============================================================================COMMENT
MEDIUMpython/copilot/client.py1340# ============================================================================COMMENT
MEDIUMpython/copilot/client.py1342# ============================================================================COMMENT
MEDIUMpython/copilot/session.py136# ============================================================================COMMENT
MEDIUMpython/copilot/session.py138# ============================================================================COMMENT
MEDIUMpython/copilot/session.py276# ============================================================================COMMENT
MEDIUMpython/copilot/session.py278# ============================================================================COMMENT
MEDIUMpython/copilot/session.py366# ============================================================================COMMENT
MEDIUMpython/copilot/session.py368# ============================================================================COMMENT
MEDIUMpython/copilot/session.py467# ============================================================================COMMENT
MEDIUMpython/copilot/session.py469# ============================================================================COMMENT
MEDIUMpython/copilot/session.py557# ============================================================================COMMENT
MEDIUMpython/copilot/session.py559# ============================================================================COMMENT
MEDIUMpython/copilot/session.py624# ============================================================================COMMENT
MEDIUMpython/copilot/session.py626# ============================================================================COMMENT
MEDIUMpython/copilot/session.py688# ============================================================================COMMENT
MEDIUMpython/copilot/session.py690# ============================================================================COMMENT
MEDIUMpython/copilot/session.py727# ============================================================================COMMENT
MEDIUMpython/copilot/session.py729# ============================================================================COMMENT
MEDIUMpython/copilot/session.py754# ============================================================================COMMENT
MEDIUMpython/copilot/session.py756# ============================================================================COMMENT
MEDIUMpython/copilot/session.py798# ============================================================================COMMENT
MEDIUMpython/copilot/session.py800# ============================================================================COMMENT
MEDIUMpython/copilot/session.py830# ============================================================================COMMENT
MEDIUMpython/copilot/session.py832# ============================================================================COMMENT
MEDIUMpython/copilot/session.py983# ============================================================================COMMENT
MEDIUMpython/copilot/session.py985# ============================================================================COMMENT
185 more matches not shown…
Over-Commented Block677 hits · 529 pts
SeverityFileLineSnippetContext
LOWnodejs/test/e2e/harness/sdkTestContext.ts101 const env = {COMMENT
LOWnodejs/src/index.ts41 CopilotRequestHandler,COMMENT
LOWgo/github_token_provider.go21// GitHubTokenProviderArgs contains the context for a GitHub token request.COMMENT
LOWgo/github_token_provider.go81// resume instead of falling back to ambient authentication.COMMENT
LOWgo/copilot_request_handler.go61 Method stringCOMMENT
LOWgo/copilot_request_handler.go101}COMMENT
LOWgo/copilot_request_handler.go121// WebSocketResponseWriter forwards upstream→runtime WebSocket messages backCOMMENT
LOWgo/types.go61type TCPConnection struct {COMMENT
LOWgo/types.go101//COMMENT
LOWgo/types.go121 Connection RuntimeConnectionCOMMENT
LOWgo/types.go141 ExtensionLaunchProvider ExtensionLaunchProviderCOMMENT
LOWgo/types.go161 // When provided, the token is passed to the runtime via environmentCOMMENT
LOWgo/types.go181 // non-nil, the client registers as the inference provider on connect, andCOMMENT
LOWgo/types.go201 // integration). When true, sessions in a GitHub repository workingCOMMENT
LOWgo/types.go241//COMMENT
LOWgo/types.go361 // SectionTone covers response style, conciseness rules, and output formatting preferences.COMMENT
LOWgo/types.go401 // section out of a group-level "remove" (e.g. keep "tone" when removing theCOMMENT
LOWgo/types.go441// - Append mode (default): SDK foundation + optional custom contentCOMMENT
LOWgo/types.go461// &rpc.PermissionDecisionNoResult{} // decline to respond; another client may answerCOMMENT
LOWgo/types.go1261 // Tools is the list of tool names the agent can use. Nil omits the fieldCOMMENT
LOWgo/types.go1281COMMENT
LOWgo/types.go1321 // OutputDirectory is the directory to write temp files to. Defaults to the OSCOMMENT
LOWgo/types.go1381}COMMENT
LOWgo/types.go1461COMMENT
LOWgo/types.go1481 // Included in the User-Agent header for API requests.COMMENT
LOWgo/types.go1501 EnableConfigDiscovery *boolCOMMENT
LOWgo/types.go1521 EnableFileHooks *boolCOMMENT
LOWgo/types.go1541 // SystemMessage configures system message customizationCOMMENT
LOWgo/types.go1561 OnMCPAuthRequest MCPAuthHandlerCOMMENT
LOWgo/types.go1581 // When non-nil and true, assistant.message_delta and assistant.reasoning_deltaCOMMENT
LOWgo/types.go1601 Providers []NamedProviderConfigCOMMENT
LOWgo/types.go1621 // turn for session rewind and cumulative session diff.COMMENT
LOWgo/types.go1641 // defined locally. See also [ClientOptions.Mode] = [ModeEmpty].COMMENT
LOWgo/types.go1661 MCPOAuthTokenStorage stringCOMMENT
LOWgo/types.go1681 // PluginDirectories is a list of local filesystem paths to Open Plugins-formatCOMMENT
LOWgo/types.go1701 LargeOutput *LargeToolOutputConfigCOMMENT
LOWgo/types.go1721 // Commands registers slash-commands for this session. Each command appears asCOMMENT
LOWgo/types.go1741 // flag or COPILOT_MCP_APPS=true environment override), the runtime adds theCOMMENT
LOWgo/types.go1761 GitHubMCPToolConfig *GitHubMCPToolConfigCOMMENT
LOWgo/types.go1781 // RequestExtensions asks the host to surface declared canvases as agent-visible extensions.COMMENT
LOWgo/types.go1801 // it into the same feature-flag path as CLI-fetched assignments and stampsCOMMENT
LOWgo/types.go1821 // managed defaults remain mutable.COMMENT
LOWgo/types.go1861type ManagedSettingsPermissions struct {COMMENT
LOWgo/types.go1901 // turn: the runtime halts instead of feeding the result back to the modelCOMMENT
LOWgo/types.go1921 ToolCallID stringCOMMENT
LOWgo/types.go1941 // AgentID is the sub-agent instance that issued this call (the AgentID ofCOMMENT
LOWgo/types.go2001type SessionCapabilities struct {COMMENT
LOWgo/types.go2101 // cannot be combined with GitHubToken.COMMENT
LOWgo/types.go2121 // IncludedBuiltinSkills is the allowlist of runtime-bundled skill names.COMMENT
LOWgo/types.go2141 // EnableSessionTelemetry enables or disables internal session telemetry for this session.COMMENT
LOWgo/types.go2161 SessionLimits *rpc.SessionLimitsConfigCOMMENT
LOWgo/types.go2181 ModelCapabilities *rpc.ModelCapabilitiesOverrideCOMMENT
LOWgo/types.go2201 // AskUserVariant selects the model-facing shape of the ask_user tool.COMMENT
LOWgo/types.go2221 // information leakage through the shared embedding cache.COMMENT
LOWgo/types.go2241 // and retrieval across sessions.COMMENT
LOWgo/types.go2261 Diagnostics *rpc.DiagnosticsConfigurationCOMMENT
LOWgo/types.go2281 // Experimental: this API may change or be removed in future SDK or CLICOMMENT
LOWgo/types.go2301 // output exceeding the configured size, the output is written to a temp fileCOMMENT
LOWgo/types.go2321 // SuppressResumeEvent, when true, skips emitting the session.resume event.COMMENT
LOWgo/types.go2341 OnEvent SessionEventHandlerCOMMENT
617 more matches not shown…
Cross-Language Confusion34 hits · 215 pts
SeverityFileLineSnippetContext
HIGHpython/test_stdio_shutdown.py43 if (status.status === 0 && status.stdout.trim().startsWith("Z")) return;CODE
HIGH⚡python/copilot/copilot_request_handler.py537 exchange._queue.push(_BodyItem(cancel=True, cancel_reason=params.cancel_reason))CODE
HIGH⚡python/copilot/copilot_request_handler.py540 exchange._queue.push(CODE
HIGH⚡python/copilot/copilot_request_handler.py544 exchange._queue.push(_BodyItem(end=True))CODE
HIGHpython/copilot/copilot_request_handler.py569 exchange._queue.push(_BodyItem(cancel=True, cancel_reason="RPC connection closed"))CODE
HIGHpython/e2e/test_session_e2e.py1010 await session.send("Run 'sleep 2 && echo done'")CODE
HIGHpython/e2e/test_session_e2e.py1088 "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.py116 parentId: null,CODE
HIGHpython/e2e/_scenario_fake_cli.py126 parentId: null,CODE
HIGHpython/e2e/_scenario_fake_cli.py153 capture.requests.push({ method: message.method, params: message.params });CODE
HIGHpython/e2e/_scenario_fake_cli.py188 workspacePath: null,CODE
HIGHpython/e2e/_scenario_fake_cli.py189 capabilities: null,CODE
HIGHpython/e2e/_scenario_fake_cli.py228 workspacePath: null,CODE
HIGHpython/e2e/_scenario_fake_cli.py229 capabilities: null,CODE
HIGH⚡python/e2e/_scenario_fake_cli.py272 capture.callbackResponses.push(message);CODE
HIGH⚡python/e2e/_scenario_fake_cli.py277 pendingCreateId = undefined;CODE
HIGH⚡python/e2e/_scenario_fake_cli.py280 workspacePath: null,CODE
HIGH⚡python/e2e/_scenario_fake_cli.py281 capabilities: null,CODE
HIGH⚡python/e2e/_scenario_fake_cli.py294 pendingResumeId = undefined;CODE
HIGH⚡python/e2e/_scenario_fake_cli.py297 workspacePath: null,CODE
HIGH⚡python/e2e/_scenario_fake_cli.py298 capabilities: null,CODE
HIGHpython/e2e/test_client_options_e2e.py89const captureFile = captureIndex >= 0 ? process.argv[captureIndex + 1] : undefined;CODE
HIGH⚡python/e2e/test_client_options_e2e.py150 clientResponses.push(message);CODE
HIGH⚡python/e2e/test_client_options_e2e.py152 if (message.id === 9001 && extensionRegistrationId !== undefined) {CODE
HIGH⚡python/e2e/test_client_options_e2e.py152 if (message.id === 9001 && extensionRegistrationId !== undefined) {CODE
HIGH⚡python/e2e/test_client_options_e2e.py154 extensionRegistrationId = undefined;CODE
HIGH⚡python/e2e/test_client_options_e2e.py158 requests.push({ method: message.method, params: message.params });CODE
HIGH⚡python/e2e/test_client_options_e2e.py180 writeResponse(message.id, { sessionId, workspacePath: null, capabilities: null });CODE
HIGH⚡python/e2e/test_client_options_e2e.py187 workspacePath: null,CODE
HIGH⚡python/e2e/test_client_options_e2e.py188 capabilities: null,CODE
Empty Error Handlers41 hits · 205 pts
SeverityFileLineSnippetContext
HIGHpython/copilot/_cli_download.py226except OSError:CODE
HIGHpython/copilot/_cli_download.py450except OSError:CODE
HIGHpython/copilot/copilot_request_handler.py615except Exception:CODE
HIGHpython/copilot/copilot_request_handler.py695except (asyncio.CancelledError, Exception):CODE
HIGHpython/copilot/copilot_request_handler.py801except StopAsyncIteration:CODE
HIGHpython/copilot/copilot_request_handler.py855except asyncio.CancelledError:CODE
HIGHpython/copilot/copilot_request_handler.py224except Exception:CODE
HIGHpython/copilot/copilot_request_handler.py238except Exception:CODE
HIGHpython/copilot/client.py4371except Exception:CODE
HIGHpython/copilot/client.py4378except Exception:CODE
HIGHpython/copilot/client.py4990except OSError:CODE
HIGHpython/copilot/client.py4997except OSError:CODE
HIGHpython/copilot/client.py5001except OSError:CODE
HIGHpython/copilot/client.py2101except subprocess.TimeoutExpired:CODE
HIGHpython/copilot/session.py2947except (JsonRpcError, ProcessExitedError, OSError):CODE
HIGHpython/copilot/session.py2795except (JsonRpcError, ProcessExitedError, OSError):CODE
HIGHpython/copilot/session.py2872except (JsonRpcError, ProcessExitedError, OSError):CODE
HIGHpython/copilot/session.py2925except (JsonRpcError, ProcessExitedError, OSError):CODE
HIGHpython/copilot/session.py2993except (JsonRpcError, ProcessExitedError, OSError):CODE
HIGHpython/copilot/session.py3055except (JsonRpcError, ProcessExitedError, OSError):CODE
HIGHpython/copilot/_jsonrpc.py378except EOFError:CODE
HIGHpython/tests/test_installation_confirmation.py34except OSError:CODE
HIGHpython/e2e/test_ui_elicitation_multi_client_e2e.py93except Exception:CODE
HIGHpython/e2e/test_session_fs_e2e.py478except Exception:CODE
HIGHpython/e2e/test_byok_bearer_token_provider_e2e.py110except Exception:CODE
HIGHpython/e2e/test_byok_bearer_token_provider_e2e.py128except Exception:CODE
HIGHpython/e2e/test_byok_bearer_token_provider_e2e.py134except Exception:CODE
HIGHpython/e2e/test_multi_client_e2e.py87except Exception:CODE
HIGHpython/e2e/test_multi_client_e2e.py94except Exception:CODE
HIGHpython/e2e/test_copilot_request_handler_e2e.py251except Exception:CODE
HIGHpython/e2e/test_suspend_e2e.py82except Exception:CODE
HIGHpython/e2e/_copilot_request_helpers.py356except Exception:CODE
HIGHpython/e2e/test_commands_e2e.py86except Exception:CODE
HIGHpython/e2e/test_copilot_request_cancel_error_e2e.py100except Exception: # noqa: BLE001CODE
HIGHpython/e2e/test_connection_token.py62except Exception:CODE
HIGHpython/e2e/test_connection_token.py143except Exception:CODE
HIGHpython/e2e/test_connection_token.py160except Exception:CODE
HIGHpython/e2e/testharness/proxy.py201except subprocess.TimeoutExpired:CODE
HIGHpython/e2e/testharness/proxy.py208except ProcessLookupError:CODE
HIGHpython/e2e/testharness/proxy.py103except Exception:CODE
HIGHpython/e2e/testharness/context.py206except ExceptionGroup:CODE
Unused Imports297 hits · 194 pts
SeverityFileLineSnippetContext
LOWpython/test_cli_download.py3CODE
LOWpython/test_canvas.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.py74CODE
LOWpython/copilot/tools.py10CODE
LOWpython/copilot/_diagnostics.py3CODE
LOWpython/copilot/session.py9CODE
LOWpython/copilot/session.py131CODE
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__.py19CODE
LOWpython/copilot/__init__.py19CODE
LOWpython/copilot/__init__.py19CODE
LOWpython/copilot/__init__.py19CODE
LOWpython/copilot/__init__.py19CODE
LOWpython/copilot/__init__.py19CODE
LOWpython/copilot/__init__.py19CODE
LOWpython/copilot/__init__.py19CODE
LOWpython/copilot/__init__.py19CODE
LOWpython/copilot/__init__.py19CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
237 more matches not shown…
Hallucination Indicators17 hits · 145 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…/src/test/java/com/github/copilot/RpcWrappersTest.java146 var params = new com.github.copilot.generated.rpc.PingParams(null);STRING
CRITICAL…/src/test/java/com/github/copilot/RpcWrappersTest.java695 var params = new com.github.copilot.generated.rpc.SessionMcpAppsCallToolParams(null, "my-server", "my-tool",STRING
CRITICAL…/src/test/java/com/github/copilot/RpcWrappersTest.java708 var params = new com.github.copilot.generated.rpc.SessionMcpAppsCallToolParams(null, "server1", "tool1", null,STRING
CRITICAL…/src/test/java/com/github/copilot/RpcWrappersTest.java728 var params = new com.github.copilot.generated.rpc.SessionMcpAppsCallToolParams(null, "echo-server", "echo",STRING
CRITICAL…/src/test/java/com/github/copilot/PermissionsTest.java422 .setApproveAll(new com.github.copilot.generated.rpc.SessionPermissionsSetApproveAllParams(CODE
CRITICAL…test/java/com/github/copilot/e2e/RequireInProcess.java61 return org.junit.jupiter.api.extension.ConditionEvaluationResult.disabled(reason);CODE
CRITICAL…rc/test/java/com/github/copilot/e2e/SkipInProcess.java61 return org.junit.jupiter.api.extension.ConditionEvaluationResult.disabled(reason);CODE
CRITICAL…/com/github/copilot/tool/CopilotToolProcessorTest.java316 var arguments = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();STRING
CRITICAL…k/src/main/java/com/github/copilot/CopilotSession.java2544 : com.github.copilot.generated.rpc.ReasoningSummary.fromValue(reasoningSummary);CODE
CRITICAL…k/src/main/java/com/github/copilot/CopilotSession.java2571 return autoTier == null ? null : com.github.copilot.generated.rpc.AutoTier.fromValue(autoTier.getValue());CODE
CRITICAL…k/src/main/java/com/github/copilot/CopilotSession.java2612 : com.github.copilot.generated.rpc.ReasoningSummary.fromValue(options.getReasoningSummary());CODE
CRITICAL…sdk/src/main/java/com/github/copilot/rpc/AutoTier.java67 return new AutoTier(com.github.copilot.generated.rpc.AutoTier.fromValue(value).getValue());CODE
CRITICAL…src/main/java/com/github/copilot/rpc/package-info.java94@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value = "EI_EXPOSE_REP2", justification = "DTOs for JSON deserializaCODE
CRITICALjava/scripts/codegen/java.ts3739 lines.push(` mapper.registerModule(new com.fasterxml.jackson.datatype.jsr310.JavaTimeModule());`);CODE
CRITICALdotnet/test/Unit/RuntimeWrapperTests.cs142 return System.Runtime.InteropServices.RuntimeInformation.RuntimeIdentifier.StartsWith(CODE
CRITICALdotnet/test/Unit/MSBuildTargetsTests.cs384 return System.Runtime.InteropServices.RuntimeInformation.RuntimeIdentifier.StartsWith(CODE
Excessive Try-Catch Wrapping111 hits · 104 pts
SeverityFileLineSnippetContext
MEDIUMpython/README.md1285 print(f"Error in {input['errorContext']}: {input['error']}")STRING
LOWpython/test_force_stop.py77 except Exception as error:CODE
MEDIUMpython/copilot/_cli_download.py561 print(f"Error: {exc}", file=sys.stderr)CODE
MEDIUMpython/copilot/copilot_request_handler.py210def _receive_loop(self) -> None:CODE
MEDIUMpython/copilot/copilot_request_handler.py229def aclose(self) -> None:CODE
MEDIUMpython/copilot/copilot_request_handler.py778def _produce(self) -> None:CODE
LOW⚡python/copilot/copilot_request_handler.py615 except Exception:CODE
LOW⚡python/copilot/copilot_request_handler.py806 except Exception as exc:CODE
LOW⚡python/copilot/copilot_request_handler.py816 except Exception as exc:CODE
LOW⚡python/copilot/copilot_request_handler.py820 except Exception as exc:CODE
LOWpython/copilot/copilot_request_handler.py217 except Exception as exc:CODE
LOWpython/copilot/copilot_request_handler.py224 except Exception:CODE
LOWpython/copilot/copilot_request_handler.py238 except Exception:CODE
LOWpython/copilot/copilot_request_handler.py555 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py238 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py251 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py259 except Exception as exc:CODE
LOW⚡python/copilot/session_fs_provider.py278 except Exception as exc:CODE
LOW⚡python/copilot/session_fs_provider.py285 except Exception as exc:CODE
LOW⚡python/copilot/session_fs_provider.py292 except Exception:CODE
LOWpython/copilot/session_fs_provider.py305 except Exception as exc:CODE
LOW⚡python/copilot/session_fs_provider.py325 except Exception as exc:CODE
LOW⚡python/copilot/session_fs_provider.py332 except Exception as exc:CODE
LOW⚡python/copilot/session_fs_provider.py340 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py354 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py361 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py415 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py441 except Exception:CODE
LOWpython/copilot/host.py251 except Exception:CODE
LOWpython/copilot/host.py254 except Exception:CODE
LOWpython/copilot/host.py330 except Exception:CODE
MEDIUMpython/copilot/host.py247def cleanup() -> None:CODE
MEDIUMpython/copilot/host.py325def invoke() -> None:CODE
LOW⚡python/copilot/client.py2320 except Exception:CODE
LOW⚡python/copilot/client.py2327 except Exception:CODE
LOW⚡python/copilot/client.py2336 except Exception:CODE
LOWpython/copilot/client.py777 except Exception:CODE
LOWpython/copilot/client.py2049 except Exception:CODE
LOWpython/copilot/client.py2086 except Exception as e:CODE
LOWpython/copilot/client.py2149 except Exception as e:CODE
LOWpython/copilot/client.py2175 except Exception as e:CODE
LOWpython/copilot/client.py2220 except Exception:CODE
LOWpython/copilot/client.py2229 except Exception:CODE
LOWpython/copilot/client.py3088 except Exception:CODE
LOWpython/copilot/client.py3130 except Exception:CODE
LOWpython/copilot/client.py4371 except Exception:CODE
LOWpython/copilot/client.py4378 except Exception:CODE
LOWpython/copilot/tools.py299 except Exception as exc:CODE
LOW⚡python/copilot/session.py1704 except Exception as err:CODE
LOW⚡python/copilot/session.py1712 except Exception as err:CODE
LOW⚡python/copilot/session.py1720 except Exception as err:CODE
LOW⚡python/copilot/session.py2667 except Exception as exc:CODE
LOW⚡python/copilot/session.py2675 except Exception as exc:CODE
LOW⚡python/copilot/session.py3228 except Exception:CODE
MEDIUMpython/copilot/session.py2429 ... print(f"Error: {data.message}")STRING
LOWpython/copilot/session.py2475 except Exception:CODE
LOWpython/copilot/session.py2701 except Exception:CODE
LOWpython/copilot/session.py2785 except Exception as exc:CODE
LOWpython/copilot/session.py2860 except Exception:CODE
LOWpython/copilot/session.py2915 except Exception:CODE
51 more matches not shown…
Docstring Block Structure17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHpython/copilot/_cli_download.py186Provision a complete runtime bundle with a ``copilot[.exe]`` alias. Args: version: CLI version to download.STRING
HIGHpython/copilot/client.py1902 Parse CLI URL into host and port. Supports formats: "host:port", "[ipv6]:port", "http://host:port", STRING
HIGHpython/copilot/client.py2444 Create a new conversation session with the Copilot CLI. Sessions maintain conversation state, handle eSTRING
HIGHpython/copilot/client.py3331 Resume an existing conversation session by its ID. This allows you to continue a previous conversationSTRING
HIGHpython/copilot/client.py3994 Send a ping request to the server to verify connectivity. Args: message: Optional message STRING
HIGHpython/copilot/client.py4108 List all available sessions known to the server. Returns metadata about each session including ID, timSTRING
HIGHpython/copilot/client.py4143 Get metadata for a specific session by ID. This provides an efficient O(1) lookup of a single session'STRING
HIGHpython/copilot/client.py5285 Handle a user input request from the CLI server. Args: params: The user input request paraSTRING
HIGHpython/copilot/session.py848Shows a generic elicitation dialog with a custom schema. Args: params: Elicitation parameters incluSTRING
HIGHpython/copilot/session.py872Shows a confirmation dialog and returns the user's boolean answer. Args: message: The question to aSTRING
HIGHpython/copilot/session.py906Shows a selection dialog with a list of options. Args: message: Instruction to show the user. STRING
HIGHpython/copilot/session.py943Shows a text input dialog. Args: message: Instruction to show the user. options: OptionSTRING
HIGHpython/copilot/session.py1991 Send a message to this session. The message is processed asynchronously. Subscribe to events via :methSTRING
HIGHpython/copilot/session.py2139 Send a message to this session and wait until the session becomes idle. This is a convenience method tSTRING
HIGHpython/copilot/session.py3774 Change the Auto routing preference without changing the selected model. **Experimental.** Part of an eSTRING
HIGHpython/copilot/_jsonrpc.py189 Send a JSON-RPC request and wait for the response. Args: method: Method name pSTRING
HIGHpython/copilot/_jsonrpc.py425 Read exactly num_bytes, handling partial/short reads from pipes. Args: num_bytes: Number oSTRING
Structural Annotation Overuse48 hits · 79 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.md30## Step 1: install the SDKCOMMENT
LOWdocs/getting-started.md139## Step 2: send your first messageCOMMENT
LOWdocs/getting-started.md371## Step 3: add streaming responsesCOMMENT
LOWdocs/getting-started.md880## Step 4: add a custom toolCOMMENT
LOWdocs/getting-started.md1288## 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.md114## Step 3: pass the token to the SDKCOMMENT
LOWdocs/setup/backend-services.md59## Step 1: start the CLI in headless modeCOMMENT
LOWdocs/setup/backend-services.md122## Step 2: connect the SDKCOMMENT
LOWdocs/integrations/microsoft-agent-framework.md367// Step 1: Code review sessionCOMMENT
LOWdocs/integrations/microsoft-agent-framework.md377// 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
LOW…va-adapt-handwritten-code-to-accept-upgrade-changes.md68### Step 0: SetupCOMMENT
LOW⚡…va-adapt-handwritten-code-to-accept-upgrade-changes.md83### Step 1: Reproduce failuresCOMMENT
LOW⚡…va-adapt-handwritten-code-to-accept-upgrade-changes.md93### Step 2: Analyze compilation errorsCOMMENT
LOW⚡…va-adapt-handwritten-code-to-accept-upgrade-changes.md102### Step 3: Fix compilation errorsCOMMENT
LOW…va-adapt-handwritten-code-to-accept-upgrade-changes.md117### Step 4: Fix test failuresCOMMENT
LOW…va-adapt-handwritten-code-to-accept-upgrade-changes.md131### Step 5: FormatCOMMENT
LOW…va-adapt-handwritten-code-to-accept-upgrade-changes.md137### Step 6: Final validationCOMMENT
LOW.github/workflows/java-codegen-fix.md83### Step 0: SetupCOMMENT
LOW.github/workflows/java-codegen-fix.md106### Step 1: Reproduce the failureCOMMENT
LOW.github/workflows/java-codegen-fix.md118### Step 2: Diagnose the root causeCOMMENT
LOW.github/workflows/java-codegen-fix.md147### Step 3: Fix the code generator (if needed)COMMENT
LOW.github/workflows/java-codegen-fix.md170### Step 4: Fix handwritten code (up to 3 attempts)COMMENT
LOW.github/workflows/java-codegen-fix.md210### Step 5: Push fixesCOMMENT
LOW.github/workflows/java-codegen-fix.md223### Step 6: Failure handlingCOMMENT
LOW⚡.github/workflows/cross-repo-issue-analysis.md66### Step 1: Understand the IssueCOMMENT
LOW⚡.github/workflows/cross-repo-issue-analysis.md70### Step 2: Analyze Against copilot-sdkCOMMENT
LOW⚡.github/workflows/cross-repo-issue-analysis.md78### Step 3: Investigate copilot-agent-runtimeCOMMENT
LOW.github/workflows/cross-repo-issue-analysis.md95### Step 4: Make Your DeterminationCOMMENT
LOW.github/agents/sdk-docs-maintenance.agent.md279### Step 1: Inventory Current DocsCOMMENT
LOW.github/agents/sdk-docs-maintenance.agent.md289### Step 2: Check Feature CoverageCOMMENT
LOW.github/agents/sdk-docs-maintenance.agent.md313### Step 3: Validate LinksCOMMENT
LOW.github/agents/sdk-docs-maintenance.agent.md328### Step 4: Check Multi-Language ExamplesCOMMENT
LOW.github/agents/sdk-docs-maintenance.agent.md343### Step 5: Validate Code Samples Against SDK InterfaceCOMMENT
LOW.github/agents/sdk-docs-maintenance.agent.md461### Step 6: Create the PlanCOMMENT
LOW.github/skills/sdk-java-e2e-test/SKILL.md31### Step 1: Choose a snapshot category and snapshot base nameCOMMENT
LOW.github/skills/sdk-java-e2e-test/SKILL.md40### Step 2: Use a recorded snapshotCOMMENT
LOW.github/skills/sdk-java-e2e-test/SKILL.md63### Step 3: Create the Java IT test classCOMMENT
LOW.github/skills/sdk-java-e2e-test/SKILL.md134### Step 4: VerifyCOMMENT
Modern AI Meta-Vocabulary22 hits · 63 pts
SeverityFileLineSnippetContext
MEDIUMgo/types.go432// Removes all SDK guardrails including security restrictions.COMMENT
MEDIUMgo/rpc/zsession_events.go2048 // Zero-based agentic-loop iteration the interrupt landed inCOMMENT
MEDIUMgo/rpc/zsession_events.go2192 // True when the preceding agentic loop was cancelled via abort signalCOMMENT
MEDIUMgo/rpc/zsession_events.go2232 // True when the preceding agentic loop was cancelled via abort signalCOMMENT
MEDIUMgo/rpc/zsession_events.go2417 // How this message was delivered to the agentic loop relative to loop state (idle-start vs. steering/queued while busyCOMMENT
MEDIUMgo/rpc/zsession_events.go2867 // When true, tool calls and permission requests left in flight by the previous session lifetime remain pending after rCOMMENT
MEDIUMgo/rpc/zsession_events.go3413 // Identifier for this turn within the agentic loop, typically a stringified turn numberCOMMENT
MEDIUMgo/rpc/zsession_events.go4366 // The extension management operation (scaffold, reload)COMMENT
MEDIUMgo/rpc/zsession_events.go4674 // The extension management operation (scaffold, reload)COMMENT
MEDIUMgo/rpc/zsession_events.go7141// How this user message was delivered to the agentic loop, relative to whether the loop was already running. This is thCOMMENT
MEDIUMdocs/AGENTS.md10* `# Custom agents and sub-agent orchestration` — not `# Custom Agents & Sub-Agent Orchestration`COMMENT
MEDIUMdocs/features/custom-agents.md1# Custom agents and sub-agent orchestrationCOMMENT
MEDIUMdocs/features/streaming-events.md979## Quick reference: agentic turn flowCOMMENT
MEDIUMdocs/integrations/microsoft-agent-framework.md631### Handle errors at the orchestration levelCOMMENT
MEDIUM.github/agents/agentic-workflows.md45- Configuration: `https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/github-agentic-workflows.md`CODE
MEDIUM⚡.github/agents/agentic-workflows.md69**Prompt file**: `https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/create-agentic-workflow.md`CODE
MEDIUM⚡.github/agents/agentic-workflows.md79**Prompt file**: `https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/update-agentic-workflow.md`CODE
MEDIUM⚡.github/agents/agentic-workflows.md89**Prompt file**: `https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/debug-agentic-workflow.md`CODE
MEDIUM⚡.github/agents/agentic-workflows.md99**Prompt file**: `https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/upgrade-agentic-workflows.md`CODE
MEDIUM.github/agents/agentic-workflows.md119**Prompt file**: `https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/create-shared-agentic-workflow.md`CODE
MEDIUM.github/agents/agentic-workflows.md193# Initialize repository for agentic workflowsCOMMENT
MEDIUM.github/agents/agentic-workflows.md225- Always reference the instructions file at `https://raw.githubusercontent.com/github/gh-aw/main/.github/aw/github-agentCODE
Fake / Example Data50 hits · 50 pts
SeverityFileLineSnippetContext
LOWnodejs/test/ahpSealedAuth.test.ts18 const token = "fake-token-for-e2e-tests";CODE
LOWnodejs/test/e2e/streaming_fidelity.e2e.test.ts87 gitHubToken: isCI ? "fake-token-for-e2e-tests" : process.env.GITHUB_TOKEN,CODE
LOWnodejs/test/e2e/streaming_fidelity.e2e.test.ts145 gitHubToken: isCI ? "fake-token-for-e2e-tests" : process.env.GITHUB_TOKEN,CODE
LOWnodejs/test/e2e/session.e2e.test.ts504 gitHubToken: isCI ? "fake-token-for-e2e-tests" : undefined,CODE
LOWnodejs/test/e2e/session.e2e.test.ts576 apiKey: "fake-key",CODE
LOWnodejs/test/e2e/harness/sdkTestContext.ts22export const DEFAULT_GITHUB_TOKEN = "fake-token-for-e2e-tests";CODE
LOWgo/internal/e2e/structured_output_e2e_test.go32 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.go622 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.py139 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_structured_output_e2e.py67 "api_key": "fake-token-for-e2e-tests",CODE
LOWpython/e2e/test_client_lifecycle_e2e.py59 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOW⚡python/e2e/test_session_e2e.py539 "api_key": "fake-key",CODE
LOW⚡python/e2e/test_session_e2e.py550 "api_key": "fake-key",CODE
LOWpython/e2e/test_session_e2e.py259 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_session_e2e.py571 "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.py174 github_token="fake-token-for-e2e-tests"CODE
LOWpython/e2e/test_mode_empty_e2e.py29 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_copilot_request_handler_e2e.py236 "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.py330 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_subagent_hooks_e2e.py166 "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.py61DEFAULT_GITHUB_TOKEN = "fake-token-for-e2e-tests"CODE
LOWrust/tests/mcp_plan_transport_choice_test.rs79 "placeholder": "${secret:opaque-id}",CODE
LOWrust/tests/e2e/session.rs1740 .with_api_key("fake-key"),CODE
LOWrust/tests/e2e/session.rs1768 .with_api_key("fake-key")CODE
LOWrust/tests/e2e/session.rs1806 .with_api_key("fake-key"),CODE
LOWrust/tests/e2e/elicitation.rs481 default: Some("user@example.com"),CODE
LOWrust/tests/e2e/elicitation.rs489 assert_eq!(options.default, Some("user@example.com"));CODE
LOW…c/test/java/com/github/copilot/ExecutorWiringTest.java90 .setGitHubToken("fake-token-for-e2e-tests");CODE
LOW…t/java/com/github/copilot/StructuredOutputE2ETest.java68 .setModelId("gpt-4.1").setWireModel("gpt-4.1").setApiKey("fake-token-for-e2e-tests")CODE
LOW…java/com/github/copilot/CopilotRequestTestSupport.java86 ctx.setCopilotUserByToken("fake-token-for-e2e-tests", "e2e-user", "individual_pro", ctx.getProxyUrl(),CODE
LOW…dk/src/test/java/com/github/copilot/RuntimeHostIT.java151 Map.of("op", "connect", "url", host.getUrl(), "githubToken", "fake-token-for-e2e-tests"));CODE
LOW…k/src/test/java/com/github/copilot/E2ETestContext.java66 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.cs128 ["githubToken"] = "fake-token-for-e2e-tests"CODE
LOWdotnet/test/E2E/SessionE2ETests.cs1028 ApiKey = "fake-key",CODE
LOWdotnet/test/E2E/SessionE2ETests.cs1054 ApiKey = "fake-key",CODE
LOWdotnet/test/E2E/SessionE2ETests.cs1088 ApiKey = "fake-key",CODE
LOWdotnet/test/E2E/StructuredOutputE2ETests.cs31 ? "fake-token-for-e2e-tests"CODE
LOWdotnet/test/E2E/StructuredOutputE2ETests.cs32 : System.Environment.GetEnvironmentVariable("GITHUB_TOKEN") ?? "fake-token-for-e2e-tests",CODE
LOWdotnet/test/E2E/ElicitationE2ETests.cs343 Default = "user@example.com",CODE
LOWdotnet/test/E2E/ElicitationE2ETests.cs351 Assert.Equal("user@example.com", options.Default);CODE
Self-Referential Comments18 hits · 46 pts
SeverityFileLineSnippetContext
MEDIUMpython/copilot/client.py4941 # Create a TCP socket connection with timeout. create_connection resolvesCOMMENT
MEDIUMpython/copilot/client.py4971 # Create a file-like wrapper for the socketCOMMENT
MEDIUMpython/copilot/client.py4974 # Create a mock process object that JsonRpcClient expectsCOMMENT
MEDIUMpython/copilot/client.py1578 >>> # Create a client with default options (spawns CLI server)STRING
MEDIUMpython/copilot/client.py1582 >>> # 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.py159 # Create a session without skills firstCOMMENT
MEDIUM⚡python/e2e/test_session_e2e.py380 # Create a couple of sessions and send messages to persist themCOMMENT
MEDIUMpython/e2e/test_session_e2e.py423 # Create a session and send a message to persist itCOMMENT
MEDIUMpython/e2e/test_session_e2e.py452 # Create a session and send a message to persist itCOMMENT
MEDIUMpython/e2e/test_session_e2e.py490 # 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.py135 # Create a fileCOMMENT
MEDIUMpython/e2e/test_multi_client_e2e.py343 # Create a file that the agent will try to editCOMMENT
MEDIUMpython/e2e/test_subagent_hooks_e2e.py162 # Create a client with the session-based subagents feature flagCOMMENT
MEDIUMpython/e2e/testharness/context.py115 # Create the shared client (like Node.js/Go do). The in-process (FFI)COMMENT
Cross-Language Confusion (JS/TS)8 hits · 42 pts
SeverityFileLineSnippetContext
HIGH⚡scripts/codegen/python.ts3353 return NoneCODE
HIGHscripts/codegen/python.ts2338 lines.push(` return None`);CODE
HIGHscripts/codegen/python.ts2354 lines.push(" return None");CODE
HIGHscripts/codegen/python.ts3817 elif "max_context_window_tokens" not in caps["limits"]:CODE
HIGHscripts/codegen/python.ts4412 lines.push(` return None`);CODE
HIGHscripts/codegen/python.ts4500 lines.push(` if handler is None: return None`);CODE
HIGHscripts/codegen/python.ts4502 lines.push(` return None`);CODE
HIGHscripts/codegen/python.ts4528 lines.push(` return None`);CODE
Deep Nesting38 hits · 30 pts
SeverityFileLineSnippetContext
LOWpython/test_session.py200CODE
LOWpython/test_skill_provider.py561CODE
LOWpython/test_force_stop.py29CODE
LOWpython/test_jsonrpc.py55CODE
LOWpython/test_jsonrpc.py134CODE
LOWpython/test_client.py1408CODE
LOWpython/copilot/_cli_download.py496CODE
LOWpython/copilot/host.py139CODE
LOWpython/copilot/client.py1600CODE
LOWpython/copilot/client.py2009CODE
LOWpython/copilot/client.py2108CODE
LOWpython/copilot/client.py2270CODE
LOWpython/copilot/client.py2352CODE
LOWpython/copilot/client.py3237CODE
LOWpython/copilot/client.py4292CODE
LOWpython/copilot/client.py2991CODE
LOWpython/copilot/client.py3120CODE
LOWpython/copilot/tools.py160CODE
LOWpython/copilot/tools.py409CODE
LOWpython/copilot/tools.py232CODE
LOWpython/copilot/tools.py265CODE
LOWpython/copilot/session.py3492CODE
LOWpython/copilot/_jsonrpc.py475CODE
LOWpython/copilot/_ffi_runtime_host.py510CODE
LOWpython/e2e/test_ui_elicitation_multi_client_e2e.py105CODE
LOWpython/e2e/test_compaction_e2e.py25CODE
LOWpython/e2e/test_compaction_e2e.py51CODE
LOWpython/e2e/test_multi_client_e2e.py107CODE
LOWpython/e2e/test_multi_provider_registry_e2e.py18CODE
LOWpython/e2e/test_session_config_e2e.py34CODE
LOWpython/e2e/test_session_config_e2e.py53CODE
LOWpython/e2e/test_session_fs_sqlite_e2e.py125CODE
LOWpython/e2e/test_pending_work_resume_e2e.py505CODE
LOWpython/e2e/timeout_diagnostics.py47CODE
LOWpython/e2e/test_subagent_hooks_e2e.py44CODE
LOWpython/e2e/test_subagent_hooks_e2e.py104CODE
LOWpython/e2e/test_commands_e2e.py98CODE
LOWpython/e2e/testharness/context.py223CODE
Modern Structural Boilerplate23 hits · 20 pts
SeverityFileLineSnippetContext
LOW⚡python/test_github_token_provider.py44 def set_request_handler(self, method: str, handler: Any, **_options: Any) -> None:CODE
LOW⚡python/test_github_token_provider.py47 def set_raw_request_handler(self, method: str, handler: Any) -> None:CODE
LOW⚡python/test_github_token_provider.py50 def set_notification_method_handler(self, method: str, handler: Any) -> None:CODE
LOWpython/copilot/copilot_request_handler.py413 def set_context(self, params: LlmInferenceHTTPRequestStartRequest) -> None:CODE
LOWpython/copilot/host.py31logger = logging.getLogger(__name__)CODE
LOW⚡python/copilot/client.py5257 async def _set_llm_inference_provider(self) -> None:CODE
LOWpython/copilot/client.py145logger = logging.getLogger(__name__)CODE
LOWpython/copilot/client.py4256 async def set_foreground_session_id(self, session_id: str) -> None:CODE
LOWpython/copilot/client.py5110 async def _set_session_fs_provider(self) -> None:CODE
LOWpython/copilot/session.py121logger = logging.getLogger(__name__)CODE
LOWpython/copilot/session.py1870 def _set_disconnect_callback(self, callback: Callable[[], None]) -> None:CODE
LOWpython/copilot/session.py2070 async def set_tools(self, tools: list[Tool]) -> None:CODE
LOWpython/copilot/session.py3141 def _set_open_canvases(self, instances: list[OpenCanvasInstance]) -> None:CODE
LOWpython/copilot/session.py3169 def _set_capabilities(self, capabilities: SessionCapabilities | None) -> None:CODE
LOWpython/copilot/__init__.py263__all__ = [CODE
LOWpython/copilot/rpc.py19__all__ = [*_generated_all, "PermissionDecisionSource", "UIElicitationSchemaType"]CODE
LOWpython/copilot/_jsonrpc.py20logger = logging.getLogger(__name__)CODE
LOWpython/copilot/_jsonrpc.py66 def set_event() -> None:CODE
LOWpython/copilot/installation_confirmation.py19logger = logging.getLogger(__name__)CODE
LOWpython/copilot/canvas.py34__all__ = [CODE
LOWpython/e2e/testharness/proxy.py146 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.py289 async def set_copilot_user_by_token(self, token: str, response: dict[str, Any]) -> None:CODE
Synthetic Comment Markers2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHgo/cmd/bundler/main.go878// Code generated by copilot-sdk bundler; DO NOT EDIT.COMMENT
HIGH…java/com/github/copilot/tool/CopilotToolProcessor.java219 out.println("// GENERATED by CopilotToolProcessor — do not edit");CODE
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMpython/e2e/testharness/proxy.py36 # The harness server is in the shared test directoryCOMMENT
MEDIUM…/src/test/java/com/github/copilot/SlashCommandsIT.java44 * {@link TestUtil#findCliPath()} so the test harness binary is found in CI.COMMENT
MEDIUMdotnet/test/Harness/InProcessEnvIsolation.cs32#pragma warning disable CA2255 // ModuleInitializer discouraged in libraries; intentional in this test harness.COMMENT
MEDIUM.github/workflows/copilot-setup-steps.yml107 # Install test harness dependenciesCOMMENT
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGH…src/main/java/com/github/copilot/rpc/AzureOptions.java21 * .setApiKey("your-api-key").setAzure(new AzureOptions().setApiVersion("2024-02-01"));COMMENT
HIGHdotnet/README.md1167 ApiKey = "your-api-key"STRING
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…_config/vision_disabled_then_enabled_via_setmodel.yaml99 The file exists. Unfortunately, I'm unable to see the actual image content from the view tool output. The toolCODE
MEDIUM…_config/vision_disabled_then_enabled_via_setmodel.yaml149 The file exists. Unfortunately, I'm unable to see the actual image content from the view tool output. The toolCODE
MEDIUM…_config/vision_disabled_then_enabled_via_setmodel.yaml220 The file exists. Unfortunately, I'm unable to see the actual image content from the view tool output. The toolCODE
Redundant / Tautological Comments5 hits · 5 pts
SeverityFileLineSnippetContext
LOWpython/copilot/client.py1919 # Check if it's just a port numberCOMMENT
LOWpython/copilot/client.py2095 # Check if process exited and capture any remaining stderrCOMMENT
LOWpython/copilot/client.py4992 # Close the file wrapper — makefile() holds its ownCOMMENT
LOWpython/copilot/_jsonrpc.py477 # Check if it's a response to our requestCOMMENT
LOWpython/copilot/_jsonrpc.py516 # Check if it's a notification from the serverCOMMENT
AI Structural Patterns5 hits · 3 pts
SeverityFileLineSnippetContext
LOWpython/copilot/client.py1600CODE
LOWpython/copilot/client.py2352CODE
LOWpython/copilot/client.py3237CODE
LOWpython/copilot/tools.py160CODE
LOWpython/copilot/session.py2126CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWpython/copilot/installation_confirmation.py71 async def handle_request(self, message: dict) -> None:CODE
LOWpython/e2e/_scenario_fake_cli.py152function handleRequest(message) {CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWgo/session.go36// Example usage:COMMENT