hx config init: write a commented sample config

This commit is contained in:
hermes committed 2026-10-09 13:59:40 +00:00
1 parent e4694e126b
commit 10b22f5774
3 files changed
+97 -1

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
## hx config: ~/.hx/config.toml (global) or .hx/config.toml (project, overrides global).
## Every setting is commented out and shows its default or an example; uncomment to change it.
# provider = "claude" # claude | codex | custom; default: the first logged-in provider
# model = "claude-sonnet-5-5" # model for the chosen provider
# claude_model = "claude-sonnet-5-5" # default: the account's latest Sonnet
# codex_model = "gpt-5.6-sol" # default: Codex's top-listed model
# explore_model = "claude-haiku-4-5" # read-only `task` subagents; default: cheapest tier of the provider
# remember_model = true # reuse the last model picked with /model or /provider
# compact_at = 900000 # auto-compact at this many tokens; default: 90% of the context window
# max_tokens = 16384
# permissions = "ask" # ask | yolo (bash/write/edit run without a prompt)
# mouse = true # wheel scrolling; false keeps terminal text selection
# codemode = false # `codemode` tool: JS scripts that call other tools in a sandbox
# system_prompt = "..." # replaces the built-in prompt; AGENTS.md is still appended
## OpenAI-compatible endpoint (Ollama, vLLM, LM Studio, OpenRouter), used with provider = "custom".
# [openai_compat]
# base_url = "http://localhost:11434/v1"
# api_key_env = "OPENROUTER_API_KEY" # name of the env var holding the key; the key never goes here
# models = [] # fixed list; empty = ask GET {base_url}/models
# context_window = 128000 # for models that don't report one
# [lsp]
# mode = "turn_end" # turn_end | agent_end | off
# tests = "turn_end" # affected tests: turn_end | agent_end | off
# disable = [] # built-in server ids, e.g. ["clangd"]
# enable_runners = [] # opt-in (slow): ["clippy"]
# disable_runners = [] # ruff, biome, eslint, ast-grep, rustfmt, ruff-format, biome-format
## Add or override an LSP server (same id replaces a built-in).
# [[lsp.servers]]
# id = "zls"
# language = "zig"
# extensions = ["zig"]
# command = ["zls"]
# roots = ["build.zig"]
# install = ["brew", "install", "zls"] # offered by the lsp tool when `zls` is missing
## Subprocess extensions (JSON-RPC over stdio); global and project lists are concatenated.
# [[extensions]]
# command = ["node", "my-ext.js"]
# timeout_secs = 10