Desktop Companion for Hermes Agent
This report presents the forensic synthetic code analysis of fathah/hermes-desktop, a TypeScript project with 13,305 GitHub stars. SynthScan v2.0 examined 182,792 lines of code across 784 source files, recording 488 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 5.6 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 488 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 | 13 | // ─── PROVIDERS ────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/constants.test.ts | 88 | // ─── GATEWAY_PLATFORMS ────────────────────────────────── | COMMENT |
| MEDIUM | tests/constants.test.ts | 145 | // ─── GATEWAY_SECTIONS ─────────────────────────────────── | COMMENT |
| MEDIUM | tests/constants.test.ts | 185 | // ─── SETTINGS_SECTIONS ────────────────────────────────── | COMMENT |
| MEDIUM | tests/constants.test.ts | 221 | // ─── Static constants ─────────────────────────────────── | 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 | 65 | // ─── New feature handlers registered ──────────────────── | COMMENT |
| MEDIUM | tests/ipc-handlers.test.ts | 94 | // ─── 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 | 120 | // ─── Legacy APIs still present ────────────────────────── | COMMENT |
| MEDIUM | tests/preload-api-surface.test.ts | 223 | // ─── 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 | 551 | // ── Theme ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/constants.ts | 600 | // ── Font ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/constants.ts | 630 | // ── Settings API Key Sections ─────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/constants.ts | 900 | // ── Gateway Sections ──────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/constants.ts | 1236 | // ── 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 | 99 | // ── initial render ────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 113 | // ── open / close ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 161 | // ── model list rendering ──────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 209 | // ── model selection ───────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 231 | // ── search / filtering ────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 289 | // ── provider rail ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 305 | // ── configure providers/models footer ─────────────────────────── | COMMENT |
| MEDIUM | src/renderer/src/screens/Chat/ModelPicker.test.tsx | 323 | // ── 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 | 30 | // ── 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 | 200 | // ── Developer building-mover ────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | …/renderer/src/screens/Office/office3d/core/geometry.ts | 122 | // ── structural ──────────────────────────────────────────────────────────── | COMMENT |
| 98 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-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 | 1516 | print(json.dumps({"data_url": None})); sys.exit(0) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1521 | print(json.dumps({"data_url": None})); sys.exit(0) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1524 | print(json.dumps({"data_url": None})); sys.exit(0) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1528 | print(json.dumps({"data_url": None})); sys.exit(0) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1529 | print(json.dumps({"data_url": "data:%s;base64,%s" % (mime, base64.b64encode(data).decode("ascii"))})) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1531 | print(json.dumps({"data_url": None})) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1629 | print(json.dumps(result)) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1631 | print("[]") | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1808 | if not os.path.exists(pid_file): return False | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1819 | return True | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 1821 | return False | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 2183 | return None | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 2189 | return None | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 2197 | return None | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 2591 | print(response.status) | CODE |
| HIGH⚡ | src/main/ssh-remote.ts | 2593 | 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 | 1312 | print("[]"); sys.exit(0) | CODE |
| HIGH | src/main/ssh-remote.ts | 1328 | print(json.dumps(result)) | CODE |
| HIGH | src/main/ssh-remote.ts | 1360 | print("[]"); sys.exit(0) | CODE |
| HIGH | src/main/ssh-remote.ts | 1464 | print(json.dumps(items)) | CODE |
| HIGH | src/main/ssh-remote.ts | 1606 | print("[]"); sys.exit(0) | CODE |
| HIGH | src/main/ssh-remote.ts | 1848 | print(json.dumps(profiles)) | CODE |
| HIGH | src/main/ssh-remote.ts | 2264 | print(current) | CODE |
| HIGH | src/main/ssh-remote.ts | 2268 | print(port) | CODE |
| HIGH | src/main/ssh-remote.ts | 2509 | print(sock.getsockname()[1]) | CODE |
| HIGH | src/main/ssh-remote.ts | 3368 | 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 | 32 | 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 | 188 | 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/dashboardEventAdapter.ts | 170 | function toolEventFromGatewayEvent(event: DashboardStreamEvent): ChatToolEvent { | CODE |
| LOW | src/renderer/src/screens/Chat/dashboardEventAdapter.ts | 533 | function hasReasoningSinceLastUser( | CODE |
| LOW | src/renderer/src/screens/Chat/dashboardEventAdapter.ts | 546 | function addCompletionReasoningFallback( | CODE |
| LOW | src/renderer/src/screens/Chat/dashboardEventAdapter.ts | 578 | function completeAssistantWithFinalText( | CODE |
| LOW | src/renderer/src/screens/Chat/dashboardEventAdapter.ts | 627 | export function applyDashboardStreamEvent( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 148 | function normalizeBubbleContentForMatch(s: string): string { | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 158 | function buildDbAssistantSplitSequences( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 247 | function isSyntheticLiveToolMessage(m: ChatMessage): boolean { | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 261 | function consumeCanonicalToolMatch( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 281 | function mergeDbMetadataIntoStreamed( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 337 | function compactOrphanDuplicateUserRuns( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 397 | function anchorUnmatchedUsersBeforeConsumedTurnRows( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 467 | function hasUniqueCurrentUserContent( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 505 | function findNextOutputAnchorIndex( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 521 | function hasEquivalentAssistantError( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 551 | export function preserveLocalAssistantErrors( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 638 | function firstDbIndexMatchingActiveTurnOutput( | CODE |
| LOW | src/renderer/src/screens/Chat/sessionHistory.ts | 659 | function findPreviousLocalErrorIndex( | 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 | 772 | export function dashboardSeedMessagesFromTranscript( | CODE |
| LOW | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 802 | export function dashboardContinuationItemsFromTranscript( | CODE |
| LOW | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 885 | export function useDashboardChatTransport({ | CODE |
| 145 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 | 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 | // reconciliation never silently drops UI-only state. | COMMENT |
| LOW | …er/src/screens/Chat/hooks/useDashboardChatTransport.ts | 921 | const pendingClarifyRequestIdRef = useRef<string | null>(null); | 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 | 41 | import officeFontUrl from "../../../assets/fonts/Manrope-Medium.ttf"; | COMMENT |
| LOW | …/renderer/src/screens/Office/office3d/core/cityPlan.ts | 21 | // ── Office entrance (south wall doorway) ────────────────────────────────── | COMMENT |
| LOW | src/main/remote-skills.ts | 1 | import { getApiUrl, getRemoteAuthHeader } from "./hermes"; | COMMENT |
| LOW | src/main/profiles.ts | 381 | } | 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 | 1021 | // config.yaml. Two problems, both observed in the wild (#240): dotted-path | COMMENT |
| LOW | src/main/ssh-remote.ts | 2401 | // transient — keep polling until the deadline | COMMENT |
| LOW | src/main/ssh-remote.ts | 2761 | // session op. Only cache a *permanent* failure — the remote has no web dist and | COMMENT |
| LOW | src/main/ssh-remote.ts | 3241 | 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 | }; | COMMENT |
| LOW | src/main/hermes.ts | 1261 | // doesn't fall back to its `_derive_chat_session_id` fingerprint — | COMMENT |
| LOW | src/main/hermes.ts | 2441 | // - Old engine (≤ v0.14.0) routes via OPENAI_API_KEY + OPENAI_BASE_URL. | COMMENT |
| LOW | src/main/hermes.ts | 3081 | } | COMMENT |
| LOW | src/main/hermes.ts | 3161 | // token, which the gateway refuses to start with) don't get mixed into the | COMMENT |
| LOW | src/main/gpu-fallback.ts | 21 | function shouldHonorPersistedGpuFlag(): boolean { | COMMENT |
| LOW | src/main/models.ts | 321 | baseUrl: cp.baseUrl, | COMMENT |
| LOW | src/main/config.ts | 781 | // Vault-aware: a `command` provider with any of the fallback keys | COMMENT |
| LOW | src/main/config.ts | 941 | // `model.context_length`. `undefined` leaves the key untouched (back-compat | COMMENT |
| LOW | src/main/config.ts | 961 | // returned 404s. `safeWriteFile` (used below) will create parent dirs | COMMENT |
| LOW | src/main/config.ts | 1221 | // copy the value into `.env`. Keeps the original copy alone (additive | COMMENT |
| LOW | src/main/config.ts | 1421 | } | 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 | 71 | [[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/model-discovery.ts | 623 | // @lat: [[model-context#Model context window#Gauge resolution order]] | COMMENT |
| MEDIUM | src/main/config.ts | 934 | // @lat: [[model-context#Model context window#Storage and propagation]] | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ents/skills/typescript-expert/scripts/ts_diagnostic.py | 18 | except Exception as e: | CODE |
| LOW⚡ | src/main/ssh-remote.ts | 1530 | except Exception: | CODE |
| LOW⚡ | src/main/ssh-remote.ts | 1630 | except Exception as e: | CODE |
| LOW⚡ | src/main/ssh-remote.ts | 1816 | except Exception: | CODE |
| LOW⚡ | src/main/ssh-remote.ts | 2592 | except Exception: | CODE |
| LOW | src/main/ssh-remote.ts | 385 | except Exception: | CODE |
| LOW | src/main/ssh-remote.ts | 1374 | except Exception: | CODE |
| LOW | src/main/ssh-remote.ts | 1400 | except Exception: | CODE |
| LOW | src/main/ssh-remote.ts | 1417 | except Exception: | CODE |
| LOW | src/main/ssh-remote.ts | 1431 | 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 |