Skip to content

feat(tools): add tclaude/tcodex support + fix recall scope priority#64

Merged
jeff-r2026 merged 3 commits into
Tencent:mainfrom
m0Nst3r873:feat/tclaude-tcodex-support
Jun 29, 2026
Merged

feat(tools): add tclaude/tcodex support + fix recall scope priority#64
jeff-r2026 merged 3 commits into
Tencent:mainfrom
m0Nst3r873:feat/tclaude-tcodex-support

Conversation

@m0Nst3r873

@m0Nst3r873 m0Nst3r873 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add tclaude and tcodex as new AI tool adapters (coexist with claude-internal/codex-internal)
  • Fix recall scope dedup priority: project scope now wins when both scopes share the same team repo

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 use CLAUDE_CONFIG_DIR=~/.tclaude to isolate their config from the upstream claude CLI.

Changes:

  • Register in ToolName type, ALL_SUPPORTED_TOOLS, tool_extras
  • Add default toolPaths (tclaude: full claude-compatible with hooks; tcodex: codex-compatible without hooks)
  • Add to KNOWN_AGENTS registry, AI CLI detection whitelist, agent render/reverse dispatch
  • Add skill directories to usage tracker

Fix 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 errors
  • npx vitest run — 1528 passed (108 files)
  • Integration tests: toolPaths defaults, agent render dispatch, KNOWN_AGENTS, hook eligibility, CLI whitelist
  • Recall dedup verified: project-first dedup correctly labels results as [project]
  • teamai init --scope project injects hooks to .tclaude/settings.json with --tool tclaude
  • teamai pull syncs skills to .tclaude/skills/ and injects recall rules to .tclaude/CLAUDE.md
  • tcodex correctly skipped when ~/.tcodex/ not installed

jaelgeng 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.
@jeff-r2026 jeff-r2026 merged commit 2bc0f6b into Tencent:main Jun 29, 2026
7 checks passed
@m0Nst3r873 m0Nst3r873 deleted the feat/tclaude-tcodex-support branch June 29, 2026 08:17
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.

project-scoped 安装下 recall/auto-recall 未隔离,搜索数据落到 user scope

2 participants