feat: user-level install target and directory option for agents #12
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 251 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.331
Real PR Conversation Timeline
1 comments
"Review active on #12"
general
weight: 0.35
coderabbitai[bot]
This pull request introduces a new feature to the
swayveCLI, allowing users to specify a working directory for agent terminals with the--diroption. It also refactors theMakefilefor improved usability and adds a new installation target. The most significant changes are grouped below:New CLI Feature: Agent Working Directory
Added a
--diroption to theAgentcommand incli.rsso users can specify the working directory for new agent terminals. If not provided, it defaults to the current directory.Implemented the
resolve_spawn_dirfunction to resolve and validate the working directory, ensuring it exists and is a directory. This function is used when spawning agent terminals. [[1]](diffhunk://#diff-abb915476b033b6bb363ff7f39c074bc8a6ae81c11070b28b9cc781772edd2a2R249-R255) [[2]](diffhunk://#diff-abb915476b033b6bb363ff7f39c074bc8a6ae81c11070b28b9cc781772edd2a2R313) [[3]](diffhunk://#diff-abb915476b033b6bb363ff7f39c074bc8a6ae81c11070b28b9cc781772edd2a2R600-R610)Added unit tests for
resolve_spawn_dirto verify correct handling of default, relative, and invalid paths.Makefile Improvements
Refactored the
Makefileto provide concise help output, added descriptions for each target, and set the default goal tohelp.install-usertarget to installswayveandswayve-hudto~/.local/binwithout requiringsudo, with the ability to override the install root.<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
- Spawned terminal sessions can now start in a specified working directory. If none is provided, they start in the current directory.
- Added a user-level installation option for installing the application and HUD under a configurable location.
- The build tool’s help command is now the default and provides updated target descriptions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->