← Catalog

@bismawy/pi-arnative

Refined aesthetics. Cohesive tools. Built for Pi. Warm themes, rounded tool boxes, tabbed header, compact footer and a /usage dashboard.

ExtensionTheme

Install

Install with PiG

pig install npm:@bismawy/pi-arnative

Install with Pi

pi install npm:@bismawy/pi-arnative
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.

{
  "image": "https://raw.githubusercontent.com/bismawy/pi-arnative/main/assets/banner.webp",
  "themes": [
    "./themes/*.json"
  ],
  "extensions": [
    "./extensions/*.ts"
  ]
}

README

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

Arnative

Refined aesthetics. Cohesive tools. Built for Pi.

Custom badge badge license

pi-arnative

Overview

pi-arnative replaces Pi's default terminal UI with warm themes, rounded tool boxes, a tabbed header, a status footer, and session tools.

  • Themes: 14 contrast-checked OKLCH themes (arnative and 13 variants).
  • Header: Tabbed box showing Directory, Model, Context, Skills, Extensions, and Shortcuts.
  • Tool boxes: Rounded borders with status, spinner, duration, and clickable [show] or [hide] toggles.
  • Task list: todo tool, /todos recap screen, and a boxed widget above the editor that hides 30s after all tasks finish.
  • Footer: 3-row status grid (Arnative (Full)) or a single collapsible row (Arnative (Minimal)) with git branch, diff stats, active duration, token speed, and optional session cost.
  • Spinners and timestamps: 18 animated spinner presets with an optional [g] gradient sweep, plus per-message timestamps and bubble backgrounds.
  • Usage and budget: /usage tracks local token counts and spend across sessions, with optional Prometheus export to ~/.pi/agent/arnative/usage.prom (set PI_ARNATIVE_EXPORT=0 to disable). Budget settings in /arnative add UTC day and rolling 30-day spend caps with footer warnings at 80% and 100%, and can block the next turn when enforced.
  • Providers and model heal: /providers probes endpoints and saves OpenAI-, Anthropic-, Gemini-, or Ollama-compatible channels to models.json and auth.json. /model-heal fills missing compat flags, /models token limits, and accepted reasoning effort levels.
  • Context and rendering: Render cache (On by default) caches settled transcript components in chatContainer. Auto-compact (Off by default) triggers compaction via Smart tiers or a fixed token budget, with silent in-memory byte trimming for byte-capped proxies.

Install

pi install npm:@bismawy/pi-arnative

Requires a Nerd Font. On a fresh install, arnative is applied automatically if no theme is set. You can switch themes anytime from /arnative or /settings.

For local development:

npm run dev                  # run pi against this checkout without installing
npm run overlay              # copy extensions/, lib/, and themes/ into the installed npm package

Run npm run overlay and then /reload in Pi to test local changes without reinstalling or restarting. Removed modules are pruned from the installed copy, and pi update --extensions restores the published package when a newer version is out. Use npm run overlay -- --dry-run to preview changes, or set PI_CODING_AGENT_DIR to target another agent directory.

Commands and shortcuts

CommandPurpose
/arnativeOpen settings (Themes, Headers, Footers, Animations, Render cache, Auto-compact, Model heal, Payload limit, Providers, Usage, Budget)
/usageOpen the token and cost dashboard
/todosOpen the full task list recap
/providersManage custom providers
/model-healRun models.json heal passes now

In /usage, press R to reset model and provider statistics after confirmation. Session files are left untouched and stay available in /resume. New messages are counted from the reset baseline in ~/.pi/agent/arnative/usage-baseline.json, and U undoes the latest reset while the dashboard is open.

Key (Linux / Win)Action
ctrl+alt+a · alt+aOpen settings menu (/arnative)
ctrl+alt+t · alt+tCycle header tabs
ctrl+alt+r · alt+rQuick reload (/reload)
ctrl+alt+n · alt+nNew session (/new)
ctrl+alt+m · alt+mToggle Minimal footer
ctrl+alt+o · alt+oExpand or collapse task list
ctrl+alt+j · alt+jScroll task list down
ctrl+alt+k · alt+kScroll task list up
Click [show] / [hide] · ctrl+oToggle tool output box
← / EscGo back or close active screen
Keybindings and platform notes

Bind app.session.new in ~/.pi/agent/keybindings.json:

