gabriel / muse public
feat patch task/hub-agent-ergonomics #1 / 1
AI Agent gabriel · 154 days ago · Apr 22, 2026 · Diff

feat: absorb git/GitHub muscle-memory flags in hub repo commands

hub repo create: accept --visibility public|private as alias for --private. Agents trained on GitHub CLI reach for --visibility reflexively; rejecting with a generic argparse error wastes a round-trip. Now maps cleanly: --visibility public → visibility=public (same as default) --visibility private → visibility=private (same as --private) --visibility X + --private contradicts → clear error

hub repo list: accept --owner with an actionable error explaining that no server-side owner filter exists and showing the exact python pipe pattern to filter client-side. Previously argparse's generic rejection gave agents no path forward.

9 new tests in TestRepoCreateVisibilityAlias + TestRepoListOwnerFlag.

sha256:ca5afc66a5c19bc2a46045467732df67c35e721faa52082d31c46f708fc29ea3 sha
+14 ~3 symbols
sha256:0e5efb63f074602632521db888be561800f355fc36e203ae9be4634f95a641ca snapshot
+14
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes 17 symbols
~ tests/test_cli_hub.py .py 14 symbols added
+ TestRepoCreateVisibilityAlias class class TestRepoCreateVisibilityAlias L1141–1250
+ _setup_auth method method _setup_auth L1151–1160
+ test_visibility_conflicts_with_private_flag method method test_visibility_conflicts_with_private_flag L1242–1250
+ test_visibility_invalid_value_exits_nonzero method method test_visibility_invalid_value_exits_nonzero L1230–1240
+ test_visibility_private_maps_to_private method method test_visibility_private_maps_to_private L1181–1205
+ test_visibility_public_is_accepted method method test_visibility_public_is_accepted L1162–1179
+ test_visibility_public_sends_public method method test_visibility_public_sends_public L1207–1228
+ TestRepoListOwnerFlag class class TestRepoListOwnerFlag L1253–1304
+ _setup_auth method method _setup_auth L1262–1271
+ test_owner_error_names_the_owner_value method method test_owner_error_names_the_owner_value L1299–1304
+ test_owner_error_suggests_pipe_pattern method method test_owner_error_suggests_pipe_pattern L1290–1297
+ test_owner_flag_exits_with_helpful_error method method test_owner_flag_exits_with_helpful_error L1282–1288
+ test_owner_flag_is_accepted_by_parser method method test_owner_flag_is_accepted_by_parser L1273–1280
+ _mock_create_resp function function _mock_create_resp L1127–1138
← Older Oldest on task/hub-agent-ergonomics
All commits
Newer → Latest on task/hub-agent-ergonomics

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:ca5afc66a5c19bc2a46045467732df67c35e721faa52082d31c46f708fc29ea3 --body "your comment"