AI Slop Code Risk Monitor

Tencent/teamai-cli

SlopCodeMonitor badge for Tencent/teamai-cli Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
6.2 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for Tencent/teamai-cli. SynthScan examined 540,197 lines of code across 1632 source files, recording 1454 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 6.2 (Moderate 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.

6.2
Adjusted Signal
6.2
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
540.2K
Lines of Code
1.6K
Files
1.5K
Pattern Hits
2026-10-31
Scan Date
0.01
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 5.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.1/100 · LOW

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

Agent Over-Engineering Ratio 23.4/100 · LOW

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

PR Review Velocity Impact 26.2/100 · MEDIUM

Which changes need focused human review? 1454 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 2HIGH 14MEDIUM 870LOW 568

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 1454 distinct pattern matches across 12 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.

Decorative Section Separators856 hits · 2580 pts
SeverityFileLineSnippetContext
MEDIUMexamples/ci/coding-ci-mr-extract.yaml31# ── Secrets and environment variables ──────────────────────────COMMENT
MEDIUMexamples/ci/coding-ci-mr-extract.yaml44# ── Pipeline stages ────────────────────────────────────────────COMMENT
MEDIUMexamples/ci/gitlab-ci-mr-extract.yml30# ── MR created/updated: extract knowledge and post it as a comment ──────────COMMENT
MEDIUMexamples/ci/gitlab-ci-mr-extract.yml52# ── MR landed on the default branch: write knowledge to the team repo ───────COMMENT
MEDIUMscripts/tool-support.ts9// ─── Generated support page ──────────────────────────────COMMENT
MEDIUMscripts/commands-reference.ts3// ─── Generated command reference ─────────────────────────COMMENT
MEDIUMsrc/git-hook.ts377// ─── Recorded failures ─────────────────────────────────COMMENT
MEDIUMsrc/push.ts1790 // ── Handle --skill parameter: filter to a single specific skill ──────COMMENT
MEDIUMsrc/push.ts1930 // ── Step 0: Cross-check against still-open push PRs ────────────────COMMENT
MEDIUMsrc/push.ts2150 // ── Step 1: Display ALL scanned items with numbers ─────────────────COMMENT
MEDIUMsrc/push.ts2185 // ── Step 2: Dry run resolves placement, then exits ──────────────COMMENT
MEDIUMsrc/push.ts2203 // ── Step 3: Item selection (replaces old Y/n confirmation) ─────────COMMENT
MEDIUMsrc/push.ts2220 // ── Step 3b: Split the selection into per-PR groups ────────────────COMMENT
MEDIUMsrc/push.ts2242 // ── Step 5: Push each group — one branch/PR per group ──────────────COMMENT
MEDIUMsrc/clone.ts14// ─── Types ──────────────────────────────────────────────COMMENT
MEDIUMsrc/clone.ts36// ─── Helpers ────────────────────────────────────────────COMMENT
MEDIUMsrc/clone.ts233// ─── Public API ─────────────────────────────────────────COMMENT
MEDIUMsrc/mcp-git-exclude.ts17// ─── Project MCP configs and git ─────────────────────────────COMMENT
MEDIUMsrc/status.ts329 // ── Repo section ────────────────────────────────────COMMENT
MEDIUMsrc/status.ts336 // ── Local agent section (skills only) ───────────────COMMENT
MEDIUMsrc/mr-hint.ts10// ─── MR Hint data flow ──────────────────────────────────COMMENT
MEDIUMsrc/mr-hint.ts36// ─── Types ───────────────────────────────────────────────COMMENT
MEDIUMsrc/mr-hint.ts58// ─── Cache helpers ───────────────────────────────────────COMMENT
MEDIUMsrc/mr-hint.ts115// ─── Git remote detection ────────────────────────────────COMMENT
MEDIUMsrc/mr-hint.ts139// ─── Remote URL parsing ──────────────────────────────────COMMENT
MEDIUMsrc/mr-hint.ts189// ─── MR listing ─────────────────────────────────────────COMMENT
MEDIUMsrc/mr-hint.ts327 // ── Primary: gh CLI ──────────────────────────────────────COMMENT
MEDIUMsrc/mr-hint.ts357 // ── Fallback: GitHub REST API ────────────────────────────COMMENT
MEDIUMsrc/mr-hint.ts361// ─── Hint message builder ────────────────────────────────COMMENT
MEDIUMsrc/mr-hint.ts409// ─── Main entry point ────────────────────────────────────COMMENT
MEDIUMsrc/cache-cmd.ts7// ─── Types ───────────────────────────────────────────────COMMENT
MEDIUMsrc/cache-cmd.ts18// ─── Helpers ────────────────────────────────────────────COMMENT
MEDIUMsrc/cache-cmd.ts57// ─── Command ──────────────────────────────────────────────COMMENT
MEDIUMsrc/instruction-targets.ts527// ─── Planning file contents ────────────────────────────COMMENT
MEDIUMsrc/skill-content.ts10// ─── CLI-served skill content ────────────────────────────COMMENT
MEDIUMsrc/source.ts51// ─── Source repo management ──────────────────────────────COMMENT
MEDIUMsrc/source.ts381// ─── Commands ────────────────────────────────────────────COMMENT
MEDIUMsrc/source.ts744// ─── Pull sources ────────────────────────────────────────COMMENT
MEDIUMsrc/source.ts1141// ─── Helpers ─────────────────────────────────────────────COMMENT
MEDIUMsrc/git-exclude-delivered.ts153// ─── Every live checkout's list ───────────────────────────────COMMENT
MEDIUMsrc/git-exclude-delivered.ts284// ─── Sync ─────────────────────────────────────────────────────COMMENT
MEDIUMsrc/dashboard-collector.ts50// ─── Event collection data flow ─────────────────────────COMMENT
MEDIUMsrc/dashboard-collector.ts64// ─── STDIN parsing ──────────────────────────────────────COMMENT
MEDIUMsrc/dashboard-collector.ts76// ─── Transcript reading ─────────────────────────────────COMMENT
MEDIUMsrc/dashboard-collector.ts1157// ─── JSONL persistence ──────────────────────────────────COMMENT
MEDIUMsrc/dashboard-collector.ts1282// ─── Events file lock (#804) ────────────────────────────COMMENT
MEDIUMsrc/dashboard-collector.ts1282// ─── Events file lock (#804) ────────────────────────────COMMENT
MEDIUMsrc/dashboard-collector.ts1578// ─── Session state rebuild ──────────────────────────────COMMENT
MEDIUMsrc/dashboard-collector.ts2007// ─── JSONL compaction ───────────────────────────────────COMMENT
MEDIUMsrc/dashboard-collector.ts2337// ─── CLI entry point ────────────────────────────────────COMMENT
MEDIUMsrc/pid-monitor.ts6// ─── Process tree helpers ──────────────────────────────COMMENT
MEDIUMsrc/save-session.ts95 // ── Team push (opt-in) ─────────────────────────────────COMMENT
MEDIUMsrc/viz.ts32// ─── Public option / data types ──────────────────────────────────────────────COMMENT
MEDIUMsrc/viz.ts114// ─── Internal types ───────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/viz.ts147// ─── Path resolution ──────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/viz.ts264// ─── Vote aggregation ─────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/viz.ts315// ─── Index loading ────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/viz.ts372// ─── Aggregation helpers ──────────────────────────────────────────────────────COMMENT
MEDIUMsrc/viz.ts426// ─── Core build function ──────────────────────────────────────────────────────COMMENT
MEDIUMsrc/viz.ts502// ─── Service entry point ──────────────────────────────────────────────────────COMMENT
796 more matches not shown…
Hyper-Verbose Identifiers310 hits · 300 pts
SeverityFileLineSnippetContext
LOWsrc/codebase-freshness.ts293export async function annotateCodebaseSourceFreshness(CODE
LOWsrc/git-hook.ts373export function clearGitHookRepositoryEnv(env: NodeJS.ProcessEnv = process.env): void {CODE
LOWsrc/push.ts54export async function filterExistingTopLevelPaths(CODE
LOWsrc/push.ts184async function resolveActiveProjectNamespaces(localConfig: LocalConfig): Promise<ActiveProjectsResolution> {CODE
LOWsrc/push.ts313async function warnKeptCopiesTheTeamChanged(CODE
LOWsrc/push.ts551function reuseRecordedDestinations(groups: PushGroup[]): Set<ResourceItem> {CODE
LOWsrc/push.ts1107async function itemsChangedOnDefaultBranch(CODE
LOWsrc/update-policy.ts10export function resolveEffectiveUpdatePolicy(CODE
LOWsrc/mcp-git-exclude.ts56export function carriesLocalAgentCredential(entry: unknown): boolean {CODE
LOWsrc/mr-hint.ts279async function listGitHubMergedMRsViaREST(CODE
LOWsrc/instruction-targets.ts131export function deliversInstructionsByHook(tool: string, scope: Scope): boolean {CODE
LOWsrc/instruction-targets.ts154export async function nativeProjectInstructions(tool: string, projectRoot: string): Promise<string> {CODE
LOWsrc/instruction-targets.ts303export async function instructionHookChannelInstallable(tool: string): Promise<boolean> {CODE
LOWsrc/instruction-targets.ts323export async function instructionChannelProblems(teamConfig: TeamaiConfig, localConfig: LocalConfig): Promise<string[]> CODE
LOWsrc/instruction-targets.ts354export async function unreadableRulesFileMessage(tool: string, gate: { readonly file: string }): Promise<string> {CODE
LOWsrc/instruction-targets.ts368export async function resolveInstructionTargets(CODE
LOWsrc/instruction-targets.ts519async function recordOpencodeContextEntry(localConfig: LocalConfig, ref: { config: string; entry: string }, added: booleCODE
LOWsrc/instruction-targets.ts588export async function holdsOnlyInstructionBlocks(file: string): Promise<boolean> {CODE
LOWsrc/claude-hook-host.ts77function powershellProjectCopilotCopyCheck(event: string, matcher: string | undefined, command: string): string {CODE
LOWsrc/claude-hook-host.ts191export function claudeHookRunsInAnotherHost(tool: string, env: NodeJS.ProcessEnv = process.env, includeGlobalCopilot = tCODE
LOWsrc/skill-content.ts386async function collectSupplementaryFiles(skillDir: string): Promise<Array<{ relativePath: string; content: string }>> {CODE
LOWsrc/doctor.ts860function buildWorkspaceChildrenChecks(localConfig: LocalConfig): Check[] {CODE
LOWsrc/doctor.ts913async function buildTrackedHookIndexCheck(localConfig: LocalConfig): Promise<Check[]> {CODE
LOWsrc/transcript-parser.ts223function extractRecalledDocIdsFromComment(text: string, out: Set<string>): void {CODE
LOWsrc/transcript-parser.ts234function extractRecalledDocIdsFromValue(CODE
LOWsrc/source.ts193async function resolveSourcePhysicalPath(target: string): Promise<string> {CODE
LOWsrc/source.ts215async function resolveSourceCopyDestination(target: string): Promise<{ path: string; replacesSymlink: boolean }> {CODE
LOWsrc/source.ts1310async function assertSourceSkillRootIsNotSymlink(target: string): Promise<void> {CODE
LOWsrc/source.ts1320async function assertSourceDestinationsUnchanged(manifest: SourceInstallManifest, baseDir: string): Promise<void> {CODE
LOWsrc/source.ts1594export async function getSourcePushQuarantineNames(localConfig: LocalConfig): Promise<Set<string>> {CODE
LOWsrc/git-exclude-delivered.ts277export function describeUnreadableGitExcludeSetting(localConfig: LocalConfig): string {CODE
LOWsrc/git-exclude-delivered.ts364export async function reportDeliveredGitExclude(CODE
LOWsrc/dashboard-collector.ts433async function readLatestCopilotUsageFromTail(CODE
LOWsrc/dashboard-collector.ts480async function waitForCopilotShutdownUsage(CODE
LOWsrc/dashboard-collector.ts506async function findCopilotRunMarkerAfter(CODE
LOWsrc/dashboard-collector.ts620export function resolveCopilotUsageTranscript(CODE
LOWsrc/dashboard-collector.ts643async function readCodebuddyIndexPrompts(transcriptPath: string): Promise<number | null> {CODE
LOWsrc/dashboard-collector.ts1997export function aggregateSessionInterventions(CODE
LOWsrc/hermes-hooks.ts61export function foreignInstructionsPlugin(): string {CODE
LOWsrc/hermes-hooks.ts210async function removeHermesTeamHookEntry(event: string, command: string, home = toolHome('hermes')): Promise<boolean> {CODE
LOWsrc/init.ts214function warnAboutUncheckedHttpAgentIds(agentIds: string[]): void {CODE
LOWsrc/init.ts1100export function buildProjectScopeGitignore(): string {CODE
LOWsrc/init.ts1136export function migrateSelfModeGitignoreContent(content: string): { changed: boolean; content: string } {CODE
LOWsrc/projects.ts211export function resolveProjectResourceNamespaces(input: {CODE
LOWsrc/projects.ts249export async function resolveActiveLearningsNamespaces(CODE
LOWsrc/member-settings-report.ts47function describeMemberSettingLevel({ level, file, variable }: MemberSettingSource, scope: LocalConfig['scope']): { fromCODE
LOWsrc/manifest-schema.ts155export function assertSafeFallbackNamespaces(ids: string[], source: string): string[] {CODE
LOWsrc/manifest-schema.ts290export function assertNoCaseAliasedNamespaces(entries: Iterable<NamespaceEntry>, kind: string): void {CODE
LOWsrc/contribute.ts64export async function rebuildIndexAfterContribute(localConfig: LocalConfig): Promise<void> {CODE
LOWsrc/contribute.ts244async function relationWarningsForLearning(localConfig: LocalConfig, relPath: string, content: string): Promise<string[]CODE
LOWsrc/env-resolution.ts252export function effectiveTeamEnvVariables(teamEnv: TeamEnv): readonly ResolvedEntry<EnvVariable>[] {CODE
LOWsrc/teamai-only-files.ts71async function judgeInternalClaudeInstructions(teamConfig: TeamaiConfig, localConfig: LocalConfig): Promise<Array<{ fileCODE
LOWsrc/teamai-only-files.ts94export async function describeNoLongerTeamaiOnly(file: string, projectRoot: string): Promise<string> {CODE
LOWsrc/teamai-only-files.ts123async function opencodeInstructionEntries(CODE
LOWsrc/teamai-only-files.ts189async function judgeOpencodeInstructions(teamConfig: TeamaiConfig, localConfig: LocalConfig): Promise<{ file: string; teCODE
LOWsrc/workspace-children.ts171export async function deliveredLearningsNamespaces(config: LocalConfig): Promise<string[]> {CODE
LOWsrc/workspace-children.ts195export function formatProjectsManifestWarning(CODE
LOWsrc/workspace-children.ts228export async function safeDeliveredLearningsNamespaces(CODE
LOWsrc/workspace-children.ts278export function describeWorkspaceChildren(config: LocalConfig): string[] {CODE
LOWsrc/workspace-children.ts293export function summarizeWorkspaceChildren(config: LocalConfig): string | null {CODE
250 more matches not shown…
Over-Commented Block137 hits · 123 pts
SeverityFileLineSnippetContext
LOWexamples/ci/coding-ci-mr-extract.yaml1# TeamAI MR Knowledge Extract — Zhiyan / Coding CI (TGit)COMMENT
LOWexamples/ci/gitlab-ci-mr-extract.yml1# TeamAI MR Knowledge Extract — GitLab CI (self-hosted instances such asCOMMENT
LOWscripts/commands-reference.ts1import type { Command, Option } from 'commander';COMMENT
LOW.github/workflows/code-erosion.yml1name: Code ErosionCOMMENT
LOW.github/workflows/codex-review-on-assign.yml1name: Codex Review on AssignCOMMENT
LOW.github/workflows/codex-review-on-assign.yml21# authorized this PR — either the current assigner, or an existing assignee.COMMENT
LOW.github/workflows/codex-review-on-assign.yml241 const promptPath = path.join(process.env.RUNNER_TEMP, 'codex-review-prompt.txt');COMMENT
LOW.github/ast-grep-rules/ts-verbosity.yml1# TypeScript verbosity rules for the code-erosion CI layer.COMMENT
LOWsrc/push.ts761 // Create branch, commit, and push.COMMENT
LOWsrc/push.ts941 }COMMENT
LOWsrc/push.ts981 // Single-repo mode: knowledge PRs must run in an isolated worktree so theCOMMENT
LOWsrc/push.ts1001 // Self-heal an older .teamai/.gitignore that still ignores `env` (pre-beta.5).COMMENT
LOWsrc/push.ts1281 // - Unmerged (conflicted) files without MERGE_HEAD (incomplete merge)COMMENT
LOWsrc/push.ts1421 // Validate the refreshed checkout, not the stale local clone. A pull canCOMMENT
LOWsrc/push.ts1501 // each could only guess from the role alone, so stop here once for all ofCOMMENT
LOWsrc/push.ts1601 `Could not bring the team's latest rules and skills into this checkout before scanning (${preSyncFailure}). `COMMENT
LOWsrc/mr-hint.ts1import { spawnSync } from 'node:child_process';COMMENT
LOWsrc/skill-content.ts1import fs from 'node:fs';COMMENT
LOWsrc/migrate.ts201 // adopting (renaming) it FIRST is what keeps the "partition already built"COMMENT
LOWsrc/hooks-cmd.ts161 // Read-only: the load never persists a migration (#893).COMMENT
LOWsrc/hooks-cmd.ts181 // it — the same rule the write path applies. Qoder CN shares Qoder's projectCOMMENT
LOWsrc/transcript-parser.ts61 const readerToolUseIds = new Set<string>();COMMENT
LOWsrc/dashboard-collector.ts41import { getUserHome } from './utils/home.js';COMMENT
LOWsrc/dashboard-collector.ts981 // Decide "correction" here, over the full prompt, because only the hook knowsCOMMENT
LOWsrc/init.ts1581 // self-heal bootstrap — the core of "clone = initialized".COMMENT
LOWsrc/codebase-extract.ts1001COMMENT
LOWsrc/manifest-schema.ts21// is a name no admin typed on purpose, and it renders as something other thanCOMMENT
LOWsrc/default-workflows.ts1import { createHash } from 'node:crypto';COMMENT
LOWsrc/votes-judge.ts1// -*- coding: utf-8 -*-COMMENT
LOWsrc/stats.ts241 // Dashboard metrics follow the same scope rules `pull` reports with, so whatCOMMENT
LOWsrc/omp-hooks.ts181 // hook-dispatch's handlers read. No matcher pass: OMP's tool ids areCOMMENT
LOWsrc/uninstall.ts1501 }COMMENT
LOWsrc/uninstall.ts2841 }COMMENT
LOWsrc/hook-dispatch-cli.ts241 }COMMENT
LOWsrc/hook-dispatch-cli.ts461 const { recordedHookCwd } = await import('./dashboard-collector.js');COMMENT
LOWsrc/builtin-skills.ts21import type { DeliveryRecorder } from './git-exclude-delivered.js';COMMENT
LOWsrc/hook-handlers.ts601 // resolve to the same session file. This cross-process handoff relies onCOMMENT
LOWsrc/hook-handlers.ts661 // returned, within 24 h after the run: the reducer joins the recall log'sCOMMENT
LOWsrc/hook-handlers.ts1281 { event: 'session-end', matcher: '*', handler: dashboardReportHandler, timeoutMs: FOREGROUND_HOOK_TIMEOUT_MS, backgrCOMMENT
LOWsrc/hook-handlers.ts1301 { event: 'stop', matcher: '*', handler: dashboardReportHandler, timeoutMs: FOREGROUND_HOOK_TIMEOUT_MS, background: tCOMMENT
LOWsrc/dashboard.ts21import { HttpError, isLocalWrite, readJsonBody } from './dashboard/http.js';COMMENT
LOWsrc/dashboard.ts121 // fs.watch on macOS (FSEvents) falls behind on a busy disk: an append wentCOMMENT
LOWsrc/graph-aggregate.ts41 // Once merged, that tag travels with the node/edge forever —COMMENT
LOWsrc/graph-aggregate.ts61 // identity as one already pushed here in an earlierCOMMENT
LOWsrc/graph-aggregate.ts221 // withheld would also discard a DIFFERENT, fully-allowed pair thatCOMMENT
LOWsrc/graph-aggregate.ts261 const raw = JSON.parse(await fs.readFile(graphPath, 'utf8'));COMMENT
LOWsrc/graph-aggregate.ts321 // A slug both sets claim needs its global metadata restored to theCOMMENT
LOWsrc/coauthor-reconcile.ts21// ─── Co-author reconcile engine ──────────────────────────────COMMENT
LOWsrc/coauthor-reconcile.ts41//COMMENT
LOWsrc/usage-tracker.ts41// ─── Data flow ─────────────────────────────────────────COMMENT
LOWsrc/types.ts361 teamConfig: { sharing?: { autoCompact?: { tokens?: number } } },COMMENT
LOWsrc/types.ts501 // the home and in a project. In user scope it reads no rules directory:COMMENT
LOWsrc/types.ts541 // Kiro: skills, steering (rules), and custom agents sync to .kiro/. Kiro CLICOMMENT
LOWsrc/types.ts561 // userScope.rules carries that name. User-level MCP has noCOMMENT
LOWsrc/types.ts681 // Muse Code (Meta, binary `muse`) keeps its user config in ~/.config/museCOMMENT
LOWsrc/types.ts1381COMMENT
LOWsrc/types.ts1961 /** Total corrections (re-prompt after stop) across all sessions. */COMMENT
LOWsrc/types.ts2241/** Sessions idle for this long (ms) are removed from the dashboard */COMMENT
LOWsrc/types.ts2301 }COMMENT
LOWsrc/types.ts2441export const CONTRIBUTE_LOW_QUALITY_BONUS = 10;COMMENT
77 more matches not shown…
Structural Annotation Overuse66 hits · 105 pts
SeverityFileLineSnippetContext
LOWskill-data/wiki/references/agents/graph-rag-agent.md22### Step 1: Relationship extractionCOMMENT
LOWskill-data/wiki/references/agents/graph-rag-agent.md55### Step 2: Generate graph documents one by oneCOMMENT
LOWskill-data/wiki/references/agents/graph-rag-agent.md265### Step 3: Generate the graph directory READMECOMMENT
LOWskill-data/wiki/references/agents/graph-rag-agent.md297### Step 4: Return summaryCOMMENT
LOW⚡skill-data/wiki/references/agents/kb-doc-generator.md27### Step 0: Load the methodologyCOMMENT
LOW⚡skill-data/wiki/references/agents/kb-doc-generator.md31### Step 1: Checkpoint checkCOMMENT
LOW⚡skill-data/wiki/references/agents/kb-doc-generator.md37### Step 2: Dispatch strategy decisionCOMMENT
LOWskill-data/wiki/references/agents/kb-doc-generator.md238### Step 3: Self-check (accuracy verification + interface reconciliation)COMMENT
LOWskill-data/wiki/references/agents/kb-doc-generator.md281### Step 4: Return summaryCOMMENT
LOWskill-data/wiki/references/phases/k3-ai-native.md5### Step 1: Inject AI-Native elementsCOMMENT
LOWskill-data/wiki/references/phases/k3-ai-native.md17### Step 2: Graph RAG graph document setCOMMENT
LOWskill-data/wiki/references/phases/k3-ai-native.md46### Step 3: Cross-document consistency checkCOMMENT
LOW⚡…-data/wiki/references/phases/k1-reverse-engineering.md5### Step 1: Optionally run the scan script (recommended)COMMENT
LOW⚡…-data/wiki/references/phases/k1-reverse-engineering.md12### Step 2: Key file extractionCOMMENT
LOW⚡…-data/wiki/references/phases/k1-reverse-engineering.md19### Step 3: Architecture reverse-engineering (see phase1-reverse-engineering.md for details)COMMENT
LOW⚡…-data/wiki/references/phases/k1-reverse-engineering.md25### Step 4: Generate the architecture analysis reportCOMMENT
LOW…-data/wiki/references/phases/k1-reverse-engineering.md56### Step 5: Interface inventory scan (run separately per check type)COMMENT
LOWskill-data/wiki/references/phases/k4-quality.md5### Step 1: Automated validationCOMMENT
LOWskill-data/wiki/references/phases/k4-quality.md22### Step 2: Accuracy auditCOMMENT
LOW⚡skill-data/wiki/references/phases/k4-quality.md45### Step 3: RAG retrieval spot checkCOMMENT
LOW⚡skill-data/wiki/references/phases/k4-quality.md49### Step 4: AI end-to-end validation (E2E Validation)COMMENT
LOWskill-data/wiki/references/phases/k4-quality.md138### Step 5: Generate the quality reportCOMMENT
LOW⚡src/init.ts936 // Step 5: inject hooks (built-in dispatch incl. the reporter) via the sameCOMMENT
LOW⚡src/init.ts942 // Step 6: also initialize local-agent config so the new hook-dispatch --stdinCOMMENT
LOWsrc/init.ts778 // Step 0: scope (same rules as git init — default project)COMMENT
LOWsrc/init.ts826 // Step 1: API key. Persist --token when given (one command sets endpoint+key),COMMENT
LOWsrc/init.ts838 // Step 2: write a minimal local teamai.yaml stub (default toolPaths) to driveCOMMENT
LOWsrc/init.ts853 // Step 4: save local config (kind: http; only the URL is stored, never the key)COMMENT
LOWsrc/init.ts1346 // Step 0: single-repo mode is always project scope, rooted at the business repo.COMMENT
LOWsrc/init.ts1401 // Step 1: derive provider + remote from the business repo's origin.COMMENT
LOWsrc/init.ts1430 // Step 2: authenticate (needed to push reports + open knowledge PRs).COMMENT
LOWsrc/init.ts1443 // Step 3: build the .teamai/ knowledge skeleton on the active tree (committed to main).COMMENT
LOWsrc/init.ts1495 // Step 4: assemble local config (kind: self). dataHome points at the partitionCOMMENT
LOWsrc/init.ts1548 // Step 5: write local config (into the partition via dataHome) + single-repoCOMMENT
LOWsrc/init.ts1644 // Step 6: register member on the reports orphan branch (never touches main / active tree).COMMENT
LOWsrc/init.ts1795 // Step 0: Resolve scope (default project; only explicit --scope user → ~/ )COMMENT
LOWsrc/init.ts1853 // Step 1: Get repo input (positional or --repo alias; prompt if neither)COMMENT
LOWsrc/init.ts1893 // Step 2: Ensure provider tools are installed and authenticateCOMMENT
LOWsrc/init.ts1927 // Step 3: Clone or link repoCOMMENT
LOWsrc/init.ts2201 // Step 4: Load team configCOMMENT
LOWsrc/init.ts2314 // Step 5: member roster on the teamai-reports orphan branch (never theCOMMENT
LOWsrc/init.ts2440 // Step 6: Save local configCOMMENT
LOWsrc/init.ts2547 // Step 7: Inject built-in + team hooks into AI toolsCOMMENT
LOWsrc/enrich-with-ai.ts210 // Step 1: AI enrichment per module (parallel)COMMENT
LOWsrc/enrich-with-ai.ts234 // Step 2: Repo-level domain classification (single call)COMMENT
LOWsrc/enrich-with-ai.ts260 // Step 3: Build manifest V2COMMENT
LOW⚡src/pull.ts2654 // Step 5: Auto-report usage data — handled centrally in pull() to avoidCOMMENT
LOW⚡src/pull.ts2658 // Step 6: Show skill recommendations, among the skills Step 2 deliversCOMMENT
LOWsrc/pull.ts1483 // Step 1: refresh team repo (git pull, or HTTP /repo materialization)COMMENT
LOWsrc/pull.ts2043 // Step 2: Sync each resource typeCOMMENT
LOWsrc/pull.ts2331 // Step 3: Clean up tombstoned resourcesCOMMENT
LOWsrc/pull.ts2474 // Step 4: Deploy CLI built-in skillsCOMMENT
LOW⚡src/__tests__/distilly-roundtrip.test.ts35 // Step 1: the exact deploy call pullSingleSource() makes.COMMENT
LOW⚡src/__tests__/distilly-roundtrip.test.ts38 // Step 2: the exact validation call the push path makes on skills.COMMENT
LOW⚡src/__tests__/pull-tombstone.test.ts739 // Step 1: Pull as hai role — should get common + hai skillsCOMMENT
LOW⚡src/__tests__/pull-tombstone.test.ts746 // Step 2: Switch to pm role (simulate what `roles set pm` does)COMMENT
LOWsrc/__tests__/pull-tombstone.test.ts758 // Step 3: Pull as pm role — should get common + pm, remove hai-onlyCOMMENT
LOW⚡src/__tests__/e2e/e2e.test.ts649 // Step 1: Uninstall everythingCOMMENT
LOW⚡src/__tests__/e2e/e2e.test.ts654 // Step 2: Verify cleanup — config.yaml should not existCOMMENT
LOW⚡src/__tests__/e2e/e2e.test.ts658 // Step 3: Restore for subsequent tests (uninstall removed the clone)COMMENT
6 more matches not shown…
Cross-Language Confusion (JS/TS)14 hits · 88 pts
SeverityFileLineSnippetContext
HIGHsrc/resources/env-loader.ts69 elif __teamai_env_global_attrs; then declare -g +i +l +u "$1"CODE
HIGHsrc/resources/env-loader.ts635 elif __teamai_env_in_git "$1"; thenCODE
HIGHsrc/resources/env-loader.ts667 elif [ "$__teamai_k" = "$__teamai_kind" ] && [ "$__teamai_p" = "$__teamai_key" ]; thenCODE
HIGH⚡src/resources/env-loader.ts771 elif [ -n "$__teamai_prompt_clean" ]; then __teamai_prompts+=("$__teamai_prompt_clean"); fiCODE
HIGH⚡src/resources/env-loader.ts778 elif [ -n "$__teamai_prompt_clean" ]; thenCODE
HIGH⚡src/resources/env-loader.ts780 elif [ "\${PROMPT_COMMAND-}" = '__teamai_env_prompt "$?" "\${PIPESTATUS[@]}"' ] && [ "\${__TEAMAI_ENV_PROMPT_COMMACODE
HIGH⚡src/resources/env-loader.ts787 elif [ -n "\${ZSH_VERSION-}" ]; thenCODE
HIGHsrc/resources/env-loader.ts832 elif [ -z "$__teamai_prompt_pipeline" ]; thenCODE
HIGHsrc/resources/env-loader.ts854 elif [ -n "\${BASH_VERSION-}" ]; thenCODE
HIGH⚡src/resources/env-loader.ts894 elif [ -n "\${ZSH_VERSION-}" ]; then typeset -g +x "$1"CODE
HIGH⚡src/resources/env-loader.ts898 elif [ -n "\${ZSH_VERSION-}" ]; then typeset -g "-$__teamai_attrs" "$1"CODE
HIGH⚡src/resources/env-loader.ts899 elif __teamai_env_global_attrs; then declare -g "-$__teamai_attrs" "$1"; fiCODE
HIGHsrc/resources/env-loader.ts1081 elif [ -f "$__teamai_env_scopes" ] && [ -r "$__teamai_env_scopes" ]; thenCODE
HIGHsrc/resources/env-loader.ts1083 elif [ -e "$__teamai_env_scopes" ]; thenCODE
Verbosity Indicators44 hits · 67 pts
SeverityFileLineSnippetContext
LOW⚡src/init.ts936 // Step 5: inject hooks (built-in dispatch incl. the reporter) via the sameCOMMENT
LOW⚡src/init.ts942 // Step 6: also initialize local-agent config so the new hook-dispatch --stdinCOMMENT
LOWsrc/init.ts778 // Step 0: scope (same rules as git init — default project)COMMENT
LOWsrc/init.ts826 // Step 1: API key. Persist --token when given (one command sets endpoint+key),COMMENT
LOWsrc/init.ts838 // Step 2: write a minimal local teamai.yaml stub (default toolPaths) to driveCOMMENT
LOWsrc/init.ts853 // Step 4: save local config (kind: http; only the URL is stored, never the key)COMMENT
LOWsrc/init.ts1346 // Step 0: single-repo mode is always project scope, rooted at the business repo.COMMENT
LOWsrc/init.ts1401 // Step 1: derive provider + remote from the business repo's origin.COMMENT
LOWsrc/init.ts1430 // Step 2: authenticate (needed to push reports + open knowledge PRs).COMMENT
LOWsrc/init.ts1443 // Step 3: build the .teamai/ knowledge skeleton on the active tree (committed to main).COMMENT
LOWsrc/init.ts1495 // Step 4: assemble local config (kind: self). dataHome points at the partitionCOMMENT
LOWsrc/init.ts1548 // Step 5: write local config (into the partition via dataHome) + single-repoCOMMENT
LOWsrc/init.ts1644 // Step 6: register member on the reports orphan branch (never touches main / active tree).COMMENT
LOWsrc/init.ts1795 // Step 0: Resolve scope (default project; only explicit --scope user → ~/ )COMMENT
LOWsrc/init.ts1853 // Step 1: Get repo input (positional or --repo alias; prompt if neither)COMMENT
LOWsrc/init.ts1893 // Step 2: Ensure provider tools are installed and authenticateCOMMENT
LOWsrc/init.ts1927 // Step 3: Clone or link repoCOMMENT
LOWsrc/init.ts2201 // Step 4: Load team configCOMMENT
LOWsrc/init.ts2314 // Step 5: member roster on the teamai-reports orphan branch (never theCOMMENT
LOWsrc/init.ts2440 // Step 6: Save local configCOMMENT
LOWsrc/init.ts2547 // Step 7: Inject built-in + team hooks into AI toolsCOMMENT
LOWsrc/enrich-with-ai.ts210 // Step 1: AI enrichment per module (parallel)COMMENT
LOWsrc/enrich-with-ai.ts234 // Step 2: Repo-level domain classification (single call)COMMENT
LOWsrc/enrich-with-ai.ts260 // Step 3: Build manifest V2COMMENT
LOW⚡src/pull.ts2654 // Step 5: Auto-report usage data — handled centrally in pull() to avoidCOMMENT
LOW⚡src/pull.ts2658 // Step 6: Show skill recommendations, among the skills Step 2 deliversCOMMENT
LOWsrc/pull.ts1483 // Step 1: refresh team repo (git pull, or HTTP /repo materialization)COMMENT
LOWsrc/pull.ts2043 // Step 2: Sync each resource typeCOMMENT
LOWsrc/pull.ts2331 // Step 3: Clean up tombstoned resourcesCOMMENT
LOWsrc/pull.ts2474 // Step 4: Deploy CLI built-in skillsCOMMENT
LOW⚡src/__tests__/distilly-roundtrip.test.ts35 // Step 1: the exact deploy call pullSingleSource() makes.COMMENT
LOW⚡src/__tests__/distilly-roundtrip.test.ts38 // Step 2: the exact validation call the push path makes on skills.COMMENT
LOW⚡src/__tests__/pull-tombstone.test.ts739 // Step 1: Pull as hai role — should get common + hai skillsCOMMENT
LOW⚡src/__tests__/pull-tombstone.test.ts746 // Step 2: Switch to pm role (simulate what `roles set pm` does)COMMENT
LOWsrc/__tests__/pull-tombstone.test.ts758 // Step 3: Pull as pm role — should get common + pm, remove hai-onlyCOMMENT
LOW⚡src/__tests__/e2e/e2e.test.ts649 // Step 1: Uninstall everythingCOMMENT
LOW⚡src/__tests__/e2e/e2e.test.ts654 // Step 2: Verify cleanup — config.yaml should not existCOMMENT
LOW⚡src/__tests__/e2e/e2e.test.ts658 // Step 3: Restore for subsequent tests (uninstall removed the clone)COMMENT
LOW⚡src/__tests__/e2e/e2e.test.ts671 // Step 1: Check if the test repo has a roles manifestCOMMENT
LOW⚡src/__tests__/e2e/e2e.test.ts678 // Step 2: Parse available role ids from the outputCOMMENT
LOW⚡src/__tests__/e2e/e2e.test.ts706 // Step 4: Switch to role B and pullCOMMENT
LOW⚡src/__tests__/e2e/e2e.test.ts715 // Step 5: Verify skill count changed (different roles → different skill sets)COMMENT
LOW⚡src/__tests__/e2e/e2e.test.ts721 // Step 6: Restore to role A for subsequent testsCOMMENT
LOWsrc/__tests__/e2e/e2e.test.ts693 // Step 3: Set role A and pullCOMMENT
Modern AI Meta-Vocabulary12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUM…a/wiki/references/methodology/phase2-document-types.md213## Type-9: Graph Document Set (Graph RAG)COMMENT
MEDIUM…ill-data/wiki/references/methodology/phase4-quality.md27## RAG Retrieval Test CasesCOMMENT
MEDIUM…ill-data/wiki/references/methodology/phase4-quality.md164### Phase 3b Checklist: Graph Document Set (Graph RAG)COMMENT
MEDIUM…a/wiki/references/methodology/phase3-ai-enhancement.md114# Graph Document Set (Graph RAG)COMMENT
MEDIUMskill-data/wiki/references/agents/graph-rag-agent.md1# Graph RAG AgentCOMMENT
MEDIUMskill-data/wiki/references/agents/graph-rag-agent.md269# {project_name} Graph Document Set (Graph RAG)COMMENT
MEDIUM…ill-data/wiki/references/templates/project-overview.md123### Graph document set (Graph RAG)COMMENT
MEDIUMskill-data/wiki/references/phases/k3-ai-native.md17### Step 2: Graph RAG graph document setCOMMENT
MEDIUM⚡skill-data/wiki/references/phases/k4-quality.md45### Step 3: RAG retrieval spot checkCOMMENT
MEDIUMskill-data/wiki/references/phases/k4-quality.md167## RAG Retrieval Spot CheckCOMMENT
MEDIUMsrc/__tests__/copilot-adapter.test.ts191 await fse.writeFile(expectedPath(), native.replace('# Guardrails', '# Updated guardrails'));CODE
MEDIUMsrc/__tests__/copilot-adapter.test.ts201 expect(pushed).toContain('# Updated guardrails');CODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALsrc/init.ts122 const kind = LocalConfigSchema.shape.repo.shape.kind.safeParse((entries.repo as { kind?: unknown }).kind);CODE
CRITICALsrc/__tests__/reports-branch-readonly.test.ts136 const orphanAdds = mocks.repoGit.raw.mock.calls.filter(([args]) => (args as string[]).includes('--orphan'));CODE
Fake / Example Data6 hits · 8 pts
SeverityFileLineSnippetContext
LOWsrc/__tests__/generic-git-provider.test.ts160 expect(normalizeGitIdentity('Jane Doe')).toBe('Jane-Doe');CODE
LOWsrc/__tests__/iwiki-review-apply.test.ts108 token: 'fake-token',CODE
LOWsrc/__tests__/iwiki-review-apply.test.ts135 token: 'fake-token',CODE
LOW⚡src/__tests__/gh-org.test.ts17 getGitHubToken: vi.fn().mockReturnValue('fake-token-xyz'),CODE
LOW⚡src/__tests__/gh-org.test.ts46 vi.mocked(getGitHubToken).mockReturnValue('fake-token-xyz');CODE
LOW⚡src/__tests__/gh-org.test.ts50 vi.mocked(getGitHubToken).mockReturnValue('fake-token-xyz');CODE
Excessive Try-Catch Wrapping2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMskill-data/wiki/scripts/scan_repo.py214 print(f"Error: {repo_path} is not a valid directory", file=sys.stderr)CODE
MEDIUMskill-data/wiki/scripts/validate_kb.py139 print(f"Error: {kb_dir} is not a valid directory", file=sys.stderr)CODE
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWskill-data/wiki/scripts/scan_repo.py93CODE
LOWskill-data/wiki/scripts/scan_repo.py143CODE
LOWskill-data/wiki/scripts/validate_kb.py131CODE
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWskill-data/wiki/scripts/validate_kb.py22CODE
LOW.github/scripts/erosion-summary.py13CODE