An autonomous agent for deep financial research
This report presents the forensic synthetic code analysis of virattt/dexter, a TypeScript project with 27,370 GitHub stars. SynthScan v2.0 examined 41,132 lines of code across 234 source files, recording 73 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 3.2 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 73 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/tools/search/x-search.ts | 209 | // ─── Tool definition ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/permissions/rules.ts | 33 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/permissions/rules.ts | 35 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/permissions/rules.ts | 104 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/permissions/rules.ts | 106 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/permissions/rules.ts | 152 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/permissions/rules.ts | 154 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/permissions/rules.ts | 180 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/permissions/rules.ts | 182 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/components/question-prompt.ts | 48 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/components/question-prompt.ts | 50 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/components/question-prompt.ts | 118 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/components/question-prompt.ts | 120 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/components/question-prompt.ts | 183 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/components/question-prompt.ts | 185 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/components/question-prompt.ts | 231 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/components/question-prompt.ts | 233 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/components/question-prompt.ts | 260 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/components/question-prompt.ts | 262 | // ────────────────────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/tools/finance/read-filings.ts | 173 | // Step 1: Plan ticker + filing types using structured output | COMMENT |
| LOW | src/tools/finance/read-filings.ts | 246 | // Step 2: Select and read filing content with canonical item names | COMMENT |
| LOW | src/tools/finance/screen-stocks.ts | 123 | // Step 1: Fetch screener metrics (cached after first call) | COMMENT |
| LOW | src/tools/finance/screen-stocks.ts | 138 | // Step 2: LLM structured output — translate natural language → filters | COMMENT |
| LOW | src/tools/finance/screen-stocks.ts | 158 | // Step 3: POST to screener API | COMMENT |
| LOW | src/agent/agent.ts | 573 | // Step 1: Memory flush | COMMENT |
| LOW | src/agent/agent.ts | 599 | // Step 2: Compaction | COMMENT |
| LOW | src/agent/agent.ts | 652 | // Step 3: Fallback — truncate oldest rounds | COMMENT |
| LOW | src/skills/write-memo/SKILL.md | 25 | ## Step 1: Frame the Trade | COMMENT |
| LOW | src/skills/write-memo/SKILL.md | 37 | ## Step 2: Gather Data (Parallel) | COMMENT |
| LOW | src/skills/write-memo/SKILL.md | 72 | ## Step 3: Build Scenarios | COMMENT |
| LOW | src/skills/write-memo/SKILL.md | 90 | ## Step 4: Optional DCF Anchor | COMMENT |
| LOW | src/skills/write-memo/SKILL.md | 94 | ## Step 5: Draft Memo Content | COMMENT |
| LOW | src/skills/write-memo/SKILL.md | 142 | ## Step 6: Self-Critique Pass (Mandatory) | COMMENT |
| LOW | src/skills/write-memo/SKILL.md | 154 | ## Step 7: Render HTML | COMMENT |
| LOW | src/skills/write-memo/SKILL.md | 167 | ## Step 8: Report to Chat | COMMENT |
| LOW | src/skills/dcf/SKILL.md | 23 | ## Step 1: Gather Financial Data | COMMENT |
| LOW | src/skills/dcf/SKILL.md | 62 | ## Step 2: Calculate FCF Growth Rate | COMMENT |
| LOW | src/skills/dcf/SKILL.md | 72 | ## Step 3: Estimate Discount Rate (WACC) | COMMENT |
| LOW⚡ | src/skills/dcf/SKILL.md | 87 | ## Step 4: Project Future Cash Flows | COMMENT |
| LOW⚡ | src/skills/dcf/SKILL.md | 93 | ## Step 5: Calculate Present Value | COMMENT |
| LOW⚡ | src/skills/dcf/SKILL.md | 97 | ## Step 6: Sensitivity Analysis | COMMENT |
| LOW⚡ | src/skills/dcf/SKILL.md | 101 | ## Step 7: Validate Results | COMMENT |
| LOW | src/skills/dcf/SKILL.md | 116 | ## Step 8: Output Format | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/tools/registry.ts | 263 | export function buildCompactToolDescriptions(model: string): string { | CODE |
| LOW | src/tools/fetch/utils.ts | 153 | export async function getWithPermittedRedirects( | CODE |
| LOW | src/tools/finance/formatters.ts | 148 | export function formatHistoricalKeyRatios(data: unknown, args?: Rec): string { | CODE |
| LOW | src/tools/finance/formatters.ts | 251 | export function formatBeneficialOwnership(data: unknown): string { | CODE |
| LOW | src/tools/finance/formatters.ts | 264 | export function formatInstitutionalHoldings(data: unknown, args?: Rec): string { | CODE |
| LOW | src/memory/temporal-decay.ts | 28 | export function calculateTemporalDecayMultiplier(params: { | CODE |
| LOW | src/utils/model.ts | 55 | export function getDefaultModelForProvider(providerId: string): string | undefined { | CODE |
| LOW | src/utils/tokens.ts | 39 | export function getEffectiveContextWindow(model: string): number { | CODE |
| LOW | src/utils/env.ts | 16 | export function checkApiKeyExistsForProvider(providerId: string): boolean { | CODE |
| LOW⚡ | src/utils/env.ts | 112 | export function getSearchProviderDisplayName(providerId: SearchProviderId): string { | CODE |
| LOW⚡ | src/utils/env.ts | 116 | export function getApiKeyNameForSearchProvider(providerId: SearchProviderId): string { | CODE |
| LOW⚡ | src/utils/env.ts | 120 | export function checkApiKeyForSearchProvider(providerId: SearchProviderId): boolean { | CODE |
| LOW⚡ | src/utils/env.ts | 124 | export function saveApiKeyForSearchProvider(providerId: SearchProviderId, apiKey: string): boolean { | CODE |
| LOW | src/agent/compact.ts | 154 | export function buildCompactSummaryMessage(summary: string): string { | CODE |
| LOW | src/components/select-list.ts | 57 | export function createSearchProviderSelector( | CODE |
| LOW | src/components/select-list.ts | 117 | export function createApiKeyConfirmSelector(onConfirm: (wantsToSet: boolean) => void) { | CODE |
| LOW | src/model/llm.ts | 276 | function annotateSystemMessageForCaching(messages: BaseMessage[]): BaseMessage[] { | CODE |
| LOW | src/skills/registry.ts | 107 | export function buildSkillMetadataSection(): string { | CODE |
| LOW | src/gateway/access-control.ts | 95 | export async function checkInboundAccessControl(params: { | CODE |
| LOW | src/gateway/group/history-buffer.ts | 44 | export function getAndClearGroupHistory(groupId: string): GroupHistoryEntry[] { | CODE |
| LOW | src/gateway/group/history-buffer.ts | 54 | export function formatGroupHistoryContext(params: { | CODE |
| LOW | src/gateway/channels/whatsapp/auth-store.ts | 40 | export function maybeRestoreCredsFromBackup(authDir: string): void { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/tools/finance/read-filings.ts | 173 | // Step 1: Plan ticker + filing types using structured output | COMMENT |
| LOW | src/tools/finance/read-filings.ts | 246 | // Step 2: Select and read filing content with canonical item names | COMMENT |
| LOW | src/tools/finance/screen-stocks.ts | 123 | // Step 1: Fetch screener metrics (cached after first call) | COMMENT |
| LOW | src/tools/finance/screen-stocks.ts | 138 | // Step 2: LLM structured output — translate natural language → filters | COMMENT |
| LOW | src/tools/finance/screen-stocks.ts | 158 | // Step 3: POST to screener API | COMMENT |
| LOW | src/agent/agent.ts | 573 | // Step 1: Memory flush | COMMENT |
| LOW | src/agent/agent.ts | 599 | // Step 2: Compaction | COMMENT |
| LOW | src/agent/agent.ts | 652 | // Step 3: Fallback — truncate oldest rounds | COMMENT |