Skip to content

LOW: Extract shared Anthropic client singleton #41

Description

@Brad-Edwards

Severity: Low (Quality H3, L2)

Five files each implement their own `getClient()` singleton pattern for Anthropic. Only `summarizer.ts` exposes `_resetClient()` for testing.

Files: `summarizer.ts`, `alerts.ts`, `briefing.ts`, `research.ts`, `mcp/server.ts`

Recommendation: Extract a shared `getAnthropicClient()` utility with `_resetClient()` for tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions