Skip to content

✨ Add Claude Code integration with token usage display#13

Merged
clubanderson merged 1 commit into
mainfrom
feat/claude-code-integration
Jan 16, 2026
Merged

✨ Add Claude Code integration with token usage display#13
clubanderson merged 1 commit into
mainfrom
feat/claude-code-integration

Conversation

@clubanderson
Copy link
Copy Markdown
Collaborator

Summary

  • Wire up ClaudeDetector to agent server for real Claude Code detection
  • Add getClaudeInfo() to return full Claude info including token usage
  • Display real token usage (session/today/month) in Settings page when connected
  • Add Reload() method to KubectlProxy for dynamic kubeconfig updates

The agent health endpoint now returns hasClaude: true when Claude Code CLI is installed, along with detailed token usage statistics read from ~/.claude/ directory.

Test plan

  • Run kkc-agent and verify /health endpoint returns Claude info
  • Open Settings page and verify token usage displays when agent connected
  • Verify token counts match expected session/today/month usage

🤖 Generated with Claude Code

@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Jan 16, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 16, 2026

Deploy Preview for kubestellarklaudeconsole ready!

Name Link
🔨 Latest commit 208bfac
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarklaudeconsole/deploys/696a679ddceccd000874d87c
😎 Deploy Preview https://deploy-preview-13--kubestellarklaudeconsole.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Copy Markdown
Contributor

Welcome to KubeStellar! 🚀 Thank you for submitting this Pull Request.

Before your PR can be merged, please ensure:

DCO Sign-off - All commits must be signed off with git commit -s to certify the Developer Certificate of Origin

PR Title - Must start with an emoji: ✨ (feature), 🐛 (bug fix), 📖 (docs), 🌱 (infra/tests), ⚠️ (breaking change)

Getting Started with KubeStellar:

Contributor Resources:


🌟 Help KubeStellar Grow - We Need Adopters!

Our roadmap is driven entirely by adopter feedback. Whether you're using KubeStellar yourself or know someone who could benefit from multi-cluster Kubernetes:

📋 Take our Multi-Cluster Survey - Share your use cases and help shape our direction!


A maintainer will review your PR soon. Feel free to ask questions in the comments or on Slack!

@kubestellar-prow kubestellar-prow Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 16, 2026
@clubanderson
Copy link
Copy Markdown
Collaborator Author

/lgtm
/approve

@kubestellar-prow
Copy link
Copy Markdown
Contributor

@clubanderson: you cannot LGTM your own PR.

Details

In response to this:

/lgtm
/approve

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kubestellar-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: clubanderson

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 16, 2026
- Wire up ClaudeDetector to agent server for Claude Code detection
- Add getClaudeInfo() to return full Claude info with token usage
- Display real token usage (session/today/month) in Settings page
- Add Reload() method to KubectlProxy for dynamic kubeconfig updates

The agent health endpoint now returns hasClaude:true when Claude Code
CLI is installed, along with detailed token usage statistics read from
~/.claude/ directory.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
@clubanderson clubanderson force-pushed the feat/claude-code-integration branch from 0c337f2 to 208bfac Compare January 16, 2026 16:30
@clubanderson clubanderson merged commit 6e71f51 into main Jan 16, 2026
21 of 23 checks passed
@kubestellar-prow kubestellar-prow Bot deleted the feat/claude-code-integration branch January 16, 2026 16:36
@github-actions
Copy link
Copy Markdown
Contributor

🎉 Thank you for your contribution! Your PR has been successfully merged.


🌟 Help KubeStellar Grow - We Need Adopters!

Our roadmap is driven entirely by adopter feedback - nothing else. Whether you're using KubeStellar yourself or know organizations that could benefit from multi-cluster Kubernetes, we need your help:

📋 Take our Multi-Cluster Survey - Share your use cases and help shape our direction!

🗣️ Spread the word - Tell colleagues, write blog posts, present at meetups

💬 Share feedback on Slack #kubestellar-dev

Every adopter story helps us prioritize what matters most. Thank you for being part of the KubeStellar community!

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has signed the DCO. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

1 participant