An autonomous agent for deep financial research
This report summarizes scanner evidence for virattt/dexter, a TypeScript project with 27,736 GitHub stars. SynthScan examined 41,454 lines of code across 235 source files, recording 73 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 3.2 (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.
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? 54 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 41 finding(s).
Which changes need focused human review? 73 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 73 distinct pattern matches across 4 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 | 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 | 575 | // Step 1: Memory flush | COMMENT |
| LOW | src/agent/agent.ts | 601 | // Step 2: Compaction | COMMENT |
| LOW | src/agent/agent.ts | 654 | // 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 | 52 | 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 | 281 | 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 | 575 | // Step 1: Memory flush | COMMENT |
| LOW | src/agent/agent.ts | 601 | // Step 2: Compaction | COMMENT |
| LOW | src/agent/agent.ts | 654 | // Step 3: Fallback — truncate oldest rounds | COMMENT |