INNER CODE UNIT · Python

FrontierAgentApp

ApodexAI/FrontierAgent · apodex/tui/app.py:222

class FrontierAgentApp(App):
    """A Claude-Code-style TUI driving the FrontierAgent agent loop."""

    # Chrome is themed entirely through the tokens ``themes.register_themes``
    # pins from each palette: ``$text`` / ``$text-muted`` / ``$text-disabled``
    # are the three measured contrast tiers and ``$border`` the fitted line
    # colour. The title and status bars deliberately sit on ``$panel`` with
    # coloured *text* rather than a saturated fill — a full-width block of
    # ``$accent`` fought every light palette and forced Textual to guess a
    # readable foreground with ``color: auto``.
    CSS = """
    /* Screen carries the tier so unstyled text anywhere inherits the fitted
       foreground; without it Textual falls back to pure white/black, which is
       brighter than any palette intends. */
    Screen { background: $background; color: $text; }
    #topbar { height: 1; background: $panel; }
    #title {
        width: 1fr;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…