Desktop Companion for Hermes Agent
This report presents the forensic synthetic code analysis of fathah/hermes-desktop, a TypeScript project with 14,063 GitHub stars. SynthScan v2.0 examined 200,565 lines of code across 851 source files, recording 552 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 5.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).
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.
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.
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.
The scanner identified 552 distinct pattern matches across 13 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/installer-utils.test.ts | 38 | // ─── readLogs (test the logic, not the import) ───────── | COMMENT |
| MEDIUM | tests/installer-utils.test.ts | 71 | // ─── MCP server YAML parsing ─────────────────────────── | COMMENT |
| MEDIUM | tests/installer-utils.test.ts | 164 | // ─── Memory provider discovery logic ──────────────────── | COMMENT |
| MEDIUM | tests/installer-utils.test.ts | 237 | // ─── OAuth credential discovery ───────────────── | COMMENT |
| MEDIUM | tests/installer-utils.test.ts | 313 | // ─── OpenClaw detector ───────────────────────────────── | COMMENT |
| MEDIUM | tests/installer-utils.test.ts | 354 | // ─── Backward compatibility checks ───────────────────── | COMMENT |
| MEDIUM | tests/buildUserContent.test.ts | 63 | // ── helpers ────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/buildUserContent.test.ts | 112 | // ── tests ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/constants.test.ts | 16 | // ─── PROVIDERS ────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/constants.test.ts | 91 | // ─── GATEWAY_PLATFORMS ────────────────────────────────── | COMMENT |
| MEDIUM | tests/constants.test.ts | 148 | // ─── GATEWAY_SECTIONS ─────────────────────────────────── | COMMENT |
| MEDIUM | tests/constants.test.ts | 188 | // ─── SETTINGS_SECTIONS ────────────────────────────────── | COMMENT |
| MEDIUM | tests/constants.test.ts | 224 | // ─── Static constants ─────────────────────────────────── | COMMENT |
| MEDIUM | tests/constants.test.ts | 254 | // ─── providerRouteForEnvKey ───────────────────────────── | COMMENT |
| MEDIUM | tests/sse-parser.test.ts | 8 | // ─── parseSseBlock ────────────────────────────────────── | COMMENT |
| MEDIUM | tests/sse-parser.test.ts | 45 | // ─── processCustomEvent ───────────────────────────────── | COMMENT |
| MEDIUM | tests/sse-parser.test.ts | 163 | // ─── processSseData ───────────────────────────────────── | COMMENT |
| MEDIUM | tests/ipc-handlers.test.ts | 62 | // ─── New feature handlers registered ──────────────────── | COMMENT |
| MEDIUM | tests/ipc-handlers.test.ts | 91 | // ─── Legacy handlers still present ────────────────────── | COMMENT |
| MEDIUM | tests/validation.test.ts | 191 | // ── Nous Portal (issue #367) ───────────────────────────────── | COMMENT |
| MEDIUM | tests/validation.test.ts | 191 | // ── Nous Portal (issue #367) ───────────────────────────────── | COMMENT |
| MEDIUM | tests/preload-api-surface.test.ts | 66 | // ─── New APIs exist ───────────────────────────────────── | COMMENT |
| MEDIUM | tests/preload-api-surface.test.ts | 137 | // ─── Legacy APIs still present ────────────────────────── | COMMENT |
| MEDIUM | tests/preload-api-surface.test.ts | 240 | // ─── IPC channel consistency ──────────────────────────── | COMMENT |
| MEDIUM | scripts/verify-369-wsl-drift.js | 36 | // ── A. Run audit, look for drift issues ───────────────────── | COMMENT |
| MEDIUM | scripts/verify-369-wsl-drift.js | 61 | // ── B. Auto-fix the first autoFixable drift ──────────────── | COMMENT |
| MEDIUM | scripts/verify-369-wsl-drift.js | 86 | // ── C. Confirm Windows-side .env now has the value ────────── | COMMENT |
| MEDIUM | scripts/verify-369-wsl-drift.js | 97 | // ── D. Re-run audit — the same drift should be gone ──────── | COMMENT |
| MEDIUM | src/renderer/src/constants.ts | 1 | // ── Shared Types ──────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/constants.ts | 35 | // ── Providers ─────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/constants.ts | 652 | // ── Theme ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/constants.ts | 701 | // ── Font ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/constants.ts | 731 | // ── Settings API Key Sections ─────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/constants.ts | 1001 | // ── Gateway Sections ──────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/constants.ts | 1337 | // ── Install ───────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/attachmentUtils.test.ts | 19 | // ── helpers ────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/attachmentUtils.test.ts | 49 | // ── processFiles ───────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/attachmentUtils.test.ts | 202 | // ── filesFromClipboard ─────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/attachmentUtils.ts | 63 | // ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/attachmentUtils.ts | 65 | // ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 100 | // ── initial render ────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 114 | // ── open / close ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 162 | // ── model list rendering ──────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 210 | // ── model selection ───────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 232 | // ── search / filtering ────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 290 | // ── provider rail ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 306 | // ── configure providers/models footer ─────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 324 | // ── edge cases ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/mediaUtils.test.ts | 26 | // ── Explicit MEDIA: tokens ───────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/mediaUtils.test.ts | 65 | // ── Whole-line bare paths ────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/mediaUtils.test.ts | 95 | // ── Inline bare paths (mid-sentence) ─────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/mediaUtils.test.ts | 239 | // ── False-positive guards ────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/mediaUtils.test.ts | 362 | // ── Misc ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Office/office3d/trips.ts | 37 | // ── Tuning ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Office/office3d/layout.ts | 61 | // ── Partition between work area (west) and rest room (east) ──────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Office/office3d/layout.ts | 89 | // ── Desks (work area, west of the partition) ─────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Office/office3d/layout.ts | 98 | // ── CEO executive desk ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Office/office3d/layout.ts | 113 | // ── CEO glass corner office (south-west of the work area) ────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Office/office3d/layout.ts | 291 | // ── Rest room (east of the partition) ────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Office/office3d/Office3D.tsx | 249 | // ── Developer building-mover ────────────────────────────────────────────── | COMMENT |
| 106 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/repro-session-proliferation.js | 48 | print(json.dumps({"total": total, "rows": rows})) | CODE |
| HIGH | scripts/repro-long-conversation.js | 42 | print(json.dumps({"total": total, "rows": rows})) | CODE |
| HIGH | scripts/repro-gateway-restart-midchat.js | 43 | print(json.dumps({"rows": rows})) | CODE |
| HIGH | scripts/repro-gateway-restart-v2.js | 32 | print(json.dumps({"rows": rows})) | CODE |
| HIGH⚡ | src/main/ssh-docker.ts | 170 | return False | CODE |
| HIGH⚡ | src/main/ssh-docker.ts | 177 | return True | CODE |
| HIGH⚡ | src/main/ssh-docker.ts | 178 | return False | CODE |
| HIGH | src/main/ssh-docker.ts | 139 | elif os.path.exists(home): | CODE |
| HIGH | src/main/ssh-docker.ts | 214 | print(json.dumps({ | CODE |
| HIGH | src/main/ssh-docker.ts | 311 | print(json.dumps({"ok": False, "error": msg})) | CODE |
| HIGH | src/main/ssh-docker.ts | 352 | print(json.dumps({"ok": True, "dataHome": data_home, "execUser": exec_user, "cliPath": cli_path})) | CODE |
| HIGH | src/main/ssh-docker.ts | 390 | print(json.dumps({"ok": False, "error": msg, "warnings": warnings})) | CODE |
| HIGH | src/main/ssh-docker.ts | 421 | elif os.path.isdir(home): | CODE |
| HIGH | src/main/ssh-docker.ts | 426 | elif os.path.exists(home): | CODE |
| HIGH | src/main/ssh-docker.ts | 483 | print(json.dumps({"ok": True, "version": version.stdout.strip(), "warnings": warnings})) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 485 | print(json.dumps({"totalSessions": 0, "totalMessages": 0})) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 491 | print(json.dumps({"totalSessions": s, "totalMessages": m})) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 493 | print(json.dumps({"totalSessions": 0, "totalMessages": 0})) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1592 | print(json.dumps({"data_url": None})); sys.exit(0) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1597 | print(json.dumps({"data_url": None})); sys.exit(0) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1600 | print(json.dumps({"data_url": None})); sys.exit(0) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1604 | print(json.dumps({"data_url": None})); sys.exit(0) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1605 | print(json.dumps({"data_url": "data:%s;base64,%s" % (mime, base64.b64encode(data).decode("ascii"))})) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1607 | print(json.dumps({"data_url": None})) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1705 | print(json.dumps(result)) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1707 | print("[]") | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1884 | if not os.path.exists(pid_file): return False | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1895 | return True | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1897 | return False | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 2280 | return None | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 2286 | return None | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 2294 | return None | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 2688 | print(response.status) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 2690 | print(0) | CODE |
| HIGH | src/main/ssh-remote.ts | 177 | elif raw.startswith("$HOME/"): | CODE |
| HIGH | src/main/ssh-remote.ts | 187 | print(json.dumps(rows)) | CODE |
| HIGH | src/main/ssh-remote.ts | 292 | print(json.dumps(skills)) | CODE |
| HIGH | src/main/ssh-remote.ts | 1019 | return False | CODE |
| HIGH | src/main/ssh-remote.ts | 1039 | print(json.dumps(result)) | CODE |
| HIGH | src/main/ssh-remote.ts | 1388 | print("[]"); sys.exit(0) | CODE |
| HIGH | src/main/ssh-remote.ts | 1404 | print(json.dumps(result)) | CODE |
| HIGH | src/main/ssh-remote.ts | 1436 | print("[]"); sys.exit(0) | CODE |
| HIGH | src/main/ssh-remote.ts | 1540 | print(json.dumps(items)) | CODE |
| HIGH | src/main/ssh-remote.ts | 1682 | print("[]"); sys.exit(0) | CODE |
| HIGH | src/main/ssh-remote.ts | 1924 | print(json.dumps(profiles)) | CODE |
| HIGH | src/main/ssh-remote.ts | 2361 | print(current) | CODE |
| HIGH | src/main/ssh-remote.ts | 2365 | print(port) | CODE |
| HIGH | src/main/ssh-remote.ts | 2606 | print(sock.getsockname()[1]) | CODE |
| HIGH | src/main/ssh-remote.ts | 3469 | print(json.dumps(result)) | CODE |
| HIGH⚡ | src/main/hermes-agent-compat.ts | 82 | return None | CODE |
| HIGH⚡ | src/main/hermes-agent-compat.ts | 86 | return None | CODE |
| HIGH⚡ | src/main/hermes-agent-compat.ts | 130 | return None | CODE |
| HIGH | src/main/hermes-agent-compat.ts | 141 | return None | CODE |
| HIGH | src/main/hermes-agent-compat.ts | 486 | print(json.dumps({ | CODE |
| HIGH | src/main/hermes-agent-compat.ts | 524 | elif re.search(r"\bembedded_chat\s*:\s*bool\s*=\s*True\b", source): | CODE |
| HIGH | src/main/hermes-agent-compat.ts | 527 | elif re.search(r"(\bembedded_chat\s*:\s*bool\s*=\s*)False\b", source): | CODE |
| HIGH | src/main/hermes-agent-compat.ts | 573 | print(json.dumps({ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | AGENTS.md | 71 | def test_rejects_expired_tokens(): | CODE |
| LOW | AGENTS.md | 75 | def test_handles_missing_password(): | CODE |
| LOW | CLAUDE.md | 71 | def test_rejects_expired_tokens(): | CODE |
| LOW | CLAUDE.md | 75 | def test_handles_missing_password(): | CODE |
| LOW | tests/connection-config-security.test.ts | 10 | async function loadConnectionConfigModule(): Promise< | CODE |
| LOW | tests/remote-history.test.ts | 30 | function extractLocalRecoveryFunction(): string { | CODE |
| LOW | tests/remote-history.test.ts | 32 | "async function sendMessageViaBestApiWithLocalRecovery(", | CODE |
| LOW | tests/remote-history.test.ts | 148 | "async function sendMessageViaBestApiWithLocalRecovery(", | CODE |
| LOW | tests/ipc-handlers.test.ts | 29 | function extractPreloadInvokeChannels(src: string): string[] { | CODE |
| LOW | tests/hermes-agent-compat.test.ts | 137 | def hermes_one_get_model_library(): | CODE |
| LOW | .agents/skills/lat-md/SKILL.md | 141 | def test_rejects_expired_tokens(): | CODE |
| LOW | .claude/skills/lat-md/SKILL.md | 141 | def test_rejects_expired_tokens(): | CODE |
| LOW | scripts/drive-live-regression-suite.js | 77 | function assertNoDuplicateRenderedImages(state, label) { | CODE |
| LOW | src/renderer/src/App.tsx | 189 | function handleDismissVerifyWarning(): void { | CODE |
| LOW | src/renderer/src/utils/analytics.ts | 48 | function getOrCreateAnonymousId(): string { | CODE |
| LOW | src/renderer/src/screens/Settings/ConfigHealth.tsx | 45 | function publishConfigHealthReport(report: Report): void { | CODE |
| LOW | src/renderer/src/screens/Chat/mediaUtils.ts | 201 | function markdownDestinationRanges(content: string): Array<[number, number]> { | CODE |
| LOW | src/renderer/src/screens/Chat/chatNotifications.ts | 2 | export function shouldPlayCompletionSound( | CODE |
| LOW | src/renderer/src/screens/Chat/dashboardEventAdapter.ts | 171 | function toolEventFromGatewayEvent(event: DashboardStreamEvent): ChatToolEvent { | CODE |
| LOW | src/renderer/src/screens/Chat/dashboardEventAdapter.ts | 547 | function hasReasoningSinceLastUser( | CODE |
| LOW | src/renderer/src/screens/Chat/dashboardEventAdapter.ts | 560 | function addCompletionReasoningFallback( | CODE |
| LOW | src/renderer/src/screens/Chat/dashboardEventAdapter.ts | 592 | function completeAssistantWithFinalText( | CODE |
| LOW | src/renderer/src/screens/Chat/dashboardEventAdapter.ts | 641 | export function applyDashboardStreamEvent( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 149 | function normalizeBubbleContentForMatch(s: string): string { | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 159 | function buildDbAssistantSplitSequences( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 248 | function isSyntheticLiveToolMessage(m: ChatMessage): boolean { | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 262 | function consumeCanonicalToolMatch( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 282 | function mergeDbMetadataIntoStreamed( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 338 | function compactOrphanDuplicateUserRuns( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 398 | function anchorUnmatchedUsersBeforeConsumedTurnRows( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 468 | function hasUniqueCurrentUserContent( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 506 | function findNextOutputAnchorIndex( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 522 | function hasEquivalentAssistantError( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 552 | export function preserveLocalAssistantErrors( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 639 | function firstDbIndexMatchingActiveTurnOutput( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 660 | function findPreviousLocalErrorIndex( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 910 | function dropLossyStreamedReasoning( | CODE |
| LOW | src/renderer/src/screens/Chat/dashboardGatewayClient.ts | 48 | export function normalizeDashboardNotification( | CODE |
| LOW | src/renderer/src/screens/Chat/liveToolEvents.ts | 7 | function toolProgressToNameAndPreview(progress: string): { | CODE |
| LOW | src/renderer/src/screens/Chat/liveToolEvents.ts | 28 | export function liveToolEventFromProgress(progress: string): ChatToolEvent { | CODE |
| LOW | src/renderer/src/screens/Chat/liveToolEvents.ts | 91 | function findLatestRunningSyntheticToolIndex( | CODE |
| LOW | src/renderer/src/screens/Chat/liveToolEvents.ts | 110 | function findLatestRunningSyntheticToolByNameIndex( | CODE |
| LOW | src/renderer/src/screens/Chat/liveToolEvents.ts | 167 | function upsertToolResultAfterCall( | CODE |
| LOW | …enderer/src/screens/Chat/slash/virtualSlashCommands.ts | 31 | export function createSlashCommandVirtualLayout( | CODE |
| LOW | …enderer/src/screens/Chat/slash/virtualSlashCommands.ts | 73 | export function getVisibleSlashCommandRows( | CODE |
| LOW | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 139 | export function dashboardChatEnabledFromEnv( | CODE |
| LOW | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 145 | export function dashboardChatEnabledForConnection( | CODE |
| LOW⚡ | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 160 | export function dashboardShouldPersistLocalOverlays( | CODE |
| LOW⚡ | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 166 | export function isDashboardSessionNotFoundError(err: unknown): boolean { | CODE |
| LOW⚡ | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 171 | export function isDashboardSlashWorkerExitError(err: unknown): boolean { | CODE |
| LOW⚡ | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 176 | export async function submitDashboardPromptWithRecovery( | CODE |
| LOW | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 225 | export async function ensureDashboardRuntimeSession( | CODE |
| LOW | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 299 | function builtInProviderForCustomBaseUrl( | CODE |
| LOW⚡ | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 369 | export function dashboardDataUrlForTextAttachment( | CODE |
| LOW⚡ | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 379 | function dashboardAttachmentUnsupportedError(err: unknown): boolean { | CODE |
| LOW⚡ | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 384 | export function dashboardPromptTextForAttachments( | CODE |
| LOW | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 412 | export function dashboardPromptTextWithAttachmentRefs( | CODE |
| LOW | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 419 | export async function syncDashboardAttachmentsForSubmit( | CODE |
| LOW | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 501 | export function resolveDashboardProviderForModel( | CODE |
| LOW | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 780 | export function dashboardSeedMessagesFromTranscript( | CODE |
| 176 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/install-gate-providers.test.ts | 101 | }); | COMMENT |
| LOW | tests/ssh-remote-paths.test.ts | 1 | import { describe, expect, it } from "vitest"; | COMMENT |
| LOW | tests/config-value-paths.test.ts | 1 | import { describe, it, expect, beforeEach, afterEach, vi } from "vitest"; | COMMENT |
| LOW | .agents/skills/typescript-expert/SKILL.md | 201 | COMMENT | |
| LOW | …ills/typescript-expert/references/tsconfig-strict.json | 41 | "baseUrl": ".", | COMMENT |
| LOW | src/renderer/src/constants.ts | 361 | // OpenAI-compatible endpoint, so it isn't labelled just "Local". | COMMENT |
| LOW | src/renderer/src/constants.ts | 521 | // providers route as `provider: "custom"` + explicit `baseUrl` (host-derives the | COMMENT |
| LOW | src/renderer/src/screens/Chat/attachmentUtils.ts | 61 | } | COMMENT |
| LOW | src/renderer/src/screens/Chat/attachmentUtils.ts | 181 | const probeCtx = probeCanvas.getContext("2d"); | COMMENT |
| LOW | src/renderer/src/screens/Chat/attachmentUtils.ts | 221 | // Phase 1 — lossy formats: step quality down from 0.85 to 0.5 | COMMENT |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 801 | // `onChatError`). Preserve those tail-of-stream additions so the | COMMENT |
| LOW | src/renderer/src/screens/Office/RepInteractionPanel.tsx | 181 | // the panel can stay mounted while the tab is hidden and the user changes the | COMMENT |
| LOW | src/renderer/src/screens/Office/RepInteractionPanel.tsx | 241 | // The panel stays mounted while the Office selection changes (e.g. clicking | COMMENT |
| LOW | src/renderer/src/screens/Office/office3d/layout.ts | 101 | // grid which fills the rows to the north, with surrounding decor | COMMENT |
| LOW | src/renderer/src/screens/Office/office3d/Office3D.tsx | 241 | COMMENT | |
| LOW | …/renderer/src/screens/Office/office3d/core/cityPlan.ts | 21 | // ── Office entrance (south wall doorway) ────────────────────────────────── | COMMENT |
| LOW | src/renderer/src/screens/Providers/Providers.tsx | 241 | // blurring the API key input lost their typed key — config.yaml | COMMENT |
| LOW | src/renderer/src/screens/Providers/Providers.tsx | 301 | // typing in the Model field still feels responsive. | COMMENT |
| LOW | src/main/remote-skills.ts | 1 | import { getApiUrl, getRemoteAuthHeader } from "./hermes"; | COMMENT |
| LOW | src/main/profiles.ts | 381 | } | COMMENT |
| LOW | src/main/ssh-docker.ts | 21 | // remote file read/write (config, .env, sessions, logs, profiles) sees | COMMENT |
| LOW | src/main/yaml-path.ts | 1 | // Tiny indentation-aware YAML reader that resolves a dotted key path against | COMMENT |
| LOW | src/main/config-health.ts | 521 | } | COMMENT |
| LOW | src/main/ssh-remote.ts | 2501 | } | COMMENT |
| LOW | src/main/ssh-remote.ts | 3341 | // That wrapper does `sudo -u hermes <venv>/bin/hermes "$@"`, and the sudoers | COMMENT |
| LOW | src/main/default-models.ts | 61 | // qwen/qwen3-32b, qwen/qwen3-8b, Qwen/Qwen3-Coder, qwen/qwen3-coder-next, | COMMENT |
| LOW | src/main/agent-sync.ts | 21 | } from "../shared/agent-sync"; | COMMENT |
| LOW | src/main/installer.ts | 41 | // data. install.ps1's default is %LOCALAPPDATA%\hermes, but some | COMMENT |
| LOW | src/main/hermes.ts | 1241 | const bodyObj: Record<string, unknown> = { | COMMENT |
| LOW | src/main/hermes.ts | 1261 | const bodyBuf = Buffer.from(body, "utf-8"); | COMMENT |
| LOW | src/main/hermes.ts | 2441 | COMMENT | |
| LOW | src/main/hermes.ts | 3081 | // process.env > .env > provider. | COMMENT |
| LOW | src/main/hermes.ts | 3101 | // The result is a divergence: the desktop happily sends | COMMENT |
| LOW | src/main/hermes.ts | 3161 | const key = profileKey(profile); | COMMENT |
| LOW | src/main/gpu-fallback.ts | 21 | function shouldHonorPersistedGpuFlag(): boolean { | COMMENT |
| LOW | src/main/models.ts | 321 | // required for dual-engine compat: upstream-main's | COMMENT |
| LOW | src/main/config.ts | 961 | // runtime-provider resolver reads it to pick the transport for | COMMENT |
| LOW | src/main/config.ts | 981 | content = upsertBlockChild(content, "model", "provider", provider); | COMMENT |
| LOW | src/main/config.ts | 1441 | // The Python hermes gateway (gateway/config.py) decides which messaging | COMMENT |
| LOW | src/main/secrets/securityInvariants.test.ts | 101 | // INV-3: list() and get() AGREE on membership. If a key is enumerated by | COMMENT |
| LOW | src/main/secrets/index.ts | 201 | const provider = getSecretsProvider(profile); | COMMENT |
| LOW | src/main/secrets/commandProvider.ts | 81 | // env-shaped line falls through to the bare-value branch, because a bare | COMMENT |
| LOW | src/main/secrets/getSpawnFloor.test.ts | 1 | import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | AGENTS.md | 36 | - **Section ids**: `lat.md/path/to/file#Heading#SubHeading` — full form uses project-root-relative path (e.g. `lat.md/te | CODE |
| MEDIUM | CLAUDE.md | 36 | - **Section ids**: `lat.md/path/to/file#Heading#SubHeading` — full form uses project-root-relative path (e.g. `lat.md/te | CODE |
| MEDIUM | lat.md/provider-setup.md | 154 | [[src/renderer/src/components/ProviderKeysSection.tsx#ProviderModelsManager]] renders below the key field in the config | CODE |
| MEDIUM | lat.md/model-context.md | 1 | # Model context window | COMMENT |
| MEDIUM | .agents/skills/lat-md/SKILL.md | 64 | Examples: `lat.md/tests/search#RAG Replay Tests`, `cli#init`, `parser#Wiki Links`. | CODE |
| MEDIUM | .agents/skills/hermes-agent/SKILL.md | 20 | - 5.2 [Tool Orchestration (model_tools.py)](#52-tool-orchestration-model_toolspy) | CODE |
| MEDIUM | .agents/skills/hermes-agent/SKILL.md | 164 | ├── model_tools.py # Tool orchestration, _discover_tools(), handle_function_call() | CODE |
| MEDIUM | .agents/skills/hermes-agent/SKILL.md | 1262 | ├── autonomous-ai-agents/ # Multi-agent orchestration | CODE |
| MEDIUM | .claude/skills/lat-md/SKILL.md | 64 | Examples: `lat.md/tests/search#RAG Replay Tests`, `cli#init`, `parser#Wiki Links`. | CODE |
| MEDIUM | .claude/skills/hermes-agent/SKILL.md | 20 | - 5.2 [Tool Orchestration (model_tools.py)](#52-tool-orchestration-model_toolspy) | CODE |
| MEDIUM | .claude/skills/hermes-agent/SKILL.md | 164 | ├── model_tools.py # Tool orchestration, _discover_tools(), handle_function_call() | CODE |
| MEDIUM | .claude/skills/hermes-agent/SKILL.md | 1262 | ├── autonomous-ai-agents/ # Multi-agent orchestration | CODE |
| MEDIUM | src/main/agent-config-providers.test.ts | 120 | // The agent's config scaffold writes `providers: {}` (inline empty dict). | COMMENT |
| MEDIUM | src/main/model-discovery.ts | 623 | // @lat: [[model-context#Model context window#Gauge resolution order]] | COMMENT |
| MEDIUM | src/main/config.ts | 949 | // @lat: [[model-context#Model context window#Storage and propagation]] | COMMENT |
| MEDIUM | src/main/agent-config-providers.ts | 219 | // The agent's config scaffold writes an inline empty dict (`providers: {}`), | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ents/skills/typescript-expert/scripts/ts_diagnostic.py | 18 | except Exception as e: | CODE |
| MEDIUM | src/main/ssh-docker.ts | 119 | def run(args, timeout=8): | CODE |
| LOW⚡ | src/main/ssh-docker.ts | 165 | except Exception: | CODE |
| LOW | src/main/ssh-docker.ts | 124 | except Exception: | CODE |
| LOW | src/main/ssh-docker.ts | 143 | except Exception: | CODE |
| LOW | src/main/ssh-docker.ts | 402 | except Exception: | CODE |
| LOW | src/main/ssh-docker.ts | 444 | except Exception: | CODE |
| LOW | src/main/ssh-docker.ts | 477 | except Exception as exc: | CODE |
| LOW⚡ | src/main/ssh-remote.ts | 1606 | except Exception: | CODE |
| LOW⚡ | src/main/ssh-remote.ts | 1706 | except Exception as e: | CODE |
| LOW⚡ | src/main/ssh-remote.ts | 1892 | except Exception: | CODE |
| LOW⚡ | src/main/ssh-remote.ts | 2689 | except Exception: | CODE |
| LOW | src/main/ssh-remote.ts | 385 | except Exception: | CODE |
| LOW | src/main/ssh-remote.ts | 1014 | except Exception: | CODE |
| LOW | src/main/ssh-remote.ts | 1450 | except Exception: | CODE |
| LOW | src/main/ssh-remote.ts | 1476 | except Exception: | CODE |
| LOW | src/main/ssh-remote.ts | 1493 | except Exception: | CODE |
| LOW | src/main/ssh-remote.ts | 1507 | except Exception: | CODE |
| MEDIUM | src/main/hermes-agent-compat.ts | 126 | def _hermes_one_current_model_row(): | CODE |
| LOW⚡ | src/main/hermes-agent-compat.ts | 129 | except Exception: | CODE |
| LOW | src/main/hermes-agent-compat.ts | 102 | except Exception: | CODE |
| LOW | src/main/hermes-agent-compat.ts | 470 | except Exception: | CODE |
| LOW | src/main/hermes-agent-compat.ts | 571 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/main/ssh-remote.test.ts | 73 | expect(isUsableApiServerKey("your-api-key")).toBe(false); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/main/claw3d.ts | 706 | // Step 1: Clone (or pull if already cloned) | COMMENT |
| LOW | src/main/claw3d.ts | 775 | // Step 2: npm install | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/main/claw3d.ts | 706 | // Step 1: Clone (or pull if already cloned) | COMMENT |
| LOW | src/main/claw3d.ts | 775 | // Step 2: npm install | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/main/gpu-fallback.ts | 37 | // because the GPU process still attempts to initialize. The robust fix is to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ents/skills/typescript-expert/scripts/ts_diagnostic.py | 8 | CODE | |
| LOW | …ents/skills/typescript-expert/scripts/ts_diagnostic.py | 9 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/probe-selectors.js | 21 | const placeholder = el.getAttribute("placeholder"); | CODE |
| LOW | scripts/repro-edit-model-emptykey.js | 61 | placeholder: el.getAttribute("placeholder"), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ents/skills/typescript-expert/scripts/ts_diagnostic.py | 74 | CODE |