Skip to content

v3.15.0 — Custom prompt-template commands

Choose a tag to compare

@eniz1806 eniz1806 released this 06 Jun 17:52

Your own reusable slash commands.

Added

  • Custom commands from Markdown files. Drop a .kodiqa/commands/<name>.md (project) or ~/.kodiqa/commands/<name>.md (global) file and invoke it as /<name>. The file's text becomes the prompt, with $ARGUMENTS (all args) and $1, $2, … (positional) substitution; if there's no placeholder, the args are appended. Optional --- description: … --- frontmatter appears in the listing. Project commands override global.
  • /commands — list your custom commands (source + description). They tab-complete like built-ins.

Example:

echo 'Review $ARGUMENTS for bugs and suggest fixes' > .kodiqa/commands/review.md
/review src/app.py

Tests

  • test_custom_commands.py — rendering ($ARGUMENTS/$N/append/frontmatter), discovery (project-over-global, path-traversal rejection), and dispatch. 462 total; ruff + CI green.