← Catalog

@smoose/pi-footer

A compact footer/status bar extension for pi coding agent

Extension

Install

Install with PiG

pig install npm:@smoose/pi-footer

Install with Pi

pi install npm:@smoose/pi-footer
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.6 (README.md). PiG does not review it.

A compact footer/status bar extension for pi coding agent.

This plugin is a simplified take on nicobailon/pi-powerline-footer, with a smaller configuration model plus a few extra features such as custom segment ordering, custom extension-status items, rainbow coloring, and a prompted input editor.

Features

  • Powerline-style footer segments
  • Presets for different levels of detail
  • Fully custom segment order via footer.segments
  • Custom items sourced from extension statuses
  • rainbow color support for custom items
  • Responsive overflow: segments that do not fit on the first footer line move to the next line
  • Input editor polish:
    • left/right outer margin
    • single > prompt marker
    • multiline input alignment

Installation

pi install npm:@smoose/pi-footer

Basic configuration

Configure the plugin under the footer key in ~/.pi/agent/settings.json or project-local .pi/settings.json.

Minimal example:

{
  "footer": "default"
}

Object form:

{
  "footer": {
    "preset": "default"
  }
}

Presets

Available presets:

default
minimal
compact
full
nerd
ascii
custom

You can switch presets inside pi with:

/footer default
/footer minimal
/footer compact
/footer full
/footer nerd
/footer ascii
/footer custom

Running /footer with no arguments toggles the footer on/off for the current session.

Separator

Set footer.separator to override the preset's separator without changing its segments, colors, or display options:

{
  "footer": {
    "preset": "default",
    "separator": "pipe"
  }
}

Available styles: powerline, powerline-thin, slash, pipe, block, none, ascii, dot, chevron, star. If omitted or invalid, the preset's separator is used. Powerline styles fall back to ASCII characters when Nerd Font support is not detected.

Segment order

Use footer.segments to control the exact segment order.

{
  "footer": {
    "preset": "default",
    "segments": [
      "model",
      "thinking",
      "path",
      "git",
      "context_pct",
      "cache_read",
      "cost"
    ]
  }
}

The footer renders segments in the array order. If the line is too narrow, later visible segments overflow onto a second footer line.

If segments is omitted, the selected preset's default order is used and custom items are appended after preset segments.

Built-in segments

Supported built-in segment ids:

SegmentDescription
modelCurrent model name
thinkingCurrent thinking level, e.g. think:med
shell_modeShell mode status, when available
pathCurrent working directory
gitGit branch and dirty state
subagentsReserved segment; currently hidden
token_inInput tokens
token_outOutput tokens
token_totalInput + output + cache tokens
costSession cost or (sub) for subscription usage
context_pctContext usage percentage and window size
context_totalContext window size
time_spentSession elapsed time
timeCurrent time
sessionSession id prefix
hostnameHostname
cache_readCache read tokens
cache_writeCache write tokens
cache_hitLatest turn cache hit rate, e.g. cache 87.3%
cache_hit_totalSession-wide cache hit rate
extension_statusesRemaining extension statuses not lifted into custom items

Custom items

Custom items display values from pi extension statuses.

If another extension calls:

ctx.ui.setStatus("soul-mood", "👻 Susan·厌恶");

then you can show it in the footer with:

{
  "footer": {
    "preset": "default",
    "segments": [
      "custom:soul",
      "model",
      "thinking",
      "path",
      "git",
      "context_pct",
      "cache_read",
      "cost"
    ],
    "customItems": [
      {
        "id": "soul",
        "statusKey": "soul-mood",
        "color": "rainbow"
      }
    ]
  }
}

Custom segment ids are referenced as:

custom:<id>

For example:

custom:soul

Custom item fields

FieldDescription
idCustom item id; used by custom:<id>
statusKeyKey from ctx.ui.setStatus(key, value); defaults to id
colorOptional color name, hex color, or rainbow
prefixOptional prefix shown before the status value
hideWhenMissingHide the item when no status exists; default true
excludeFromExtensionStatusesExclude this status from extension_statuses; default true

Colors

Custom item colors can be:

Hex colors

{
  "color": "#00afaf"
}

pi theme color names

Examples:

accent
success
warning
error
muted
dim
text
thinkingHigh
thinkingMedium
borderMuted

Rainbow

{
  "color": "rainbow"
}

rainbow applies the plugin's built-in per-character rainbow coloring.

Example configuration

{
  "footer": {
    "preset": "default",
    "segments": [
      "custom:soul",
      "model",
      "thinking",
      "path",
      "git",
      "context_pct",
      "cache_read",
      "cost",
      "extension_statuses"
    ],
    "customItems": [
      {
        "id": "soul",
        "statusKey": "soul-mood",
        "color": "rainbow"
      }
    ]
  }
}