feat(agent): add claude-internal agent support#7
Open
XingLiu1 wants to merge 1 commit into
Open
Conversation
- Add claude-internal agent config (same hook protocol as claude-code,
config dir ~/.claude-internal/settings.json)
- Add hooks/install-claude-internal.js delegating to install.js with
overridden settingsPath
- Wire into registry, prefs defaults, integration-sync, settings-actions,
and doctor-descriptors
- Extend analytics-scan to read ~/.claude-internal/projects/ and tag
sessions as agent 'claude-internal'; refactor scanClaudeProject to
accept agentId param instead of post-hoc mutation
- Add ~/.claude-internal/projects to analytics-watcher poll roots
- Update README.md and README.zh-CN.md to document the new agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for claude-internal — a drop-in for forks of Claude Code that use
~/.claude-internal/as their config directory (e.g. Tencent internal builds). The hook protocol, event map, and JSONL format are identical toclaude-code, so the integration is a thin wrapper with no code duplication.What's included
~/.claude-internal/settings.json; the pet reacts toclaude-internalsessions in real-time just likeclaude-code~/.claude-internal/projects/so sessions appear in the timeline and are available for AI analysis~/.claude-internal/projects/so the dashboard auto-refreshes on new conversationsclaude-internalappears as a toggleable agent in Settings → Agents with permission and notification hook controlsclaude-internalFiles changed
agents/claude-internal.jshooks/install-claude-internal.jsinstall.js, overridessettingsPath)agents/registry.jssrc/prefs.jssrc/integration-sync.jssyncClaudeInternalHookssrc/settings-actions-agents.jsAUTO_REPAIRABLE_AGENT_IDSsrc/doctor-detectors/agent-descriptors.js~/.claude-internal/src/analytics-scan.js~/.claude-internal/projects/; refactorscanClaudeProjectto acceptagentIdparamsrc/analytics-watcher.js~/.claude-internal/projectsto poll rootsREADME.md/README.zh-CN.mdTest plan
claude-internalin Settings → Agents; confirm hooks written to~/.claude-internal/settings.jsonclaude-internalon a project; confirm pet animates in real-time~/.claude-internal/projects/appear in the timelineclaude-internalsession; confirm it resolves the JSONL file and returns a summaryclaude-codesessions are unaffected🤖 Generated with Claude Code