Repository Analysis

github/copilot-sdk

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

8.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of github/copilot-sdk, a Java project with 9,504 GitHub stars. SynthScan v2.0 examined 408,875 lines of code across 1446 source files, recording 2615 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 8.1 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).

8.1
Adjusted Score
8.1
Raw Score
100%
Time Factor
2026-07-14
Last Push
9.5K
Stars
Java
Language
408.9K
Lines of Code
1.4K
Files
2.6K
Pattern Hits
2026-07-14
Scan Date
0.05
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 27HIGH 39MEDIUM 313LOW 2236

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 2615 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 Identifiers1000 hits · 916 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.ts640async 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.ts531function 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.ts235 function assertSessionLimitsStatus(CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts275 class RecordingRequestHandler extends CopilotRequestHandler {CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts318 function anthropicMessageStreamBody(text: string): string {CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts364 function buildNonInferenceResponse(url: string): Response {CODE
LOWnodejs/test/e2e/session_config.e2e.test.ts453 function assertAnthropicDocumentCitationsEnabled(requestBody: string) {CODE
LOWnodejs/test/e2e/session_fs_sqlite.e2e.test.ts138function createTestSessionFsHandlerWithSqlite(CODE
LOWnodejs/test/e2e/session_fs_sqlite.e2e.test.ts146 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/client.ts188function extractBearerTokenProviders(CODE
LOWnodejs/src/client.ts309function extractTransformCallbacks(systemMessage: SessionConfig["systemMessage"]): {CODE
LOWnodejs/src/client.ts357function getCliPlatformPackageNames(): string[] {CODE
LOWtest/harness/certUtils.ts50export function createSecureContextForHost(CODE
LOWtest/harness/replayingCapiProxy.ts588async function exitWithNoMatchingRequestError(CODE
LOWtest/harness/replayingCapiProxy.ts638async function findSavedChatCompletionResponse(CODE
LOWtest/harness/replayingCapiProxy.ts675async function findSavedChatCompletionError(CODE
LOWtest/harness/replayingCapiProxy.ts902function compareToolResultMessages(CODE
LOWtest/harness/replayingCapiProxy.ts918function parseNormalizedToolCallId(id?: string) {CODE
LOWtest/harness/replayingCapiProxy.ts930function removePrefixConversations(CODE
LOWtest/harness/replayingCapiProxy.ts987function transformOpenAIRequestMessage(CODE
LOWtest/harness/replayingCapiProxy.ts1069function normalizeStoredUserMessages(conversations: NormalizedConversation[]) {CODE
LOWtest/harness/replayingCapiProxy.ts1082function normalizeSkillContextFrontmatter(content: string): string {CODE
LOWtest/harness/replayingCapiProxy.ts1090function normalizeLargeOutputFilepaths(result: string): string {CODE
LOWtest/harness/replayingCapiProxy.ts1103function normalizeShellExitMarkers(result: string): string {CODE
LOWtest/harness/replayingCapiProxy.ts1166function normalizeReadAgentTimings(result: string): string {CODE
LOWtest/harness/replayingCapiProxy.ts1190function normalizeShellToolFamilyNames(text: string): string {CODE
LOWtest/harness/replayingCapiProxy.ts1202function normalizeAvailableToolNames(result: string): string {CODE
LOWtest/harness/replayingCapiProxy.ts1211function transformOpenAIResponseChoice(CODE
LOWtest/harness/replayingCapiProxy.ts1245function normalizeToolCallArguments(args: string): string {CODE
LOWtest/harness/replayingCapiProxy.ts1293function findAssistantIndexAfterPrefix(CODE
LOWtest/harness/replayingCapiProxy.ts1411function convertToStreamingResponseChunks(CODE
LOWpython/test_rpc_timeout.py32 async def test_default_timeout_not_forwarded(self):CODE
LOWpython/test_rpc_timeout.py44 async def test_custom_timeout_forwarded(self):CODE
LOWpython/test_rpc_timeout.py55 async def test_timeout_on_session_params_method(self):CODE
LOWpython/test_rpc_timeout.py68 async def test_timeout_on_session_no_params_method(self):CODE
LOWpython/test_rpc_timeout.py79 async def test_default_timeout_on_session_no_params_method(self):CODE
LOWpython/test_rpc_timeout.py92 async def test_timeout_on_server_params_method(self):CODE
940 more matches not shown…
Decorative Section Separators238 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.py494# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py496# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py607# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py609# ---------------------------------------------------------------------------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.py662# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/copilot_request_handler.py664# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/session_fs_provider.py1# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/session_fs_provider.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpython/copilot/client.py121# ============================================================================COMMENT
MEDIUMpython/copilot/client.py123# ============================================================================COMMENT
MEDIUMpython/copilot/client.py523# ============================================================================COMMENT
MEDIUMpython/copilot/client.py525# ============================================================================COMMENT
MEDIUMpython/copilot/client.py653# ============================================================================COMMENT
MEDIUMpython/copilot/client.py655# ============================================================================COMMENT
MEDIUMpython/copilot/client.py875# ============================================================================COMMENT
MEDIUMpython/copilot/client.py877# ============================================================================COMMENT
MEDIUMpython/copilot/client.py995# ============================================================================COMMENT
MEDIUMpython/copilot/client.py997# ============================================================================COMMENT
MEDIUMpython/copilot/session.py102# ============================================================================COMMENT
MEDIUMpython/copilot/session.py104# ============================================================================COMMENT
MEDIUMpython/copilot/session.py184# ============================================================================COMMENT
MEDIUMpython/copilot/session.py186# ============================================================================COMMENT
MEDIUMpython/copilot/session.py238# ============================================================================COMMENT
MEDIUMpython/copilot/session.py240# ============================================================================COMMENT
MEDIUMpython/copilot/session.py338# ============================================================================COMMENT
MEDIUMpython/copilot/session.py340# ============================================================================COMMENT
MEDIUMpython/copilot/session.py379# ============================================================================COMMENT
MEDIUMpython/copilot/session.py381# ============================================================================COMMENT
MEDIUMpython/copilot/session.py445# ============================================================================COMMENT
MEDIUMpython/copilot/session.py447# ============================================================================COMMENT
MEDIUMpython/copilot/session.py509# ============================================================================COMMENT
MEDIUMpython/copilot/session.py511# ============================================================================COMMENT
MEDIUMpython/copilot/session.py548# ============================================================================COMMENT
MEDIUMpython/copilot/session.py550# ============================================================================COMMENT
MEDIUMpython/copilot/session.py575# ============================================================================COMMENT
MEDIUMpython/copilot/session.py577# ============================================================================COMMENT
MEDIUMpython/copilot/session.py619# ============================================================================COMMENT
MEDIUMpython/copilot/session.py621# ============================================================================COMMENT
MEDIUMpython/copilot/session.py651# ============================================================================COMMENT
MEDIUMpython/copilot/session.py653# ============================================================================COMMENT
MEDIUMpython/copilot/session.py804# ============================================================================COMMENT
MEDIUMpython/copilot/session.py806# ============================================================================COMMENT
MEDIUMpython/copilot/session.py1033# ============================================================================COMMENT
MEDIUMpython/copilot/session.py1035# ============================================================================COMMENT
178 more matches not shown…
Over-Commented Block769 hits · 552 pts
SeverityFileLineSnippetContext
LOWnodejs/README.md881 // "write" — writing or editing a fileCOMMENT
LOWnodejs/test/e2e/skills.e2e.test.ts81COMMENT
LOWnodejs/src/client.ts941 * }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.go61// URIConnection connects to an already-running runtime at the given URL.COMMENT
LOWgo/types.go81 // If empty, inherits the current process's working directory.COMMENT
LOWgo/types.go101 // variable. This takes priority over other authentication methods.COMMENT
LOWgo/types.go121 // the runtime routes its model-layer HTTP and WebSocket traffic throughCOMMENT
LOWgo/types.go141 // directory are accessible from GitHub web and mobile.COMMENT
LOWgo/types.go181 // ExporterType is the exporter backend type: "otlp-http" or "file".COMMENT
LOWgo/types.go221// Known system message section identifiers for the "customize" mode.COMMENT
LOWgo/types.go261 // SectionActionAppend appends to existing section content.COMMENT
LOWgo/types.go301 // Content is the complete system message (required)COMMENT
LOWgo/types.go901 // Model is the model identifier for this agent (e.g. "claude-haiku-4.5").COMMENT
LOWgo/types.go941 // Enabled controls whether large output handling is enabled. Default: true.COMMENT
LOWgo/types.go981COMMENT
LOWgo/types.go1001 // ConfigDirectory overrides the default configuration directory location.COMMENT
LOWgo/types.go1021 // to include in the system prompt. Allows hosts to inject organization-specificCOMMENT
LOWgo/types.go1041 // and discovered skill directories). When false, no skills are loaded regardlessCOMMENT
LOWgo/types.go1061 // When nil, permission requests are surfaced as events and left pending for theCOMMENT
LOWgo/types.go1081 // event stream. When true, streaming delta events from sub-agents (e.g.,COMMENT
LOWgo/types.go1101 // surface and may change or be removed in future SDK or CLI releases.COMMENT
LOWgo/types.go1121 // custom instruction files. See also [ClientOptions.Mode] = [ModeEmpty].COMMENT
LOWgo/types.go1141 // CustomAgents configures custom agents for the sessionCOMMENT
LOWgo/types.go1161 // InfiniteSessions configures infinite sessions for persistent workspaces and automatic compaction.COMMENT
LOWgo/types.go1181 // CreateSessionFSProvider supplies a handler for session filesystem operations.COMMENT
LOWgo/types.go1201 // surface (SEP-1865) and may change or be removed in a future release.COMMENT
LOWgo/types.go1221 // GitHubToken is an optional per-session GitHub token used for authentication.COMMENT
LOWgo/types.go1241 RequestExtensions *boolCOMMENT
LOWgo/types.go1261 // it onto telemetry and the CAPI request header. When absent, the sessionCOMMENT
LOWgo/types.go1301COMMENT
LOWgo/types.go1461// ResumeSessionConfig configures options when resuming a sessionCOMMENT
LOWgo/types.go1481 // be selected or invoked unless a custom agent with the same name isCOMMENT
LOWgo/types.go1501 // When false, disables session telemetry. When nil (the default) or true,COMMENT
LOWgo/types.go1521 // defined locally. See also [ClientOptions.Mode] = [ModeEmpty].COMMENT
LOWgo/types.go1541 ContextTier ContextTierCOMMENT
LOWgo/types.go1561 // explicit values taking precedence on name collision.COMMENT
LOWgo/types.go1581 // .github/hooks/. This is separate from the Hooks callback parameter whichCOMMENT
LOWgo/types.go1601 // non-streaming sub-agent events and subagent.* lifecycle events are forwarded;COMMENT
LOWgo/types.go1621 // Treated as an explicit opt-in: plugin agents and rules load even whenCOMMENT
LOWgo/types.go1641 // GitHubToken is an optional per-session GitHub token used for authentication.COMMENT
LOWgo/types.go1661 // OnEvent is an optional event handler registered before the session.resume RPCCOMMENT
LOWgo/types.go1681 // Experimental: EnableMCPApps is part of an experimental wire-protocolCOMMENT
LOWgo/types.go1701 ExtensionInfo *ExtensionInfoCOMMENT
LOWgo/types.go1721//COMMENT
LOWgo/types.go1741COMMENT
LOWgo/types.go1761 // Set "websockets" to deliver Responses API requests over a persistent WebSocketCOMMENT
LOWgo/types.go1781 // WireModel is the model name sent to the provider API for inference. UseCOMMENT
LOWgo/types.go1801 //COMMENT
LOWgo/types.go1821 }{wire: wire(p)}COMMENT
LOWgo/types.go1841 EnableWebSocketResponses *bool `json:"enableWebSocketResponses,omitempty"`COMMENT
LOWgo/types.go1861type NamedProviderConfig struct {COMMENT
LOWgo/types.go1881 // (managed-identity / on-demand auth). When set, the SDK strips the callbackCOMMENT
LOWgo/session.go21type sessionHandler struct {COMMENT
LOWgo/session.go41// log.Fatal(err)COMMENT
LOWgo/session.go381 go s.processEvents()COMMENT
LOWgo/session.go441// SendAndWait sends a message to this session and waits until the session becomes idle.COMMENT
LOWgo/session.go521// SendPromptAndWait is a convenience wrapper for [Session.SendAndWait] thatCOMMENT
709 more matches not shown…
Hallucination Indicators27 hits · 330 pts
SeverityFileLineSnippetContext
CRITICALpython/e2e/test_rpc_server_e2e.py562 await ctx.client.rpc.skills.config.set_disabled_skills(CODE
CRITICALpython/e2e/test_rpc_server_e2e.py572 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
CRITICALjava/scripts/codegen/java.ts2112 lines.push(` mapper.registerModule(new com.fasterxml.jackson.datatype.jsr310.JavaTimeModule());`);CODE
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.java421 var params = new com.github.copilot.generated.rpc.SessionMcpAppsCallToolParams(null, "my-server", "my-tool",STRING
CRITICAL…/src/test/java/com/github/copilot/RpcWrappersTest.java434 var params = new com.github.copilot.generated.rpc.SessionMcpAppsCallToolParams(null, "server1", "tool1", null,STRING
CRITICAL…/src/test/java/com/github/copilot/RpcWrappersTest.java454 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…a/src/main/java/com/github/copilot/CopilotSession.java2044 : 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
Unused Imports237 hits · 165 pts
SeverityFileLineSnippetContext
LOWpython/test_cli_download.py3CODE
LOWpython/test_canvas.py3CODE
LOWpython/test_tool_set.py3CODE
LOWpython/test_telemetry.py3CODE
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.py66CODE
LOWpython/copilot/tools.py8CODE
LOWpython/copilot/_diagnostics.py3CODE
LOWpython/copilot/session.py9CODE
LOWpython/copilot/session.py97CODE
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
LOWpython/copilot/__init__.py31CODE
LOWpython/copilot/__init__.py31CODE
177 more matches not shown…
Modern AI Meta-Vocabulary34 hits · 99 pts
SeverityFileLineSnippetContext
MEDIUMgo/types.go297// Removes all SDK guardrails including security restrictions.COMMENT
MEDIUMgo/rpc/zrpc.go4068 // sessions (which don't run a local agentic loop). Reflects an in-flight turn or backgroundCOMMENT
MEDIUMgo/rpc/zrpc.go7107 // If true, await completion of the agentic loop for this turn before returning. Defaults toCOMMENT
MEDIUMgo/rpc/zrpc.go7161 // If true, await completion of the agentic loop for this message before returning. DefaultsCOMMENT
MEDIUMgo/rpc/zsession_events.go922 // True when the preceding agentic loop was cancelled via abort signalCOMMENT
MEDIUMgo/rpc/zsession_events.go931 // True when the preceding agentic loop was cancelled via abort signalCOMMENT
MEDIUMgo/rpc/zsession_events.go1108 // How this message was delivered to the agentic loop relative to loop state (idle-start vs. steering/queued while busyCOMMENT
MEDIUMgo/rpc/zsession_events.go1454 // When true, tool calls and permission requests left in flight by the previous session lifetime remain pending after rCOMMENT
MEDIUMgo/rpc/zsession_events.go1876 // Identifier for this turn within the agentic loop, typically a stringified turn numberCOMMENT
MEDIUMgo/rpc/zsession_events.go2490 // The extension management operation (scaffold, reload)COMMENT
MEDIUMgo/rpc/zsession_events.go2706 // The extension management operation (scaffold, reload)COMMENT
MEDIUMgo/rpc/zsession_events.go4173// 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.md763## Quick reference: agentic turn flowCOMMENT
MEDIUMdocs/integrations/microsoft-agent-framework.md625### Handle errors at the orchestration levelCOMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs1667 /// <summary>When true, tool calls and permission requests left in flight by the previous session lifetime remain peCOMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs1779 /// <summary>True when the preceding agentic loop was cancelled via abort signal.</summary>COMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs2443 /// <summary>How this message was delivered to the agentic loop relative to loop state (idle-start vs. steering/queuCOMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs2502 /// <summary>Identifier for this turn within the agentic loop, typically a stringified turn number.</summary>COMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs2721 /// <summary>True when the preceding agentic loop was cancelled via abort signal.</summary>COMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs6730 /// <summary>The extension management operation (scaffold, reload).</summary>COMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs7148 /// <summary>The extension management operation (scaffold, reload).</summary>COMMENT
MEDIUMdotnet/src/Generated/SessionEvents.cs8782/// <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/agents/agentic-workflows.agent.md33- Configuration: https://github.com/github/gh-aw/blob/v0.64.2/.github/aw/github-agentic-workflows.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md55**Prompt file**: https://github.com/github/gh-aw/blob/v0.64.2/.github/aw/create-agentic-workflow.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md65**Prompt file**: https://github.com/github/gh-aw/blob/v0.64.2/.github/aw/update-agentic-workflow.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md75**Prompt file**: https://github.com/github/gh-aw/blob/v0.64.2/.github/aw/debug-agentic-workflow.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md85**Prompt file**: https://github.com/github/gh-aw/blob/v0.64.2/.github/aw/upgrade-agentic-workflows.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md105**Prompt file**: https://github.com/github/gh-aw/blob/v0.64.2/.github/aw/create-shared-agentic-workflow.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md144# Initialize repository for agentic workflowsCOMMENT
MEDIUM.github/agents/agentic-workflows.agent.md172- Always reference the instructions file at https://github.com/github/gh-aw/blob/v0.64.2/.github/aw/github-agentic-workfCODE
Docstring Block Structure19 hits · 95 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.py1540 Parse CLI URL into host and port. Supports formats: "host:port", "http://host:port", "https://host:porSTRING
HIGHpython/copilot/client.py2003 Create a new conversation session with the Copilot CLI. Sessions maintain conversation state, handle eSTRING
HIGHpython/copilot/client.py2674 Resume an existing conversation session by its ID. This allows you to continue a previous conversationSTRING
HIGHpython/copilot/client.py3185 Send a ping request to the server to verify connectivity. Args: message: Optional message STRING
HIGHpython/copilot/client.py3299 List all available sessions known to the server. Returns metadata about each session including ID, timSTRING
HIGHpython/copilot/client.py3334 Get metadata for a specific session by ID. This provides an efficient O(1) lookup of a single session'STRING
HIGHpython/copilot/client.py4313 Handle a user input request from the CLI server. Args: params: The user input request paraSTRING
HIGHpython/copilot/client.py4373 Handle a hooks invocation from the CLI server. Args: params: The hooks invocation parameteSTRING
HIGHpython/copilot/session.py669Shows a generic elicitation dialog with a custom schema. Args: params: Elicitation parameters incluSTRING
HIGHpython/copilot/session.py693Shows a confirmation dialog and returns the user's boolean answer. Args: message: The question to aSTRING
HIGHpython/copilot/session.py727Shows a selection dialog with a list of options. Args: message: Instruction to show the user. STRING
HIGHpython/copilot/session.py764Shows a text input dialog. Args: message: Instruction to show the user. options: OptionSTRING
HIGHpython/copilot/session.py1527 Send a message to this session. The message is processed asynchronously. Subscribe to events via :methSTRING
HIGHpython/copilot/session.py1597 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.py321 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
Excessive Try-Catch Wrapping92 hits · 92 pts
SeverityFileLineSnippetContext
MEDIUMpython/README.md925 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.py602 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.py550 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py171 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py179 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py186 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py193 except Exception:CODE
LOWpython/copilot/session_fs_provider.py206 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py226 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py233 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py241 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py255 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py262 except Exception as exc:CODE
LOWpython/copilot/session_fs_provider.py303 except Exception:CODE
LOWpython/copilot/client.py1895 except Exception:CODE
LOWpython/copilot/client.py1903 except Exception:CODE
LOWpython/copilot/client.py1912 except Exception:CODE
LOWpython/copilot/client.py492 except Exception:CODE
LOWpython/copilot/client.py1694 except Exception as e:CODE
LOWpython/copilot/client.py1750 except Exception as e:CODE
LOWpython/copilot/client.py1774 except Exception as e:CODE
LOWpython/copilot/client.py1800 except Exception:CODE
LOWpython/copilot/client.py1809 except Exception:CODE
LOWpython/copilot/client.py3560 except Exception:CODE
LOWpython/copilot/client.py3567 except Exception:CODE
LOWpython/copilot/tools.py253 except Exception as exc:CODE
LOWpython/copilot/session.py1334 except Exception as err:CODE
LOWpython/copilot/session.py1342 except Exception as err:CODE
LOWpython/copilot/session.py1350 except Exception as err:CODE
LOWpython/copilot/session.py1939 except Exception as exc:CODE
LOWpython/copilot/session.py1947 except Exception as exc:CODE
MEDIUMpython/copilot/session.py1733 ... print(f"Error: {data.message}")STRING
LOWpython/copilot/session.py1771 except Exception:CODE
LOWpython/copilot/session.py1972 except Exception:CODE
LOWpython/copilot/session.py2056 except Exception as exc:CODE
LOWpython/copilot/session.py2107 except Exception:CODE
LOWpython/copilot/session.py2158 except Exception:CODE
LOWpython/copilot/session.py2227 except Exception as exc:CODE
LOWpython/copilot/session.py2287 except Exception:CODE
LOWpython/copilot/session.py2513 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/copilot/session.py2578 except Exception:CODE
LOWpython/copilot/session.py2679 except Exception:CODE
LOWpython/copilot/session.py2756 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.py398 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWpython/copilot/_jsonrpc.py455 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/copilot/_jsonrpc.py463 except Exception: # pylint: disable=broad-exceptCODE
LOWpython/copilot/_jsonrpc.py487 except Exception as exc: # pylint: disable=broad-exceptCODE
MEDIUMpython/copilot/_jsonrpc.py460def _await_outcome():CODE
LOWpython/copilot/_ffi_runtime_host.py464 except Exception: # noqa: BLE001CODE
LOWpython/copilot/_ffi_runtime_host.py501 except Exception: # noqa: BLE001CODE
LOWpython/copilot/_ffi_runtime_host.py508 except Exception: # noqa: BLE001CODE
32 more matches not shown…
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.md361// Step 1: Code review sessionCOMMENT
LOWdocs/integrations/microsoft-agent-framework.md371// Step 2: Documentation session using review outputCOMMENT
LOW.github/workflows/release-changelog.md47### Step 1: Identify the version rangeCOMMENT
LOW.github/workflows/release-changelog.md63### Step 2: Gather changesCOMMENT
LOW.github/workflows/release-changelog.md76### Step 3: Categorize and write upCOMMENT
LOW.github/workflows/release-changelog.md87### Step 4: Update CHANGELOG.md (stable releases only)COMMENT
LOW.github/workflows/release-changelog.md107### Step 5: Create a Pull Request (stable releases only)COMMENT
LOW.github/workflows/release-changelog.md116### Step 6: 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.md81### Step 0: SetupCOMMENT
LOW.github/workflows/java-codegen-fix.md104### Step 1: Reproduce the failureCOMMENT
LOW.github/workflows/java-codegen-fix.md116### Step 2: Diagnose the root causeCOMMENT
LOW.github/workflows/java-codegen-fix.md145### Step 3: Fix the code generator (if needed)COMMENT
LOW.github/workflows/java-codegen-fix.md168### Step 4: Fix handwritten code (up to 3 attempts)COMMENT
LOW.github/workflows/java-codegen-fix.md208### Step 5: Push fixesCOMMENT
LOW.github/workflows/java-codegen-fix.md221### Step 6: Failure handlingCOMMENT
LOW.github/workflows/cross-repo-issue-analysis.md64### Step 1: Understand the IssueCOMMENT
LOW.github/workflows/cross-repo-issue-analysis.md68### Step 2: Analyze Against copilot-sdkCOMMENT
LOW.github/workflows/cross-repo-issue-analysis.md76### Step 3: Investigate copilot-agent-runtimeCOMMENT
LOW.github/workflows/cross-repo-issue-analysis.md93### 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.py532 exchange._queue.push(_BodyItem(cancel=True, cancel_reason=params.cancel_reason))CODE
HIGHpython/copilot/copilot_request_handler.py535 exchange._queue.push(CODE
HIGHpython/copilot/copilot_request_handler.py539 exchange._queue.push(_BodyItem(end=True))CODE
HIGHpython/e2e/test_session_e2e.py934 await session.send("Run 'sleep 2 && echo done'")CODE
HIGHpython/e2e/test_session_e2e.py980 "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 Comments23 hits · 64 pts
SeverityFileLineSnippetContext
MEDIUMpython/copilot/client.py4103 # Create a TCP socket connection with timeoutCOMMENT
MEDIUMpython/copilot/client.py4133 # Create a file-like wrapper for the socketCOMMENT
MEDIUMpython/copilot/client.py4136 # Create a mock process object that JsonRpcClient expectsCOMMENT
MEDIUMpython/copilot/client.py1251 >>> # Create a client with default options (spawns CLI server)STRING
MEDIUMpython/copilot/client.py1255 >>> # 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.py326 # Create a couple of sessions and send messages to persist themCOMMENT
MEDIUMpython/e2e/test_session_e2e.py369 # Create a session and send a message to persist itCOMMENT
MEDIUMpython/e2e/test_session_e2e.py401 # Create a session and send a message to persist itCOMMENT
MEDIUMpython/e2e/test_session_e2e.py430 # 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.py181 # Create a session firstCOMMENT
MEDIUMpython/e2e/testharness/context.py98 # Create the shared client (like Node.js/Go do). The in-process (FFI)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.ts373 gitHubToken: isCI ? "fake-token-for-e2e-tests" : undefined,CODE
LOWnodejs/test/e2e/session.e2e.test.ts445 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.go551 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.py479 "api_key": "fake-key",CODE
LOWpython/e2e/test_session_e2e.py490 "api_key": "fake-key",CODE
LOWpython/e2e/test_session_e2e.py256 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else NoneCODE
LOWpython/e2e/test_session_e2e.py511 "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.py46DEFAULT_GITHUB_TOKEN = "fake-token-for-e2e-tests"CODE
LOWrust/tests/e2e/session.rs1496 .with_api_key("fake-key"),CODE
LOWrust/tests/e2e/session.rs1523 .with_api_key("fake-key")CODE
LOWrust/tests/e2e/session.rs1560 .with_api_key("fake-key"),CODE
LOWrust/tests/e2e/elicitation.rs463 default: Some("user@example.com"),CODE
LOWrust/tests/e2e/elicitation.rs471 assert_eq!(options.default, Some("user@example.com"));CODE
LOW…c/test/java/com/github/copilot/ExecutorWiringTest.java91 .setGitHubToken("fake-token-for-e2e-tests");CODE
LOW…java/com/github/copilot/CopilotRequestTestSupport.java85 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…a/src/test/java/com/github/copilot/E2ETestContext.java63 private static final String DEFAULT_GITHUB_TOKEN = "fake-token-for-e2e-tests";CODE
LOWdotnet/test/Harness/E2ETestContext.cs14 private const string DefaultGitHubToken = "fake-token-for-e2e-tests";CODE
LOWdotnet/test/E2E/SessionE2ETests.cs933 ApiKey = "fake-key",CODE
LOWdotnet/test/E2E/SessionE2ETests.cs958 ApiKey = "fake-key",CODE
LOWdotnet/test/E2E/SessionE2ETests.cs990 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 Vocabulary9 hits · 27 pts
SeverityFileLineSnippetContext
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.java42 * {@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.yml138 # (the harness forces concurrency to 1) because it mirrors each test'sCOMMENT
MEDIUM.github/workflows/rust-sdk-tests.yml205 # 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.ts3186 elif "max_context_window_tokens" not in caps["limits"]:CODE
HIGHscripts/codegen/python.ts3728 lines.push(` return None`);CODE
HIGHscripts/codegen/python.ts3816 lines.push(` if handler is None: return None`);CODE
HIGHscripts/codegen/python.ts3818 lines.push(` return None`);CODE
HIGHscripts/codegen/python.ts3844 lines.push(` return None`);CODE
Deep Nesting27 hits · 22 pts
SeverityFileLineSnippetContext
LOWpython/copilot/_cli_download.py363CODE
LOWpython/copilot/_cli_download.py491CODE
LOWpython/copilot/client.py1273CODE
LOWpython/copilot/client.py1615CODE
LOWpython/copilot/client.py1715CODE
LOWpython/copilot/client.py1858CODE
LOWpython/copilot/client.py3481CODE
LOWpython/copilot/tools.py124CODE
LOWpython/copilot/tools.py351CODE
LOWpython/copilot/tools.py186CODE
LOWpython/copilot/tools.py219CODE
LOWpython/copilot/session.py2661CODE
LOWpython/copilot/_jsonrpc.py371CODE
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.py121CODE
LOWpython/e2e/test_pending_work_resume_e2e.py441CODE
LOWpython/e2e/test_rpc_event_side_effects_e2e.py79CODE
LOWpython/e2e/test_rpc_session_state_e2e.py561CODE
LOWpython/e2e/test_rpc_session_state_e2e.py813CODE
LOWpython/e2e/test_commands_e2e.py98CODE
LOWpython/e2e/testharness/context.py207CODE
Magic Placeholder Names2 hits · 12 pts
SeverityFileLineSnippetContext
HIGH…src/main/java/com/github/copilot/rpc/AzureOptions.java20 * .setApiKey("your-api-key").setAzure(new AzureOptions().setApiVersion("2024-02-01"));COMMENT
HIGHdotnet/README.md740 ApiKey = "your-api-key"CODE
Modern Structural Boilerplate14 hits · 10 pts
SeverityFileLineSnippetContext
LOWpython/copilot/copilot_request_handler.py412 def set_context(self, params: LlmInferenceHTTPRequestStartRequest) -> None:CODE
LOWpython/copilot/client.py119logger = logging.getLogger(__name__)CODE
LOWpython/copilot/client.py4300 async def _set_llm_inference_provider(self) -> None:CODE
LOWpython/copilot/client.py3445 async def set_foreground_session_id(self, session_id: str) -> None:CODE
LOWpython/copilot/client.py4264 async def _set_session_fs_provider(self) -> None:CODE
LOWpython/copilot/session.py88logger = logging.getLogger(__name__)CODE
LOWpython/copilot/session.py2384 def _set_open_canvases(self, instances: list[OpenCanvasInstance]) -> None:CODE
LOWpython/copilot/session.py2412 def _set_capabilities(self, capabilities: SessionCapabilities | None) -> None:CODE
LOWpython/copilot/__init__.py195__all__ = [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.py271 async def set_copilot_user_by_token(self, token: str, response: dict[str, Any]) -> None:CODE
Synthetic Comment Markers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHgo/cmd/bundler/main.go322 content := fmt.Sprintf(`// Code generated by copilot-sdk bundler; DO NOT EDIT.CODE
HIGH…java/com/github/copilot/tool/CopilotToolProcessor.java182 out.println("// GENERATED by CopilotToolProcessor — do not edit");CODE
Redundant / Tautological Comments7 hits · 8 pts
SeverityFileLineSnippetContext
LOWpython/copilot/_cli_download.py477 # Check if download is disabledCOMMENT
LOWpython/copilot/client.py1560 # Check if it's just a port numberCOMMENT
LOWpython/copilot/client.py1703 # Check if process exited and capture any remaining stderrCOMMENT
LOWpython/copilot/client.py4154 # Close the file wrapper — makefile() holds its ownCOMMENT
LOWpython/copilot/_jsonrpc.py373 # Check if it's a response to our requestCOMMENT
LOWpython/copilot/_jsonrpc.py412 # 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
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWgo/session.go35// Example usage:COMMENT
AI Structural Patterns3 hits · 2 pts
SeverityFileLineSnippetContext
LOWpython/copilot/client.py1273CODE
LOWpython/copilot/client.py1927CODE
LOWpython/copilot/client.py2597CODE