Skip to content

Add a discoverable /ultracode <task> command - #329

Merged
agentforce314 merged 1 commit into
mainfrom
feature/ultracode-slash-command
Jun 13, 2026
Merged

Add a discoverable /ultracode <task> command#329
agentforce314 merged 1 commit into
mainfrom
feature/ultracode-slash-command

Conversation

@agentforce314

Copy link
Copy Markdown
Owner

Why

Follow-up to #303. The ultracode authoring trigger shipped as a bare keyword (the design doc's literal wording: "include the keyword ultracode"). 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 through chat(), so /ultracode hit handle_command and fell through to the slash palette.

(Reported: "when I type /ultracode there is no auto completion. Are you sure /ultracode functions correctly for creating a pipeline?" — it didn't.)

What

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.

  • /ultracode now appears in / completion with a workflow tag and the description "Author and run a multi-agent workflow (pipeline) for a task".
  • /ultracode build a web scraper for hacker news renders the directive with the task substituted into Task:\n… (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.

Verified

1. /ultracode registered:      True | kind: workflow
2. /ultracode autocompletes:   True
3. suggestion tag/desc:        ('workflow', 'Author and run a multi-agent workflow (pipeline) for a task')
4. directive authors+launches: True
5. gated off when disabled:    True

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

…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>
@agentforce314
agentforce314 merged commit f9684a5 into main 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant