feat: add --no-github flag to disable GitHub operations#163
Merged
Conversation
Add --no-github CLI flag to ceo, run, and tmux subcommands. When set, injects a directive into the CEO task instructing it to skip all GitHub operations (issue creation, PR posting, pushing, cloning). The flag threads through the full call chain: cmd_ceo/cmd_run -> _run_single_cycle -> _build_ceo_task, and through _chain_modes for multi-step pipelines. The tmux subcommand forwards it to the underlying factory run shell command. Fixes akashgit#122, closes akashgit#123 Signed-off-by: Luke Inglis <lukeinglis21@yahoo.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #163 +/- ##
==========================================
- Coverage 86.23% 86.20% -0.03%
==========================================
Files 45 45
Lines 6307 6316 +9
==========================================
+ Hits 5439 5445 +6
- Misses 868 871 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
akashgit
approved these changes
May 2, 2026
Owner
akashgit
left a comment
There was a problem hiding this comment.
Clean implementation: --no-github threads correctly through all paths (ceo, run, tmux, _run_single_cycle, _build_ceo_task, _chain_modes). 19 tests added covering parser defaults, task injection, tmux forwarding, and e2e. Lint clean, all 143 tests pass. Ship it.
This was referenced May 2, 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.
Summary
--no-githubCLI flag toceo,run, andtmuxsubcommandscmd_ceo/cmd_run->_run_single_cycle->_build_ceo_task->_chain_modestmuxsupport (forwarded via shell command string), addressing the review feedback on the previous attempt (feat: add --no-github flag to disable GitHub operations #124)Changes
Single file:
factory/cli.py--no-githubadded to all three subcommand parsers (ceo,run,tmux)getattr(args, "no_github", False)incmd_ceoandcmd_run_build_ceo_task()appends a "GitHub Operations Disabled" directive when flag is set_run_single_cycle()and_chain_modes()accept and forwardno_githubcmd_tmux()appends--no-githubto the shell command passed to the tmux sessionContext
Supersedes #124, which was missing tmux subcommand support (flagged in review by @akashgit). This PR addresses that gap.
Fixes #122, closes #123
Test plan
factory ceo --helpshows--no-githubfactory run --helpshows--no-githubfactory tmux --helpshows--no-githubfactory runcommand