# APP-4913-tui-input-prompt-prefix

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.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 720 repo stars
- Author: dominikmartn
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dominikmartn/harp/tree/HEAD/agents/specs/APP-4913-tui-input-prompt-prefix.md
- Updated: 2026-11-10
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/app-4913-tui-input-prompt-prefix

## What it 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`.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/agents/APP-4913-tui-input-prompt-prefix.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/APP-4913-tui-input-prompt-prefix.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/APP-4913-tui-input-prompt-prefix.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dominikmartn/harp/tree/HEAD/agents/specs/APP-4913-tui-input-prompt-prefix.md

## When to use it
- 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
- 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

## Similar
- [ratatui-tui](https://affpapa.org/en/nevibecode/skills/ratatui-tui.md) — skill · 959 installs
- [tui-design](https://affpapa.org/en/nevibecode/skills/tui-design.md) — skill · 1400 installs
- [codex-tui-proof](https://affpapa.org/en/nevibecode/plugins/codex-tui-proof.md) — plugin · ★ 1596 repo stars
- [create-agent-tui](https://affpapa.org/en/nevibecode/skills/create-agent-tui.md) — skill · 358 installs
- [tui-validate](https://affpapa.org/en/nevibecode/skills/tui-validate.md) — skill · ★ 3206 repo stars
- [tui-debug-in-pane](https://affpapa.org/en/nevibecode/skills/tui-debug-in-pane.md) — skill · ★ 3206 repo stars

From the same set: [dominikmartn/harp](https://affpapa.org/en/nevibecode/by/dominikmartn/harp.md) — 62 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
