feat: add local config file for user overrides

Add ~/.kugetsu/config file that sources on each command call for
persistent user overrides like MAX_CONCURRENT_AGENTS.

Fixes #67
This commit is contained in:
shokollm
2026-04-01 07:07:21 +00:00
parent 6c23d4f5e9
commit ebc2f99320

View File

@@ -9,8 +9,8 @@ INDEX_FILE="$KUGETSU_DIR/index.json"
NOTIFICATIONS_FILE="$KUGETSU_DIR/notifications.json"
LOGS_DIR="$KUGETSU_DIR/logs"
MAX_CONCURRENT_AGENTS="${MAX_CONCURRENT_AGENTS:-3}"
AGENT_COUNT_FILE="$KUGETSU_DIR/.agent_count"
AGENT_LOCK_FILE="$KUGETSU_DIR/.agent_lock"
[ -f "$KUGETSU_DIR/config" ] && source "$KUGETSU_DIR/config"
acquire_agent_slot() {
local timeout="${1:-300}"