Skip to content

Allow CLI to use skills as first token in prompt - Remove "Unrecognized command" #17796

@banagale

Description

@banagale

What version of Codex CLI is running?

codex-cli 0.120.0

What subscription do you have?

Pro

Which model were you using?

No response

What platform is your computer?

No response

What terminal emulator and version are you using (if applicable)?

No response

What issue are you seeing?

If you start a message to codex with a valid command i.e. /babysit-pr it fails with "Unrecognized command"

So you have to add a token in front like, "use" when really that should not be necessary.

Sometimes, I specifically want to start a sentence with a skill like,/test this new feature, which is like a rather large verb behind that but the AI will absolutely get it once it processes the skill.

However, this is not allowed...for seemingly historical reasons when commands and skills had to be treated 100% differently.

What steps can reproduce the bug?

Create a valid skill, invoke it in the middle of a sentence. Do it again at the start. it fails.

What is the expected behavior?

It simply processes the skill as it otherwise would.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingenhancementNew feature or requestskillsIssues related to skills

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions