Skip to content

feat: unify shell mode into agent subcommand#31

Merged
coopbri merged 6 commits intomasterfrom
fix/remove-bare-prompt-positional
Mar 27, 2026
Merged

feat: unify shell mode into agent subcommand#31
coopbri merged 6 commits intomasterfrom
fix/remove-bare-prompt-positional

Conversation

@coopbri
Copy link
Copy Markdown
Contributor

@coopbri coopbri commented Mar 26, 2026

Description

Remove the standalone omni shell subcommand in favor of a unified agent interface. Natural language shell tasks are now handled by omni agent, which routes simple shell commands through its existing tool system.

This aligns with industry best practice (single agentic entry point) and reduces user-facing complexity.

  • omni agent "list files" (or omni a "list files")
  • Old: omni shell "list files" / omni sh "list files" (no longer works)
  • Old: omni "list files" (removed in prior commit)

Also includes rustfmt formatting pass and removal of the committed agent-core patch override.

Breaking change: omni shell "prompt" is now omni agent "prompt"

Test Steps

  • Run cargo test cli::tests (19 tests pass)
  • Build and verify: cargo build --release
    • ./target/release/omni agent "list files in current dir" works
    • ./target/release/omni a "list files" works (alias)
    • ./target/release/omni (no args launches TUI, unchanged)

Remove bare positional prompt from Cli struct. Shell mode is now
accessed via `omni shell "prompt"` (alias: `omni sh`). This frees
the argument space for plugin external_subcommand routing, so
`omni run up runa` works without quoting.

BREAKING CHANGE: `omni "list files"` is now `omni shell "list files"`
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 26, 2026

🦋 Changeset detected

Latest commit: b94fb08

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@omnidotdev/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coopbri coopbri changed the title feat!: move shell mode to explicit omni shell subcommand feat: move shell mode to explicit omni shell subcommand Mar 26, 2026
@coopbri coopbri changed the title feat: move shell mode to explicit omni shell subcommand feat: unify shell mode into agent subcommand Mar 26, 2026
coopbri added 3 commits March 26, 2026 13:38
Remove the standalone `omni shell` / `omni sh` subcommand. Natural
language shell tasks are now handled by `omni agent`, aligning with
the industry-standard single agentic entry point pattern.
The agent's built-in tool system handles shell execution via
agent-core's ShellTool, making this standalone NL-to-command
pipeline redundant.
@coopbri coopbri force-pushed the fix/remove-bare-prompt-positional branch from d06ea4e to b94fb08 Compare March 27, 2026 01:36
@coopbri coopbri merged commit b7b0321 into master Mar 27, 2026
4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2026
@coopbri coopbri deleted the fix/remove-bare-prompt-positional branch March 27, 2026 01:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant