Skip to content

Add configurable headless defaults#6

Merged
RobertTLange merged 12 commits intomainfrom
fixes_021
Apr 27, 2026
Merged

Add configurable headless defaults#6
RobertTLange merged 12 commits intomainfrom
fixes_021

Conversation

@RobertTLange
Copy link
Copy Markdown
Owner

What changed

  • Added ~/.headless/config.toml support for per-agent default model and reasoning_effort values.
  • Added a packaged config.toml.example and README docs for setup, supported keys, and precedence.
  • Updated the changelog with all commits since v0.2.0, including usage accounting, provider defaults, Gemini trust handling, OpenCode output extraction, Pi provider/model specs, Cursor model/effort variants, and config defaults.

Why

  • Lets users set stable defaults once instead of repeating model and reasoning flags for every headless run.
  • Keeps CLI flags and existing Codex/Pi environment overrides as higher-priority escape hatches.

Verification

  • npm run check
  • npm pack --dry-run
  • npm install -g .
  • headless opencode --prompt "hello" --print-command
  • Temp HOME smoke with [agents.opencode] model = "openai/gpt-5.5" and reasoning_effort = "high"

@RobertTLange RobertTLange merged commit 052b098 into main Apr 27, 2026
2 checks passed
@RobertTLange RobertTLange deleted the fixes_021 branch April 27, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant