Add YOLO mode for CLI and TUI sessions#9392
Open
Githubguy132010 wants to merge 12 commits intoKilo-Org:mainfrom
Open
Add YOLO mode for CLI and TUI sessions#9392Githubguy132010 wants to merge 12 commits intoKilo-Org:mainfrom
Githubguy132010 wants to merge 12 commits intoKilo-Org:mainfrom
Conversation
- Add --yolo CLI flag to auto-approve tools without prompts - Add /yolo TUI command to toggle YOLO mode mid-session - Replace auto-mode tests with yolo-mode tests
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ff9037c86c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- Adds --yolo CLI flag - Allows tools to run without permission prompts - Creates session with wildcard permissions
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 files)
Reviewed by gpt-5.4-20260305 · 1,478,148 tokens |
Wait for first permission request and reply once instead of allowing all tools at session creation Preserve yolo behavior across session restarts via yoloSessionID
Separates yolo session tracking into dedicated module for cleaner state management
- Add kilocode_change comment to import for fork merge compatibility
alex-alecu
reviewed
Apr 23, 2026
alex-alecu
reviewed
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Add a YOLO mode that skips tool permission prompts, without changing the existing meaning of
--autofor autonomous runs.Implementation
Added a new
--yoloflag tokilo runand a/yolotoggle in the TUI. Forkilo run, YOLO auto-approves permission requests without changing--auto. In the TUI, YOLO is session-scoped and transient: it auto-repliesonceto permission requests for the active session instead of persisting a wildcard session rule. That keeps agent-level denies intact, avoids leaking YOLO across other sessions, and lets/yolobehave like a real toggle. A small Home tip was also added so the mode is easier to discover.Screenshots
How to Test
kilo run --yolo \"check the repo\"and confirm permission prompts are auto-approved.kilo --yolo, open a new session, and confirm repeated permission prompts in that session are auto-approved./yoloto toggle session-scoped YOLO mode on and off./yolokeeps it disabled.bun test test/cli/yolo-mode.test.tsbun test test/cli/tui/thread.test.tsbun run typecheckGet in Touch
Thomas Brugman (thomas07374) on Kilo Code Discord.