Repository navigation
fix(hooks): seed project agent root on SessionStart before pull - #346
Merged
Merged
Conversation
Project-scope init never creates .claude/.cursor/.codebuddy, and Claude opens using ~/.claude, so pull saw no local target. SessionStart now mkdirs the current --tool root under the project, then pulls. Co-authored-by: Cursor <[email protected]>
Walternater
pushed a commit
to Walternater/teamai-cli
that referenced
this pull request
Nov 2, 2026
…ent#346) Project-scope init never creates .claude/.cursor/.codebuddy, and Claude opens using ~/.claude, so pull saw no local target. SessionStart now mkdirs the current --tool root under the project, then pulls. Co-authored-by: Cursor <[email protected]>
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
--tool claude|cursor|codebuddy|…now creates that agent's project root (<project>/.claude, etc.) beforeteamai pull, so the first open of Claude/Cursor/CodeBuddy actually syncs skills.teamai pull/teamai initstill do not invent agent directories. Disabled agents and tools missing fromenabledAgentsare not seeded.Test plan
seedProjectAgentRootcreates only the requested tool root; no-ops for user scope, disabled agents, unknown tools, andenabledAgentsmissespull({ silent: true })teamai pulldoes not create.claudehook-dispatch session-start --tool claude --bg-onlyseeds.claudeand writes the team skill;--tool cursorseeds only.cursor; disabled codebuddy is not createdhai) —.claude/appears and pull targets are no longer emptyMade with Cursor