Kode CLI — Design for post-human workflows. One unit agent for every human & computer task.
This report summarizes scanner evidence for shareAI-lab/Kode-CLI, a TypeScript project with 5,235 GitHub stars. SynthScan examined 189,635 lines of code across 1488 source files, recording 637 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 3.7 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 618 finding(s).
Are imports declared and package/API names verified? 12 finding(s).
Are wrappers, guards, and repeated structures necessary? 560 finding(s).
Which changes need focused human review? 637 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 637 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/prepublish-check.js | 105 | function assertPackContainsExactPaths(pack, requiredPaths) { | CODE |
| LOW | scripts/prepublish-check.js | 115 | function assertPackContainsSomeUnderPrefix(pack, prefix, humanName) { | CODE |
| LOW | scripts/prepublish-check.js | 126 | function assertPackExcludesPrefixes(pack, prefixes) { | CODE |
| LOW | packages/tools/src/tools/network/WebFetchTool/utils.ts | 16 | export function extractTextFromMessageContent(content: unknown): string | null { | CODE |
| LOW | packages/tools/src/tools/network/WebFetchTool/utils.ts | 210 | export async function fetchWithRedirectDetection( | CODE |
| LOW | …ols/src/tools/filesystem/FileReadTool/FileReadTool.tsx | 66 | function extractTaskOutputIdFromPath(filePath: string): string | null { | CODE |
| LOW | …tools/src/tools/search/WebSearchTool/WebSearchTool.tsx | 60 | function parseAnthropicWebSearchContentBlocks( | CODE |
| LOW | …tools/src/tools/search/WebSearchTool/WebSearchTool.tsx | 215 | function canUseAnthropicServerToolWebSearch(modelName: string): boolean { | CODE |
| LOW | packages/tools/src/tools/search/GrepTool/helpers.ts | 25 | export function toProjectRelativeIfPossible(p: string): string { | CODE |
| LOW | …ols/src/tools/system/TaskOutputTool/TaskOutputTool.tsx | 137 | async function waitForBashTaskCompletion(args: { | CODE |
| LOW | packages/tools/src/tools/system/LspTool/call.ts | 516 | export function getCachedLspRuntimeStatus(): { | CODE |
| LOW | packages/tools/src/tools/system/LspTool/call.ts | 580 | export async function ensureLspManagerInitialized(): Promise<LspServerManager | null> { | CODE |
| LOW | packages/tools/src/tools/system/LspTool/tsProject.ts | 40 | export function getOrCreateTsProject( | CODE |
| LOW | packages/tools/src/tools/system/LspTool/tsProject.ts | 139 | export function isFileTypeSupportedByTypescriptBackend( | CODE |
| LOW | packages/tools/src/tools/system/LspTool/lspConfig.ts | 400 | function parseLspServersFromUnknown( | CODE |
| LOW | packages/tools/src/tools/system/LspTool/lspConfig.ts | 432 | function parseLspServersFromTopLevelRecord( | CODE |
| LOW | packages/tools/src/tools/system/LspTool/lspConfig.ts | 474 | function loadPluginLspServersFromRootFile(pluginRoot: string): { | CODE |
| LOW | packages/tools/src/tools/system/LspTool/lspConfig.ts | 614 | export function buildLspServerIndexFromServers( | CODE |
| LOW | packages/tools/src/tools/system/LspTool/lspConfig.ts | 641 | export function lspWorkspaceFolderForServer( | CODE |
| LOW | packages/tools/src/tools/system/LspTool/lspConfig.ts | 657 | export function lspWorkspaceFoldersForServer( | CODE |
| LOW | packages/tools/src/tools/system/LspTool/format.ts | 29 | export function toProjectRelativeIfPossible(filePath: string): string { | CODE |
| LOW | packages/tools/src/tools/system/LspTool/format.ts | 49 | export function formatGoToDefinitionResult( | CODE |
| LOW | packages/tools/src/tools/system/LspTool/format.ts | 97 | export function formatFindReferencesResult( | CODE |
| LOW | packages/tools/src/tools/system/LspTool/format.ts | 158 | export function formatDocumentSymbolsResult( | CODE |
| LOW | …ges/tools/src/tools/system/BashTool/summarizeOutput.ts | 74 | function formatPersistedBashOutput(args: { | CODE |
| LOW | …ges/tools/src/tools/system/BashTool/summarizeOutput.ts | 128 | function extractTextFromAssistantMessage(message: AssistantMessage): string { | CODE |
| LOW | …kages/tools/src/tools/system/BashTool/dataLossRules.ts | 179 | function isNonExecutableSubcommand(tokens: string[]): boolean { | CODE |
| LOW | …ols/system/BashTool/BashToolRunInBackgroundOverlay.tsx | 98 | export function BashToolRunInBackgroundOverlay({ | CODE |
| LOW | …ages/tools/src/tools/system/BashTool/sandboxNetwork.ts | 7 | export async function maybeAttachSandboxNetworkPorts(args: { | CODE |
| LOW | …ools/src/tools/system/BashTool/llmSafetyGateVerdict.ts | 55 | export function formatBashLlmGateBlockMessage( | CODE |
| LOW | packages/tools/src/tools/ai/TaskTool/permissions.ts | 5 | export function normalizeAgentPermissionMode( | CODE |
| LOW | packages/tools/src/tools/ai/TaskTool/forkContext.ts | 59 | function createForkContextToolResult(options: { | CODE |
| LOW | packages/tools/src/tools/ai/TaskTool/forkContext.ts | 80 | function createToolUseOnlyAssistantMessage(options: { | CODE |
| LOW | packages/tools/src/tools/ai/TaskTool/render.tsx | 17 | export function renderTaskToolResultMessage( | CODE |
| LOW | packages/tools/src/tools/ai/TaskTool/render.tsx | 111 | export function renderTaskToolResultForAssistant(output: Output): string { | CODE |
| LOW | …/tools/src/tools/interaction/SlashCommandTool/utils.ts | 13 | export function normalizeCommandModelName(model: unknown): string | undefined { | CODE |
| LOW | …/tools/src/tools/interaction/SlashCommandTool/utils.ts | 94 | export function getCommandAllowedToolsFromContext(ctx: unknown): string[] { | CODE |
| LOW | …es/tools/src/tools/interaction/SkillTool/SkillTool.tsx | 89 | function getDisableModelInvocation(cmd: unknown): boolean { | CODE |
| LOW | …es/tools/src/tools/interaction/SkillTool/SkillTool.tsx | 129 | function normalizeCommandModelName(model: unknown): string | undefined { | CODE |
| LOW | …es/tools/src/tools/interaction/SkillTool/SkillTool.tsx | 234 | function buildAvailableSkillsSection(cmds: CustomCommand[]): string { | CODE |
| LOW | packages/core/src/history.ts | 199 | function normalizeHistoryWriteInput(input: HistoryWriteInput): { | CODE |
| LOW | packages/core/src/history.ts | 312 | function loadPromptHistoryFromRoot(args: { | CODE |
| LOW | packages/core/src/history.ts | 384 | function loadPromptHistoryForProject(project: string): PromptHistoryItem[] { | CODE |
| LOW | packages/core/src/history.ts | 432 | function loadGlobalPromptHistoryFromRoot(args: { | CODE |
| LOW | packages/core/src/history.ts | 600 | export function getGlobalHistoryWithPastes(): Array<{ | CODE |
| LOW | packages/core/src/messages.ts | 29 | export function setModelConfigChangeHandler(handler: () => void) { | CODE |
| LOW | packages/core/src/cost-tracker.ts | 49 | export function registerCostSummaryOnExit(): () => void { | CODE |
| LOW | packages/core/src/tasks/storage.ts | 165 | function getTaskListDirCandidatesForRead(taskListId: string): string[] { | CODE |
| LOW | packages/core/src/tasks/storage.ts | 251 | function getHighestTaskIdAcrossStores(taskListId: string): number { | CODE |
| LOW | packages/core/src/tasks/storage.ts | 394 | function getTaskFromNonPrimaryStores(args: { | CODE |
| LOW | packages/core/src/types/toolPermissionContext.ts | 66 | export function createDefaultToolPermissionContext(options?: { | CODE |
| LOW | packages/core/src/types/toolPermissionContext.ts | 80 | export function applyToolPermissionContextUpdate( | CODE |
| LOW | packages/core/src/types/toolPermissionContext.ts | 155 | export function applyToolPermissionContextUpdates( | CODE |
| LOW | packages/core/src/types/toolPermissionContext.ts | 166 | export function isPersistableToolPermissionDestination( | CODE |
| LOW | packages/core/src/types/toolPermissionContext.ts | 176 | export function canUserModifyToolPermissionUpdate( | CODE |
| LOW | …/src/test/unit/queryllm-model-pointer-fallback.test.ts | 30 | async function stubQueryLLMWithPromptCaching( | CODE |
| LOW | packages/core/src/test/unit/ripgrep-bundled.test.ts | 52 | function getPlatformExecutableName(): string { | CODE |
| LOW | …/src/test/unit/queryllm-tool-description-cache.test.ts | 50 | async function stubQueryLLMWithPromptCaching( | CODE |
| LOW | …ages/core/src/test/unit/file-permission-engine.test.ts | 26 | function createCautiousToolPermissionContext( | CODE |
| LOW | …ges/core/src/test/unit/messages-ui-consistency.test.ts | 24 | function makeToolUseAssistantWithSiblings( | CODE |
| 493 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 43 | // Step 1: Create adapter | COMMENT |
| LOW⚡ | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 48 | // Step 2: Build request with STREAMING enabled (this is the key!) | COMMENT |
| LOW⚡ | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 62 | // Step 3: Create request | COMMENT |
| LOW⚡ | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 68 | // Step 4: Make API call | COMMENT |
| LOW⚡ | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 72 | // Step 5: TRACK STREAM STATE before adapter | COMMENT |
| LOW⚡ | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 82 | // Step 6: Check if body is a ReadableStream | COMMENT |
| LOW | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 111 | // Step 7: Parse response | COMMENT |
| LOW | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 138 | // Step 8: Validate result | COMMENT |
| LOW | …e/src/test/regression/responses-api-regression.test.ts | 40 | // Step 1: Get response with responseId | COMMENT |
| LOW | …e/src/test/regression/responses-api-regression.test.ts | 56 | // Step 2: Convert to AssistantMessage (like the refactored CLI pipeline does) | COMMENT |
| LOW⚡ | packages/core/src/services/systemPrompt.ts | 19 | // Step 0: Add GPT-5 Agent persistence support for coding tasks | COMMENT |
| LOW | packages/builtin-skills/skills/skill-judge/SKILL.md | 496 | ### Step 1: First Pass — Knowledge Delta Scan | COMMENT |
| LOW⚡ | packages/builtin-skills/skills/skill-judge/SKILL.md | 511 | ### Step 2: Structure Analysis | COMMENT |
| LOW⚡ | packages/builtin-skills/skills/skill-judge/SKILL.md | 521 | ### Step 3: Score Each Dimension | COMMENT |
| LOW⚡ | packages/builtin-skills/skills/skill-judge/SKILL.md | 528 | ### Step 4: Calculate Total & Grade | COMMENT |
| LOW | packages/builtin-skills/skills/skill-judge/SKILL.md | 544 | ### Step 5: Generate Report | COMMENT |
| LOW | packages/builtin-skills/skills/skill-creator/SKILL.md | 215 | ### Step 1: Understanding the Skill with Concrete Examples | COMMENT |
| LOW | packages/builtin-skills/skills/skill-creator/SKILL.md | 232 | ### Step 2: Planning the Reusable Skill Contents | COMMENT |
| LOW | packages/builtin-skills/skills/skill-creator/SKILL.md | 256 | ### Step 3: Initializing the Skill | COMMENT |
| LOW | packages/builtin-skills/skills/skill-creator/SKILL.md | 279 | ### Step 4: Edit the Skill | COMMENT |
| LOW | packages/builtin-skills/skills/skill-creator/SKILL.md | 320 | ### Step 5: Packaging a Skill | COMMENT |
| LOW | packages/builtin-skills/skills/skill-creator/SKILL.md | 347 | ### Step 6: Iterate | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 125 | ### Step 1: Understand Existing Code | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 148 | ### Step 2: Design Integration | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 173 | ### Step 3: Implement | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 258 | ### Step 1: Profile First (ALWAYS) | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 269 | ### Step 2: Identify Bottleneck | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 283 | ### Step 3: Propose Optimization | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 300 | ### Step 4: Implement with Benchmarks | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 323 | ### Step 1: Understand Current State | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 340 | ### Step 2: Ensure Test Coverage | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 352 | ### Step 3: Plan Safe Transformations | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 370 | ### Step 3: Incremental Execution | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 442 | ### Step 1: Assess Current State | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 457 | ### Step 2: Migration Plan | COMMENT |
| LOW | …lls/vibe-coding/references/scenarios/complete-guide.md | 491 | ### Step 3: Execute with Checkpoints | COMMENT |
| LOW | …kills/vibe-coding/references/scenarios/optimization.md | 21 | ## Step 1: Profile First | COMMENT |
| LOW | …kills/vibe-coding/references/scenarios/optimization.md | 44 | ## Step 2: Identify Bottleneck | COMMENT |
| LOW | …kills/vibe-coding/references/scenarios/optimization.md | 63 | ## Step 3: Propose Optimization | COMMENT |
| LOW | …kills/vibe-coding/references/scenarios/optimization.md | 82 | ## Step 4: Implement with Benchmarks | COMMENT |
| LOW | …lls/skills/vibe-coding/references/scenarios/feature.md | 15 | ## Step 1: Understand Existing Code | COMMENT |
| LOW | …lls/skills/vibe-coding/references/scenarios/feature.md | 32 | ## Step 2: Design Integration | COMMENT |
| LOW | …lls/skills/vibe-coding/references/scenarios/feature.md | 58 | ## Step 3: Implement | COMMENT |
| LOW | …skills/vibe-coding/references/scenarios/refactoring.md | 21 | ## Step 1: Understand Current State | COMMENT |
| LOW | …skills/vibe-coding/references/scenarios/refactoring.md | 40 | ## Step 2: Ensure Test Coverage | COMMENT |
| LOW | …skills/vibe-coding/references/scenarios/refactoring.md | 56 | ## Step 3: Plan Safe Transformations | COMMENT |
| LOW | …skills/vibe-coding/references/scenarios/refactoring.md | 76 | ## Step 4: Incremental Execution | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 43 | // Step 1: Create adapter | COMMENT |
| LOW⚡ | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 48 | // Step 2: Build request with STREAMING enabled (this is the key!) | COMMENT |
| LOW⚡ | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 62 | // Step 3: Create request | COMMENT |
| LOW⚡ | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 68 | // Step 4: Make API call | COMMENT |
| LOW⚡ | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 72 | // Step 5: TRACK STREAM STATE before adapter | COMMENT |
| LOW⚡ | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 82 | // Step 6: Check if body is a ReadableStream | COMMENT |
| LOW | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 111 | // Step 7: Parse response | COMMENT |
| LOW | …ore/src/test/diagnostic/diagnostic-stream-test.test.ts | 138 | // Step 8: Validate result | COMMENT |
| LOW | …e/src/test/regression/responses-api-regression.test.ts | 40 | // Step 1: Get response with responseId | COMMENT |
| LOW | …e/src/test/regression/responses-api-regression.test.ts | 56 | // Step 2: Convert to AssistantMessage (like the refactored CLI pipeline does) | COMMENT |
| LOW⚡ | packages/core/src/services/systemPrompt.ts | 19 | // Step 0: Add GPT-5 Agent persistence support for coding tasks | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/develop/configuration.md | 52 | "apiKey": "<YOUR_API_KEY>", | CODE |
| HIGH | docs/develop/configuration.md | 52 | "apiKey": "<YOUR_API_KEY>", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ltin-skills/skills/skill-creator/scripts/init_skill.py | 217 | except Exception as e: | CODE |
| LOW | …ltin-skills/skills/skill-creator/scripts/init_skill.py | 232 | except Exception as e: | CODE |
| LOW | …ltin-skills/skills/skill-creator/scripts/init_skill.py | 259 | except Exception as e: | CODE |
| LOW | …n-skills/skills/skill-creator/scripts/package_skill.py | 80 | except Exception as e: | CODE |
| MEDIUM | …in-skills/skills/webapp-testing/scripts/with_server.py | 49 | print("Error: No command specified to run") | CODE |
| MEDIUM | …in-skills/skills/webapp-testing/scripts/with_server.py | 54 | print("Error: Number of --server and --port arguments must match") | CODE |
| LOW | …ills/skills/mcp-builder/reference/python_mcp_server.md | 467 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ills/webapp-testing/examples/static_html_automation.py | 21 | page.fill('#name', 'John Doe') | CODE |
| LOW | …ills/skills/mcp-builder/reference/python_mcp_server.md | 306 | "name": str, # Full name (e.g., "John Doe") | STRING |
| LOW | …ills/skills/mcp-builder/reference/python_mcp_server.md | 572 | return {"id": user_id, "name": "John Doe", "email": "john@example.com"} | CODE |
| LOW | …skills/skills/mcp-builder/reference/node_mcp_server.md | 173 | "name": string, // Full name (e.g., "John Doe") | CODE |
| LOW | …kills/skills/vibe-coding/references/domains/testing.md | 132 | const user = { id: 1, name: 'Test', email: 'test@test.com', role: 'admin', ... }; | CODE |
| LOW | …i/components/ModelSelector/flow/actions/fetchModels.ts | 159 | apiKey: apiKey || 'dummy-key-for-ollama', // Ollama doesn't need a real key | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …es/tools/src/tools/interaction/TodoWriteTool/prompt.ts | 105 | print("Hello World") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …in-skills/skills/webapp-testing/scripts/with_server.py | 12 | --server "cd backend && python server.py" --port 3000 \ | STRING |
| HIGH | …in-skills/skills/webapp-testing/scripts/with_server.py | 13 | --server "cd frontend && npm run dev" --port 5173 \ | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ills/skills/mcp-builder/reference/python_mcp_server.md | 282 | Search for users in the Example system by name, email, or team. This tool searches across all user profiles in | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/seccomp/gen-unix-block-bpf.c | 1 | #include <errno.h> | COMMENT |
| LOW | packages/core/src/utils/messages.ts | 1 | // IMPORTANT: | COMMENT |
| LOW | packages/core/src/utils/log.ts | 1 | // IMPORTANT: | COMMENT |
| LOW | apps/cli/src/ui/hooks/useApiKeyVerification.ts | 21 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ltin-skills/skills/skill-creator/scripts/init_skill.py | 208 | # Check if directory already exists | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …n-skills/skills/skill-creator/scripts/package_skill.py | 19 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …-skills/skills/skill-creator/scripts/quick_validate.py | 7 | CODE |