Skip to content

Render gate: tighten the loose agy prompt marker (AGY_MARKER = /^> /) #1474

Description

@mohidmakhdoomi

What

The agy (Gemini CLI) render-gate profile keys its prompt detection on AGY_MARKER = /^> / — any line beginning with "> " is treated as the composer prompt. That's a loose match: agy's profile was derived empirically (color-keyed placeholder palette) and this marker is the weakest link, since "> " is common in ordinary output (quoted text, diffs, shell transcripts, agent prose).

Tighten it so the marker identifies the actual agy composer prompt rather than any "> "-prefixed line — e.g. anchor on additional profile signals (cursor row, placeholder-fg palette, region boundary) already used elsewhere in the agy classifier.

Why

A too-loose prompt marker is a false-clean risk: if a "> " line in agy's output is mistaken for an empty composer, the gate could classify CLEAN and deliver onto a busy screen — the exact corruption the mailbox-first design rules out. It hasn't bitten in practice, but it's the least-grounded part of the agy profile and worth hardening while the fixture-capture tooling is fresh.

Notes

Activity

  1. added 4 commits that reference this issue on Aug 18, 2026
  2. added 3 commits that reference this issue on Sep 3, 2026
  3. added 3 commits that reference this issue on Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/towerArea: Tower server / agent farm CLI

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions