omp packages

@saburto/pi-colorful-footer0.2.1

Replaces the default pi footer with a vibrant, icon-rich status bar using emoji icons and theme-colored backgrounds. No Nerd Fonts required.

GitHub Actions Published 18 days ago ~256 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

Colorful Footer

Replaces the default pi footer with a vibrant, icon-rich status bar using emoji icons and theme-colored backgrounds. No Nerd Fonts required.

๐Ÿค– claude-sonnet-4 โ”‚ ๐Ÿ“ extensions โ”‚ ๐ŸŒฑ main โ”‚ โ†‘1.2kโ†“3k โ”‚ ๐Ÿ’พ500 45% โ”‚ ๐Ÿ“Š 8.5k/200k (4%) โ”‚ ๐Ÿ’ฐ$0.042 โ”‚ ๐Ÿง  โ— xhigh

Features

  • Emoji icons โ€” works in any modern terminal without Nerd Fonts
  • Theme-aware โ€” each section uses a themed background color from your pi theme
  • Responsive pruning โ€” sections drop progressively as the terminal narrows
  • Working indicator โ€” replaces the default spinner and "Working..." message with themed variants
  • Thinking level display โ€” shows current thinking level with a colored circle indicator
  • Current folder โ€” shows repo root name (if in a git repo) or the working directory without $HOME
  • Configurable โ€” customize icons, colors, hide sections, and set per-model style rules via JSON config files

Footer Sections

Section Icon Description
Model ๐Ÿค– Current model ID
Folder ๐Ÿ“ Git repo root folder name, or cwd without $HOME
Git branch ๐ŸŒฑ Active git branch (hidden if not in a repo)
Tokens โ†‘โ†“ Input and output token counts
Cache ๐Ÿ’พ Cache read count and hit rate (hidden when empty)
Context ๐Ÿ“Š Context window usage fraction and percentage (hidden when unavailable)
Cost ๐Ÿ’ฐ Total session cost in USD
Thinking ๐Ÿง  Current thinking level with circle indicator
Extensions ๐Ÿ”Œ Status messages from other extensions (via setStatus)

Installation

From npm

pi install npm:@saburto/pi-colorful-footer

Quick test (no install)

pi -e npm:@saburto/pi-colorful-footer

Usage

Once installed, the colorful footer replaces the default status bar automatically. No configuration needed.

Commands

  • /colorful โ€” Toggle the colorful footer on/off. Use /reload to re-enable it after disabling.
  • /colorful-config โ€” Chat-based configuration. Feeds the full config guide into the conversation so the LLM can read your current config, ask you questions, and edit the JSON file for you. Follow it up with /reload to apply.

Configuration

Place a JSON file in one of these locations:

Path Scope
~/.pi/agent/colorful-footer.json Global (all projects)
.pi/colorful-footer.json Project-local (overrides global)

Configs are deep-merged: project-local values override global values, which override built-in defaults.

Quick Example

{
  "icons": {
    "model": "๐Ÿง ",
    "git": "๐Ÿ”€"
  },
  "sections": {
    "cost": {
      "hidden": true
    },
    "model": {
      "bgColor": "toolSuccessBg",
      "fgColor": "text"
    }
  },
  "separator": " โ•‘ ",
  "separatorColor": "accent"
}

Full Schema

interface ColorfulFooterConfig {
  /** Override any section icon (standard emoji). */
  icons?: {
    model?: string;
    folder?: string;
    git?: string;
    tokensIn?: string;
    tokensOut?: string;
    cache?: string;
    context?: string;
    cost?: string;
    thinking?: string;
    statuses?: string;
  };
  sections?: {
    model?: SectionConfig;
    folder?: SectionConfig;
    git?: SectionConfig;
    tokens?: SectionConfig;
    cache?: SectionConfig;
    context?: SectionConfig;
    cost?: SectionConfig;
    thinking?: SectionConfig;
    statuses?: SectionConfig;
  };
  thinking?: {
    off?:     { icon?: string; color?: string };
    minimal?: { icon?: string; color?: string };
    low?:     { icon?: string; color?: string };
    medium?:  { icon?: string; color?: string };
    high?:    { icon?: string; color?: string };
    xhigh?:   { icon?: string; color?: string };
  };

