Repository navigation
fix(rules): give ZCode, DeepSeek Harness and JoyCode the instruction blocks in their user rules file - #1031
Merged
jeff-r2026 merged 2 commits intoOct 12, 2026
Conversation
…blocks in their user rules file (Tencent#1029) Tencent#957 gave these tools a user-scope team-rules file but no instruction target, so a configured claudemd naming that file counted as retired: pull stripped or deleted the file each run and doctor flagged it. They now read culture, shared instructions and recall from the same file as their team rules, as Codex, Pi and OpenClaw do.
|
No findings. The PR description includes sufficient testing: unit, type-check, lint, and a representative real-CLI ZCode verification for this runtime behavior change. I did not run any PR code, per instructions. |
…tion-files # Conflicts: # CHANGELOG.md
|
No findings. The PR description documents sufficient testing for this runtime behavior change, including unit, type-check, lint, build, and representative real-CLI verification. The untested DeepSeek Harness/JoyCode and additional provider/platform coverage are explicitly disclosed and do not warrant a finding. I did not run or install PR code, per instructions. |
jeff-r2026
approved these changes
Oct 12, 2026
Walternater
pushed a commit
to Walternater/teamai-cli
that referenced
this pull request
Nov 2, 2026
…blocks in their user rules file (Tencent#1029) (Tencent#1031) Tencent#957 gave these tools a user-scope team-rules file but no instruction target, so a configured claudemd naming that file counted as retired: pull stripped or deleted the file each run and doctor flagged it. They now read culture, shared instructions and recall from the same file as their team rules, as Codex, Pi and OpenClaw do.
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.
Fixes #1029.
Summary
In user scope, ZCode, DeepSeek Harness and JoyCode had a team-rules file but no instruction target. As a result, a team
claudemdthat named that file counted as retired, and pull cleaned it on every run. Now each of the three reads the culture, shared-instructions and recall blocks from the same file as its team rules, as Codex, Pi and OpenClaw already do.No setter remains for
teamRules.file, so the field is removed. The Windows ZCode hook-output problem raised in the issue is tracked separately in #1030. Docs (en + zh-CN) and CHANGELOG are updated.Evidence
Unit:
src/__tests__/instruction-targets.test.ts, a new(#1029)describe block:claudemd: undefined: expected [] to deeply equal [ Array(1) ]. Codex, Pi and OpenClaw pass.npx vitest runpasses (8472 passed, 19 skipped).npx tsc --noEmitandnpm run lintpass.After merging
origin/main(headdccdba92):npx tsc --noEmit,npm run lint, andnpm run buildpass.npx vitest runpasses (401 test files passed, 1 skipped; 8622 tests passed, 19 skipped).Real CLI after merge (isolated
HOME, local team repo, user scope; ZCode, DeepSeek Harness and JoyCode enabled):teamai pull --forceexited 0, synced one rule, and the rule marker was present in all three user rules files.Real CLI (macOS, user scope, isolated
HOME, local bare team repo,--agent zcode). The team hasclaudemd/harness-rules.mdandrules/small-diffs.md, and itstoolPaths.zcodeis the issue's table withclaudemd: '.zcode/AGENTS.md'. Sequence:init→pull --force→doctor→pull.toolPaths, 0.27.0 writes only[teamai:team-rules]to the file. The shared instructions never reach ZCode.npm run build), with both the issue'stoolPathsand the defaults:Not checked:
rules.txtgets the same marker-delimited markdown its team-rules block already uses. I could not check whether JoyCode limits that file's size.git, are left to CI.Merge Danger
Door: two-way
Reverting the commit restores the 0.27.0 targets. A later pull on the older build removes the instruction blocks, the same cleanup that #1029 reports.
Blast Radius: user-scope
~/.zcode/AGENTS.md,$DSH_HOME/AGENTS.mdand~/.joycode/rules.txtfor every member with those tools installed. Content outside the markers is kept.toolPathspoints one of these tools'claudemdat another file, pull removes teamai's blocks from that file.teamai uninstallnow treats these three files the way it treats Hermes' and OpenClaw's fixed files: a file that holds only teamai blocks is deleted, even if git tracks it.