Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
This report presents the forensic synthetic code analysis of thedotmack/claude-mem, a JavaScript project with 87,134 GitHub stars. SynthScan v2.0 examined 164,373 lines of code across 755 source files, recording 357 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 2.8 places this repository in the Likely human-written 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 357 distinct pattern matches across 11 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 |
|---|---|---|---|---|
| LOW | openclaw/src/index.ts | 693 | function shouldSkipDuplicatePromptInit(contentSessionId: string, project: string, prompt: string): boolean { | CODE |
| LOW⚡ | plans/02-spawn-contract-templating.md | 300 | export function getWorkerServiceAbsolutePath(): string; | CODE |
| LOW⚡ | plans/02-spawn-contract-templating.md | 303 | export function getVersionCheckAbsolutePath(): string; // for completeness; currently unused by installers | CODE |
| LOW⚡ | plans/02-spawn-contract-templating.md | 304 | export function getPluginRootAbsolutePath(): string; // returns the plugin root used by the helpers above | CODE |
| LOW | plans/04-installer-transparency.md | 370 | async function runNpmInstallInMarketplace(summary: InstallSummary): Promise<void> { | CODE |
| LOW | tests/install-non-tty.test.ts | 230 | const markerHelperStart = installSource.indexOf('function writeMarketplaceInstallMarkers('); | CODE |
| LOW | tests/install-non-tty.test.ts | 270 | expect(codexInstallerSource).toContain('function removeCodexAgentsMdContext(): boolean'); | CODE |
| LOW | tests/install-non-tty.test.ts | 271 | expect(codexInstallerSource).toContain('function disableCodexTranscriptAgentsContext(): boolean'); | CODE |
| LOW | tests/claude-provider-resume.test.ts | 4 | function shouldPassResumeParameter(session: { | CODE |
| LOW | tests/gemini_provider.test.ts | 53 | function mockSuccessfulGeminiFetch() { | CODE |
| LOW | tests/gemini_provider.test.ts | 63 | function expectAlternatingGeminiRoles(contents: Array<{ role: string }>) { | CODE |
| LOW | tests/context/observation-compiler.test.ts | 30 | function createTestSummaryTimelineItem(overrides: Partial<SummaryTimelineItem> = {}): SummaryTimelineItem { | CODE |
| LOW | tests/sqlite/session-store-synced-at.test.ts | 207 | function expectStampedThroughCursors(db: Database, before: number): void { | CODE |
| LOW | tests/sqlite/session-store-migrations.test.ts | 7 | function seedLegacyContentHashScenario(db: Database): void { | CODE |
| LOW | tests/sqlite/session-store-migrations.test.ts | 258 | function seedLegacyGlobalContentIdentityScenario(db: Database): void { | CODE |
| LOW | tests/storage/postgres/postgres-storage.test.ts | 882 | async function createFixtureScopeWithEventJob(storage: PostgresStorageRepositories) { | CODE |
| LOW | …/worker/http/routes/search-routes-welcome-hint.test.ts | 44 | function captureContextInjectHandler(routes: SearchRoutes): (req: Request, res: Response) => void { | CODE |
| LOW | …es/sqlite/observations-by-file-path-candidates.test.ts | 24 | function seedObservationWithReadPath(readPath: string, sessionSuffix: string): number { | CODE |
| LOW | tests/services/sync/chroma-mcp-manager-ssl.test.ts | 110 | function expectLauncherPrefixBeforeMode(args: string[], mode: 'http' | 'persistent') { | CODE |
| LOW | plugin/scripts/bun-runner.js | 63 | function isPluginDisabledInClaudeSettings() { | CODE |
| LOW | scripts/regenerate-claude-md.ts | 91 | function walkDirectoriesWithIgnore(dir: string, folders: Set<string>, depth: number = 0): void { | CODE |
| LOW | scripts/regenerate-claude-md.ts | 193 | function formatObservationsForClaudeMd(observations: ObservationRow[], folderPath: string): string { | CODE |
| LOW | scripts/regenerate-claude-md.ts | 240 | function writeClaudeMdToFolderForRegenerate(folderPath: string, newContent: string): void { | CODE |
| LOW | scripts/regenerate-claude-md.ts | 261 | function cleanupAutoGeneratedFiles(workingDir: string, dryRun: boolean): void { | CODE |
| LOW | scripts/build-hooks.js | 142 | async function verifyShellTemplateCanonical() { | CODE |
| LOW | src/ui/viewer/components/WelcomeCard.tsx | 11 | export function getStoredWelcomeDismissed(): boolean { | CODE |
| LOW | src/ui/viewer/components/WelcomeCard.tsx | 20 | export function setStoredWelcomeDismissed(dismissed: boolean): void { | CODE |
| LOW | src/server/middleware/postgres-auth.ts | 36 | export function requirePostgresServerAuth( | CODE |
| LOW | src/server/middleware/postgres-auth.ts | 51 | async function authenticatePostgresRequest( | CODE |
| LOW | src/server/middleware/request-auth-helpers.ts | 44 | export function hasForwardedClientHeaders(req: Request): boolean { | CODE |
| LOW | src/server/auth/sqlite-api-key-service.ts | 101 | export function verifyRawKeyAgainstStoredHash(rawKey: string, storedHash: string): boolean { | CODE |
| LOW | src/server/auth/sqlite-api-key-service.ts | 130 | export function upgradeLegacyKeyHashIfNeeded( | CODE |
| LOW | src/server/auth/sqlite-api-key-service.ts | 146 | export function migrateServerApiKeyScopes( | CODE |
| LOW | src/server/runtime/ServerService.ts | 447 | export function assertServerRuntimeForCli( | CODE |
| LOW | src/server/runtime/ServerService.ts | 630 | export async function migrateServerPostgresApiKeyScopes(argv: string[]): Promise<void> { | CODE |
| LOW | src/server/runtime/ServerService.ts | 773 | export async function runServerGenerationWorker(): Promise<void> { | CODE |
| LOW | src/server/runtime/create-server-service.ts | 219 | function buildGenerationWorkerManager( | CODE |
| LOW | src/server/runtime/create-server-service.ts | 242 | function buildServerGenerationProviderFromEnv(): ServerGenerationProvider | null { | CODE |
| LOW | src/server/runtime/create-server-service.ts | 256 | function instantiateServerGenerationProvider(provider: string): ServerGenerationProvider | null { | CODE |
| LOW | src/server/queue/redis-config.ts | 22 | export function getObservationQueueEngineName(): ObservationQueueEngineName { | CODE |
| LOW | src/server/jobs/types.ts | 119 | export function assertServerGenerationJobPayload( | CODE |
| LOW | src/server/routes/v1/ServerV1PostgresRoutes.ts | 1748 | function parseGenericJobListingQuery(req: Request): { | CODE |
| LOW | src/server/routes/v1/ServerV1PostgresRoutes.ts | 1992 | function serializeObservationWithSource(row: ObservationWithSourceRow): Record<string, unknown> { | CODE |
| LOW | src/server/routes/v1/ServerV1PostgresRoutes.ts | 2035 | function serializeJobStatusResponse( | CODE |
| LOW | src/server/routes/v1/ServerV1PostgresRoutes.ts | 2053 | function serializeGenerationJobStatus( | CODE |
| LOW | src/server/generation/processGeneratedResponse.ts | 183 | export async function processSessionSummaryResponse( | CODE |
| LOW | src/server/generation/processGeneratedResponse.ts | 232 | async function persistGeneratedObservations( | CODE |
| LOW | …rver/generation/providers/GeminiObservationProvider.ts | 41 | export function categorizeGeminiBadRequest(bodyText: string): GeminiBadRequestCategory { | CODE |
| LOW | …rver/generation/providers/GeminiObservationProvider.ts | 106 | export function classifyGeminiServerError(input: ClassifyGeminiServerErrorInput): ServerClassifiedProviderError { | CODE |
| LOW | …rver/generation/providers/ClaudeObservationProvider.ts | 172 | export function classifyClaudeServerError(input: ClassifyInput): ServerClassifiedProviderError { | CODE |
| LOW | …er/generation/providers/shared/error-classification.ts | 73 | export function classifyHttpProviderError(input: ClassifyHttpInput): ServerClassifiedProviderError { | CODE |
| LOW | …c/server/generation/providers/shared/prompt-builder.ts | 43 | export function buildServerGenerationPrompt( | CODE |
| LOW | …c/server/generation/providers/shared/prompt-builder.ts | 146 | function buildObservationOutputSchema(mode: ModeConfig | { observation_types: ReadonlyArray<Pick<ObservationType, 'id'>> | CODE |
| LOW | src/utils/observer-audit.ts | 94 | export function recordObserverToolAttempt(attempt: ObserverToolAttempt): void { | CODE |
| LOW | src/utils/context-injection.ts | 9 | export function injectContextIntoMarkdownFile( | CODE |
| LOW | src/utils/claude-md-utils.ts | 23 | function hasConsecutiveDuplicateSegments(resolvedPath: string): boolean { | CODE |
| LOW | src/utils/claude-md-utils.ts | 113 | export function formatTimelineForClaudeMd(timelineText: string): string { | CODE |
| LOW | src/utils/claude-md-utils.ts | 204 | function isExcludedUnsafeDirectory(folderPath: string): boolean { | CODE |
| LOW | src/utils/claude-md-utils.ts | 227 | export async function updateFolderClaudeMdFiles( | CODE |
| LOW | src/utils/tag-stripping.ts | 60 | export function isInternalProtocolPayload(text: string): boolean { | CODE |
| 179 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | README.md | 263 | // Step 1: Search for index | COMMENT |
| LOW⚡ | README.md | 266 | // Step 2: Review index, identify relevant IDs (e.g., #123, #456) | COMMENT |
| LOW⚡ | README.md | 268 | // Step 3: Fetch full details | COMMENT |
| LOW | openclaw/SKILL.md | 43 | ### Step 1: Clone the Claude-Mem Repo | COMMENT |
| LOW | openclaw/SKILL.md | 61 | ### Step 2: Get the Worker Running | COMMENT |
| LOW | openclaw/SKILL.md | 118 | ### Step 3: Add the Plugin to Your Gateway | COMMENT |
| LOW | openclaw/SKILL.md | 149 | ## Step 4: Restart the Gateway and Verify | COMMENT |
| LOW | openclaw/SKILL.md | 169 | ## Step 5: Verify Observations Are Being Recorded | COMMENT |
| LOW | openclaw/SKILL.md | 184 | ## Step 6: Set Up the Observation Feed (Streaming to a Channel) | COMMENT |
| LOW | cursor-hooks/STANDALONE-SETUP.md | 33 | ## Step 1: Clone Claude-Mem | COMMENT |
| LOW | cursor-hooks/STANDALONE-SETUP.md | 47 | ## Step 2: Configure Provider (Choose One) | COMMENT |
| LOW | cursor-hooks/STANDALONE-SETUP.md | 106 | ## Step 3: Install Cursor Hooks | COMMENT |
| LOW | cursor-hooks/STANDALONE-SETUP.md | 121 | ## Step 4: Start the Worker | COMMENT |
| LOW | cursor-hooks/STANDALONE-SETUP.md | 133 | ## Step 5: Restart Cursor & Verify | COMMENT |
| LOW | plugin/skills/timeline-report/SKILL.md | 35 | ### Step 1: Determine the Project Name | COMMENT |
| LOW | plugin/skills/timeline-report/SKILL.md | 56 | ### Step 2: Fetch the Full Timeline | COMMENT |
| LOW | plugin/skills/timeline-report/SKILL.md | 73 | ### Step 3: Estimate Token Count | COMMENT |
| LOW | plugin/skills/timeline-report/SKILL.md | 85 | ### Step 4: Analyze with a Subagent | COMMENT |
| LOW | plugin/skills/timeline-report/SKILL.md | 178 | ### Step 5: Save the Report | COMMENT |
| LOW | plugin/skills/timeline-report/SKILL.md | 188 | ### Step 6: Report Completion | COMMENT |
| LOW | plugin/skills/weekly-digests/SKILL.md | 39 | ### Step 1: Determine the Project Name | COMMENT |
| LOW | plugin/skills/weekly-digests/SKILL.md | 54 | ### Step 2: Fetch the Full Timeline and Save It | COMMENT |
| LOW | plugin/skills/weekly-digests/SKILL.md | 65 | ### Step 3: Split the Timeline Into Per-ISO-Week Files | COMMENT |
| LOW | plugin/skills/weekly-digests/SKILL.md | 87 | ### Step 4: Build the Weekly Index README | COMMENT |
| LOW | plugin/skills/weekly-digests/SKILL.md | 91 | ### Step 5: Run the Consecutive Subagent Pipeline | COMMENT |
| LOW | plugin/skills/weekly-digests/SKILL.md | 188 | ### Step 6: Rename Files for Sortable Order | COMMENT |
| LOW | plugin/skills/weekly-digests/SKILL.md | 209 | ### Step 7: Report Completion | COMMENT |
| LOW | plugin/skills/knowledge-agent/SKILL.md | 18 | ### Step 1: Build a corpus | COMMENT |
| LOW⚡ | plugin/skills/knowledge-agent/SKILL.md | 33 | ### Step 2: Prime the corpus | COMMENT |
| LOW⚡ | plugin/skills/knowledge-agent/SKILL.md | 41 | ### Step 3: Query | COMMENT |
| LOW⚡ | plugin/skills/knowledge-agent/SKILL.md | 49 | ### Step 4: List corpora | COMMENT |
| LOW | plugin/skills/smart-explore/SKILL.md | 26 | ### Step 1: Search -- Discover Files and Symbols | COMMENT |
| LOW | plugin/skills/smart-explore/SKILL.md | 54 | ### Step 2: Outline -- Get File Structure | COMMENT |
| LOW | plugin/skills/smart-explore/SKILL.md | 68 | ### Step 3: Unfold -- See Implementation | COMMENT |
| LOW | plugin/skills/mem-search/SKILL.md | 22 | ### Step 1: Search - Get Index with IDs | COMMENT |
| LOW | plugin/skills/mem-search/SKILL.md | 51 | ### Step 2: Timeline - Get Context Around Interesting Results | COMMENT |
| LOW | plugin/skills/mem-search/SKILL.md | 75 | ### Step 3: Fetch - Get Full Details ONLY for Filtered IDs | COMMENT |
| LOW⚡ | docs/i18n/README.ar.md | 266 | // Step 1: Search for index | COMMENT |
| LOW⚡ | docs/i18n/README.ar.md | 269 | // Step 2: Review index, identify relevant IDs (e.g., #123, #456) | COMMENT |
| LOW⚡ | docs/i18n/README.ar.md | 271 | // Step 3: Fetch full details | COMMENT |
| LOW⚡ | docs/i18n/README.zh-tw.md | 264 | // Step 1: Search for index | COMMENT |
| LOW⚡ | docs/i18n/README.zh-tw.md | 267 | // Step 2: Review index, identify relevant IDs (e.g., #123, #456) | COMMENT |
| LOW⚡ | docs/i18n/README.zh-tw.md | 269 | // Step 3: Fetch full details | COMMENT |
| LOW⚡ | docs/i18n/README.el.md | 264 | // Step 1: Search for index | COMMENT |
| LOW⚡ | docs/i18n/README.el.md | 267 | // Step 2: Review index, identify relevant IDs (e.g., #123, #456) | COMMENT |
| LOW⚡ | docs/i18n/README.el.md | 269 | // Step 3: Fetch full details | COMMENT |
| LOW⚡ | docs/i18n/README.tl.md | 264 | // Step 1: Search for index | COMMENT |
| LOW⚡ | docs/i18n/README.tl.md | 267 | // Step 2: Review index, identify relevant IDs (e.g., #123, #456) | COMMENT |
| LOW⚡ | docs/i18n/README.tl.md | 269 | // Step 3: Fetch full details | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker-compose.yml | 1 | # Phase 10 — server-beta deployable runtime. | COMMENT |
| LOW | docker-compose.yml | 21 | # CLAUDE_MEM_RUNTIME=server-beta | COMMENT |
| LOW | docker-compose.yml | 41 | # server/worker containers (see the commented `secrets:` blocks below) instead | COMMENT |
| LOW | tests/antigravity-cli-compat.test.ts | 141 | // NOTE: an automated regression test for the B0 empty-mcp-config-file edge | COMMENT |
| LOW | tests/env-isolation.test.ts | 141 | // .env, which does not exist in this test). | COMMENT |
| LOW | tests/server/server-runtime-smoke.test.ts | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | tests/server/runtime/server-mcp-http-routes.test.ts | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | tests/shared/worker-spawn-gate.test.ts | 1 | import { describe, it, expect, beforeEach, afterEach } from 'bun:test'; | COMMENT |
| LOW | tests/sdk/pg-isolation.ts | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | tests/servers/mcp-server-name-safety.test.ts | 1 | // #2473 — Plugin MCP server tools were never surfaced to the assistant because | COMMENT |
| LOW | plugin/scripts/version-check.js | 41 | } | COMMENT |
| LOW | scripts/e2e-server-docker.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/check-postinstall-allowlist.js | 1 | #!/usr/bin/env node | COMMENT |
| LOW | src/server/compat/SessionsObservationsAdapter.ts | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | src/server/compat/SessionsSummarizeAdapter.ts | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | src/server/auth/sqlite-api-key-service.ts | 41 | // default to the full read+write memory scope so a default key actually works | COMMENT |
| LOW | src/server/runtime/ServerViewerRoutes.ts | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | src/server/mcp/recall-mcp-server.ts | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | src/server/jobs/ServerJobQueue.ts | 21 | // ServerJobQueue is a thin wrapper around the BullMQ Queue + Worker pair for | COMMENT |
| LOW | src/server/routes/v1/ServerV1PostgresRoutes.ts | 1481 | }); | COMMENT |
| LOW | src/server/generation/processGeneratedResponse.ts | 21 | } from '../../storage/postgres/pool.js'; | COMMENT |
| LOW | src/server/generation/ProviderObservationGenerator.ts | 41 | // 1. Reload the Postgres outbox row and the source agent_events row. | COMMENT |
| LOW | …c/server/generation/providers/shared/prompt-builder.ts | 21 | COMMENT | |
| LOW | src/utils/bmp-safe.ts | 1 | // BMP-safe context sanitization (issue #2787). | COMMENT |
| LOW | src/shared/EnvManager.ts | 21 | const BLOCKED_ENV_VARS = [ | COMMENT |
| LOW | src/shared/EnvManager.ts | 221 | const isolatedEnv = buildIsolatedEnv(includeCredentials); | COMMENT |
| LOW | src/cli/hook-command.ts | 101 | } | COMMENT |
| LOW | src/sdk/prompts.ts | 81 | COMMENT | |
| LOW | src/npx-cli/install/setup-runtime.ts | 261 | } catch { | COMMENT |
| LOW | src/npx-cli/commands/uninstall.ts | 141 | // Symmetric counterpart to disableClaudeAutoMemory() in install.ts. The | COMMENT |
| LOW | src/npx-cli/commands/server-jobs.ts | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | src/services/worker-service.ts | 1081 | } | COMMENT |
| LOW | src/services/worker-service.ts | 1101 | let spawnLockHeld = false; | COMMENT |
| LOW | src/services/hooks/server-bootstrap.ts | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | src/services/hooks/server-client.ts | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | src/services/hooks/runtime-selector.ts | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | src/services/telemetry/buffer.ts | 101 | // whitelisted, install-correlatable). See computeSessionCompressedRollup. | COMMENT |
| LOW | src/services/telemetry/scrub.ts | 81 | 'days_since_last_obs', | COMMENT |
| LOW | src/services/telemetry/backfill.ts | 341 | const rows = db | COMMENT |
| LOW | src/services/telemetry/backfill.ts | 361 | // tokens_saved_vs_naive := discovery_tokens (rolled up above) - read_tokens, | COMMENT |
| LOW | src/services/telemetry/telemetry.ts | 81 | // claude-mem's worker runs on the user's own machine, so the ingestion | COMMENT |
| LOW | src/services/telemetry/telemetry.ts | 601 | // client's queue (constructing the client lazily via getClient() if no | COMMENT |
| LOW | src/services/sync/CloudSync.ts | 1 | // Worker-native cloud sync (cmem.ai Pro) — the database is the queue. | COMMENT |
| LOW | src/services/sync/CloudSync.ts | 381 | COMMENT | |
| LOW | src/services/sync/ChromaMcpManager.ts | 41 | // | COMMENT |
| LOW | src/services/sync/ChromaMcpManager.ts | 141 | // Singleton invariant (#2313): kill any pre-existing chroma-mcp subprocess | COMMENT |
| LOW | src/services/sync/ChromaMcpManager.ts | 1341 | }; | COMMENT |
| LOW | src/services/worker/http/routes/SessionRoutes.ts | 201 | // No retry: the generator failed, the in-RAM batch is dropped, and the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | cursor-hooks/QUICKSTART.md | 40 | claude-mem settings set CLAUDE_MEM_GEMINI_API_KEY your-api-key | CODE |
| HIGH | cursor-hooks/QUICKSTART.md | 44 | claude-mem settings set CLAUDE_MEM_OPENROUTER_API_KEY your-api-key | CODE |
| HIGH | tests/server/connect-keys.test.ts | 126 | expect(body.connectCommand).toContain('<YOUR_API_KEY>'); | CODE |
| HIGH | tests/server/connect-keys.test.ts | 126 | expect(body.connectCommand).toContain('<YOUR_API_KEY>'); | CODE |
| HIGH | docs/api.md | 70 | - `GET /v1/connect` (read scope) returns the same command with a `<YOUR_API_KEY>` | CODE |
| HIGH | docs/api.md | 70 | - `GET /v1/connect` (read scope) returns the same command with a `<YOUR_API_KEY>` | CODE |
| HIGH | src/server/routes/v1/ServerV1PostgresRoutes.ts | 238 | connectCommand: mcpConnectCommand(mcpUrl, '<YOUR_API_KEY>'), | CODE |
| HIGH | src/server/routes/v1/ServerV1PostgresRoutes.ts | 238 | connectCommand: mcpConnectCommand(mcpUrl, '<YOUR_API_KEY>'), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | .claude/reports/test-audit-2026-01-05.md | 290 | *Report generated by Claude Code (Opus 4.5) on 2026-01-05* | COMMENT |
| HIGH | docs/context/cursor-hooks-reference.md | 217 | | [Semgrep](https://semgrep.dev/blog/2025/cursor-hooks-mcp-server) | Automatically scan AI-generated code for vulnerabil | CODE |
| HIGH | src/cli/claude-md-commands.ts | 193 | lines.push('<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->'); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/infrastructure/process-manager.test.ts | 7 | // ── Data-dir isolation (Phase 6, worker-restart plan) ────────────────────── | COMMENT |
| MEDIUM | tests/infrastructure/graceful-shutdown.test.ts | 14 | // ── Data-dir isolation (Phase 6, worker-restart plan) ────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/storage/sqlite/server-storage.test.ts | 89 | name: 'placeholder', | CODE |
| LOW | plugin/ui/viewer-bundle.js | 12 | In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lS(e,t){return $b(e)||eS(e | CODE |
| LOW | src/services/integrations/OpenCodeInstaller.ts | 308 | let contextSource = 'placeholder'; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | plugin/ui/viewer-bundle.js | 9 | `).replace(Yy,"")}function E0(e,t){return t=xm(t),xm(e)===t}function te(e,t,l,n,a,u){switch(l){case"children":typeof n== | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/context/cursor-hooks-reference.md | 209 | | [Oasis Security](https://www.oasis.security/blog/cursor-oasis-governing-agentic-access) | Enforce least-privilege poli | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/services/integrations/CursorHooksInstaller.ts | 469 | claude-mem cursor status # Check if hooks are installed | CODE |
| LOW | …/services/integrations/AntigravityCliHooksInstaller.ts | 494 | claude-mem antigravity-cli status # Check if installed | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | openclaw/install.sh | 249 | except Exception: | CODE |