This commit is contained in:
2026-03-01 18:09:50 +00:00
parent d85bc01fc0
commit 870795b81f
2 changed files with 11 additions and 3 deletions

View File

@@ -1,14 +1,21 @@
#!/bin/bash
session_ts="$(date +%s)"
role="$1"
shift
session_ts="$(date +%s)"
work() {
aichat --save-session --session "$session_ts" --role "$role" "$*"
}
if [ -n "$1" ]; then
aichat --save-session --session "$session_ts" --role "$role" "$@"
work "$@"
fi
while true; do
read -e -r -p "> " input
aichat --save-session --session "$session_ts" --role "$role" "$input"
if [ -z "$input" ]; then
input="$(rlwrap cat)"
fi
work "$input"
done

View File

@@ -3,6 +3,7 @@
compress_threshold: 100000
summarize_prompt: 'Summarize the discussion in 5000 words or less to use as a prompt for future context.'
save_session: false
clients: