AI Slop Code Risk Monitor

LibreChat-AI/LibreChat

SlopCodeMonitor badge for LibreChat-AI/LibreChat Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
1.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for LibreChat-AI/LibreChat. SynthScan examined 2,187,200 lines of code across 7009 source files, recording 3298 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 1.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.

1.7
Adjusted Signal
1.7
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
2.2M
Lines of Code
7.0K
Files
3.3K
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 6.7/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 2922 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.3/100 · LOW

Are imports declared and package/API names verified? 308 finding(s).

Agent Over-Engineering Ratio 6.3/100 · LOW

Are wrappers, guards, and repeated structures necessary? 2693 finding(s).

PR Review Velocity Impact 8.3/100 · LOW

Which changes need focused human review? 3298 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 33HIGH 0MEDIUM 90LOW 3175

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 3298 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.

Hyper-Verbose Identifiers2625 hits · 2622 pts
SeverityFileLineSnippetContext
LOWconfig/migrate-orphaned-agent-files.js28async function migrateOrphanedAgentFiles({ dryRun = true, batchSize = 100 } = {}) {CODE
LOWconfig/create-error-convo.js478function assertCatalogueIsComplete() {CODE
LOWconfig/migrate-code-file-duplicates.js72async function migrateCodeFileDuplicates({ dryRun = true, batchSize = 100 } = {}) {CODE
LOWconfig/migrate-agent-permissions.js23async function migrateAgentPermissionsEnhanced({ dryRun = true, batchSize = 100 } = {}) {CODE
LOWconfig/migrate-prompt-permissions.js16async function getGlobalProjectPromptGroupIds(db) {CODE
LOWconfig/migrate-prompt-permissions.js23async function migrateToPromptGroupPermissions({ dryRun = true, batchSize = 100 } = {}) {CODE
LOWconfig/migrate-shared-link-permissions.js21async function migrateSharedLinkPermissions({CODE
LOWutils/update_env.py42def update_env_file_with_local_env(input_file_path, output_file_path):CODE
LOWpackages/data-schemas/src/tenant/conformance.ts77export function describeTenantIsolationConformance(harness: TenantEngineHarness): void {CODE
LOWpackages/data-schemas/src/tenant/policy.ts58export function warnOnInvalidStrictSetting(): void {CODE
LOWpackages/data-schemas/src/tenant/harness.ts26export function createMongooseTenantHarness(engine: MongooseTenantEngine): TenantEngineHarness {CODE
LOWpackages/data-schemas/src/types/compaction.ts54function isValidCompactionSemanticIndexEntry(CODE
LOWpackages/data-schemas/src/types/compaction.ts87export function isCompactionSemanticIndexProjection(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts182function getRootLineagePredecessorId(parentMessageId: string): string {CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts188function isRootLineagePredecessorId(lineagePredecessorId: string): boolean {CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts521function normalizeReasoningOverride(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts728export function createAgentQueuedTurnMethods(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts763 async function quarantineDuplicateAdmissionLanes(): Promise<number> {CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts850 async function ensureAgentQueuedTurnIndexes(): Promise<void> {CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts1073 async function finalizeVisibleReservation(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts1209 async function listActiveAgentQueuedTurns(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts1227 async function ensureEffectiveAdmissionBoundary(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts1299 async function listAgentQueuedTurnReceipts(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts1346 async function getAgentQueuedTurnByClientRequestId(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts1424 async function findQueuedTurnsNeedingDelivery(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts1505 async function claimQueuedTurnsForAdmissionReconciliation(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts1589 async function deferAgentQueuedTurnAdmissionReconciliation(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts1623 async function reserveAgentQueuedTurnDelivery(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts1954 async function beginAgentQueuedTurnAdmission(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts2194 async function markAgentQueuedTurnAdmitted(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts2301 async function hasAgentQueuedTurnAdmissionReceipt(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts2336 async function deadLetterAgentQueuedTurn(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts2577 async function getEffectiveAgentQueuedTurnPredecessor(CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts2762 async function prepareAgentQueuedTurnConversationDeletion(input: {CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts2837 async function deletePreparedAgentQueuedTurnConversations(input: {CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts2861 async function markAgentQueuedTurnDeliveryRetired(input: {CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts2885 async function beginAgentQueuedTurnMissingDeliveryRetirement(input: {CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts2912 async function markAgentQueuedTurnMissingDeliveryRetired(input: {CODE
LOWpackages/data-schemas/src/methods/queuedTurn.ts2936 async function deleteAllAgentQueuedTurnsForUser(input: {CODE
LOWpackages/data-schemas/src/methods/systemGrant.ts230 async function hasCapabilityForPrincipals({CODE
LOWpackages/data-schemas/src/methods/systemGrant.ts443 async function getCapabilitiesForPrincipal({CODE
LOWpackages/data-schemas/src/methods/systemGrant.ts500 async function getCapabilitiesForPrincipals({CODE
LOWpackages/data-schemas/src/methods/mcpAuthority.ts267export function createMCPAuthorityBootRevision(CODE
LOWpackages/data-schemas/src/methods/mcpAuthority.ts293export function createMCPAuthorityConfigSourceRevision(CODE
LOWpackages/data-schemas/src/methods/mcpAuthority.ts351export function createMCPAuthorityDatabaseSourceRevision(server: {CODE
LOWpackages/data-schemas/src/methods/mcpAuthority.ts380export function createMCPAuthorityCredentialRevision(CODE
LOWpackages/data-schemas/src/methods/mcpAuthority.ts430function normalizeCredentialFields(CODE
LOWpackages/data-schemas/src/methods/mcpAuthority.ts461function assertPreparedTargetBounds(targets: readonly PreparedTarget[]): void {CODE
LOWpackages/data-schemas/src/methods/mcpAuthority.ts1038export function createMCPAuthorityMethods(CODE
LOWpackages/data-schemas/src/methods/mcpAuthority.ts1624 async function loadAuthoritativeSnapshot(CODE
LOWpackages/data-schemas/src/methods/mcpAuthority.ts1798 async function assertMCPAuthorityProofsCurrent(input: MCPAuthorityAssertInput): Promise<void> {CODE
LOW…ckages/data-schemas/src/methods/openidRefreshFlight.ts33export function createOpenIDRefreshFlightMethods(mongoose: typeof import('mongoose')): {CODE
LOW…ckages/data-schemas/src/methods/openidRefreshFlight.ts73 async function acquireOpenIDRefreshFlight(CODE
LOW…ckages/data-schemas/src/methods/openidRefreshFlight.ts144 async function completeOpenIDRefreshFlight(CODE
LOW…ckages/data-schemas/src/methods/openidRefreshFlight.ts257 async function claimOpenIDRefreshFlightDelivery(CODE
LOW…ckages/data-schemas/src/methods/openidRefreshFlight.ts304 async function releaseOpenIDRefreshFlightDelivery(CODE
LOW…ckages/data-schemas/src/methods/openidRefreshFlight.ts378 async function revokeOpenIDRefreshFlight(CODE
LOWpackages/data-schemas/src/methods/mcpServer.ts42function generateServerNameFromTitle(title: string): string {CODE
LOWpackages/data-schemas/src/methods/mcpServer.ts125 async function findNextAvailableServerName(CODE
LOWpackages/data-schemas/src/methods/mcpServer.ts227 async function findMCPServerByServerName(serverName: string): Promise<MCPServerDocument | null> {CODE
2565 more matches not shown…
Hallucination Indicators33 hits · 305 pts
SeverityFileLineSnippetContext
CRITICALpackages/api/src/app/service.spec.ts1360 const setCalls = deps._cache.set.mock.calls.filter(CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js1428 req.config.endpoints.agents.capabilities.push('run_in_background');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js1511 initialReq.config.endpoints.agents.capabilities.push('run_in_background');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js1523 changedReq.config.endpoints.agents.capabilities.push('run_in_background');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js1551 req.config.endpoints.agents.capabilities.push('run_in_background');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js1660 req.config.endpoints.agents.capabilities.push('tools');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js1697 req.config.endpoints.agents.capabilities.push('execute_code');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js1816 req.config.endpoints.agents.capabilities.push('tools');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js1867 req.config.endpoints.agents.capabilities.push('tools');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js1933 req.config.endpoints.agents.capabilities.push('tools');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js1976 if (enabled) req.config.endpoints.agents.capabilities.push('tools');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2012 req.config.endpoints.agents.capabilities.push('tools');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2052 req.config.endpoints.agents.capabilities.push('tools');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2103 req.config.endpoints.agents.capabilities.push('tools');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2146 req.config.endpoints.agents.capabilities.push('tools');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2222 if (state !== 'disabled-skills') req.config.endpoints.agents.capabilities.push('skills');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2223 if (state !== 'disabled-tools') req.config.endpoints.agents.capabilities.push('tools');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2292 req.config.endpoints.agents.capabilities.push('skills');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2320 eventReq.config.endpoints.agents.capabilities.push('skills');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2400 req.config.endpoints.agents.capabilities.push('skills');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2517 req.config.endpoints.agents.capabilities.push('execute_code', 'stateful_code_sessions');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2561 req.config.endpoints.agents.capabilities.push('execute_code', 'stateful_code_sessions');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2647 req.config.endpoints.agents.capabilities.push('execute_code', 'stateful_code_sessions');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2735 req.config.endpoints.agents.capabilities.push('execute_code', 'stateful_code_sessions');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js2965 req.config.endpoints.agents.capabilities.push('execute_code', 'stateful_code_sessions');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js3932 req.config.endpoints.agents.capabilities.push('run_in_background');CODE
CRITICALapi/server/services/Endpoints/agents/initialize.spec.js3998 req.config.endpoints.agents.capabilities.push(CODE
CRITICALapi/server/services/__tests__/ToolService.spec.js3687 req.config.endpoints.agents.capabilities.push(AgentCapabilities.programmatic_tools);CODE
CRITICALapi/server/services/Threads/manage.js488 promises.push(openai.beta.threads.runs.steps.list(run_id, { thread_id }));CODE
CRITICALapi/server/services/Runs/RunManager.js94 // const { data: steps, first_id, last_id, has_more } = await openai.beta.threads.runs.steps.list(run_id, { thread_iCOMMENT
CRITICALapi/server/services/Runs/RunManager.js95 const { data: _steps } = await openai.beta.threads.runs.steps.list(CODE
CRITICALapi/server/services/Runs/StreamRunManager.js172 const streamRun = this.openai.beta.threads.runs.createAndStream(CODE
CRITICALapi/server/services/Runs/StreamRunManager.js590 toolRun = this.openai.beta.threads.runs.submitToolOutputsStream(CODE
Fake / Example Data274 hits · 276 pts
SeverityFileLineSnippetContext
LOWpackages/data-schemas/src/methods/prompt.spec.ts143 email: 'admin@example.com',CODE
LOWpackages/data-schemas/src/methods/user.methods.spec.ts1833 { name: 'John Doe', email: 'john@example.com', username: 'johnd', provider: 'local' },CODE
LOWpackages/data-schemas/src/methods/user.methods.spec.ts2162 email: 'user@example.com',CODE
LOWpackages/data-schemas/src/methods/user.methods.spec.ts2212 name: 'John Doe',CODE
LOWpackages/data-schemas/src/methods/user.methods.spec.ts2228 expect(found?.name).toBe('John Doe');CODE
LOWpackages/data-schemas/src/methods/userGroup.spec.ts1321 { type: PrincipalType.USER, name: 'John Doe', email: 'jd@gmail.com', source: 'local' },CODE
LOWpackages/data-schemas/src/methods/file.acl.spec.ts84 email: 'user@example.com',CODE
LOWpackages/data-schemas/src/methods/file.acl.spec.ts234 email: 'user@example.com',CODE
LOWpackages/data-schemas/src/methods/file.acl.spec.ts297 email: 'user@example.com',CODE
LOWpackages/data-schemas/src/methods/token.spec.ts1227 expect(stored?.email).toBe('user@example.com');CODE
LOWpackages/data-schemas/src/methods/token.spec.ts1240 for (const lookup of ['User@Example.COM', 'user@example.com', 'USER@EXAMPLE.COM']) {CODE
LOWpackages/data-schemas/src/methods/token.spec.ts1260 const result = await methods.deleteTokens({ email: 'user@example.com' });CODE
LOWpackages/data-schemas/src/config/parsers.spec.ts830 nested: { 'k@example.org': 1, 'j@example.org': 2, other: 3 },CODE
LOW…s/data-schemas/src/models/plugins/searchTokens.spec.ts64 emailTokens: ['jose.alvarez@example.org', 'jose', 'alvarez', 'example', 'org'],CODE
LOWpackages/api/src/middleware/remoteAgentAuth.spec.ts1460 expect(await captureEmailArg({ sub: 's1', email: 'user@example.com' })).toBe(CODE
LOWpackages/api/src/middleware/remoteAgentAuth.spec.ts1461 'user@example.com',CODE
LOWpackages/api/src/middleware/remoteAgentAuth.spec.ts1491 email: 'user@example.com',CODE
LOWpackages/api/src/endpoints/models.spec.ts183 const userObject = { id: 'user123', email: 'user@example.com' };CODE
LOWpackages/api/src/endpoints/models.spec.ts187 'X-User-Email': 'user@example.com',CODE
LOWpackages/api/src/endpoints/models.spec.ts209 'X-User-Email': 'user@example.com',CODE
LOWpackages/api/src/endpoints/config/models.spec.ts63 user: { id: 'user-1', email: 'user@example.com' },CODE
LOWpackages/api/src/endpoints/config/models.spec.ts100 user: { id: 'user-1', email: 'user@example.com' },CODE
LOWpackages/api/src/endpoints/custom/initialize.spec.ts380 user: { id: 'user-1', email: 'user@example.com', tenantId: overrides.tenantId },CODE
LOWpackages/api/src/endpoints/custom/initialize.spec.ts532 user: { id: 'user-1', email: 'user@example.com' },CODE
LOWpackages/api/src/endpoints/custom/initialize.spec.ts617 user: { id: 'user-1', email: 'user@example.com' },CODE
LOWpackages/api/src/auth/user.spec.ts7 email: 'user@example.com',CODE
LOWpackages/api/src/auth/domain.spec.ts95 const email = 'user@example.com';CODE
LOWpackages/api/src/auth/refresh.spec.ts28 email: 'admin@example.com',CODE
LOWpackages/api/src/auth/refresh.spec.ts137 email: 'admin@example.com',CODE
LOWpackages/api/src/auth/refresh.spec.ts167 expect(result.user.email).toBe('admin@example.com');CODE
LOWpackages/api/src/auth/refresh.spec.ts641 'admin@example.com',CODE
LOWpackages/api/src/auth/userDocCache.spec.ts165 email: 'user@example.com',CODE
LOWpackages/api/src/auth/userDocCache.spec.ts181 email: 'user@example.com',CODE
LOWpackages/api/src/auth/userDocCache.spec.ts222 email: 'user@example.com',CODE
LOWpackages/api/src/auth/userDocCache.spec.ts248 email: 'user@example.com',CODE
LOWpackages/api/src/auth/userDocCache.spec.ts257 email: 'user@example.com',CODE
LOWpackages/api/src/auth/userDocCache.spec.ts315 const user = { _id: userId, email: 'user@example.com' };CODE
LOWpackages/api/src/auth/userDocCache.spec.ts354 { _id: userId, email: 'user@example.com' },CODE
LOWpackages/api/src/auth/userDocCache.spec.ts367 { _id: userId, email: 'user@example.com' },CODE
LOWpackages/api/src/auth/googleRefresh.spec.ts25 email: 'admin@example.com',CODE
LOWpackages/api/src/auth/googleRefresh.spec.ts102 email: 'admin@example.com',CODE
LOW⚡packages/api/src/auth/passwordReset.spec.ts10 updateUser: jest.fn().mockResolvedValue({ email: 'user@example.com' }),CODE
LOW⚡packages/api/src/auth/passwordReset.spec.ts19 return { token: RESET_HASH, email: 'user@example.com', type: 'password_reset', ...overrides };CODE
LOW⚡packages/api/src/auth/passwordReset.spec.ts27 return { _id: 'user-reset', email: 'user@example.com', ...overrides };CODE
LOWpackages/api/src/auth/passwordReset.spec.ts88 { email: 'user@example.com' },CODE
LOWpackages/api/src/auth/exchange.spec.ts28 email: 'admin@example.com',CODE
LOWpackages/api/src/auth/exchange.spec.ts53 expect(result!.user.email).toBe('admin@example.com');CODE
LOWpackages/api/src/auth/passkey.spec.ts45const user = { id: '65f0000000000000000000aa', email: 'user@example.com', name: 'Ada' };CODE
LOW⚡packages/api/src/auth/openid.spec.ts319 email: 'user@example.com',CODE
LOW⚡packages/api/src/auth/openid.spec.ts329 email: 'user@example.com',CODE
LOW⚡packages/api/src/auth/openid.spec.ts337 email: 'user@example.com',CODE
LOW⚡packages/api/src/auth/openid.spec.ts706 email: 'user@example.com',CODE
LOW⚡packages/api/src/auth/openid.spec.ts711 expect(mockFindUser).toHaveBeenCalledWith({ email: 'user@example.com' });CODE
LOW⚡packages/api/src/auth/openid.spec.ts720 email: 'user@example.com',CODE
LOW⚡packages/api/src/auth/openid.spec.ts759 email: 'user@example.com',CODE
LOW⚡packages/api/src/auth/openid.spec.ts768 email: 'user@example.com',CODE
LOW⚡packages/api/src/auth/openid.spec.ts772 expect(mockFindUser).toHaveBeenCalledWith({ email: 'user@example.com' });CODE
LOW⚡packages/api/src/auth/openid.spec.ts979 email: 'user@example.com',CODE
LOW⚡packages/api/src/auth/openid.spec.ts988 expect(getOpenIdEmail({ email: 'user@example.com' }, 'remoteAgentAuth')).toBe(CODE
LOW⚡packages/api/src/auth/openid.spec.ts989 'user@example.com',CODE
214 more matches not shown…
Decorative Section Separators68 hits · 208 pts
SeverityFileLineSnippetContext
MEDIUMlibrechat.example.yaml1202 # # ============================================================================COMMENT
MEDIUMlibrechat.example.yaml1205 # # ============================================================================COMMENT
MEDIUMconfig/test-subdirectory-setup.sh2# =============================================================================COMMENT
MEDIUMconfig/test-subdirectory-setup.sh21# =============================================================================COMMENT
MEDIUM…ta-schemas/misc/ferretdb/multiTenancy.ferretdb.spec.ts166 // ─── PHASE 1: DATABASE-PER-ORG SCHEMA MAPPING ────────────────────────────COMMENT
MEDIUM…ta-schemas/misc/ferretdb/multiTenancy.ferretdb.spec.ts231 // ─── PHASE 2: INDEX INITIALIZATION ────────────────────────────────────────COMMENT
MEDIUM…ta-schemas/misc/ferretdb/multiTenancy.ferretdb.spec.ts328 // ─── PHASE 3: SCALING CURVE ───────────────────────────────────────────────COMMENT
MEDIUM…ta-schemas/misc/ferretdb/multiTenancy.ferretdb.spec.ts458 // ─── PHASE 4: WRITE AMPLIFICATION ────────────────────────────────────────COMMENT
MEDIUM…ta-schemas/misc/ferretdb/multiTenancy.ferretdb.spec.ts528 // ─── PHASE 5: SHARED-COLLECTION ALTERNATIVE ──────────────────────────────COMMENT
MEDIUM…s/data-schemas/misc/ferretdb/sharding.ferretdb.spec.ts26// ─── TYPES ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM…s/data-schemas/misc/ferretdb/sharding.ferretdb.spec.ts46// ─── TENANT ROUTER (INLINE POC) ────────────────────────────────────────────COMMENT
MEDIUM…s/data-schemas/misc/ferretdb/sharding.ferretdb.spec.ts245// ─── TESTS ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/data-schemas/misc/ferretdb/bulkWrite.ferretdb.spec.ts106// ─── FLOW 1: import — bulkSaveConvos + bulkSaveMessages ───────────────────COMMENT
MEDIUM…/data-schemas/misc/ferretdb/bulkWrite.ferretdb.spec.ts258// ─── FLOW 2: bulkWriteAclEntries ───────────────────────────────────────────COMMENT
MEDIUM…/data-schemas/misc/ferretdb/bulkWrite.ferretdb.spec.ts365// ─── FLOW 3: bulkIncrementTagCounts ────────────────────────────────────────COMMENT
MEDIUM…/data-schemas/misc/ferretdb/bulkWrite.ferretdb.spec.ts416// ─── FLOW 4: Transaction.insertMany (bulkInsertTransactions) ──────────────COMMENT
MEDIUM…/data-schemas/misc/ferretdb/bulkWrite.ferretdb.spec.ts501// ─── FLOW 5: file-TTL bulkWrite (extendFilesTTL) ───────────────────────────COMMENT
MEDIUM…a-schemas/misc/ferretdb/orgOperations.ferretdb.spec.ts66// ─── BACKUP/RESTORE UTILITIES ───────────────────────────────────────────────COMMENT
MEDIUM…a-schemas/misc/ferretdb/orgOperations.ferretdb.spec.ts109// ─── MIGRATION UTILITIES ────────────────────────────────────────────────────COMMENT
MEDIUM…a-schemas/misc/ferretdb/orgOperations.ferretdb.spec.ts171// ─── TESTS ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM…a-schemas/misc/ferretdb/orgOperations.ferretdb.spec.ts192 // ─── RETRY UTILITY ──────────────────────────────────────────────────────COMMENT
MEDIUM…a-schemas/misc/ferretdb/orgOperations.ferretdb.spec.ts280 // ─── REAL DEADLOCK RETRY ────────────────────────────────────────────────COMMENT
MEDIUM…a-schemas/misc/ferretdb/orgOperations.ferretdb.spec.ts310 // ─── BACKUP/RESTORE ─────────────────────────────────────────────────────COMMENT
MEDIUM…a-schemas/misc/ferretdb/orgOperations.ferretdb.spec.ts511 // ─── SCHEMA MIGRATION ──────────────────────────────────────────────────COMMENT
MEDIUMpackages/api/src/app/service.ts465// ── Types ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/api/src/app/service.ts604// ── Helpers ──────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/api/src/app/service.ts685// ── Service factory ──────────────────────────────────────────────────COMMENT
MEDIUMpackages/api/src/admin/config.handler.spec.ts1982 // ── Invariant tests: rules that must hold across ALL handlers ──────COMMENT
MEDIUMpackages/api/src/admin/config.ts1015// ── Validation helpers ───────────────────────────────────────────────COMMENT
MEDIUMpackages/api/src/admin/config.ts1827// ── Change batches ───────────────────────────────────────────────────COMMENT
MEDIUMpackages/api/src/admin/config.ts2565// ── Handler factory ──────────────────────────────────────────────────COMMENT
MEDIUM…/agents/responses/__tests__/responses-api.live.test.sh23# ── Helpers ───────────────────────────────────────────────────────────COMMENT
MEDIUM…/agents/responses/__tests__/responses-api.live.test.sh80# ── Test 1: Basic single-turn request ─────────────────────────────────COMMENT
MEDIUM…/agents/responses/__tests__/responses-api.live.test.sh91# ── Test 2: Multi-turn with output_text assistant blocks ──────────────COMMENT
MEDIUM…/agents/responses/__tests__/responses-api.live.test.sh118# ── Test 3: Multi-turn with refusal blocks ────────────────────────────COMMENT
MEDIUM…/agents/responses/__tests__/responses-api.live.test.sh145# ── Test 4: Streaming request ─────────────────────────────────────────COMMENT
MEDIUM…/agents/responses/__tests__/responses-api.live.test.sh156# ── Test 5: Back-and-forth using previous_response_id ─────────────────COMMENT
MEDIUM…/agents/responses/__tests__/responses-api.live.test.sh185# ── Summary ───────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…ges/api/src/agents/responses/__tests__/service.test.ts406 // ── String input shorthand ─────────────────────────────────────────COMMENT
MEDIUM⚡…ges/api/src/agents/responses/__tests__/service.test.ts412 // ── Empty input array ──────────────────────────────────────────────COMMENT
MEDIUM⚡…ges/api/src/agents/responses/__tests__/service.test.ts418 // ── Role mapping ───────────────────────────────────────────────────COMMENT
MEDIUM…ges/api/src/agents/responses/__tests__/service.test.ts450 // ── input_text content blocks ──────────────────────────────────────COMMENT
MEDIUM…ges/api/src/agents/responses/__tests__/service.test.ts463 // ── output_text content blocks (the original bug) ──────────────────COMMENT
MEDIUM…ges/api/src/agents/responses/__tests__/service.test.ts478 // ── refusal content blocks ─────────────────────────────────────────COMMENT
MEDIUM…ges/api/src/agents/responses/__tests__/service.test.ts493 // ── input_image content blocks ─────────────────────────────────────COMMENT
MEDIUM…ges/api/src/agents/responses/__tests__/service.test.ts518 // ── input_file content blocks ──────────────────────────────────────COMMENT
MEDIUM…ges/api/src/agents/responses/__tests__/service.test.ts547 // ── Null / undefined filtering ─────────────────────────────────────COMMENT
MEDIUM…ges/api/src/agents/responses/__tests__/service.test.ts560 // ── Missing text field defaults to empty string ────────────────────COMMENT
MEDIUM…ges/api/src/agents/responses/__tests__/service.test.ts597 // ── Unknown block types are filtered out ───────────────────────────COMMENT
MEDIUM…ges/api/src/agents/responses/__tests__/service.test.ts613 // ── Mixed valid/invalid content in same array ──────────────────────COMMENT
MEDIUM…ges/api/src/agents/responses/__tests__/service.test.ts639 // ── Non-array, non-string content defaults to empty string ─────────COMMENT
MEDIUM…ges/api/src/agents/responses/__tests__/service.test.ts646 // ── Function call items ────────────────────────────────────────────COMMENT
MEDIUM…ges/api/src/agents/responses/__tests__/service.test.ts720 // ── Item references are skipped ────────────────────────────────────COMMENT
MEDIUM…ges/api/src/agents/responses/__tests__/service.test.ts730 // ── Multi-turn conversation (the real-world scenario) ──────────────COMMENT
MEDIUMapi/server/middleware/__tests__/requireJwtAuth.spec.js13// ── Mocks ──────────────────────────────────────────────────────────────COMMENT
MEDIUMapi/server/middleware/__tests__/requireJwtAuth.spec.js124// ── Helpers ─────────────────────────────────────────────────────────────COMMENT
MEDIUMapi/server/middleware/__tests__/requireJwtAuth.spec.js171// ── Tests ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…rvices/Config/__tests__/invalidateConfigCaches.spec.js1// ── Mocks ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…rvices/Config/__tests__/invalidateConfigCaches.spec.js61// ── Tests ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…c/utils/__tests__/applyModelSpecEphemeralAgent.test.ts44 // ─── New Conversations ─────────────────────────────────────────────COMMENT
8 more matches not shown…
Over-Commented Block162 hits · 124 pts
SeverityFileLineSnippetContext
LOWlibrechat.example.yaml1# For more information, see the Configuration Guide:COMMENT
LOWlibrechat.example.yaml21COMMENT
LOWlibrechat.example.yaml41COMMENT
LOWlibrechat.example.yaml61COMMENT
LOWlibrechat.example.yaml81# origin (a self-hosted base URL, or a single tenant destination URL), and onlyCOMMENT
LOWlibrechat.example.yaml101# Temporary chats, including every chat when interface.retentionMode isCOMMENT
LOWlibrechat.example.yaml121# Granular file storage strategies (new format - recommended)COMMENT
LOWlibrechat.example.yaml141# domain: "https://cdn.example.com" # CloudFront domain (CNAME recommended for cookies)COMMENT
LOWlibrechat.example.yaml161# # when includeRegionInPath is true. Existing files are not moved automatically.COMMENT
LOWlibrechat.example.yaml181# sources:COMMENT
LOWlibrechat.example.yaml201COMMENT
LOWlibrechat.example.yaml221 # historyCacheTtlMs: 60000COMMENT
LOWlibrechat.example.yaml321 # Scheduled agents that can pause require both `USE_REDIS_STREAMS=true` forCOMMENT
LOWlibrechat.example.yaml341 # # Pin every scheduled run to ONE chat project, ignoring the user's choice.COMMENT
LOWlibrechat.example.yaml361 # sound: true # Allow readers to turn on the reply chime (default: true)COMMENT
LOWlibrechat.example.yaml381 # # user chatting with a shared agent cannot otherwise see.COMMENT
LOWlibrechat.example.yaml401 # When omitted, tools start unpinned and the MCP dropdown keeps its default (pinned).COMMENT
LOWlibrechat.example.yaml421 # mcpServers:COMMENT
LOWlibrechat.example.yaml441 # LibreChat hat diesen MCP-Server nicht überprüft. Angreifer könnten versuchen, Ihre Daten zu stehlen oder das MCOMMENT
LOWlibrechat.example.yaml461 # retentionMode: "all"; non-agent files still expire.COMMENT
LOWlibrechat.example.yaml481# perUserMax: 20COMMENT
LOWlibrechat.example.yaml501# refillAmount: 10000COMMENT
LOWlibrechat.example.yaml521# control and that cannot be repointed by an attacker. Do not list attacker-controllable orCOMMENT
LOWlibrechat.example.yaml541# stt:COMMENT
LOWlibrechat.example.yaml561# - 'localhost:8080'COMMENT
LOWlibrechat.example.yaml581# maxEntries: 100COMMENT
LOWlibrechat.example.yaml601# # Always active; successful and failed requests count. Uses Redis when enabled.COMMENT
LOWlibrechat.example.yaml621# userMax: 3COMMENT
LOWlibrechat.example.yaml641 - 'google.com'COMMENT
LOWlibrechat.example.yaml661COMMENT
LOWlibrechat.example.yaml681# SECURITY: If not configured, SSRF targets are blocked (localhost, private IPs, .internal/.local TLDs).COMMENT
LOWlibrechat.example.yaml701# # want default SSRF protection AND specific internal MCP servers. Entries mustCOMMENT
LOWlibrechat.example.yaml721# mcpServers:COMMENT
LOWlibrechat.example.yaml741# # When to ask users to sign in. `on_start` (default) asks when the turn starts. `on_use`COMMENT
LOWlibrechat.example.yaml761# Authorization: "Bearer {{LIBRECHAT_OPENID_ACCESS_TOKEN}}"COMMENT
LOWlibrechat.example.yaml781# iconPath: /home/user/LibreChat/client/public/assets/logo.svgCOMMENT
LOWlibrechat.example.yaml801 # supportedIds: ["asst_supportedAssistantId1", "asst_supportedAssistantId2"]COMMENT
LOWlibrechat.example.yaml821 # # Maximum provider error characters retained without content protection (0 hides detail).COMMENT
LOWlibrechat.example.yaml841 # maxToolCallArgBytesByTool:COMMENT
LOWlibrechat.example.yaml861 # # Enabling this sends a bounded snapshot (up to 4,000 characters) of theCOMMENT
LOWlibrechat.example.yaml881 # # (optional) Maximum explicit subagents per agent, for both the flat list andCOMMENT
LOWlibrechat.example.yaml901 # ttlMs: 3600000 # active manifest lifetime, at most 24 hoursCOMMENT
LOWlibrechat.example.yaml921 # # every agent on its fixed machine (for example while older API replicas still run).COMMENT
LOWlibrechat.example.yaml941 # # `remote-bridge` backend leases work to an outbound @librechat/code worker.COMMENT
LOWlibrechat.example.yaml961 # # Lets authenticated users create principal-bound environments andCOMMENT
LOWlibrechat.example.yaml981 # # New strict fields require all LibreChat API replicas to be updated first.COMMENT
LOWlibrechat.example.yaml1001 # fileWrite:COMMENT
LOWlibrechat.example.yaml1021 # completionWakeups: trueCOMMENT
LOWlibrechat.example.yaml1041 # enabled: true # set false to turn the feature offCOMMENT
LOWlibrechat.example.yaml1061 # # retentionDays: 180 # an unused connection is removed after this; each use extends itCOMMENT
LOWlibrechat.example.yaml1081 # batchTimeoutSeconds: 20COMMENT
LOWlibrechat.example.yaml1101 # toolApproval:COMMENT
LOWlibrechat.example.yaml1121 # retainedAnswers:COMMENT
LOWlibrechat.example.yaml1141 # userId: '507f1f77bcf86cd799439011'COMMENT
LOWlibrechat.example.yaml1161 # headers:COMMENT
LOWlibrechat.example.yaml1181 # X-Conversation-Id: '{{LIBRECHAT_BODY_CONVERSATIONID}}'COMMENT
LOWlibrechat.example.yaml1201 #COMMENT
LOWlibrechat.example.yaml1221 # # The deploymentName is the actual Vertex AI model ID used for API callsCOMMENT
LOWlibrechat.example.yaml1241 # deploymentName: claude-3-5-haiku@20241022COMMENT
LOWlibrechat.example.yaml1281 models:COMMENT
102 more matches not shown…
Structural Annotation Overuse54 hits · 104 pts
SeverityFileLineSnippetContext
LOWconfig/smart-reinstall.js143 // Step 1: DependenciesCOMMENT
LOWconfig/smart-reinstall.js163 // Step 2: Build via TurborepoCOMMENT
LOWpackages/data-schemas/README.md134### Step 1: Create the Type DefinitionCOMMENT
LOWpackages/data-schemas/README.md153### Step 2: Update Types IndexCOMMENT
LOWpackages/data-schemas/README.md161### Step 3: Create the SchemaCOMMENT
LOWpackages/data-schemas/README.md180### Step 4: Create the Model FactoryCOMMENT
LOWpackages/data-schemas/README.md196### Step 5: Update Models IndexCOMMENT
LOWpackages/data-schemas/README.md210### Step 6: Create Database MethodsCOMMENT
LOWpackages/data-schemas/README.md235### Step 7: Update Methods IndexCOMMENT
LOW⚡packages/api/src/utils/oidc.spec.ts667 // Step 1: Extract token infoCOMMENT
LOW⚡packages/api/src/utils/oidc.spec.ts671 // Step 2: Validate tokenCOMMENT
LOW⚡packages/api/src/utils/oidc.spec.ts675 // Step 3: Process placeholdersCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts967 // Step 1: preProcessGraphTokens resolves graph token placeholders (async)COMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts973 // Step 2: processMCPEnv resolves user and env placeholders (sync)COMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1005 // Step 1: preProcessGraphTokensCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1011 // Step 2: processMCPEnvCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1083 // Step 1: preProcessGraphTokensCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1089 // Step 2: processMCPEnv with customUserVarsCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1116 // Step 1: preProcessGraphTokens (no-op since no graph placeholders)COMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1122 // Step 2: processMCPEnvCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1155 // Step 1: preProcessGraphTokensCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1161 // Step 2: processMCPEnvCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1072 // Step 2: Store tokens with valid expiry firstCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1082 // Step 3: Verify tokens workCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1091 // Step 4: Simulate token expiry by directly updating the stored token's expiresAtCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1094 // Step 5: Revoke refresh token on server side (simulating server-side revocation)COMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1097 // Step 6: Try to get tokens — refresh should fail, return nullCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1154 // Step 9: Complete the flowCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1162 // Step 10: Store the new tokensCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1174 // Step 11: Verify new tokens workCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1183 // Step 12: Verify new token works against serverCOMMENT
LOW…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1058 // Step 1: Get initial tokensCOMMENT
LOW…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1124 // Step 7: Simulate the re-auth flow via FlowStateManagerCOMMENT
LOW…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1140 // Step 8: Get a new auth code and exchange for tokens (simulating user re-auth)COMMENT
LOW⚡…er/controllers/agents/__tests__/jobReplacement.spec.js242 // Step 1: Save messageCOMMENT
LOW⚡…er/controllers/agents/__tests__/jobReplacement.spec.js245 // Step 2: Check for replacementCOMMENT
LOW⚡…er/controllers/agents/__tests__/jobReplacement.spec.js249 // Step 3: Emit if not replacedCOMMENT
LOWapi/server/services/PermissionService.js524 // Step 1: Get all group IDs user should be member ofCOMMENT
LOWapi/server/services/PermissionService.js552 // Step 2: Try to add user to existing groups (fast operation)COMMENT
LOWapi/server/services/PermissionService.js567 // Step 3: Find which groups don't exist in DB using db layerCOMMENT
LOWapi/server/services/PermissionService.js578 // Step 4: Fetch details only for missing groups (optimized batch request)COMMENT
LOWapi/server/services/PermissionService.js590 // Step 5: Upsert missing groups (race-safe by design)COMMENT
LOWapi/server/services/PermissionService.js607 // Step 6: Add user to all newly created/upserted groupsCOMMENT
LOWapi/server/services/PermissionService.js632 // Step 7: Remove user from Entra groups they're no longer member ofCOMMENT
LOW⚡client/src/utils/__tests__/citations.test.ts200 // Step 1: Extract highlighted spansCOMMENT
LOW⚡client/src/utils/__tests__/citations.test.ts209 // Step 2: Extract composite blocksCOMMENT
LOWclient/src/utils/__tests__/citations.test.ts224 // Step 3: Extract standalone citations (not in composites)COMMENT
LOWclient/src/utils/__tests__/citations.test.ts241 // Step 4: Clean up textCOMMENT
LOW⚡client/src/hooks/Messages/useCopyToClipboard.ts315 // Step 1: Process highlighted text first (simplify by just making it bold in markdown)COMMENT
LOW⚡client/src/hooks/Messages/useCopyToClipboard.ts321 // Step 2: Find all standalone citations and composite citation blocksCOMMENT
LOWclient/src/hooks/Messages/useCopyToClipboard.ts370 // Step 3: Process each citation and build the reference mappingCOMMENT
LOW⚡client/src/hooks/Messages/useCopyToClipboard.ts514 // Step 4: Apply all replacements (from longest to shortest to avoid nested replacement issues)COMMENT
LOW⚡client/src/hooks/Messages/useCopyToClipboard.ts520 // Step 5: Remove any orphaned composite blocks at the end of the textCOMMENT
LOW⚡client/src/hooks/Messages/useCopyToClipboard.ts524 // Step 6: Clean up any remaining citation markersCOMMENT
Verbosity Indicators47 hits · 93 pts
SeverityFileLineSnippetContext
LOWconfig/smart-reinstall.js143 // Step 1: DependenciesCOMMENT
LOWconfig/smart-reinstall.js163 // Step 2: Build via TurborepoCOMMENT
LOW⚡packages/api/src/utils/oidc.spec.ts667 // Step 1: Extract token infoCOMMENT
LOW⚡packages/api/src/utils/oidc.spec.ts671 // Step 2: Validate tokenCOMMENT
LOW⚡packages/api/src/utils/oidc.spec.ts675 // Step 3: Process placeholdersCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts967 // Step 1: preProcessGraphTokens resolves graph token placeholders (async)COMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts973 // Step 2: processMCPEnv resolves user and env placeholders (sync)COMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1005 // Step 1: preProcessGraphTokensCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1011 // Step 2: processMCPEnvCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1083 // Step 1: preProcessGraphTokensCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1089 // Step 2: processMCPEnv with customUserVarsCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1116 // Step 1: preProcessGraphTokens (no-op since no graph placeholders)COMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1122 // Step 2: processMCPEnvCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1155 // Step 1: preProcessGraphTokensCOMMENT
LOW⚡packages/api/src/mcp/__tests__/mcp.spec.ts1161 // Step 2: processMCPEnvCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1072 // Step 2: Store tokens with valid expiry firstCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1082 // Step 3: Verify tokens workCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1091 // Step 4: Simulate token expiry by directly updating the stored token's expiresAtCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1094 // Step 5: Revoke refresh token on server side (simulating server-side revocation)COMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1097 // Step 6: Try to get tokens — refresh should fail, return nullCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1154 // Step 9: Complete the flowCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1162 // Step 10: Store the new tokensCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1174 // Step 11: Verify new tokens workCOMMENT
LOW⚡…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1183 // Step 12: Verify new token works against serverCOMMENT
LOW…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1058 // Step 1: Get initial tokensCOMMENT
LOW…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1124 // Step 7: Simulate the re-auth flow via FlowStateManagerCOMMENT
LOW…ages/api/src/mcp/__tests__/MCPOAuthTokenExpiry.test.ts1140 // Step 8: Get a new auth code and exchange for tokens (simulating user re-auth)COMMENT
LOW⚡…er/controllers/agents/__tests__/jobReplacement.spec.js242 // Step 1: Save messageCOMMENT
LOW⚡…er/controllers/agents/__tests__/jobReplacement.spec.js245 // Step 2: Check for replacementCOMMENT
LOW⚡…er/controllers/agents/__tests__/jobReplacement.spec.js249 // Step 3: Emit if not replacedCOMMENT
LOWapi/server/services/PermissionService.js524 // Step 1: Get all group IDs user should be member ofCOMMENT
LOWapi/server/services/PermissionService.js552 // Step 2: Try to add user to existing groups (fast operation)COMMENT
LOWapi/server/services/PermissionService.js567 // Step 3: Find which groups don't exist in DB using db layerCOMMENT
LOWapi/server/services/PermissionService.js578 // Step 4: Fetch details only for missing groups (optimized batch request)COMMENT
LOWapi/server/services/PermissionService.js590 // Step 5: Upsert missing groups (race-safe by design)COMMENT
LOWapi/server/services/PermissionService.js607 // Step 6: Add user to all newly created/upserted groupsCOMMENT
LOWapi/server/services/PermissionService.js632 // Step 7: Remove user from Entra groups they're no longer member ofCOMMENT
LOW⚡client/src/utils/__tests__/citations.test.ts200 // Step 1: Extract highlighted spansCOMMENT
LOW⚡client/src/utils/__tests__/citations.test.ts209 // Step 2: Extract composite blocksCOMMENT
LOWclient/src/utils/__tests__/citations.test.ts224 // Step 3: Extract standalone citations (not in composites)COMMENT
LOWclient/src/utils/__tests__/citations.test.ts241 // Step 4: Clean up textCOMMENT
LOW⚡client/src/hooks/Messages/useCopyToClipboard.ts315 // Step 1: Process highlighted text first (simplify by just making it bold in markdown)COMMENT
LOW⚡client/src/hooks/Messages/useCopyToClipboard.ts321 // Step 2: Find all standalone citations and composite citation blocksCOMMENT
LOWclient/src/hooks/Messages/useCopyToClipboard.ts370 // Step 3: Process each citation and build the reference mappingCOMMENT
LOW⚡client/src/hooks/Messages/useCopyToClipboard.ts514 // Step 4: Apply all replacements (from longest to shortest to avoid nested replacement issues)COMMENT
LOW⚡client/src/hooks/Messages/useCopyToClipboard.ts520 // Step 5: Remove any orphaned composite blocks at the end of the textCOMMENT
LOW⚡client/src/hooks/Messages/useCopyToClipboard.ts524 // Step 6: Clean up any remaining citation markersCOMMENT
AI Slop Vocabulary12 hits · 31 pts
SeverityFileLineSnippetContext
MEDIUMlibrechat.example.yaml1420 # # - "enabled_full": Include comprehensive trace details (recommended for debugging)COMMENT
MEDIUMsearch/compose.yml64 # differential-test harness atCOMMENT
MEDIUM…ckages/data-schemas/src/methods/convoStructure.spec.ts104 // buildTree is order-robust: a child sorted before its parent must stillCOMMENT
MEDIUM…ckages/data-schemas/src/methods/convoStructure.spec.ts173 // Interleaved timestamps scramble retrieval order, but the order-robustCOMMENT
MEDIUMpackages/api/src/tools/toolkits/web.ts6Use this tool when the user's request calls for it, whether directly, indirectly, or implicitly, or when answering requiCODE
MEDIUM.github/workflows/workspace-acceptance.yml85 # The native harness retains private identities and cookies for local debugging.COMMENT
MEDIUMapi/server/utils/import/__data__/chatgpt-export.json606 "result": "# \u30100\u20202014 Volkswagen Transporter MPG - Actual MPG from 14 2014 ... - Fuelly\u2020www.fuCODE
MEDIUMapi/server/utils/import/__data__/chatgpt-export.json783 "text": "# \u30100\u20202014 Volkswagen Transporter MPG - Actual MPG from 14 2014 ... - Fuelly\u2020wwCODE
MEDIUMapi/server/utils/import/__data__/chatgpt-citations.json20 "result": "# 【0†Signal Sciences - Crunchbase Company Profile & Funding†www.crunchbase.com】\nFounded Date MarCODE
MEDIUMapi/server/utils/import/__data__/chatgpt-citations.json199 "text": "# 【0†Signal Sciences - Crunchbase Company Profile & Funding†www.crunchbase.com】\nFounded DateCODE
MEDIUMe2e/config/librechat.e2e.yaml34 # Scheduled chats are EXPERIMENTAL and default-off, so the e2e harness must opt inCOMMENT
MEDIUMe2e/config/librechat.real.yaml12# Local stdio fixture reused from the mock harness: gives the real model aCOMMENT
Modern AI Meta-Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMlibrechat.example.yaml570# ragMs: 30000 # RAG API queries for file search and message contextCOMMENT
MEDIUMe2e/config/librechat.e2e.yaml463# Short enough that a stalled fake RAG query fails the tool call well inside a test.COMMENT
MEDIUMhelm/librechat-rag-api/readme.md1# Librechat RAG API Helm CHartCOMMENT
MEDIUMhelm/librechat-rag-api/values.yaml1# Required as vectorDB for RAGCOMMENT
MEDIUMhelm/librechat/values.yaml125# only lite RAG is supportedCOMMENT
Redundant / Tautological Comments10 hits · 15 pts
SeverityFileLineSnippetContext
LOWlibrechat.example.yaml460 # Set retainAgentFiles to true to keep persistent agent resource files from expiring underCOMMENT
LOWredis-config/stop-cluster.sh22 # Check if still running and force kill if neededCOMMENT
LOWredis-config/start-redis-tls.sh6# Check if Redis is already runningCOMMENT
LOWredis-config/start-cluster.sh17# Check if Redis is installedCOMMENT
LOWredis-config/start-cluster.sh26# Check if Redis CLI is availableCOMMENT
LOWredis-config/start-cluster.sh40# Check if all nodes are runningCOMMENT
LOWredis-config/start-cluster.sh57# Check if cluster is already initializedCOMMENT
LOWutils/update_env.py58 # Check if the environment variable is set in the local environmentCOMMENT
LOWpackages/data-provider/check_updates.sh33 # Check if this date is within the last three daysCOMMENT
LOWclient/check_updates.sh32 # Check if this date is within the last three daysCOMMENT
Slop Phrases5 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMlibrechat.example.yaml1338 # For `apiKey` and `baseURL`, you can use environment variables that you define.COMMENT
MEDIUMlibrechat.example.yaml1380 # For `apiKey` and `baseURL`, you can use environment variables that you define.COMMENT
MEDIUMapi/server/utils/import/__data__/chatgpt-export.json1127 "To find the point where all intervals intersect, you need to determine the common overlap region among alCODE
MEDIUMhelm/librechat-rag-api/values.yaml30 # postgres-password is needed to enable pgvector extension. If you enable it manually you can use "password" and useCOMMENT
MEDIUMhelm/librechat/examples/dns-configuration.yaml37# Note: For simple host-to-IP mappings, you can also use hostAliasesCOMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWconfig/test-subdirectory-setup.sh10# Usage:COMMENT
LOW…/agents/responses/__tests__/responses-api.live.test.sh7# Usage:COMMENT
Unused Imports1 hit · 0 pts
SeverityFileLineSnippetContext
LOW.github/scripts/test_main_promotion.py3CODE