← Catalog

@jocax/footer-toolkit

Four footer modes in one package — customize pi's TUI footer for your workflow

Extension

Install

Install with PiG

pig install npm:@jocax/footer-toolkit

Install with Pi

pi install npm:@jocax/footer-toolkit
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": [
    "./dist/index.js"
  ]
}

README

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

@jocax/footer-toolkit

Four footer modes in one package — customize pi's TUI footer for your workflow.

What

This package provides four distinct footer display modes for pi's terminal UI:

  • pure-focus — Strips the footer bar entirely. No chrome, no distractions.
  • minimal — Compact single-line footer: model name on the left, 10-block context meter with percentage on the right.
  • tool-counter — Two-line rich footer: line 1 shows model, context bar, token in/out counts, and cost; line 2 shows current directory, git branch, and per-tool call tally.
  • off — Restores pi's default footer.

Additionally, a tool-counter widget shows colored per-tool call counts below the editor with an 8-color palette.

Why

Every developer has a different preference for terminal chrome. Some want maximum screen real estate (pure-focus), others want to monitor context usage at a glance (minimal), and power users tracking costs and tool usage need the full dashboard (tool-counter). This package puts all four modes behind one install and one slash command — no need to stack multiple -e flags.

Install

Install the package from npm:

{
  "source": "npm:@jocax/footer-toolkit"
}

Usage

After installation, the extension loads automatically on pi startup. By default, it starts in off mode (pi's default footer). Switch modes at runtime:

/footer pure-focus    # Remove footer entirely
/footer minimal        # Model + context bar
/footer tool-counter   # Two-line tokens + tools dashboard
/footer off            # Restore default footer

Toggle the tool-counter widget independently:

/footer widget on      # Show colored tool-count widget below editor
/footer widget off     # Hide widget

Commands

CommandDescription
/footer pure-focusDistraction-free mode — no footer
/footer minimalModel name + 10-block context meter
/footer tool-counterTwo-line footer: tokens/cost + tool tally
/footer offRestore pi's default footer
/footer widget onEnable colored tool-counter widget
/footer widget offDisable tool-counter widget

Configuration

Set initial mode and widget state via environment variables:

# Start in tool-counter mode
export AE_PI_FOOTER_TOOLKIT_MODE=tool-counter

# Enable the widget at startup
export AE_PI_FOOTER_TOOLKIT_WIDGET=true

Valid AE_PI_FOOTER_TOOLKIT_MODE values: off, pure-focus, minimal, tool-counter.

The runtime /footer command always takes precedence over the env var — env vars only affect the initial session startup state.

Examples

Run each mode as a standalone demo (no install required):

# Pure focus
pi -e software/packages/footer-toolkit/examples/pure-focus.ts -p "hello"

# Minimal
pi -e software/packages/footer-toolkit/examples/minimal.ts -p "hello"

# Tool counter
pi -e software/packages/footer-toolkit/examples/tool-counter.ts -p "hello"

# Stacked (all modes switchable)
pi -e software/packages/footer-toolkit/examples/all.ts -p "/footer tool-counter"

Run the demo

just demo footer-toolkit                        # Cycle the four modes
just demo footer-toolkit fill-the-tool-counter  # Watch the tally grow

A herdr workspace opens with pi, this extension and a disposable copy of the small-app sandbox. The agent starts working; while it does:

StepDo thisWatch
1Type /footer pure-focusThe footer disappears entirely
2Type /footer minimalOne line: model name left, a 10-block context meter and percentage right
3Type /footer tool-counterTwo lines: tokens in/out and cost above, cwd(branch) and a per-tool tally below
4Type /footer widget onThe same tally appears as a widget below the editor; off removes it
5Type /footer offpi's default footer returns

The fill-the-tool-counter scenario asks the agent for tests, a build and a search, so the tally grows across bash, read, ls and grep rather than one tool.

AE_PI_FOOTER_TOOLKIT_MODE and AE_PI_FOOTER_TOOLKIT_WIDGET do not reach a demo: the kit hands the agent an allowlisted environment. Use /footer, which switches the same four modes and takes precedence over those variables anyway.

Needs herdr 0.9.3 or newer and one reachable model provider — see demo-kit.

Development

# Type-check
npx tsc --noEmit -p software/packages/footer-toolkit/tsconfig.json

# Run tests
npx vitest run software/packages/footer-toolkit/tests/