From 90f409c64e6ab4e2bf226cc9718344656f70ea5f Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Thu, 29 Jan 2026 12:41:01 +0000 Subject: [PATCH] Initial commit: ShellGen CLI tool with LLM backends --- app/config.yaml | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 app/config.yaml diff --git a/app/config.yaml b/app/config.yaml new file mode 100644 index 0000000..12da0a1 --- /dev/null +++ b/app/config.yaml @@ -0,0 +1,55 @@ +default_backend: ollama + +backends: + ollama: + host: "localhost:11434" + model: "codellama" + temperature: 0.1 + max_tokens: 500 + + llama_cpp: + model_path: "~/.cache/llama-cpp/models/" + n_ctx: 2048 + n_threads: 4 + temperature: 0.1 + max_tokens: 500 + +shell: + default: bash + supported: + - bash + - zsh + +safety: + auto_execute_safe: false + require_confirmation: true + dangerous_patterns: + - "rm -rf" + - "rm -r /" + - "dd if=" + - "mkfs" + - "format" + - "shred" + - "fork bomb" + + safe_patterns: + - "ls" + - "cat" + - "grep" + - "find" + - "echo" + - "pwd" + - "cd" + - "git" + - "npm install" + - "pip install" + +output: + theme: default + syntax_highlighting: true + show_explanation: true + +history: + enabled: true + path: "~/.shellgen/history.db" + max_entries: 1000