APP-4913-tui-input-prompt-prefix — Claude Code Subagent
APP-4913-tui-input-prompt-prefix is a Claude Code subagent that adds a prompt gutter to the harp TUI input line. It renders distinct indicator glyphs for agent prompts and shell commands.
AGPL-3.0 ★ 720 updated 2026-11-10
.claude/agents/APP-4913-tui-input-prompt-prefix.mdWhat APP-4913-tui-input-prompt-prefix does
The subagent defines the rendering workflow for TuiInputView inside the harp terminal UI. It inserts a two-cell gutter ahead of TuiEditorElement, displaying a cyan > for agent instructions and a pale-green ! during shell sessions. Because the prompt resides outside the editor buffer, text selection offsets and submission payloads remain unaffected.
The gutter occupies one symbol cell plus one right padding cell. Clicking the gutter triggers SetCursor { offset: 1 } without starting a mouse drag. Changes are contained within crates/warp_tui/src/input/view.rs and its matching test file crates/warp_tui/src/input/view_tests.rs.
Validation depends on Rust and cargo-nextest. Verification runs via cargo nextest run -p warp_tui --lib input and live interactive checks using ./script/run-tui.
What it helps with
- prepend a visual prompt prefix to the harp TUI input bar
- distinguish agent queries from shell commands visually
- isolate prompt symbols from the active editor text buffer
- map gutter mouse clicks directly to the start of input
Example prompts for the agent
- Implement the TUI input prefix described in APP-4913
- Verify prompt gutter rendering in
crates/warp_tui/src/input/view.rs - Run warp_tui input tests for agent mode rendering
How to install APP-4913-tui-input-prompt-prefix
Manually: put the files in place
.claude/agents/APP-4913-tui-input-prompt-prefix.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/APP-4913-tui-input-prompt-prefix.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/APP-4913-tui-input-prompt-prefix.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about APP-4913-tui-input-prompt-prefix
How to install APP-4913-tui-input-prompt-prefix in Claude Code?
Place the subagent configuration file at .claude/agents/APP-4913-tui-input-prompt-prefix.md in your project.
What does APP-4913-tui-input-prompt-prefix do?
It adds a two-column gutter displaying > or ! in front of the harp terminal input bar without modifying buffer text.
What tools are needed to validate APP-4913-tui-input-prompt-prefix?
Validation requires Rust with cargo-nextest to run warp_tui unit tests alongside the ./script/run-tui script.