Repository Analysis

github/copilot-sdk

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

7.7 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of github/copilot-sdk, a Java project with 10,436 GitHub stars. SynthScan v2.0 examined 446,948 lines of code across 1572 source files, recording 2611 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 7.7 places this repository in the Low AI signal band.

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

7.7
Adjusted Score
7.7
Raw Score
100%
Time Factor
2026-08-28
Last Push
10.4K
Stars
Java
Language
446.9K
Lines of Code
1.6K
Files
2.6K
Pattern Hits
2026-08-29
Scan Date
0.04
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 30HIGH 38MEDIUM 318LOW 2225

Directory Score Breakdown

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

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers1131 hits · 1038 pts
SeverityFileLineSnippetContext
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.ts707async 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.ts25class RecordingRequestHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/e2e/subagent_hooks.e2e.test.ts52function expectSubagentRequestMetadata(records: RequestRecord[]): void {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.ts550function createTestSessionFsHandler(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/mode_empty.e2e.test.ts39 async function getSystemMessageSentToLLM(): Promise<string> {CODE
LOWnodejs/test/e2e/pending_work_resume.e2e.test.ts60async function waitForPendingPermissionRequestId(session: CopilotSession): Promise<string> {CODE
LOWnodejs/test/e2e/pending_work_resume.e2e.test.ts74function waitForExternalToolRequests(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
LOWnodejs/test/e2e/rpc_server_plugins.e2e.test.ts41 async function createIsolatedStartedClient(): Promise<{CODE
LOWnodejs/test/e2e/rpc_server_plugins.e2e.test.ts80 function createLocalMarketplaceFixture(): string {CODE
LOWnodejs/test/e2e/rpc_server_plugins.e2e.test.ts105 function createDirectPluginFixture(): string {CODE
LOWnodejs/test/e2e/rpc_session_state_extras.e2e.test.ts29 function createAuthenticatedClient(token: string): CopilotClient {CODE
LOWnodejs/test/e2e/rpc_session_state_extras.e2e.test.ts38 async function configureAuthenticatedUser(token: string): Promise<void> {CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts225 async function expectGitHubMcpConfigApplied(session: CopilotSession): Promise<void> {CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts252 function assertSessionLimitsStatus(CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts292 class RecordingRequestHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts335 function anthropicMessageStreamBody(text: string): string {CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts381 function buildNonInferenceResponse(url: string): Response {CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts470 function assertAnthropicDocumentCitationsEnabled(requestBody: string) {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
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/src/copilotRequestHandler.ts240export class CopilotRequestHandler {CODE
LOWnodejs/src/copilotRequestHandler.ts341export function createCopilotRequestAdapter(CODE
LOWnodejs/src/copilotRequestHandler.ts347 function getOrCreate(requestId: string): CopilotRequestExchange {CODE
LOWnodejs/src/types.ts1212export function isAttributedPermissionResult(CODE
LOWnodejs/src/types.ts1226export function createAttributedPermissionResult(CODE
LOWnodejs/src/session.ts110function throwIfFactoryExecutionIsActive(): void {CODE
LOWnodejs/src/session.ts2149function strictJsonValidationError(CODE
LOWnodejs/src/client.ts193function extractBearerTokenProviders(CODE
LOWnodejs/src/client.ts314function extractTransformCallbacks(systemMessage: SessionConfig["systemMessage"]): {CODE
LOWnodejs/src/client.ts362function getCliPlatformPackageNames(): string[] {CODE
LOWtest/harness/certUtils.ts50export function createSecureContextForHost(CODE
LOWtest/harness/anthropicMessagesAdapter.ts96export function anthropicMessagesRequestToChatCompletion(CODE
LOWtest/harness/anthropicMessagesAdapter.ts168function convertAnthropicUserMessage(CODE
LOWtest/harness/anthropicMessagesAdapter.ts219function convertAnthropicAssistantMessage(CODE
LOWtest/harness/anthropicMessagesAdapter.ts248function anthropicToolResultContent(content: unknown): string {CODE
LOWtest/harness/anthropicMessagesAdapter.ts274export function chatCompletionResponseToAnthropicMessage(CODE
LOWtest/harness/anthropicMessagesAdapter.ts316export function chatCompletionResponseToAnthropicSseChunks(CODE
LOWtest/harness/responsesApiAdapter.ts32export function responsesApiRequestToChatCompletion(CODE
LOWtest/harness/responsesApiAdapter.ts71function responseInputItemToCanonicalMessages(CODE
LOWtest/harness/responsesApiAdapter.ts183function coalesceAssistantMessages(CODE
LOWtest/harness/responsesApiAdapter.ts223function convertResponsesToolChoice(toolChoice: unknown): unknown {CODE
LOWtest/harness/responsesApiAdapter.ts244export function chatCompletionResponseToResponsesApiMessage(CODE
LOWtest/harness/responsesApiAdapter.ts319export function chatCompletionResponseToResponsesApiSseChunks(CODE
LOWtest/harness/replayingCapiProxy.ts1550function normalizeAvailableToolNames(result: string): string {CODE
LOWtest/harness/replayingCapiProxy.ts1557function normalizeInterruptedToolResult(result: string): string {CODE
LOWtest/harness/replayingCapiProxy.ts1564function normalizeBackgroundAgentStartMessage(result: string): string {CODE
LOWtest/harness/replayingCapiProxy.ts1568function normalizeBackgroundAgentStartMessageWithId(CODE
LOWtest/harness/replayingCapiProxy.ts781async function exitWithNoMatchingRequestError(CODE
1071 more matches not shown…
Decorative Section Separators241 hits · 702 pts
SeverityFileLineSnippetContext
MEDIUMpython/test_rpc_timeout.py29 # ── session-scoped, with params ──────────────────────────────────COMMENT
MEDIUMpython/test_rpc_timeout.py65 # ── session-scoped, no params ────────────────────────────────────COMMENT
MEDIUMpython/test_rpc_timeout.py89 # ── server-scoped, with params ─────────────────────────────────────COMMENT
MEDIUMpython/test_rpc_timeout.py113 # ── server-scoped, no params ─────────────────────────────────────COMMENT
MEDIUMpython/test_commands_and_elicitation.py43# ============================================================================COMMENT
MEDIUMpython/test_commands_and_elicitation.py45# ============================================================================COMMENT
MEDIUMpython/test_commands_and_elicitation.py310# ============================================================================COMMENT
MEDIUMpython/test_commands_and_elicitation.py312# ============================================================================COMMENT
MEDIUMpython/test_commands_and_elicitation.py402# ============================================================================COMMENT
MEDIUMpython/test_commands_and_elicitation.py404# ============================================================================COMMENT
MEDIUMpython/test_commands_and_elicitation.py778# ============================================================================COMMENT
MEDIUMpython/test_commands_and_elicitation.py780# ============================================================================COMMENT
MEDIUMpython/copilot/copilot_request_handler.py498# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py500# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py611# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py613# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py1# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py337# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py339# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py666# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py668# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/session_fs_provider.py1# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/session_fs_provider.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/client.py173# ============================================================================COMMENT
MEDIUMpython/copilot/client.py175# ============================================================================COMMENT
MEDIUMpython/copilot/client.py767# ============================================================================COMMENT
MEDIUMpython/copilot/client.py769# ============================================================================COMMENT
MEDIUMpython/copilot/client.py897# ============================================================================COMMENT
MEDIUMpython/copilot/client.py899# ============================================================================COMMENT
MEDIUMpython/copilot/client.py1119# ============================================================================COMMENT
MEDIUMpython/copilot/client.py1121# ============================================================================COMMENT
MEDIUMpython/copilot/client.py1239# ============================================================================COMMENT
MEDIUMpython/copilot/client.py1241# ============================================================================COMMENT
MEDIUMpython/copilot/session.py109# ============================================================================COMMENT
MEDIUMpython/copilot/session.py111# ============================================================================COMMENT
MEDIUMpython/copilot/session.py191# ============================================================================COMMENT
MEDIUMpython/copilot/session.py193# ============================================================================COMMENT
MEDIUMpython/copilot/session.py245# ============================================================================COMMENT
MEDIUMpython/copilot/session.py247# ============================================================================COMMENT
MEDIUMpython/copilot/session.py345# ============================================================================COMMENT
MEDIUMpython/copilot/session.py347# ============================================================================COMMENT
MEDIUMpython/copilot/session.py435# ============================================================================COMMENT
MEDIUMpython/copilot/session.py437# ============================================================================COMMENT
MEDIUMpython/copilot/session.py501# ============================================================================COMMENT
MEDIUMpython/copilot/session.py503# ============================================================================COMMENT
MEDIUMpython/copilot/session.py565# ============================================================================COMMENT
MEDIUMpython/copilot/session.py567# ============================================================================COMMENT
MEDIUMpython/copilot/session.py604# ============================================================================COMMENT
MEDIUMpython/copilot/session.py606# ============================================================================COMMENT
MEDIUMpython/copilot/session.py631# ============================================================================COMMENT
MEDIUMpython/copilot/session.py633# ============================================================================COMMENT
MEDIUMpython/copilot/session.py675# ============================================================================COMMENT
MEDIUMpython/copilot/session.py677# ============================================================================COMMENT
MEDIUMpython/copilot/session.py707# ============================================================================COMMENT
MEDIUMpython/copilot/session.py709# ============================================================================COMMENT
MEDIUMpython/copilot/session.py860# ============================================================================COMMENT
MEDIUMpython/copilot/session.py862# ============================================================================COMMENT
MEDIUMpython/copilot/session.py1137# ============================================================================COMMENT
MEDIUMpython/copilot/session.py1139# ============================================================================COMMENT
181 more matches not shown…
Over-Commented Block584 hits · 472 pts
SeverityFileLineSnippetContext
LOWnodejs/README.md901 onPermissionRequest: (request: PermissionRequest, invocation): PermissionRequestResult => {COMMENT
LOWnodejs/test/e2e/skills.e2e.test.ts81COMMENT
LOWnodejs/src/index.ts41// its corresponding *Data payload type, plus supporting unions/aliases) soCOMMENT
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 URL stringCOMMENT
LOWgo/copilot_request_handler.go101COMMENT
LOWgo/copilot_request_handler.go121// into the runtime response. A [CopilotWebSocketHandler] receives one inCOMMENT
LOWgo/types.go21// RuntimeConnection describes how a [Client] connects to the Copilot runtime.COMMENT
LOWgo/types.go61 // Port is the TCP port the runtime listens on. 0 (the default) lets theCOMMENT
LOWgo/types.go101// Because the runtime is loaded into the calling process, per-clientCOMMENT
LOWgo/types.go121 // WorkingDirectory is the working directory for the runtime process.COMMENT
LOWgo/types.go141 // Env are the environment variables for the runtime process (default:COMMENT
LOWgo/types.go161 // OnListModels is a custom handler for listing available models.COMMENT
LOWgo/types.go181 OnGitHubTelemetry func(notification *rpc.GitHubTelemetryNotification)COMMENT
LOWgo/types.go281 SectionTone = "tone"COMMENT
LOWgo/types.go361//COMMENT
LOWgo/types.go1081 Tools []string `json:"tools,omitzero"`COMMENT
LOWgo/types.go1101// Use ExcludedTools to hide specific tools from the default agent while keepingCOMMENT
LOWgo/types.go1121}COMMENT
LOWgo/types.go1181// typed parameter values.COMMENT
LOWgo/types.go1261 // Model to use for this sessionCOMMENT
LOWgo/types.go1281 // for this session. Use in multitenant deployments to prevent cross-sessionCOMMENT
LOWgo/types.go1301 // filesystem (branch detection, file status, commit history). When false, noCOMMENT
LOWgo/types.go1321 // AvailableTools is a list of tool names to allow. When specified, only these tools will be available.COMMENT
LOWgo/types.go1341 // cannot be combined with GitHubToken.COMMENT
LOWgo/types.go1361 // with agentId set) are forwarded to this connection. When false, onlyCOMMENT
LOWgo/types.go1381 // EnableSessionTelemetry enables or disables internal session telemetry for this session.COMMENT
LOWgo/types.go1401 // EnableExperimentalMode controls whether the session enables experimentalCOMMENT
LOWgo/types.go1421 // MCPServers configures MCP servers for the sessionCOMMENT
LOWgo/types.go1441 PluginDirectories []stringCOMMENT
LOWgo/types.go1461 // Memory configures the memory feature for the session. When omitted, theCOMMENT
LOWgo/types.go1481 // OnExitPlanModeRequest is a handler for exit-plan-mode requests from the server.COMMENT
LOWgo/types.go1501 // (the runtime logs a warning); the session is created normally but theCOMMENT
LOWgo/types.go1521 // - "on" — export to GitHub AND enable remote steeringCOMMENT
LOWgo/types.go1541 // CanvasHandler receives inbound canvas.open / canvas.close / canvas.action.invokeCOMMENT
LOWgo/types.go1561 ExpAssignments *CopilotExpAssignmentResponseCOMMENT
LOWgo/types.go1601COMMENT
LOWgo/types.go1661COMMENT
LOWgo/types.go1721 UI *UICapabilities `json:"ui,omitempty"`COMMENT
LOWgo/types.go1821 GitHubTokenProvider GitHubTokenProviderCOMMENT
LOWgo/types.go1841 // In ModeEmpty, nil excludes all built-in skills; a non-nil list opts theCOMMENT
LOWgo/types.go1861 // When false, disables session telemetry. When nil (the default) or true,COMMENT
LOWgo/types.go1881 // EnableExperimentalMode controls whether the session enables experimentalCOMMENT
LOWgo/types.go1901 // ReasoningEffort level for models that support it.COMMENT
LOWgo/types.go1921 // WorkingDirectory is the working directory for the session.COMMENT
LOWgo/types.go1941 // OrganizationCustomInstructions provides organization-level custom instructionsCOMMENT
LOWgo/types.go1961 // events with deltaContent are sent as the response is generated.COMMENT
LOWgo/types.go1981 // Must match the Name of one of the agents in CustomAgents.COMMENT
LOWgo/types.go2001 // LargeOutput configures handling of large tool outputs. When a tool producesCOMMENT
LOWgo/types.go2021 SuppressResumeEvent boolCOMMENT
LOWgo/types.go2041 // See SessionConfig.OnElicitationRequest.COMMENT
LOWgo/types.go2061 Canvases []CanvasDeclarationCOMMENT
LOWgo/types.go2081 // SessionConfig.ExpAssignments. Re-supply on resume so the runtimeCOMMENT
LOWgo/types.go2101//COMMENT
LOWgo/types.go2121COMMENT
LOWgo/types.go2141 // Set "websockets" to deliver Responses API requests over a persistent WebSocketCOMMENT
LOWgo/types.go2161 // WireModel is the model name sent to the provider API for inference. UseCOMMENT
LOWgo/types.go2181 //COMMENT
LOWgo/types.go2201 }{wire: wire(p)}COMMENT
524 more matches not shown…
Hallucination Indicators30 hits · 355 pts
SeverityFileLineSnippetContext
CRITICALpython/e2e/test_rpc_server_e2e.py603 await ctx.client.rpc.skills.config.set_disabled_skills(CODE
CRITICALpython/e2e/test_rpc_server_e2e.py613 await ctx.client.rpc.skills.config.set_disabled_skills(CODE
CRITICALpython/e2e/test_rpc_server_misc_e2e.py81 await ctx.client.rpc.user.settings.reload()CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py43 initial = await ctx.client.rpc.mcp.config.list()CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py47 await ctx.client.rpc.mcp.config.add(CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py50 after_add = await ctx.client.rpc.mcp.config.list()CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py53 await ctx.client.rpc.mcp.config.update(CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py56 after_update = await ctx.client.rpc.mcp.config.list()CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py61 await ctx.client.rpc.mcp.config.disable(MCPConfigDisableRequest(names=[server_name]))CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py62 await ctx.client.rpc.mcp.config.enable(MCPConfigEnableRequest(names=[server_name]))CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py64 await ctx.client.rpc.mcp.config.remove(MCPConfigRemoveRequest(name=server_name))CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py66 after_remove = await ctx.client.rpc.mcp.config.list()CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py94 await ctx.client.rpc.mcp.config.add(CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py97 after_add = await ctx.client.rpc.mcp.config.list()CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py107 await ctx.client.rpc.mcp.config.update(CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py110 after_update = await ctx.client.rpc.mcp.config.list()CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py119 await ctx.client.rpc.mcp.config.remove(MCPConfigRemoveRequest(name=server_name))CODE
CRITICALpython/e2e/test_rpc_mcp_config_e2e.py121 after_remove = await ctx.client.rpc.mcp.config.list()CODE
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.java115 var params = new com.github.copilot.generated.rpc.PingParams(null);STRING
CRITICAL…/src/test/java/com/github/copilot/RpcWrappersTest.java422 var params = new com.github.copilot.generated.rpc.SessionMcpAppsCallToolParams(null, "my-server", "my-tool",STRING
CRITICAL…/src/test/java/com/github/copilot/RpcWrappersTest.java435 var params = new com.github.copilot.generated.rpc.SessionMcpAppsCallToolParams(null, "server1", "tool1", null,STRING
CRITICAL…/src/test/java/com/github/copilot/RpcWrappersTest.java455 var params = new com.github.copilot.generated.rpc.SessionMcpAppsCallToolParams(null, "echo-server", "echo",STRING
CRITICAL…/src/test/java/com/github/copilot/PermissionsTest.java420 .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.java286 var arguments = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();STRING
CRITICAL…k/src/main/java/com/github/copilot/CopilotSession.java2093 : com.github.copilot.generated.rpc.ReasoningSummary.fromValue(reasoningSummary);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.ts2219 lines.push(` mapper.registerModule(new com.fasterxml.jackson.datatype.jsr310.JavaTimeModule());`);CODE
Unused Imports269 hits · 182 pts
SeverityFileLineSnippetContext
LOWpython/test_cli_download.py3CODE
LOWpython/test_canvas.py3CODE
LOWpython/test_e2e_harness_cli_path.py8CODE
LOWpython/test_tool_set.py3CODE
LOWpython/test_telemetry.py3CODE
LOWpython/test_github_token_provider.py1CODE
LOWpython/copilot/_cli_download.py17CODE
LOWpython/copilot/copilot_request_handler.py22CODE
LOWpython/copilot/_telemetry.py3CODE
LOWpython/copilot/session_fs_provider.py17CODE
LOWpython/copilot/client.py15CODE
LOWpython/copilot/client.py68CODE
LOWpython/copilot/tools.py8CODE
LOWpython/copilot/_diagnostics.py3CODE
LOWpython/copilot/session.py9CODE
LOWpython/copilot/session.py104CODE
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
LOWpython/copilot/__init__.py31CODE
209 more matches not shown…
Modern AI Meta-Vocabulary34 hits · 99 pts
SeverityFileLineSnippetContext
MEDIUMgo/types.go349// Removes all SDK guardrails including security restrictions.COMMENT
MEDIUMgo/rpc/zsession_events.go1488 // Zero-based agentic-loop iteration the interrupt landed inCOMMENT
MEDIUMgo/rpc/zsession_events.go1614 // True when the preceding agentic loop was cancelled via abort signalCOMMENT
MEDIUMgo/rpc/zsession_events.go1654 // True when the preceding agentic loop was cancelled via abort signalCOMMENT
MEDIUMgo/rpc/zsession_events.go1811 // How this message was delivered to the agentic loop relative to loop state (idle-start vs. steering/queued while busyCOMMENT
MEDIUMgo/rpc/zsession_events.go2213 // When true, tool calls and permission requests left in flight by the previous session lifetime remain pending after rCOMMENT
MEDIUMgo/rpc/zsession_events.go2680 // Identifier for this turn within the agentic loop, typically a stringified turn numberCOMMENT
MEDIUMgo/rpc/zsession_events.go3451 // The extension management operation (scaffold, reload)COMMENT
MEDIUMgo/rpc/zsession_events.go3748 // The extension management operation (scaffold, reload)COMMENT
MEDIUMgo/rpc/zsession_events.go5701// How this user message was delivered to the agentic loop, relative to whether the loop was already running. This is thCOMMENT
MEDIUMdocs/features/custom-agents.md1# Custom agents and sub-agent orchestrationCOMMENT
MEDIUMdocs/features/streaming-events.md914## Quick reference: agentic turn flowCOMMENT
MEDIUMdocs/integrations/microsoft-agent-framework.md631### Handle errors at the orchestration levelCOMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs2008 /// <summary>When true, tool calls and permission requests left in flight by the previous session lifetime remain peCOMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs2120 /// <summary>True when the preceding agentic loop was cancelled via abort signal.</summary>COMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs3107 /// <summary>How this message was delivered to the agentic loop relative to loop state (idle-start vs. steering/queuCOMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs3171 /// <summary>Identifier for this turn within the agentic loop, typically a stringified turn number.</summary>COMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs3257 /// <summary>Zero-based agentic-loop iteration the interrupt landed in.</summary>COMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs3678 /// <summary>True when the preceding agentic loop was cancelled via abort signal.</summary>COMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs8855 /// <summary>The extension management operation (scaffold, reload).</summary>COMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs9415 /// <summary>The extension management operation (scaffold, reload).</summary>COMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs11729/// <summary>How this user message was delivered to the agentic loop, relative to whether the loop was already running. COMMENT
MEDIUM.github/instructions/docs-style.instructions.md14* `# Custom agents and sub-agent orchestration` — not `# Custom Agents & Sub-Agent Orchestration`COMMENT
MEDIUM.github/workflows/java-codegen-check.yml20# the agentic fix workflow via gh workflow run.COMMENT
MEDIUM.github/workflows/java-codegen-check.yml25# push fails (Dependabot), the agentic fix workflow will handle pushingCOMMENT
MEDIUM.github/workflows/agentics-maintenance.yml24# This file defines the generated agentic maintenance workflow for this repository.COMMENT
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
Excessive Try-Catch Wrapping97 hits · 96 pts
SeverityFileLineSnippetContext
MEDIUMpython/README.md980 print(f"Error in {input['errorContext']}: {input['error']}")STRING
MEDIUMpython/copilot/_cli_download.py553 print(f"Error: {exc}", file=sys.stderr)CODE
MEDIUMpython/copilot/copilot_request_handler.py209def _receive_loop(self) -> None:CODE
MEDIUMpython/copilot/copilot_request_handler.py228def aclose(self) -> None:CODE
LOWpython/copilot/copilot_request_handler.py606 except Exception:CODE
LOWpython/copilot/copilot_request_handler.py216 except Exception as exc:CODE
LOWpython/copilot/copilot_request_handler.py223 except Exception:CODE
LOWpython/copilot/copilot_request_handler.py237 except Exception:CODE
LOWpython/copilot/copilot_request_handler.py554 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py213 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py221 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py228 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py235 except Exception:CODE
LOWpython/copilot/session_fs_provider.py248 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py268 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py275 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py283 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py297 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py304 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py358 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py384 except Exception:CODE
LOWpython/copilot/client.py2164 except Exception:CODE
LOWpython/copilot/client.py2171 except Exception:CODE
LOWpython/copilot/client.py2180 except Exception:CODE
LOWpython/copilot/client.py679 except Exception:CODE
LOWpython/copilot/client.py1926 except Exception:CODE
LOWpython/copilot/client.py1961 except Exception as e:CODE
LOWpython/copilot/client.py2017 except Exception as e:CODE
LOWpython/copilot/client.py2043 except Exception as e:CODE
LOWpython/copilot/client.py2067 except Exception:CODE
LOWpython/copilot/client.py2076 except Exception:CODE
LOWpython/copilot/client.py3996 except Exception:CODE
LOWpython/copilot/client.py4003 except Exception:CODE
LOWpython/copilot/tools.py285 except Exception as exc:CODE
LOWpython/copilot/session.py1458 except Exception as err:CODE
LOWpython/copilot/session.py1466 except Exception as err:CODE
LOWpython/copilot/session.py1474 except Exception as err:CODE
LOWpython/copilot/session.py2082 except Exception as exc:CODE
LOWpython/copilot/session.py2090 except Exception as exc:CODE
MEDIUMpython/copilot/session.py1876 ... print(f"Error: {data.message}")STRING
LOWpython/copilot/session.py1914 except Exception:CODE
LOWpython/copilot/session.py2115 except Exception:CODE
LOWpython/copilot/session.py2193 except Exception as exc:CODE
LOWpython/copilot/session.py2255 except Exception:CODE
LOWpython/copilot/session.py2310 except Exception:CODE
LOWpython/copilot/session.py2379 except Exception as exc:CODE
LOWpython/copilot/session.py2439 except Exception:CODE
LOWpython/copilot/session.py2674 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/copilot/session.py2739 except Exception:CODE
LOWpython/copilot/session.py2840 except Exception:CODE
LOWpython/copilot/session.py2921 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/copilot/_jsonrpc.py122 except Exception:CODE
LOWpython/copilot/_jsonrpc.py199 except Exception:CODE
LOWpython/copilot/_jsonrpc.py284 except Exception as e:CODE
LOWpython/copilot/_jsonrpc.py401 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWpython/copilot/_jsonrpc.py458 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/copilot/_jsonrpc.py466 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/copilot/_jsonrpc.py490 except Exception as exc: # pylint: disable=broad-exceptCODE
MEDIUMpython/copilot/_jsonrpc.py463def _await_outcome():CODE
LOWpython/copilot/_ffi_runtime_host.py464 except Exception: # noqa: BLE001CODE
37 more matches not shown…
Docstring Block Structure18 hits · 90 pts
SeverityFileLineSnippetContext
HIGHpython/copilot/_cli_download.py212Download the Copilot CLI binary and cache it. Args: version: CLI version to download. Defaults to the pinneSTRING
HIGHpython/copilot/client.py1796 Parse CLI URL into host and port. Supports formats: "host:port", "http://host:port", "https://host:porSTRING
HIGHpython/copilot/client.py2279 Create a new conversation session with the Copilot CLI. Sessions maintain conversation state, handle eSTRING
HIGHpython/copilot/client.py3041 Resume an existing conversation session by its ID. This allows you to continue a previous conversationSTRING
HIGHpython/copilot/client.py3620 Send a ping request to the server to verify connectivity. Args: message: Optional message STRING
HIGHpython/copilot/client.py3734 List all available sessions known to the server. Returns metadata about each session including ID, timSTRING
HIGHpython/copilot/client.py3769 Get metadata for a specific session by ID. This provides an efficient O(1) lookup of a single session'STRING
HIGHpython/copilot/client.py4813 Handle a user input request from the CLI server. Args: params: The user input request paraSTRING
HIGHpython/copilot/session.py725Shows a generic elicitation dialog with a custom schema. Args: params: Elicitation parameters incluSTRING
HIGHpython/copilot/session.py749Shows a confirmation dialog and returns the user's boolean answer. Args: message: The question to aSTRING
HIGHpython/copilot/session.py783Shows a selection dialog with a list of options. Args: message: Instruction to show the user. STRING
HIGHpython/copilot/session.py820Shows a text input dialog. Args: message: Instruction to show the user. options: OptionSTRING
HIGHpython/copilot/session.py1670 Send a message to this session. The message is processed asynchronously. Subscribe to events via :methSTRING
HIGHpython/copilot/session.py1740 Send a message to this session and wait until the session becomes idle. This is a convenience method tSTRING
HIGHpython/copilot/_jsonrpc.py146 Send a JSON-RPC request and wait for the response. Args: method: Method name pSTRING
HIGHpython/copilot/_jsonrpc.py324 Read exactly num_bytes, handling partial/short reads from pipes. Args: num_bytes: Number oSTRING
HIGHpython/e2e/testharness/helper.py22 Wait for and return the final assistant message from a session turn. Args: session: The session to waiSTRING
HIGHpython/e2e/testharness/helper.py171 Wait for and return the next event of a specific type from a session. Args: session: The session to waSTRING
Structural Annotation Overuse50 hits · 82 pts
SeverityFileLineSnippetContext
LOWnodejs/docs/agent-author.md7### Step 1: Scaffold the extensionCOMMENT
LOWnodejs/docs/agent-author.md18### Step 2: Edit the extension fileCOMMENT
LOWnodejs/docs/agent-author.md26### Step 3: Reload extensionsCOMMENT
LOWnodejs/docs/agent-author.md34### Step 4: VerifyCOMMENT
LOWdocs/getting-started.md31## Step 1: install the SDKCOMMENT
LOWdocs/getting-started.md140## Step 2: send your first messageCOMMENT
LOWdocs/getting-started.md372## Step 3: add streaming responsesCOMMENT
LOWdocs/getting-started.md881## Step 4: add a custom toolCOMMENT
LOWdocs/getting-started.md1289## 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.md48### Step 1: Identify the version rangeCOMMENT
LOW.github/workflows/release-changelog.md63### Step 2: Gather changesCOMMENT
LOW.github/workflows/release-changelog.md75### Step 3: Categorize and write upCOMMENT
LOW.github/workflows/release-changelog.md90### Step 4: Update CHANGELOG.md (stable releases only)COMMENT
LOW.github/workflows/release-changelog.md106### Step 5: Create a Pull Request (stable releases only)COMMENT
LOW.github/workflows/release-changelog.md115### Step 6: Update the GitHub ReleaseCOMMENT
LOW…va-adapt-handwritten-code-to-accept-upgrade-changes.md69### Step 0: SetupCOMMENT
LOW…va-adapt-handwritten-code-to-accept-upgrade-changes.md84### Step 1: Reproduce failuresCOMMENT
LOW…va-adapt-handwritten-code-to-accept-upgrade-changes.md94### Step 2: Analyze compilation errorsCOMMENT
LOW…va-adapt-handwritten-code-to-accept-upgrade-changes.md103### Step 3: Fix compilation errorsCOMMENT
LOW…va-adapt-handwritten-code-to-accept-upgrade-changes.md118### Step 4: Fix test failuresCOMMENT
LOW…va-adapt-handwritten-code-to-accept-upgrade-changes.md132### Step 5: FormatCOMMENT
LOW…va-adapt-handwritten-code-to-accept-upgrade-changes.md138### 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.md65### Step 1: Understand the IssueCOMMENT
LOW.github/workflows/cross-repo-issue-analysis.md69### Step 2: Analyze Against copilot-sdkCOMMENT
LOW.github/workflows/cross-repo-issue-analysis.md77### Step 3: Investigate copilot-agent-runtimeCOMMENT
LOW.github/workflows/cross-repo-issue-analysis.md94### Step 4: Make Your DeterminationCOMMENT
LOW.github/agents/docs-maintenance.agent.md268### Step 1: Inventory Current DocsCOMMENT
LOW.github/agents/docs-maintenance.agent.md278### Step 2: Check Feature CoverageCOMMENT
LOW.github/agents/docs-maintenance.agent.md296### Step 3: Validate LinksCOMMENT
LOW.github/agents/docs-maintenance.agent.md311### Step 4: Check Multi-Language ExamplesCOMMENT
LOW.github/agents/docs-maintenance.agent.md324### Step 5: Validate Code Samples Against SDK InterfaceCOMMENT
LOW.github/agents/docs-maintenance.agent.md442### Step 6: Create the PlanCOMMENT
LOW.github/skills/new-java-e2e-test-yaml-and-test/SKILL.md23### Step 1: Choose a snapshot category and snapshot base nameCOMMENT
LOW.github/skills/new-java-e2e-test-yaml-and-test/SKILL.md30### Step 2: Create the YAML snapshot fileCOMMENT
LOW.github/skills/new-java-e2e-test-yaml-and-test/SKILL.md55### Step 3: Create the Java IT test classCOMMENT
LOW.github/skills/new-java-e2e-test-yaml-and-test/SKILL.md126### Step 4: VerifyCOMMENT
Cross-Language Confusion11 hits · 70 pts
SeverityFileLineSnippetContext
HIGHpython/copilot/copilot_request_handler.py536 exchange._queue.push(_BodyItem(cancel=True, cancel_reason=params.cancel_reason))CODE
HIGHpython/copilot/copilot_request_handler.py539 exchange._queue.push(CODE
HIGHpython/copilot/copilot_request_handler.py543 exchange._queue.push(_BodyItem(end=True))CODE
HIGHpython/e2e/test_session_e2e.py955 await session.send("Run 'sleep 2 && echo done'")CODE
HIGHpython/e2e/test_session_e2e.py1001 "Run 'sleep 2 && echo done'",CODE
HIGHpython/e2e/test_builtin_tools_e2e.py31 "Run 'echo hello && echo world'. Tell me the exact output.",CODE
HIGHpython/e2e/test_client_options_e2e.py86const captureFile = captureIndex >= 0 ? process.argv[captureIndex + 1] : undefined;CODE
HIGHpython/e2e/test_client_options_e2e.py142 requests.push({ method: message.method, params: message.params });CODE
HIGHpython/e2e/test_client_options_e2e.py154 writeResponse(message.id, { sessionId, workspacePath: null, capabilities: null });CODE
HIGHpython/e2e/test_client_options_e2e.py161 workspacePath: null,CODE
HIGHpython/e2e/test_client_options_e2e.py162 capabilities: null,CODE
Self-Referential Comments24 hits · 68 pts
SeverityFileLineSnippetContext
MEDIUMpython/copilot/client.py4549 # Create a TCP socket connection with timeoutCOMMENT
MEDIUMpython/copilot/client.py4579 # Create a file-like wrapper for the socketCOMMENT
MEDIUMpython/copilot/client.py4582 # Create a mock process object that JsonRpcClient expectsCOMMENT
MEDIUMpython/copilot/client.py1495 >>> # Create a client with default options (spawns CLI server)STRING
MEDIUMpython/copilot/client.py1499 >>> # 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
MEDIUMpython/e2e/test_session_e2e.py327 # Create a couple of sessions and send messages to persist themCOMMENT
MEDIUMpython/e2e/test_session_e2e.py370 # Create a session and send a message to persist itCOMMENT
MEDIUMpython/e2e/test_session_e2e.py400 # Create a session and send a message to persist itCOMMENT
MEDIUMpython/e2e/test_session_e2e.py438 # 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.py350 # Create a file that the agent will try to editCOMMENT
MEDIUMpython/e2e/test_rpc_e2e.py209 # Create a fileCOMMENT
MEDIUMpython/e2e/test_rpc_event_side_effects_e2e.py121 # Create the plan firstCOMMENT
MEDIUMpython/e2e/test_subagent_hooks_e2e.py94 # Create a client with the session-based subagents feature flagCOMMENT
MEDIUMpython/e2e/test_subagent_hooks_e2e.py116 # Create a file for the sub-agent to readCOMMENT
MEDIUMpython/e2e/test_mcp_and_agents_e2e.py97 # Create a session firstCOMMENT
MEDIUMpython/e2e/test_mcp_and_agents_e2e.py180 # Create a session firstCOMMENT
MEDIUMpython/e2e/testharness/context.py154 # Create the shared client (like Node.js/Go do). The in-process (FFI)COMMENT
MEDIUM.github/workflows/agentics-maintenance.yml24# This file defines the generated agentic maintenance workflow for this repository.COMMENT
Fake / Example Data43 hits · 43 pts
SeverityFileLineSnippetContext
LOWnodejs/test/e2e/streaming_fidelity.e2e.test.ts85 gitHubToken: isCI ? "fake-token-for-e2e-tests" : process.env.GITHUB_TOKEN,CODE
LOWnodejs/test/e2e/streaming_fidelity.e2e.test.ts123 gitHubToken: isCI ? "fake-token-for-e2e-tests" : process.env.GITHUB_TOKEN,CODE
LOWnodejs/test/e2e/session.e2e.test.ts376 gitHubToken: isCI ? "fake-token-for-e2e-tests" : undefined,CODE
LOWnodejs/test/e2e/session.e2e.test.ts448 apiKey: "fake-key",CODE
LOWnodejs/test/e2e/harness/sdkTestContext.ts17export const DEFAULT_GITHUB_TOKEN = "fake-token-for-e2e-tests";CODE
LOWgo/internal/e2e/session_e2e_test.go555 APIKey: "fake-key",CODE
LOWgo/internal/e2e/testharness/context.go16const 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_rpc_server_e2e.py110 github_token="fake-token-for-e2e-tests",CODE
LOWpython/e2e/test_streaming_fidelity_e2e.py78 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_streaming_fidelity_e2e.py119 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_client_lifecycle_e2e.py59 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_session_e2e.py487 "api_key": "fake-key",CODE
LOWpython/e2e/test_session_e2e.py498 "api_key": "fake-key",CODE
LOWpython/e2e/test_session_e2e.py257 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_session_e2e.py519 "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_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.py98 "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.py101DEFAULT_GITHUB_TOKEN = "fake-token-for-e2e-tests"CODE
LOWrust/tests/e2e/session.rs1592 .with_api_key("fake-key"),CODE
LOWrust/tests/e2e/session.rs1620 .with_api_key("fake-key")CODE
LOWrust/tests/e2e/session.rs1658 .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…java/com/github/copilot/CopilotRequestTestSupport.java86 ctx.setCopilotUserByToken("fake-token-for-e2e-tests", "e2e-user", "individual_pro", ctx.getProxyUrl(),CODE
LOW…t/java/com/github/copilot/ProviderEndpointE2ETest.java90 ctx.setCopilotUserByToken("fake-token-for-e2e-tests", "e2e-user", "individual_pro", ctx.getProxyUrl(),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.cs15 private const string DefaultGitHubToken = "fake-token-for-e2e-tests";CODE
LOWdotnet/test/E2E/SessionE2ETests.cs939 ApiKey = "fake-key",CODE
LOWdotnet/test/E2E/SessionE2ETests.cs965 ApiKey = "fake-key",CODE
LOWdotnet/test/E2E/SessionE2ETests.cs999 ApiKey = "fake-key",CODE
LOWdotnet/test/E2E/ElicitationE2ETests.cs343 Default = "user@example.com",CODE
LOWdotnet/test/E2E/ElicitationE2ETests.cs351 Assert.Equal("user@example.com", options.Default);CODE
LOW.github/skills/java-coding-skill/SKILL.md735 new UserInfo(userId, "John Doe", "john@example.com", "Developer")STRING
LOW…hub/skills/new-java-e2e-test-yaml-and-test/examples.md64- `ctx.createClient()` uses `fake-token-for-e2e-tests` — works in CICODE
AI Slop Vocabulary10 hits · 28 pts
SeverityFileLineSnippetContext
MEDIUMpython/test_e2e_harness_cli_path.py3Regression coverage for github/copilot-sdk#2103: the harness used to return theSTRING
MEDIUMpython/e2e/test_provider_endpoint_e2e.py4# the harness env passed to the CLI subprocess opts in for this test file.COMMENT
MEDIUMpython/e2e/test_provider_endpoint_e2e.py89 # CAPI baseUrl is the (proxy) Copilot API URL injected by the harness.COMMENT
MEDIUMpython/e2e/test_provider_endpoint_e2e.py105 # it must use the documented header name. The harness may have aCOMMENT
MEDIUMpython/e2e/testharness/proxy.py32 # 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
MEDIUM.github/workflows/rust-sdk-tests.yml121 # (the harness forces concurrency to 1) because it mirrors each test'sCOMMENT
MEDIUM.github/workflows/rust-sdk-tests.yml188 # The harness forces serial execution in-process (both the async semaphore andCOMMENT
Cross-Language Confusion (JS/TS)5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHscripts/codegen/python.ts3339 elif "max_context_window_tokens" not in caps["limits"]:CODE
HIGHscripts/codegen/python.ts3893 lines.push(` return None`);CODE
HIGHscripts/codegen/python.ts3981 lines.push(` if handler is None: return None`);CODE
HIGHscripts/codegen/python.ts3983 lines.push(` return None`);CODE
HIGHscripts/codegen/python.ts4009 lines.push(` return None`);CODE
Deep Nesting28 hits · 22 pts
SeverityFileLineSnippetContext
LOWpython/test_client.py778CODE
LOWpython/copilot/_cli_download.py363CODE
LOWpython/copilot/_cli_download.py491CODE
LOWpython/copilot/client.py1517CODE
LOWpython/copilot/client.py1871CODE
LOWpython/copilot/client.py1982CODE
LOWpython/copilot/client.py2125CODE
LOWpython/copilot/client.py3917CODE
LOWpython/copilot/tools.py146CODE
LOWpython/copilot/tools.py395CODE
LOWpython/copilot/tools.py218CODE
LOWpython/copilot/tools.py251CODE
LOWpython/copilot/session.py2822CODE
LOWpython/copilot/_jsonrpc.py374CODE
LOWpython/e2e/test_ui_elicitation_multi_client_e2e.py105CODE
LOWpython/e2e/test_compaction_e2e.py24CODE
LOWpython/e2e/test_compaction_e2e.py50CODE
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.py442CODE
LOWpython/e2e/test_rpc_event_side_effects_e2e.py79CODE
LOWpython/e2e/test_rpc_session_state_e2e.py564CODE
LOWpython/e2e/test_rpc_session_state_e2e.py818CODE
LOWpython/e2e/test_commands_e2e.py98CODE
LOWpython/e2e/testharness/context.py262CODE
Modern Structural Boilerplate18 hits · 15 pts
SeverityFileLineSnippetContext
LOWpython/test_github_token_provider.py43 def set_request_handler(self, method: str, handler: Any) -> None:CODE
LOWpython/test_github_token_provider.py46 def set_notification_method_handler(self, method: str, handler: Any) -> None:CODE
LOWpython/copilot/copilot_request_handler.py412 def set_context(self, params: LlmInferenceHTTPRequestStartRequest) -> None:CODE
LOWpython/copilot/client.py4800 async def _set_llm_inference_provider(self) -> None:CODE
LOWpython/copilot/client.py127logger = logging.getLogger(__name__)CODE
LOWpython/copilot/client.py3881 async def set_foreground_session_id(self, session_id: str) -> None:CODE
LOWpython/copilot/client.py4714 async def _set_session_fs_provider(self) -> None:CODE
LOWpython/copilot/session.py95logger = logging.getLogger(__name__)CODE
LOWpython/copilot/session.py1607 def _set_disconnect_callback(self, callback: Callable[[], None]) -> None:CODE
LOWpython/copilot/session.py2536 def _set_open_canvases(self, instances: list[OpenCanvasInstance]) -> None:CODE
LOWpython/copilot/session.py2564 def _set_capabilities(self, capabilities: SessionCapabilities | None) -> None:CODE
LOWpython/copilot/__init__.py224__all__ = [CODE
LOWpython/copilot/rpc.py18__all__ = [*_generated_all, "UIElicitationSchemaType"]CODE
LOWpython/copilot/_jsonrpc.py20logger = logging.getLogger(__name__)CODE
LOWpython/copilot/canvas.py34__all__ = [CODE
LOWpython/e2e/testharness/proxy.py127 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.py326 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.go545// 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
Magic Placeholder Names2 hits · 12 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.md766 ApiKey = "your-api-key"CODE
Redundant / Tautological Comments7 hits · 8 pts
SeverityFileLineSnippetContext
LOWpython/copilot/_cli_download.py477 # Check if download is disabledCOMMENT
LOWpython/copilot/client.py1816 # Check if it's just a port numberCOMMENT
LOWpython/copilot/client.py1970 # Check if process exited and capture any remaining stderrCOMMENT
LOWpython/copilot/client.py4600 # Close the file wrapper — makefile() holds its ownCOMMENT
LOWpython/copilot/_jsonrpc.py376 # Check if it's a response to our requestCOMMENT
LOWpython/copilot/_jsonrpc.py415 # Check if it's a notification from the serverCOMMENT
LOWpython/e2e/test_rpc_e2e.py219 # Read fileCOMMENT
Slop Phrases2 hits · 4 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
AI Structural Patterns4 hits · 2 pts
SeverityFileLineSnippetContext
LOWpython/copilot/client.py1517CODE
LOWpython/copilot/client.py2195CODE
LOWpython/copilot/client.py2956CODE
LOWpython/copilot/tools.py146CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWgo/session.go35// Example usage:COMMENT