Kavi

Inline Composer

Compose and route tasks directly from the TUI with live diagnostics

The inline task composer lets you write prompts, preview routing decisions, and control planning mode — all without leaving the operator console.

Opening the Composer

Press c to open the composer. A text input appears at the bottom of the console with live diagnostics.

Writing Prompts

Type your prompt as you would in any text editor. Digits are treated as literal text inside the composer (number keys don't switch views while composing).

For longer prompts, the composer expands into a multiline editor. You can also paste long multiline text, which automatically opens the expanded editor.

Route Preview

As you type, Kavi shows a live preview of how the prompt would be routed:

  • Agent: Which agent (codex/claude) would receive the task
  • Strategy: Path match, keyword heuristic, or AI routing
  • Confidence: Score from 0 to 1

Press Tab to cycle the route owner manually: autocodexclaude.

Planning Mode

Press Ctrl+P to cycle through planning modes:

  • auto — Kavi decides whether planning is needed
  • plan — Force planning (Codex materializes an execution graph)
  • direct — Skip planning (send directly to the agent)

The planning diagnostic shows whether Kavi would engage the planner and an estimated task count.

Submitting

Press Enter to submit the task. In the expanded editor, press Ctrl+S to submit.

The task is enqueued with the selected routing and planning configuration.

Tips

  • Use Tab cycling when you know which agent should handle the task, to override auto-routing
  • Use --plan mode for complex, multi-step goals that benefit from decomposition
  • Use --direct mode for simple, focused tasks that don't need a planning pass
  • Watch the route preview to understand how Kavi classifies your prompt

On this page