Add a discoverable /ultracode <task> command - #329
Merged
Conversation
…s + dispatches) The ultracode authoring trigger shipped as a bare keyword (per the doc's literal wording), so typing "/ultracode" — the natural thing — got no autocomplete and dispatched as an unknown slash command: the keyword only fires on non-slash input via chat(). Add a real /ultracode <task> command: a bundled PromptCommand (kind="workflow", gated by is_workflows_enabled) whose directive tells the model to AUTHOR a fresh workflow script for the task and launch it via the Workflow tool, then stop (background run). Registered through bundled_workflow_commands(), the same path that makes /deep-research dispatch + autocomplete — so /ultracode now shows in `/` completion with a "workflow" tag and renders the directive with the task substituted (verified end-to-end through execute_command_async). Distinct from /deep-research and saved /<name> (which run an EXISTING script); the bare `ultracode` keyword and `/effort ultracode` session mode are unchanged. Tests: /ultracode registered + autocompletes + gated off when disabled; directive authors + launches + ends the turn. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jun 13, 2026
peroxider
pushed a commit
to peroxider/clawcodex
that referenced
this pull request
Jun 15, 2026
… authors + saves a /<name> Follow the actual Claude Code approach: ultracode is triggered by the KEYWORD in a prompt, never a slash command. Revert the /ultracode slash command (agentforce314#329/agentforce314#330/agentforce314#331) and route everything through the keyword. - Remove the /ultracode PromptCommand + its directive from workflows_integration.py; bundled_workflow_commands() now contributes only /workflows + /deep-research. - src/workflow/ultracode.py: the keyword reminder (and the /effort ultracode session reminder) now instruct the model to AUTHOR a workflow and SAVE it to .claude/workflows/<name>.py (then run via /<name>) — not run it inline. Keeps the blunt imperative + inline skeleton + anti-tool-hunt language ("no ultracode tool/ skill, do NOT use ToolSearch") that a live failure showed is necessary. The saved file becomes /<name> via load_and_register_workflows, picked up mid-session by _refresh_workflow_commands (unchanged), so the keyword -> /<name> handoff works without a restart — like /deep-research. Tests: assert there is NO /ultracode command (keyword-only); keyword reminder is the author+save imperative; existing keyword detection / session-mode / refresh / effort tests still pass. Full sweep: 267 passed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
singlaamitesh
pushed a commit
to singlaamitesh/clawcodex
that referenced
this pull request
Jul 7, 2026
…code-slash-command Add a discoverable /ultracode <task> command
singlaamitesh
pushed a commit
to singlaamitesh/clawcodex
that referenced
this pull request
Jul 7, 2026
… authors + saves a /<name> Follow the actual Claude Code approach: ultracode is triggered by the KEYWORD in a prompt, never a slash command. Revert the /ultracode slash command (agentforce314#329/agentforce314#330/agentforce314#331) and route everything through the keyword. - Remove the /ultracode PromptCommand + its directive from workflows_integration.py; bundled_workflow_commands() now contributes only /workflows + /deep-research. - src/workflow/ultracode.py: the keyword reminder (and the /effort ultracode session reminder) now instruct the model to AUTHOR a workflow and SAVE it to .claude/workflows/<name>.py (then run via /<name>) — not run it inline. Keeps the blunt imperative + inline skeleton + anti-tool-hunt language ("no ultracode tool/ skill, do NOT use ToolSearch") that a live failure showed is necessary. The saved file becomes /<name> via load_and_register_workflows, picked up mid-session by _refresh_workflow_commands (unchanged), so the keyword -> /<name> handoff works without a restart — like /deep-research. Tests: assert there is NO /ultracode command (keyword-only); keyword reminder is the author+save imperative; existing keyword detection / session-mode / refresh / effort tests still pass. Full sweep: 267 passed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Why
Follow-up to #303. The
ultracodeauthoring trigger shipped as a bare keyword (the design doc's literal wording: "include the keywordultracode"). But typing/ultracode— the natural thing, since everything else is a slash command — gave no autocomplete and dispatched as an unknown command: the keyword only fires on non-slash input throughchat(), so/ultracodehithandle_commandand fell through to the slash palette.(Reported: "when I type
/ultracodethere is no auto completion. Are you sure/ultracodefunctions correctly for creating a pipeline?" — it didn't.)What
Add a real
/ultracode <task>command: a bundledPromptCommand(kind="workflow", gated byis_workflows_enabled()) whose directive tells the model to author a fresh workflow script for the task and launch it via the Workflow tool, then stop (background run). Registered throughbundled_workflow_commands()— the same path that makes/deep-researchdispatch + autocomplete./ultracodenow appears in/completion with aworkflowtag and the description "Author and run a multi-agent workflow (pipeline) for a task"./ultracode build a web scraper for hacker newsrenders the directive with the task substituted intoTask:\n…(verified end-to-end throughexecute_command_async)./deep-researchand saved/<name>, which run an existing script. The bareultracodekeyword and/effort ultracodesession mode are unchanged.Verified
Honest caveat
This wires the command → directive → model turn (the same proven path as
/deep-research, which you've run). Whether the model then authors a valid script that the Workflow tool runs to completion is model behavior on that same path — not something this PR can guarantee. The plumbing (registration, autocomplete, dispatch, task substitution) is tested + verified.🤖 Generated with Claude Code