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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 572 finding(s).
Are imports declared and package/API names verified? 24 finding(s).
Are wrappers, guards, and repeated structures necessary? 1168 finding(s).
Which changes need focused human review? 1454 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/ci/coding-ci-mr-extract.yaml | 31 | # ── Secrets and environment variables ────────────────────────── | COMMENT |
| MEDIUM | examples/ci/coding-ci-mr-extract.yaml | 44 | # ── Pipeline stages ──────────────────────────────────────────── | COMMENT |
| MEDIUM | examples/ci/gitlab-ci-mr-extract.yml | 30 | # ── MR created/updated: extract knowledge and post it as a comment ────────── | COMMENT |
| MEDIUM | examples/ci/gitlab-ci-mr-extract.yml | 52 | # ── MR landed on the default branch: write knowledge to the team repo ─────── | COMMENT |
| MEDIUM | scripts/tool-support.ts | 9 | // ─── Generated support page ────────────────────────────── | COMMENT |
| MEDIUM | scripts/commands-reference.ts | 3 | // ─── Generated command reference ───────────────────────── | COMMENT |
| MEDIUM | src/git-hook.ts | 377 | // ─── Recorded failures ───────────────────────────────── | COMMENT |
| MEDIUM | src/push.ts | 1790 | // ── Handle --skill parameter: filter to a single specific skill ────── | COMMENT |
| MEDIUM | src/push.ts | 1930 | // ── Step 0: Cross-check against still-open push PRs ──────────────── | COMMENT |
| MEDIUM | src/push.ts | 2150 | // ── Step 1: Display ALL scanned items with numbers ───────────────── | COMMENT |
| MEDIUM | src/push.ts | 2185 | // ── Step 2: Dry run resolves placement, then exits ────────────── | COMMENT |
| MEDIUM | src/push.ts | 2203 | // ── Step 3: Item selection (replaces old Y/n confirmation) ───────── | COMMENT |
| MEDIUM | src/push.ts | 2220 | // ── Step 3b: Split the selection into per-PR groups ──────────────── | COMMENT |
| MEDIUM | src/push.ts | 2242 | // ── Step 5: Push each group — one branch/PR per group ────────────── | COMMENT |
| MEDIUM | src/clone.ts | 14 | // ─── Types ────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/clone.ts | 36 | // ─── Helpers ──────────────────────────────────────────── | COMMENT |
| MEDIUM | src/clone.ts | 233 | // ─── Public API ───────────────────────────────────────── | COMMENT |
| MEDIUM | src/mcp-git-exclude.ts | 17 | // ─── Project MCP configs and git ───────────────────────────── | COMMENT |
| MEDIUM | src/status.ts | 329 | // ── Repo section ──────────────────────────────────── | COMMENT |
| MEDIUM | src/status.ts | 336 | // ── Local agent section (skills only) ─────────────── | COMMENT |
| MEDIUM | src/mr-hint.ts | 10 | // ─── MR Hint data flow ────────────────────────────────── | COMMENT |
| MEDIUM | src/mr-hint.ts | 36 | // ─── Types ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/mr-hint.ts | 58 | // ─── Cache helpers ─────────────────────────────────────── | COMMENT |
| MEDIUM | src/mr-hint.ts | 115 | // ─── Git remote detection ──────────────────────────────── | COMMENT |
| MEDIUM | src/mr-hint.ts | 139 | // ─── Remote URL parsing ────────────────────────────────── | COMMENT |
| MEDIUM | src/mr-hint.ts | 189 | // ─── MR listing ───────────────────────────────────────── | COMMENT |
| MEDIUM | src/mr-hint.ts | 327 | // ── Primary: gh CLI ────────────────────────────────────── | COMMENT |
| MEDIUM | src/mr-hint.ts | 357 | // ── Fallback: GitHub REST API ──────────────────────────── | COMMENT |
| MEDIUM | src/mr-hint.ts | 361 | // ─── Hint message builder ──────────────────────────────── | COMMENT |
| MEDIUM | src/mr-hint.ts | 409 | // ─── Main entry point ──────────────────────────────────── | COMMENT |
| MEDIUM | src/cache-cmd.ts | 7 | // ─── Types ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/cache-cmd.ts | 18 | // ─── Helpers ──────────────────────────────────────────── | COMMENT |
| MEDIUM | src/cache-cmd.ts | 57 | // ─── Command ────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/instruction-targets.ts | 527 | // ─── Planning file contents ──────────────────────────── | COMMENT |
| MEDIUM | src/skill-content.ts | 10 | // ─── CLI-served skill content ──────────────────────────── | COMMENT |
| MEDIUM | src/source.ts | 51 | // ─── Source repo management ────────────────────────────── | COMMENT |
| MEDIUM | src/source.ts | 381 | // ─── Commands ──────────────────────────────────────────── | COMMENT |
| MEDIUM | src/source.ts | 744 | // ─── Pull sources ──────────────────────────────────────── | COMMENT |
| MEDIUM | src/source.ts | 1141 | // ─── Helpers ───────────────────────────────────────────── | COMMENT |
| MEDIUM | src/git-exclude-delivered.ts | 153 | // ─── Every live checkout's list ─────────────────────────────── | COMMENT |
| MEDIUM | src/git-exclude-delivered.ts | 284 | // ─── Sync ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/dashboard-collector.ts | 50 | // ─── Event collection data flow ───────────────────────── | COMMENT |
| MEDIUM | src/dashboard-collector.ts | 64 | // ─── STDIN parsing ────────────────────────────────────── | COMMENT |
| MEDIUM | src/dashboard-collector.ts | 76 | // ─── Transcript reading ───────────────────────────────── | COMMENT |
| MEDIUM | src/dashboard-collector.ts | 1157 | // ─── JSONL persistence ────────────────────────────────── | COMMENT |
| MEDIUM | src/dashboard-collector.ts | 1282 | // ─── Events file lock (#804) ──────────────────────────── | COMMENT |
| MEDIUM | src/dashboard-collector.ts | 1282 | // ─── Events file lock (#804) ──────────────────────────── | COMMENT |
| MEDIUM | src/dashboard-collector.ts | 1578 | // ─── Session state rebuild ────────────────────────────── | COMMENT |
| MEDIUM | src/dashboard-collector.ts | 2007 | // ─── JSONL compaction ─────────────────────────────────── | COMMENT |
| MEDIUM | src/dashboard-collector.ts | 2337 | // ─── CLI entry point ──────────────────────────────────── | COMMENT |
| MEDIUM | src/pid-monitor.ts | 6 | // ─── Process tree helpers ────────────────────────────── | COMMENT |
| MEDIUM | src/save-session.ts | 95 | // ── Team push (opt-in) ───────────────────────────────── | COMMENT |
| MEDIUM | src/viz.ts | 32 | // ─── Public option / data types ────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/viz.ts | 114 | // ─── Internal types ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/viz.ts | 147 | // ─── Path resolution ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/viz.ts | 264 | // ─── Vote aggregation ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/viz.ts | 315 | // ─── Index loading ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/viz.ts | 372 | // ─── Aggregation helpers ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/viz.ts | 426 | // ─── Core build function ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/viz.ts | 502 | // ─── Service entry point ────────────────────────────────────────────────────── | COMMENT |
| 796 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/codebase-freshness.ts | 293 | export async function annotateCodebaseSourceFreshness( | CODE |
| LOW | src/git-hook.ts | 373 | export function clearGitHookRepositoryEnv(env: NodeJS.ProcessEnv = process.env): void { | CODE |
| LOW | src/push.ts | 54 | export async function filterExistingTopLevelPaths( | CODE |
| LOW | src/push.ts | 184 | async function resolveActiveProjectNamespaces(localConfig: LocalConfig): Promise<ActiveProjectsResolution> { | CODE |
| LOW | src/push.ts | 313 | async function warnKeptCopiesTheTeamChanged( | CODE |
| LOW | src/push.ts | 551 | function reuseRecordedDestinations(groups: PushGroup[]): Set<ResourceItem> { | CODE |
| LOW | src/push.ts | 1107 | async function itemsChangedOnDefaultBranch( | CODE |
| LOW | src/update-policy.ts | 10 | export function resolveEffectiveUpdatePolicy( | CODE |
| LOW | src/mcp-git-exclude.ts | 56 | export function carriesLocalAgentCredential(entry: unknown): boolean { | CODE |
| LOW | src/mr-hint.ts | 279 | async function listGitHubMergedMRsViaREST( | CODE |
| LOW | src/instruction-targets.ts | 131 | export function deliversInstructionsByHook(tool: string, scope: Scope): boolean { | CODE |
| LOW | src/instruction-targets.ts | 154 | export async function nativeProjectInstructions(tool: string, projectRoot: string): Promise<string> { | CODE |
| LOW | src/instruction-targets.ts | 303 | export async function instructionHookChannelInstallable(tool: string): Promise<boolean> { | CODE |
| LOW | src/instruction-targets.ts | 323 | export async function instructionChannelProblems(teamConfig: TeamaiConfig, localConfig: LocalConfig): Promise<string[]> | CODE |
| LOW | src/instruction-targets.ts | 354 | export async function unreadableRulesFileMessage(tool: string, gate: { readonly file: string }): Promise<string> { | CODE |
| LOW | src/instruction-targets.ts | 368 | export async function resolveInstructionTargets( | CODE |
| LOW | src/instruction-targets.ts | 519 | async function recordOpencodeContextEntry(localConfig: LocalConfig, ref: { config: string; entry: string }, added: boole | CODE |
| LOW | src/instruction-targets.ts | 588 | export async function holdsOnlyInstructionBlocks(file: string): Promise<boolean> { | CODE |
| LOW | src/claude-hook-host.ts | 77 | function powershellProjectCopilotCopyCheck(event: string, matcher: string | undefined, command: string): string { | CODE |
| LOW | src/claude-hook-host.ts | 191 | export function claudeHookRunsInAnotherHost(tool: string, env: NodeJS.ProcessEnv = process.env, includeGlobalCopilot = t | CODE |
| LOW | src/skill-content.ts | 386 | async function collectSupplementaryFiles(skillDir: string): Promise<Array<{ relativePath: string; content: string }>> { | CODE |
| LOW | src/doctor.ts | 860 | function buildWorkspaceChildrenChecks(localConfig: LocalConfig): Check[] { | CODE |
| LOW | src/doctor.ts | 913 | async function buildTrackedHookIndexCheck(localConfig: LocalConfig): Promise<Check[]> { | CODE |
| LOW | src/transcript-parser.ts | 223 | function extractRecalledDocIdsFromComment(text: string, out: Set<string>): void { | CODE |
| LOW | src/transcript-parser.ts | 234 | function extractRecalledDocIdsFromValue( | CODE |
| LOW | src/source.ts | 193 | async function resolveSourcePhysicalPath(target: string): Promise<string> { | CODE |
| LOW | src/source.ts | 215 | async function resolveSourceCopyDestination(target: string): Promise<{ path: string; replacesSymlink: boolean }> { | CODE |
| LOW | src/source.ts | 1310 | async function assertSourceSkillRootIsNotSymlink(target: string): Promise<void> { | CODE |
| LOW | src/source.ts | 1320 | async function assertSourceDestinationsUnchanged(manifest: SourceInstallManifest, baseDir: string): Promise<void> { | CODE |
| LOW | src/source.ts | 1594 | export async function getSourcePushQuarantineNames(localConfig: LocalConfig): Promise<Set<string>> { | CODE |
| LOW | src/git-exclude-delivered.ts | 277 | export function describeUnreadableGitExcludeSetting(localConfig: LocalConfig): string { | CODE |
| LOW | src/git-exclude-delivered.ts | 364 | export async function reportDeliveredGitExclude( | CODE |
| LOW | src/dashboard-collector.ts | 433 | async function readLatestCopilotUsageFromTail( | CODE |
| LOW | src/dashboard-collector.ts | 480 | async function waitForCopilotShutdownUsage( | CODE |
| LOW | src/dashboard-collector.ts | 506 | async function findCopilotRunMarkerAfter( | CODE |
| LOW | src/dashboard-collector.ts | 620 | export function resolveCopilotUsageTranscript( | CODE |
| LOW | src/dashboard-collector.ts | 643 | async function readCodebuddyIndexPrompts(transcriptPath: string): Promise<number | null> { | CODE |
| LOW | src/dashboard-collector.ts | 1997 | export function aggregateSessionInterventions( | CODE |
| LOW | src/hermes-hooks.ts | 61 | export function foreignInstructionsPlugin(): string { | CODE |
| LOW | src/hermes-hooks.ts | 210 | async function removeHermesTeamHookEntry(event: string, command: string, home = toolHome('hermes')): Promise<boolean> { | CODE |
| LOW | src/init.ts | 214 | function warnAboutUncheckedHttpAgentIds(agentIds: string[]): void { | CODE |
| LOW | src/init.ts | 1100 | export function buildProjectScopeGitignore(): string { | CODE |
| LOW | src/init.ts | 1136 | export function migrateSelfModeGitignoreContent(content: string): { changed: boolean; content: string } { | CODE |
| LOW | src/projects.ts | 211 | export function resolveProjectResourceNamespaces(input: { | CODE |
| LOW | src/projects.ts | 249 | export async function resolveActiveLearningsNamespaces( | CODE |
| LOW | src/member-settings-report.ts | 47 | function describeMemberSettingLevel({ level, file, variable }: MemberSettingSource, scope: LocalConfig['scope']): { from | CODE |
| LOW | src/manifest-schema.ts | 155 | export function assertSafeFallbackNamespaces(ids: string[], source: string): string[] { | CODE |
| LOW | src/manifest-schema.ts | 290 | export function assertNoCaseAliasedNamespaces(entries: Iterable<NamespaceEntry>, kind: string): void { | CODE |
| LOW | src/contribute.ts | 64 | export async function rebuildIndexAfterContribute(localConfig: LocalConfig): Promise<void> { | CODE |
| LOW | src/contribute.ts | 244 | async function relationWarningsForLearning(localConfig: LocalConfig, relPath: string, content: string): Promise<string[] | CODE |
| LOW | src/env-resolution.ts | 252 | export function effectiveTeamEnvVariables(teamEnv: TeamEnv): readonly ResolvedEntry<EnvVariable>[] { | CODE |
| LOW | src/teamai-only-files.ts | 71 | async function judgeInternalClaudeInstructions(teamConfig: TeamaiConfig, localConfig: LocalConfig): Promise<Array<{ file | CODE |
| LOW | src/teamai-only-files.ts | 94 | export async function describeNoLongerTeamaiOnly(file: string, projectRoot: string): Promise<string> { | CODE |
| LOW | src/teamai-only-files.ts | 123 | async function opencodeInstructionEntries( | CODE |
| LOW | src/teamai-only-files.ts | 189 | async function judgeOpencodeInstructions(teamConfig: TeamaiConfig, localConfig: LocalConfig): Promise<{ file: string; te | CODE |
| LOW | src/workspace-children.ts | 171 | export async function deliveredLearningsNamespaces(config: LocalConfig): Promise<string[]> { | CODE |
| LOW | src/workspace-children.ts | 195 | export function formatProjectsManifestWarning( | CODE |
| LOW | src/workspace-children.ts | 228 | export async function safeDeliveredLearningsNamespaces( | CODE |
| LOW | src/workspace-children.ts | 278 | export function describeWorkspaceChildren(config: LocalConfig): string[] { | CODE |
| LOW | src/workspace-children.ts | 293 | export function summarizeWorkspaceChildren(config: LocalConfig): string | null { | CODE |
| 250 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/ci/coding-ci-mr-extract.yaml | 1 | # TeamAI MR Knowledge Extract — Zhiyan / Coding CI (TGit) | COMMENT |
| LOW | examples/ci/gitlab-ci-mr-extract.yml | 1 | # TeamAI MR Knowledge Extract — GitLab CI (self-hosted instances such as | COMMENT |
| LOW | scripts/commands-reference.ts | 1 | import type { Command, Option } from 'commander'; | COMMENT |
| LOW | .github/workflows/code-erosion.yml | 1 | name: Code Erosion | COMMENT |
| LOW | .github/workflows/codex-review-on-assign.yml | 1 | name: Codex Review on Assign | COMMENT |
| LOW | .github/workflows/codex-review-on-assign.yml | 21 | # authorized this PR — either the current assigner, or an existing assignee. | COMMENT |
| LOW | .github/workflows/codex-review-on-assign.yml | 241 | const promptPath = path.join(process.env.RUNNER_TEMP, 'codex-review-prompt.txt'); | COMMENT |
| LOW | .github/ast-grep-rules/ts-verbosity.yml | 1 | # TypeScript verbosity rules for the code-erosion CI layer. | COMMENT |
| LOW | src/push.ts | 761 | // Create branch, commit, and push. | COMMENT |
| LOW | src/push.ts | 941 | } | COMMENT |
| LOW | src/push.ts | 981 | // Single-repo mode: knowledge PRs must run in an isolated worktree so the | COMMENT |
| LOW | src/push.ts | 1001 | // Self-heal an older .teamai/.gitignore that still ignores `env` (pre-beta.5). | COMMENT |
| LOW | src/push.ts | 1281 | // - Unmerged (conflicted) files without MERGE_HEAD (incomplete merge) | COMMENT |
| LOW | src/push.ts | 1421 | // Validate the refreshed checkout, not the stale local clone. A pull can | COMMENT |
| LOW | src/push.ts | 1501 | // each could only guess from the role alone, so stop here once for all of | COMMENT |
| LOW | src/push.ts | 1601 | `Could not bring the team's latest rules and skills into this checkout before scanning (${preSyncFailure}). ` | COMMENT |
| LOW | src/mr-hint.ts | 1 | import { spawnSync } from 'node:child_process'; | COMMENT |
| LOW | src/skill-content.ts | 1 | import fs from 'node:fs'; | COMMENT |
| LOW | src/migrate.ts | 201 | // adopting (renaming) it FIRST is what keeps the "partition already built" | COMMENT |
| LOW | src/hooks-cmd.ts | 161 | // Read-only: the load never persists a migration (#893). | COMMENT |
| LOW | src/hooks-cmd.ts | 181 | // it — the same rule the write path applies. Qoder CN shares Qoder's project | COMMENT |
| LOW | src/transcript-parser.ts | 61 | const readerToolUseIds = new Set<string>(); | COMMENT |
| LOW | src/dashboard-collector.ts | 41 | import { getUserHome } from './utils/home.js'; | COMMENT |
| LOW | src/dashboard-collector.ts | 981 | // Decide "correction" here, over the full prompt, because only the hook knows | COMMENT |
| LOW | src/init.ts | 1581 | // self-heal bootstrap — the core of "clone = initialized". | COMMENT |
| LOW | src/codebase-extract.ts | 1001 | COMMENT | |
| LOW | src/manifest-schema.ts | 21 | // is a name no admin typed on purpose, and it renders as something other than | COMMENT |
| LOW | src/default-workflows.ts | 1 | import { createHash } from 'node:crypto'; | COMMENT |
| LOW | src/votes-judge.ts | 1 | // -*- coding: utf-8 -*- | COMMENT |
| LOW | src/stats.ts | 241 | // Dashboard metrics follow the same scope rules `pull` reports with, so what | COMMENT |
| LOW | src/omp-hooks.ts | 181 | // hook-dispatch's handlers read. No matcher pass: OMP's tool ids are | COMMENT |
| LOW | src/uninstall.ts | 1501 | } | COMMENT |
| LOW | src/uninstall.ts | 2841 | } | COMMENT |
| LOW | src/hook-dispatch-cli.ts | 241 | } | COMMENT |
| LOW | src/hook-dispatch-cli.ts | 461 | const { recordedHookCwd } = await import('./dashboard-collector.js'); | COMMENT |
| LOW | src/builtin-skills.ts | 21 | import type { DeliveryRecorder } from './git-exclude-delivered.js'; | COMMENT |
| LOW | src/hook-handlers.ts | 601 | // resolve to the same session file. This cross-process handoff relies on | COMMENT |
| LOW | src/hook-handlers.ts | 661 | // returned, within 24 h after the run: the reducer joins the recall log's | COMMENT |
| LOW | src/hook-handlers.ts | 1281 | { event: 'session-end', matcher: '*', handler: dashboardReportHandler, timeoutMs: FOREGROUND_HOOK_TIMEOUT_MS, backgr | COMMENT |
| LOW | src/hook-handlers.ts | 1301 | { event: 'stop', matcher: '*', handler: dashboardReportHandler, timeoutMs: FOREGROUND_HOOK_TIMEOUT_MS, background: t | COMMENT |
| LOW | src/dashboard.ts | 21 | import { HttpError, isLocalWrite, readJsonBody } from './dashboard/http.js'; | COMMENT |
| LOW | src/dashboard.ts | 121 | // fs.watch on macOS (FSEvents) falls behind on a busy disk: an append went | COMMENT |
| LOW | src/graph-aggregate.ts | 41 | // Once merged, that tag travels with the node/edge forever — | COMMENT |
| LOW | src/graph-aggregate.ts | 61 | // identity as one already pushed here in an earlier | COMMENT |
| LOW | src/graph-aggregate.ts | 221 | // withheld would also discard a DIFFERENT, fully-allowed pair that | COMMENT |
| LOW | src/graph-aggregate.ts | 261 | const raw = JSON.parse(await fs.readFile(graphPath, 'utf8')); | COMMENT |
| LOW | src/graph-aggregate.ts | 321 | // A slug both sets claim needs its global metadata restored to the | COMMENT |
| LOW | src/coauthor-reconcile.ts | 21 | // ─── Co-author reconcile engine ────────────────────────────── | COMMENT |
| LOW | src/coauthor-reconcile.ts | 41 | // | COMMENT |
| LOW | src/usage-tracker.ts | 41 | // ─── Data flow ───────────────────────────────────────── | COMMENT |
| LOW | src/types.ts | 361 | teamConfig: { sharing?: { autoCompact?: { tokens?: number } } }, | COMMENT |
| LOW | src/types.ts | 501 | // the home and in a project. In user scope it reads no rules directory: | COMMENT |
| LOW | src/types.ts | 541 | // Kiro: skills, steering (rules), and custom agents sync to .kiro/. Kiro CLI | COMMENT |
| LOW | src/types.ts | 561 | // userScope.rules carries that name. User-level MCP has no | COMMENT |
| LOW | src/types.ts | 681 | // Muse Code (Meta, binary `muse`) keeps its user config in ~/.config/muse | COMMENT |
| LOW | src/types.ts | 1381 | COMMENT | |
| LOW | src/types.ts | 1961 | /** Total corrections (re-prompt after stop) across all sessions. */ | COMMENT |
| LOW | src/types.ts | 2241 | /** Sessions idle for this long (ms) are removed from the dashboard */ | COMMENT |
| LOW | src/types.ts | 2301 | } | COMMENT |
| LOW | src/types.ts | 2441 | export const CONTRIBUTE_LOW_QUALITY_BONUS = 10; | COMMENT |
| 77 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | skill-data/wiki/references/agents/graph-rag-agent.md | 22 | ### Step 1: Relationship extraction | COMMENT |
| LOW | skill-data/wiki/references/agents/graph-rag-agent.md | 55 | ### Step 2: Generate graph documents one by one | COMMENT |
| LOW | skill-data/wiki/references/agents/graph-rag-agent.md | 265 | ### Step 3: Generate the graph directory README | COMMENT |
| LOW | skill-data/wiki/references/agents/graph-rag-agent.md | 297 | ### Step 4: Return summary | COMMENT |
| LOW⚡ | skill-data/wiki/references/agents/kb-doc-generator.md | 27 | ### Step 0: Load the methodology | COMMENT |
| LOW⚡ | skill-data/wiki/references/agents/kb-doc-generator.md | 31 | ### Step 1: Checkpoint check | COMMENT |
| LOW⚡ | skill-data/wiki/references/agents/kb-doc-generator.md | 37 | ### Step 2: Dispatch strategy decision | COMMENT |
| LOW | skill-data/wiki/references/agents/kb-doc-generator.md | 238 | ### Step 3: Self-check (accuracy verification + interface reconciliation) | COMMENT |
| LOW | skill-data/wiki/references/agents/kb-doc-generator.md | 281 | ### Step 4: Return summary | COMMENT |
| LOW | skill-data/wiki/references/phases/k3-ai-native.md | 5 | ### Step 1: Inject AI-Native elements | COMMENT |
| LOW | skill-data/wiki/references/phases/k3-ai-native.md | 17 | ### Step 2: Graph RAG graph document set | COMMENT |
| LOW | skill-data/wiki/references/phases/k3-ai-native.md | 46 | ### Step 3: Cross-document consistency check | COMMENT |
| LOW⚡ | …-data/wiki/references/phases/k1-reverse-engineering.md | 5 | ### Step 1: Optionally run the scan script (recommended) | COMMENT |
| LOW⚡ | …-data/wiki/references/phases/k1-reverse-engineering.md | 12 | ### Step 2: Key file extraction | COMMENT |
| LOW⚡ | …-data/wiki/references/phases/k1-reverse-engineering.md | 19 | ### Step 3: Architecture reverse-engineering (see phase1-reverse-engineering.md for details) | COMMENT |
| LOW⚡ | …-data/wiki/references/phases/k1-reverse-engineering.md | 25 | ### Step 4: Generate the architecture analysis report | COMMENT |
| LOW | …-data/wiki/references/phases/k1-reverse-engineering.md | 56 | ### Step 5: Interface inventory scan (run separately per check type) | COMMENT |
| LOW | skill-data/wiki/references/phases/k4-quality.md | 5 | ### Step 1: Automated validation | COMMENT |
| LOW | skill-data/wiki/references/phases/k4-quality.md | 22 | ### Step 2: Accuracy audit | COMMENT |
| LOW⚡ | skill-data/wiki/references/phases/k4-quality.md | 45 | ### Step 3: RAG retrieval spot check | COMMENT |
| LOW⚡ | skill-data/wiki/references/phases/k4-quality.md | 49 | ### Step 4: AI end-to-end validation (E2E Validation) | COMMENT |
| LOW | skill-data/wiki/references/phases/k4-quality.md | 138 | ### Step 5: Generate the quality report | COMMENT |
| LOW⚡ | src/init.ts | 936 | // Step 5: inject hooks (built-in dispatch incl. the reporter) via the same | COMMENT |
| LOW⚡ | src/init.ts | 942 | // Step 6: also initialize local-agent config so the new hook-dispatch --stdin | COMMENT |
| LOW | src/init.ts | 778 | // Step 0: scope (same rules as git init — default project) | COMMENT |
| LOW | src/init.ts | 826 | // Step 1: API key. Persist --token when given (one command sets endpoint+key), | COMMENT |
| LOW | src/init.ts | 838 | // Step 2: write a minimal local teamai.yaml stub (default toolPaths) to drive | COMMENT |
| LOW | src/init.ts | 853 | // Step 4: save local config (kind: http; only the URL is stored, never the key) | COMMENT |
| LOW | src/init.ts | 1346 | // Step 0: single-repo mode is always project scope, rooted at the business repo. | COMMENT |
| LOW | src/init.ts | 1401 | // Step 1: derive provider + remote from the business repo's origin. | COMMENT |
| LOW | src/init.ts | 1430 | // Step 2: authenticate (needed to push reports + open knowledge PRs). | COMMENT |
| LOW | src/init.ts | 1443 | // Step 3: build the .teamai/ knowledge skeleton on the active tree (committed to main). | COMMENT |
| LOW | src/init.ts | 1495 | // Step 4: assemble local config (kind: self). dataHome points at the partition | COMMENT |
| LOW | src/init.ts | 1548 | // Step 5: write local config (into the partition via dataHome) + single-repo | COMMENT |
| LOW | src/init.ts | 1644 | // Step 6: register member on the reports orphan branch (never touches main / active tree). | COMMENT |
| LOW | src/init.ts | 1795 | // Step 0: Resolve scope (default project; only explicit --scope user → ~/ ) | COMMENT |
| LOW | src/init.ts | 1853 | // Step 1: Get repo input (positional or --repo alias; prompt if neither) | COMMENT |
| LOW | src/init.ts | 1893 | // Step 2: Ensure provider tools are installed and authenticate | COMMENT |
| LOW | src/init.ts | 1927 | // Step 3: Clone or link repo | COMMENT |
| LOW | src/init.ts | 2201 | // Step 4: Load team config | COMMENT |
| LOW | src/init.ts | 2314 | // Step 5: member roster on the teamai-reports orphan branch (never the | COMMENT |
| LOW | src/init.ts | 2440 | // Step 6: Save local config | COMMENT |
| LOW | src/init.ts | 2547 | // Step 7: Inject built-in + team hooks into AI tools | COMMENT |
| LOW | src/enrich-with-ai.ts | 210 | // Step 1: AI enrichment per module (parallel) | COMMENT |
| LOW | src/enrich-with-ai.ts | 234 | // Step 2: Repo-level domain classification (single call) | COMMENT |
| LOW | src/enrich-with-ai.ts | 260 | // Step 3: Build manifest V2 | COMMENT |
| LOW⚡ | src/pull.ts | 2654 | // Step 5: Auto-report usage data — handled centrally in pull() to avoid | COMMENT |
| LOW⚡ | src/pull.ts | 2658 | // Step 6: Show skill recommendations, among the skills Step 2 delivers | COMMENT |
| LOW | src/pull.ts | 1483 | // Step 1: refresh team repo (git pull, or HTTP /repo materialization) | COMMENT |
| LOW | src/pull.ts | 2043 | // Step 2: Sync each resource type | COMMENT |
| LOW | src/pull.ts | 2331 | // Step 3: Clean up tombstoned resources | COMMENT |
| LOW | src/pull.ts | 2474 | // Step 4: Deploy CLI built-in skills | COMMENT |
| LOW⚡ | src/__tests__/distilly-roundtrip.test.ts | 35 | // Step 1: the exact deploy call pullSingleSource() makes. | COMMENT |
| LOW⚡ | src/__tests__/distilly-roundtrip.test.ts | 38 | // Step 2: the exact validation call the push path makes on skills. | COMMENT |
| LOW⚡ | src/__tests__/pull-tombstone.test.ts | 739 | // Step 1: Pull as hai role — should get common + hai skills | COMMENT |
| LOW⚡ | src/__tests__/pull-tombstone.test.ts | 746 | // Step 2: Switch to pm role (simulate what `roles set pm` does) | COMMENT |
| LOW | src/__tests__/pull-tombstone.test.ts | 758 | // Step 3: Pull as pm role — should get common + pm, remove hai-only | COMMENT |
| LOW⚡ | src/__tests__/e2e/e2e.test.ts | 649 | // Step 1: Uninstall everything | COMMENT |
| LOW⚡ | src/__tests__/e2e/e2e.test.ts | 654 | // Step 2: Verify cleanup — config.yaml should not exist | COMMENT |
| LOW⚡ | src/__tests__/e2e/e2e.test.ts | 658 | // Step 3: Restore for subsequent tests (uninstall removed the clone) | COMMENT |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/resources/env-loader.ts | 69 | elif __teamai_env_global_attrs; then declare -g +i +l +u "$1" | CODE |
| HIGH | src/resources/env-loader.ts | 635 | elif __teamai_env_in_git "$1"; then | CODE |
| HIGH | src/resources/env-loader.ts | 667 | elif [ "$__teamai_k" = "$__teamai_kind" ] && [ "$__teamai_p" = "$__teamai_key" ]; then | CODE |
| HIGH⚡ | src/resources/env-loader.ts | 771 | elif [ -n "$__teamai_prompt_clean" ]; then __teamai_prompts+=("$__teamai_prompt_clean"); fi | CODE |
| HIGH⚡ | src/resources/env-loader.ts | 778 | elif [ -n "$__teamai_prompt_clean" ]; then | CODE |
| HIGH⚡ | src/resources/env-loader.ts | 780 | elif [ "\${PROMPT_COMMAND-}" = '__teamai_env_prompt "$?" "\${PIPESTATUS[@]}"' ] && [ "\${__TEAMAI_ENV_PROMPT_COMMA | CODE |
| HIGH⚡ | src/resources/env-loader.ts | 787 | elif [ -n "\${ZSH_VERSION-}" ]; then | CODE |
| HIGH | src/resources/env-loader.ts | 832 | elif [ -z "$__teamai_prompt_pipeline" ]; then | CODE |
| HIGH | src/resources/env-loader.ts | 854 | elif [ -n "\${BASH_VERSION-}" ]; then | CODE |
| HIGH⚡ | src/resources/env-loader.ts | 894 | elif [ -n "\${ZSH_VERSION-}" ]; then typeset -g +x "$1" | CODE |
| HIGH⚡ | src/resources/env-loader.ts | 898 | elif [ -n "\${ZSH_VERSION-}" ]; then typeset -g "-$__teamai_attrs" "$1" | CODE |
| HIGH⚡ | src/resources/env-loader.ts | 899 | elif __teamai_env_global_attrs; then declare -g "-$__teamai_attrs" "$1"; fi | CODE |
| HIGH | src/resources/env-loader.ts | 1081 | elif [ -f "$__teamai_env_scopes" ] && [ -r "$__teamai_env_scopes" ]; then | CODE |
| HIGH | src/resources/env-loader.ts | 1083 | elif [ -e "$__teamai_env_scopes" ]; then | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/init.ts | 936 | // Step 5: inject hooks (built-in dispatch incl. the reporter) via the same | COMMENT |
| LOW⚡ | src/init.ts | 942 | // Step 6: also initialize local-agent config so the new hook-dispatch --stdin | COMMENT |
| LOW | src/init.ts | 778 | // Step 0: scope (same rules as git init — default project) | COMMENT |
| LOW | src/init.ts | 826 | // Step 1: API key. Persist --token when given (one command sets endpoint+key), | COMMENT |
| LOW | src/init.ts | 838 | // Step 2: write a minimal local teamai.yaml stub (default toolPaths) to drive | COMMENT |
| LOW | src/init.ts | 853 | // Step 4: save local config (kind: http; only the URL is stored, never the key) | COMMENT |
| LOW | src/init.ts | 1346 | // Step 0: single-repo mode is always project scope, rooted at the business repo. | COMMENT |
| LOW | src/init.ts | 1401 | // Step 1: derive provider + remote from the business repo's origin. | COMMENT |
| LOW | src/init.ts | 1430 | // Step 2: authenticate (needed to push reports + open knowledge PRs). | COMMENT |
| LOW | src/init.ts | 1443 | // Step 3: build the .teamai/ knowledge skeleton on the active tree (committed to main). | COMMENT |
| LOW | src/init.ts | 1495 | // Step 4: assemble local config (kind: self). dataHome points at the partition | COMMENT |
| LOW | src/init.ts | 1548 | // Step 5: write local config (into the partition via dataHome) + single-repo | COMMENT |
| LOW | src/init.ts | 1644 | // Step 6: register member on the reports orphan branch (never touches main / active tree). | COMMENT |
| LOW | src/init.ts | 1795 | // Step 0: Resolve scope (default project; only explicit --scope user → ~/ ) | COMMENT |
| LOW | src/init.ts | 1853 | // Step 1: Get repo input (positional or --repo alias; prompt if neither) | COMMENT |
| LOW | src/init.ts | 1893 | // Step 2: Ensure provider tools are installed and authenticate | COMMENT |
| LOW | src/init.ts | 1927 | // Step 3: Clone or link repo | COMMENT |
| LOW | src/init.ts | 2201 | // Step 4: Load team config | COMMENT |
| LOW | src/init.ts | 2314 | // Step 5: member roster on the teamai-reports orphan branch (never the | COMMENT |
| LOW | src/init.ts | 2440 | // Step 6: Save local config | COMMENT |
| LOW | src/init.ts | 2547 | // Step 7: Inject built-in + team hooks into AI tools | COMMENT |
| LOW | src/enrich-with-ai.ts | 210 | // Step 1: AI enrichment per module (parallel) | COMMENT |
| LOW | src/enrich-with-ai.ts | 234 | // Step 2: Repo-level domain classification (single call) | COMMENT |
| LOW | src/enrich-with-ai.ts | 260 | // Step 3: Build manifest V2 | COMMENT |
| LOW⚡ | src/pull.ts | 2654 | // Step 5: Auto-report usage data — handled centrally in pull() to avoid | COMMENT |
| LOW⚡ | src/pull.ts | 2658 | // Step 6: Show skill recommendations, among the skills Step 2 delivers | COMMENT |
| LOW | src/pull.ts | 1483 | // Step 1: refresh team repo (git pull, or HTTP /repo materialization) | COMMENT |
| LOW | src/pull.ts | 2043 | // Step 2: Sync each resource type | COMMENT |
| LOW | src/pull.ts | 2331 | // Step 3: Clean up tombstoned resources | COMMENT |
| LOW | src/pull.ts | 2474 | // Step 4: Deploy CLI built-in skills | COMMENT |
| LOW⚡ | src/__tests__/distilly-roundtrip.test.ts | 35 | // Step 1: the exact deploy call pullSingleSource() makes. | COMMENT |
| LOW⚡ | src/__tests__/distilly-roundtrip.test.ts | 38 | // Step 2: the exact validation call the push path makes on skills. | COMMENT |
| LOW⚡ | src/__tests__/pull-tombstone.test.ts | 739 | // Step 1: Pull as hai role — should get common + hai skills | COMMENT |
| LOW⚡ | src/__tests__/pull-tombstone.test.ts | 746 | // Step 2: Switch to pm role (simulate what `roles set pm` does) | COMMENT |
| LOW | src/__tests__/pull-tombstone.test.ts | 758 | // Step 3: Pull as pm role — should get common + pm, remove hai-only | COMMENT |
| LOW⚡ | src/__tests__/e2e/e2e.test.ts | 649 | // Step 1: Uninstall everything | COMMENT |
| LOW⚡ | src/__tests__/e2e/e2e.test.ts | 654 | // Step 2: Verify cleanup — config.yaml should not exist | COMMENT |
| LOW⚡ | src/__tests__/e2e/e2e.test.ts | 658 | // Step 3: Restore for subsequent tests (uninstall removed the clone) | COMMENT |
| LOW⚡ | src/__tests__/e2e/e2e.test.ts | 671 | // Step 1: Check if the test repo has a roles manifest | COMMENT |
| LOW⚡ | src/__tests__/e2e/e2e.test.ts | 678 | // Step 2: Parse available role ids from the output | COMMENT |
| LOW⚡ | src/__tests__/e2e/e2e.test.ts | 706 | // Step 4: Switch to role B and pull | COMMENT |
| LOW⚡ | src/__tests__/e2e/e2e.test.ts | 715 | // Step 5: Verify skill count changed (different roles → different skill sets) | COMMENT |
| LOW⚡ | src/__tests__/e2e/e2e.test.ts | 721 | // Step 6: Restore to role A for subsequent tests | COMMENT |
| LOW | src/__tests__/e2e/e2e.test.ts | 693 | // Step 3: Set role A and pull | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …a/wiki/references/methodology/phase2-document-types.md | 213 | ## Type-9: Graph Document Set (Graph RAG) | COMMENT |
| MEDIUM | …ill-data/wiki/references/methodology/phase4-quality.md | 27 | ## RAG Retrieval Test Cases | COMMENT |
| MEDIUM | …ill-data/wiki/references/methodology/phase4-quality.md | 164 | ### Phase 3b Checklist: Graph Document Set (Graph RAG) | COMMENT |
| MEDIUM | …a/wiki/references/methodology/phase3-ai-enhancement.md | 114 | # Graph Document Set (Graph RAG) | COMMENT |
| MEDIUM | skill-data/wiki/references/agents/graph-rag-agent.md | 1 | # Graph RAG Agent | COMMENT |
| MEDIUM | skill-data/wiki/references/agents/graph-rag-agent.md | 269 | # {project_name} Graph Document Set (Graph RAG) | COMMENT |
| MEDIUM | …ill-data/wiki/references/templates/project-overview.md | 123 | ### Graph document set (Graph RAG) | COMMENT |
| MEDIUM | skill-data/wiki/references/phases/k3-ai-native.md | 17 | ### Step 2: Graph RAG graph document set | COMMENT |
| MEDIUM⚡ | skill-data/wiki/references/phases/k4-quality.md | 45 | ### Step 3: RAG retrieval spot check | COMMENT |
| MEDIUM | skill-data/wiki/references/phases/k4-quality.md | 167 | ## RAG Retrieval Spot Check | COMMENT |
| MEDIUM | src/__tests__/copilot-adapter.test.ts | 191 | await fse.writeFile(expectedPath(), native.replace('# Guardrails', '# Updated guardrails')); | CODE |
| MEDIUM | src/__tests__/copilot-adapter.test.ts | 201 | expect(pushed).toContain('# Updated guardrails'); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/init.ts | 122 | const kind = LocalConfigSchema.shape.repo.shape.kind.safeParse((entries.repo as { kind?: unknown }).kind); | CODE |
| CRITICAL | src/__tests__/reports-branch-readonly.test.ts | 136 | const orphanAdds = mocks.repoGit.raw.mock.calls.filter(([args]) => (args as string[]).includes('--orphan')); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/__tests__/generic-git-provider.test.ts | 160 | expect(normalizeGitIdentity('Jane Doe')).toBe('Jane-Doe'); | CODE |
| LOW | src/__tests__/iwiki-review-apply.test.ts | 108 | token: 'fake-token', | CODE |
| LOW | src/__tests__/iwiki-review-apply.test.ts | 135 | token: 'fake-token', | CODE |
| LOW⚡ | src/__tests__/gh-org.test.ts | 17 | getGitHubToken: vi.fn().mockReturnValue('fake-token-xyz'), | CODE |
| LOW⚡ | src/__tests__/gh-org.test.ts | 46 | vi.mocked(getGitHubToken).mockReturnValue('fake-token-xyz'); | CODE |
| LOW⚡ | src/__tests__/gh-org.test.ts | 50 | vi.mocked(getGitHubToken).mockReturnValue('fake-token-xyz'); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | skill-data/wiki/scripts/scan_repo.py | 214 | print(f"Error: {repo_path} is not a valid directory", file=sys.stderr) | CODE |
| MEDIUM | skill-data/wiki/scripts/validate_kb.py | 139 | print(f"Error: {kb_dir} is not a valid directory", file=sys.stderr) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | skill-data/wiki/scripts/scan_repo.py | 93 | CODE | |
| LOW | skill-data/wiki/scripts/scan_repo.py | 143 | CODE | |
| LOW | skill-data/wiki/scripts/validate_kb.py | 131 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | skill-data/wiki/scripts/validate_kb.py | 22 | CODE | |
| LOW | .github/scripts/erosion-summary.py | 13 | CODE |