  /** Separator between sections. */
  separator?: string;

  /** Foreground color of the separator โ€” theme name or hex RGB. */
  separatorColor?: string;

  /** Conditional style rules โ€” applied when a model ID matches. */
  rules?: ConditionalRule[];
}

interface SectionConfig {
  hidden?: boolean;        // Hide this section entirely
  bgColor?: string;        // ThemeBg name or hex RGB (#rrggbb)
  fgColor?: string;        // ThemeColor name or hex RGB
  labelColor?: string;     // ThemeColor name or hex RGB
  order?: number;          // Sort position (lower = further left)
}

interface ConditionalRule {
  models?: string[];    // Model IDs or glob patterns (e.g. "claude-opus*", "deepseek*")
  priority?: number;    // Higher wins when multiple rules match
  icons?: IconOverrides;
  sections?: Partial<Record<string, SectionConfig>>;
  thinking?: Record<string, ThinkingLevelConfig>;
  separator?: string;
  separatorColor?: ThemeColor;
}

Available Colors

Foreground (ThemeColor): accent, border, borderAccent, borderMuted, success, error, warning, muted, dim, text, thinkingText, userMessageText, customMessageText, customMessageLabel, toolTitle, toolOutput, mdHeading, mdLink, mdLinkUrl, mdCode, mdCodeBlock, mdCodeBlockBorder, mdQuote, mdQuoteBorder, mdHr, mdListBullet, toolDiffAdded, toolDiffRemoved, toolDiffContext, syntaxComment, syntaxKeyword, syntaxFunction, syntaxVariable, syntaxString, syntaxNumber, syntaxType, syntaxOperator, syntaxPunctuation, thinkingOff, thinkingMinimal, thinkingLow, thinkingMedium, thinkingHigh, thinkingXhigh, bashMode

Background (ThemeBg): selectedBg, userMessageBg, customMessageBg, toolPendingBg, toolSuccessBg, toolErrorBg

Hex RGB colors are also accepted anywhere a theme color name is expected. Use #rrggbb format (e.g. "#ff4444", "#2e7d32"). Short #rgb works too.

Hex Color Example

{
  "sections": {
    "model": {
      "bgColor": "#1a1a2e",
      "fgColor": "#e94560"
    },
    "cost": {
      "bgColor": "#0f3460",
      "fgColor": "#16c79a"
    }
  },
  "separatorColor": "#555555"
}

Conditional Rules Example

Different colors per model โ€” red for Opus, green for DeepSeek:

{
  "rules": [
    {
      "models": ["claude-opus-4*", "claude-opus-4-5*"],
      "priority": 10,
      "sections": {
        "model": {
          "bgColor": "toolErrorBg",
          "fgColor": "error"
        }
      }
    },
    {
      "models": ["deepseek*"],
      "priority": 10,
      "sections": {
        "model": {
          "bgColor": "toolSuccessBg",
          "fgColor": "success"
        }
      }
    },
    {
      "models": ["*sonnet*"],
      "priority": 5,
      "sections": {
        "model": {
          "bgColor": "toolPendingBg",
          "fgColor": "warning"
        }
      }
    }
  ]
}

Hide Sections Example

Hide the cost and cache sections to save space:

{
  "sections": {
    "cost": { "hidden": true },
    "cache": { "hidden": true }
  }
}

To hide extension status messages (from other extensions using setStatus):

{
  "sections": {
    "statuses": { "hidden": true }
  }
}

Custom Icons Example

Replace emoji icons with Nerd Font characters (if your terminal supports them):

{
  "icons": {
    "model": "๎ธ",
    "folder": "๏ผ",
    "git": "๎‚ ",
    "tokensIn": "๏ƒ—",
    "tokensOut": "๏ƒ˜",
    "cache": "๏ƒ‡",
    "context": "๏‡ช",
    "cost": "๏…•",
    "thinking": "๏ฟฝ11"
  }
}