{
  "app.session.new": ["ctrl+alt+n", "alt+n"]
}
  • Windows / WSL: Windows Terminal maps Ctrl+Alt to AltGr. Use alt+... or disable altGrAliasing.
  • macOS: Use ctrl+option+....
  • tmux / Herdr: Set PI_TUI_ESC_TIMEOUT=100 if Esc feels delayed.
Configuration and presets

Settings from /arnative are saved in ~/.pi/agent/arnative/config.json:

  • Headers and footers: Arnative (Full) (default), Arnative (Minimal) (footer only; click the head text or press ctrl+alt+m to toggle), or Pi (system).
  • Footer cost: Off by default. Press [c] in the Footers picker to show session cost ($0.42, or ~$0.42 when estimated) in the metrics row.
  • Chatbox: Arnative (default rounded box with 12 prompt icons cycled via [i], colored primary while typing and dim after 3s idle) or Pi (system). Press [D] to position the working status dialog (Left, Center, Right, Inside, Outside).
  • Animations: 18 presets (Arnative default, Pi (system), and variants). Press [g] in the picker to toggle the gradient sweep.
  • Render cache: On by default. Reuses rendered lines for settled transcript items in chatContainer. Streaming items, active animations, and custom renderers bypass the cache.
  • Auto-compact: Off by default (Pi core compaction handles context). Smart adapts to Render cache and contextWindow (triggers at 90% on >= 192k windows when Render cache is On, or conservative tiers when Off). Fixed budgets (100k to 400k) trigger at an absolute token count, subject to Pi core reserveTokens and provider limits.
  • Payload limit: Configured in /arnative or PI_ARNATIVE_BYTE_WALL_MB (Off, 1 MB, 4 MB, 8 MB, 16 MB, 32 MB, or Custom from 1 to 1024 MB). For remote/*, remote-magpie/*, and models that return HTTP 413, payloads near the ceiling are trimmed in memory before sending without changing session history.
  • Model heal: Full (default: offline compat flags, GET /models limits, and reasoning effort probes cached locally), Flags (offline only), or Off. Hand-edited fields are never overwritten.
  • Task list: Stored per session in ~/.pi/agent/arnative/todos/<session-id>.json (uninstall @juicesharp/rpiv-todo first to avoid a tool name conflict). Auto-hides 30s after completion (PI_ARNATIVE_TODO_HIDE_MS overrides the delay; 0 hides immediately).
Architecture and development
FileRole
extensions/arnative.ts/arnative settings menu and live preview pickers
extensions/section-headers.tsTabbed header and resource box
extensions/footer.ts3-row status grid, Minimal footer, and boxed editor
extensions/tools.tsRounded tool boxes, spinners, duration, and [show] / [hide] toggles
extensions/todos.tstodo tool, boxed widget above editor, and /todos screen
extensions/animations.tsSpinner preset picker and live preview
extensions/autocompact.tsSmart and fixed-budget context compaction plus silent byte-wall shedding
extensions/render-cache.tsPer-child and container transcript render cache for chatContainer
extensions/budget.tsUTC day and rolling 30-day spend caps and footer warnings
extensions/usage-export.tsPrometheus textfile metric export (usage.prom)
extensions/model-heal.tsAutomatic models.json heal triggers and /model-heal
extensions/timestamps.tsMessage timestamps and bubble backgrounds
extensions/ui-render-tweaks.tsContrast tweaks, selection styling, and UI polish
extensions/usage.tsToken and cost dashboard (/usage)
lib/todos.tsTask state, window layout, box rows, and session store
lib/spinner.tsSpinner preset catalog, frames, and gradient painters
lib/provider.tsCustom provider probe, model picker, and config writer
lib/model-heal.tsCompat flags, /models limit sync, and reasoning effort probe
lib/list-picker.tsShared live-preview and multi-select picker component

Themes (themes/gen-themes.mjs + lib/color.ts): arnative · arnative-blossom · arnative-crimson · arnative-cyberpunk · arnative-dracula · arnative-earthy · arnative-garden · arnative-gruvbox · arnative-lemonade · arnative-magical · arnative-matrix · arnative-neutral · arnative-nord · arnative-zinc

npm test                              # Run self-checks and unit tests
npm run themes                        # Regenerate theme JSON files
npm run preview                       # Live preview in Pi and stamp .git/arnative-preview
git config core.hooksPath .githooks   # Enable pre-push preview verification hook

License

Distributed under the MIT license.

Author

Bisma