Skip to content

Conversation

@aperez-worklytics
Copy link
Contributor

@aperez-worklytics aperez-worklytics commented Jan 8, 2026

Claude code support. This requires a specific auth strategy, as credentials are with a specific header, not a bearer / client credentials auth.
Docs added, example files.

Fixes

paste links to issues/tasks in project management

Features

claude code via proxy

Logistics

paste links to issues/tasks in project management

Change implications

  • dependencies added/changed? no
  • something important to note in future release notes?
    • NOTE in CHANGELOG.md anything that will show up in terraform plan/apply that isn't
      obviously a no-op? yes; new connector support
    • breaking changes? if in module/example that is NOT marked alpha, requires major version
      change no

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for Claude Code integration by implementing connector specifications, authentication strategy, sanitization rules, and documentation for accessing Claude's Admin API through the proxy.

Key Changes:

  • New Claude Code connector with beta availability status
  • Custom authentication strategy using admin API keys
  • Sanitization rules for user data and usage reports with pseudonymization of email addresses

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
java/core/src/test/java/co/worklytics/psoxy/rules/anthropic/ClaudeTests.java Test suite for Claude Code API endpoint validation
java/core/src/main/java/co/worklytics/psoxy/rules/anthropic/PrebuiltSanitizerRules.java Sanitization rules loader for Claude Code
java/core/src/main/java/co/worklytics/psoxy/rules/PrebuiltSanitizerRules.java Registration of Claude Code rules in global rules map
java/core/src/main/java/co/worklytics/psoxy/gateway/impl/ClaudeAuthStrategy.java Authentication strategy implementation using x-api-key header
java/core/src/main/java/co/worklytics/psoxy/SourceAuthModule.java Dependency injection provider for ClaudeAuthStrategy
infra/modules/worklytics-connector-specs/main.tf Terraform connector specification with API endpoints and configuration
infra/modules/worklytics-connector-specs/docs/claude/instructions.tftpl Setup instructions template for Claude Code integration
docs/sources/anthropic/claude-code/example-api-responses/sanitized/*.json Sanitized example API responses showing pseudonymization
docs/sources/anthropic/claude-code/example-api-responses/original/*.json Original API response examples
docs/sources/anthropic/claude-code/claude-code.yaml YAML rules defining endpoints, transforms, and schemas
docs/sources/anthropic/claude-code/README.md User-facing documentation for Claude Code connector
docs/sources/anthropic/README.md Anthropic source category overview
docs/SUMMARY.md Documentation navigation structure update
docs/README.md Main README table update with Claude Code entry
CHANGELOG.md Release notes for v0.5.16

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

public class PrebuiltSanitizerRules {

static public final Map<String, RESTRules> DEFAULTS = ImmutableMap.<String, RESTRules>builder()
.putAll(co.worklytics.psoxy.rules.anthropic.PrebuiltSanitizerRules.DEFAULT_RULES_MAP)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.putAll(co.worklytics.psoxy.rules.anthropic.PrebuiltSanitizerRules.DEFAULT_RULES_MAP)
.putAll(co.worklytics.psoxy.rules.anthropic.PrebuiltClaudeRules.DEFAULT_RULES_MAP)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants