Feature Request: CLI/TUI rules selector & global rules toggle #4169
SolomonHD
started this conversation in
1. Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Add a terminal UI (or CLI commands) to view and toggle global and project rules for Kilo Code when using the CLI, similar to the “Use global rules” toggle and rule management UI in the IDE.
Right now, the CLI always loads global rules from
~/.kilocode/rulesplus project rules. There’s no easy way to temporarily disable or selectively apply those rules from the CLI itself.Problem / Motivation
When using Kilo Code via the CLI:
Global rules are always “on” as long as they exist in
~/.kilocode/rules.There is no CLI equivalent to the IDE’s “Use global rules” checkbox or other rule management UI.
The only practical way to disable global rules is to:
~/.kilocode/rulesout of the way, orThis is clunky if you:
In short: IDE users get an explicit toggle, CLI-first users don’t.
Proposed Solution
Introduce a simple rules selector for the CLI, ideally as a TUI but a small set of commands/flags would already be a big win.
1. Session-level flags
Add CLI flags to control global rule usage per run, e.g.:
This lets users keep their global setup intact but opt out when needed.
2. Optional TUI:
/rulesorkilocode rulesProvide a TUI or interactive view for rules when running in interactive mode, for example:
/rulesinside the CLI, orkilocode rulesfrom the shellThe TUI could:
List global rules and project rules separately.
Show which sets are currently “active” in this session.
Let the user:
Even a simple first version that only offers:
[x] Use global rules this session[x] Use project rules[ ] Use Memory Bankwould be extremely helpful.
3. Config-level default
Allow setting a default behavior in a config file (e.g.
~/.kilocode/config), for example:Then allow per-session overrides via flags as in (1).
Benefits / Use Cases
Safer experimentation
Per-project behavior
Parity with the IDE
Scripting & automation
--no-global-rules, scripts and CI jobs can intentionally bypass global rules while keeping developer local sessions richer.Possible UX Sketch
Changes would apply to the current session only unless explicitly written back to a config file.
Acceptance Criteria
~/.kilocode/rules./rulesor similar) that allows toggling rule sets on/off during an interactive CLI session.Happy to answer questions, rename flags, or test early builds.
Beta Was this translation helpful? Give feedback.
All reactions