[Discussion] Simplifying the config surface: can the Lua + TOML split converge?
Background
Kaku is forked from WezTerm and inherits its full config surface (config/src/*.rs, ~248 fields), but Kaku targets only macOS-native + AI use. As a user, the config feels heavier than it needs to be. Opening this to discuss direction with the author — not a PR.
Two observations
1. Inherited baggage
Many of the ~248 fields don't apply to a macOS-only product: wsl.rs / serial.rs / tls.rs, cross-platform frontend options, etc. A typical user probably touches <20 of them, but there's no layered exposure and discoverability is poor (Lua has no schema, so you end up reading the source to learn what exists).
2. Two config formats: Lua + TOML
Terminal behavior lives in kaku.lua; AI settings live in assistant.toml (managed by the kaku ai TUI). The split makes sense architecturally (the Rust core + CLI read TOML directly, it needs machine write-back, and secrets shouldn't live in Lua) — but from a user's point of view it's "two files, two syntaxes."
Questions for the author
- Is the dual-format split an intentional long-term design, or mostly an artifact of how things evolved?
- Has a curated "recommended config subset" doc/template been considered, to lower the discovery cost of the 248 fields?
- Would it be worth letting
kaku.luaalso declare the non-secret AI settings (model / base_url / timeout, …) while keeping secrets in the TUI-managed TOML? Or is keeping AI config fully separate a deliberate choice?
Purely a discussion — want to align on direction before deciding whether to do any of the work.
Thanks for opening this. The framing is reasonable.
My current direction is to keep the split between kaku.lua and assistant.toml.
kaku.lua should stay focused on terminal and WezTerm-style runtime configuration. assistant.toml should stay as the machine-editable AI config used by kaku ai, because it includes API keys, auth type, model/base URL, web search settings, and other fields that Kaku needs to read and write safely.
I agree the inherited config surface is too large for most Kaku users, but I do not want to remove or hide broad WezTerm-compatible fields yet. That would create compatibility and upstream-merge risk.
The best near-term improvement is a curated "recommended config" guide or template that documents the small set most users should touch, while leaving the full WezTerm config surface as an advanced escape hatch.
I would not add non-secret AI settings to kaku.lua for now. Splitting AI settings across Lua and TOML would make precedence, write-back, and debugging harder than the current "two files" cost. A docs/template PR focused on the recommended subset would be welcome.
Makes sense — agree on all three points. Keeping kaku.lua and assistant.toml separate is the right call: mixing non-secret AI settings into Lua would just trade a small "two files" cost for harder precedence, write-back, and debugging. And not touching the WezTerm-compatible surface avoids upstream-merge pain. No argument there.
The piece I'm most excited about is the curated recommended config guide. I think that solves the real problem here — the issue was never "too many fields exist," it was "a new user can't tell which 10 fields actually matter." The full surface can stay as the advanced escape hatch; we just need a well-lit front door.
@darion-yaphet thank you for the discussion. This is now addressed on main.
I kept the kaku.lua / assistant.toml split intentional and added a Recommended Config section to docs/configuration.md, so new users have a smaller front door while the full WezTerm-compatible config surface remains available.
Closing this as completed.