feat(tools): add tclaude/tcodex support + fix recall scope priority#64
Merged
Merged
Conversation
added 3 commits
June 29, 2026 14:38
Add support for @tencent/tclaude (bin: tclaude, config: ~/.tclaude/) and @tencent/tcodex (bin: tcodex, config: ~/.tcodex/) as new AI tool adapters. These coexist with the existing claude-internal/codex-internal adapters they are designed to replace. - Register tclaude/tcodex in ToolName union and ALL_SUPPORTED_TOOLS - Add default toolPaths (tclaude: full claude-compatible, tcodex: codex-compatible) - Add to KNOWN_AGENTS registry for skill directory detection - Add to AI CLI candidate whitelist (tclaude: -p, tcodex: exec) - Add to legacy agent copy set and reverseByTool dispatch - Add skill directories to usage tracker
…hare same repo When user and project scopes point to the same team repo, filename-based dedup was keeping user-scope results (searched first) and discarding project-scope results. This made project-scoped installations always show [user] labels with ~/.teamai/learnings/ paths. Fix: search project scope first so it wins dedup. User-only results still appear when no project scope is configured. Closes Tencent#58
Verify: toolPaths defaults, agent render dispatch, KNOWN_AGENTS registry, hook injection eligibility, and AI CLI detection whitelist.
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
tclaudeandtcodexas new AI tool adapters (coexist withclaude-internal/codex-internal)tclaude / tcodex support
@tencent/tclaude(bin:tclaude, config:~/.tclaude/) and@tencent/tcodex(bin:tcodex, config:~/.tcodex/) are new Tencent internal AI coding tools based on Claude Code and OpenAI Codex respectively. They useCLAUDE_CONFIG_DIR=~/.tclaudeto isolate their config from the upstreamclaudeCLI.Changes:
ToolNametype,ALL_SUPPORTED_TOOLS,tool_extrastoolPaths(tclaude: full claude-compatible with hooks; tcodex: codex-compatible without hooks)KNOWN_AGENTSregistry, AI CLI detection whitelist, agent render/reverse dispatchFix recall scope priority (Closes #58)
When user and project scopes point to the same team repo, filename-based dedup was keeping user-scope results (searched first) and discarding project-scope results. This made project-scoped installations always show
[user]labels with~/.teamai/learnings/paths.Fix: search project scope first so it wins dedup.
Test plan
npx tsc --noEmit— zero errorsnpx vitest run— 1528 passed (108 files)[project]teamai init --scope projectinjects hooks to.tclaude/settings.jsonwith--tool tclaudeteamai pullsyncs skills to.tclaude/skills/and injects recall rules to.tclaude/CLAUDE.mdtcodexcorrectly skipped when~/.tcodex/not installed