feat(kugetsu): add local config file for user overrides

- Source ~/.kugetsu/config on each command call
- Allows user to override defaults (e.g., MAX_CONCURRENT_AGENTS)
- Changes take effect immediately, no re-init needed

Fixes #67
This commit is contained in:
shokollm
2026-04-01 08:21:02 +00:00
parent 4d3205de86
commit a195d68b2a

View File

@@ -10,6 +10,11 @@ NOTIFICATIONS_FILE="$KUGETSU_DIR/notifications.json"
LOGS_DIR="$KUGETSU_DIR/logs"
MAX_CONCURRENT_AGENTS="${MAX_CONCURRENT_AGENTS:-3}"
# Load user config overrides (~/.kugetsu/config)
if [ -f "$KUGETSU_DIR/config" ]; then
source "$KUGETSU_DIR/config"
fi
count_active_dev_sessions() {
local count=0
if [ -d "$SESSIONS_DIR" ]; then