diff --git a/DEVELOPMENT_NOTES.md b/DEVELOPMENT_NOTES.md index 0c64113..2b2cdc8 100644 --- a/DEVELOPMENT_NOTES.md +++ b/DEVELOPMENT_NOTES.md @@ -84,6 +84,7 @@ $PROJECT_DIR # Project directory (mounted at full host path) /home/agent/.m2 # Maven cache /home/agent/.gradle # Gradle cache /home/agent/.shell_history # History directory (HISTFILE env var points to zsh_history inside) +/home/agent/.agents # Centralized agents directory (skills, prompts, etc.) /home/agent/.claude # Claude config /home/agent/.config/opencode # OpenCode config /home/agent/.local/share/opencode # OpenCode auth diff --git a/agentbox b/agentbox index 6b80aca..62bc740 100755 --- a/agentbox +++ b/agentbox @@ -371,6 +371,13 @@ run_container() { log_info "Claude CLI configuration mounted" fi + # Mount centralized agents directory (skills, prompts, etc.) + local agents_dir="${HOME}/.agents" + if [[ -d "$agents_dir" ]]; then + mount_opts+=(-v "${agents_dir}:/home/agent/.agents") + log_info "Agents directory mounted" + fi + # Set tool environment variable mount_opts+=(--env "TOOL=$tool")