-
Notifications
You must be signed in to change notification settings - Fork 60
Resolve the right workspace key for CLI commands in a project directory #1274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ff4b277
feat(cli): add --wk shorthand for --workspace-key on SDK commands
claude 65641b4
feat(cli): reuse the up workspace key for commands in the same directory
claude b42d50f
feat(cli): warn when `fleet nodes` infers the workspace key from the …
claude bdd40cc
style: auto-format with Prettier
github-actions[bot] c0de5f9
fix(cli): harden project workspace-key persistence per review
claude 174bf7c
Merge branch 'main' into claude/agent-relay-fleet-nodes-j6rer3
willwashburn 8841a16
test(cli): tidy temp-file and default-dir cleanup per review
claude 4683d6d
docs(changelog): move workspace-key entries to Unreleased
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
.agentworkforce/trajectories/completed/2026-07/traj_f8bgcpr32y71/summary.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Trajectory: Add --wk shorthand for --workspace-key on SDK commands | ||
|
|
||
| > **Status:** ✅ Completed | ||
| > **Confidence:** 90% | ||
| > **Started:** July 15, 2026 at 06:57 PM | ||
| > **Completed:** July 15, 2026 at 06:57 PM | ||
|
|
||
| --- | ||
|
|
||
| ## Summary | ||
|
|
||
| Added --wk alias for --workspace-key via preAction hook in addSdkOptions | ||
|
|
||
| **Approach:** Standard approach | ||
|
|
||
| --- | ||
|
|
||
| ## Key Decisions | ||
|
|
||
| ### Fold --wk into workspaceKey via a Commander preAction hook in addSdkOptions | ||
|
|
||
| - **Chose:** Fold --wk into workspaceKey via a Commander preAction hook in addSdkOptions | ||
| - **Reasoning:** Single choke point normalizes the alias for every reader; Commander v12 can't alias two long flags to one attribute | ||
|
|
||
| --- | ||
|
|
||
| ## Chapters | ||
|
|
||
| ### 1. Work | ||
|
|
||
| _Agent: default_ | ||
|
|
||
| - Fold --wk into workspaceKey via a Commander preAction hook in addSdkOptions: Fold --wk into workspaceKey via a Commander preAction hook in addSdkOptions |
53 changes: 53 additions & 0 deletions
53
.agentworkforce/trajectories/completed/2026-07/traj_f8bgcpr32y71/trajectory.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| { | ||
| "id": "traj_f8bgcpr32y71", | ||
| "version": 1, | ||
| "task": { | ||
| "title": "Add --wk shorthand for --workspace-key on SDK commands" | ||
| }, | ||
| "status": "completed", | ||
| "startedAt": "2026-07-15T18:57:06.368Z", | ||
| "completedAt": "2026-07-15T18:57:13.746Z", | ||
| "agents": [ | ||
| { | ||
| "name": "default", | ||
| "role": "lead", | ||
| "joinedAt": "2026-07-15T18:57:07.613Z" | ||
| } | ||
| ], | ||
| "chapters": [ | ||
| { | ||
| "id": "chap_pz1ubxwwsf70", | ||
| "title": "Work", | ||
| "agentName": "default", | ||
| "startedAt": "2026-07-15T18:57:07.613Z", | ||
| "endedAt": "2026-07-15T18:57:13.746Z", | ||
| "events": [ | ||
| { | ||
| "ts": 1784141827614, | ||
| "type": "decision", | ||
| "content": "Fold --wk into workspaceKey via a Commander preAction hook in addSdkOptions: Fold --wk into workspaceKey via a Commander preAction hook in addSdkOptions", | ||
| "raw": { | ||
| "question": "Fold --wk into workspaceKey via a Commander preAction hook in addSdkOptions", | ||
| "chosen": "Fold --wk into workspaceKey via a Commander preAction hook in addSdkOptions", | ||
| "alternatives": [], | ||
| "reasoning": "Single choke point normalizes the alias for every reader; Commander v12 can't alias two long flags to one attribute" | ||
| }, | ||
| "significance": "high" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "retrospective": { | ||
| "summary": "Added --wk alias for --workspace-key via preAction hook in addSdkOptions", | ||
| "approach": "Standard approach", | ||
| "confidence": 0.9 | ||
| }, | ||
| "commits": [], | ||
| "filesChanged": [], | ||
| "projectId": "AgentWorkforce/relay", | ||
| "tags": [], | ||
| "_trace": { | ||
| "startRef": "e93e5c7b8f94b35d718057baec5e4242d198dfb7", | ||
| "endRef": "e93e5c7b8f94b35d718057baec5e4242d198dfb7" | ||
| } | ||
| } |
24 changes: 24 additions & 0 deletions
24
.agentworkforce/trajectories/completed/2026-07/traj_sgdizcyacm51/summary.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Trajectory: Persist up workspace key per-project; resolve it in CWD; add --wk to up | ||
|
|
||
| > **Status:** ✅ Completed | ||
| > **Confidence:** 85% | ||
| > **Started:** July 15, 2026 at 07:28 PM | ||
| > **Completed:** July 15, 2026 at 07:28 PM | ||
|
|
||
| --- | ||
|
|
||
| ## Summary | ||
|
|
||
| up persists project workspace key; CWD resolution; --wk on up | ||
|
|
||
| **Approach:** Standard approach | ||
|
|
||
| --- | ||
|
|
||
| ## Chapters | ||
|
|
||
| ### 1. Work | ||
|
|
||
| _Agent: default_ | ||
|
|
||
| - Persist workspace key per-project on up; resolve below flag/env above global store: Persist workspace key per-project on up; resolve below flag/env above global store |
53 changes: 53 additions & 0 deletions
53
.agentworkforce/trajectories/completed/2026-07/traj_sgdizcyacm51/trajectory.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| { | ||
| "id": "traj_sgdizcyacm51", | ||
| "version": 1, | ||
| "task": { | ||
| "title": "Persist up workspace key per-project; resolve it in CWD; add --wk to up" | ||
| }, | ||
| "status": "completed", | ||
| "startedAt": "2026-07-15T19:28:16.051Z", | ||
| "completedAt": "2026-07-15T19:28:23.602Z", | ||
| "agents": [ | ||
| { | ||
| "name": "default", | ||
| "role": "lead", | ||
| "joinedAt": "2026-07-15T19:28:17.148Z" | ||
| } | ||
| ], | ||
| "chapters": [ | ||
| { | ||
| "id": "chap_a1d3oh6mby93", | ||
| "title": "Work", | ||
| "agentName": "default", | ||
| "startedAt": "2026-07-15T19:28:17.148Z", | ||
| "endedAt": "2026-07-15T19:28:23.602Z", | ||
| "events": [ | ||
| { | ||
| "ts": 1784143697150, | ||
| "type": "decision", | ||
| "content": "Persist workspace key per-project on up; resolve below flag/env above global store: Persist workspace key per-project on up; resolve below flag/env above global store", | ||
| "raw": { | ||
| "question": "Persist workspace key per-project on up; resolve below flag/env above global store", | ||
| "chosen": "Persist workspace key per-project on up; resolve below flag/env above global store", | ||
| "alternatives": [], | ||
| "reasoning": "" | ||
| }, | ||
| "significance": "high" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "retrospective": { | ||
| "summary": "up persists project workspace key; CWD resolution; --wk on up", | ||
| "approach": "Standard approach", | ||
| "confidence": 0.85 | ||
| }, | ||
| "commits": [], | ||
| "filesChanged": [], | ||
| "projectId": "AgentWorkforce/relay", | ||
| "tags": [], | ||
| "_trace": { | ||
| "startRef": "ff4b2773aabaa2c2ec3cbf2d9856b8bce77022e4", | ||
| "endRef": "ff4b2773aabaa2c2ec3cbf2d9856b8bce77022e4" | ||
| } | ||
| } |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.