Skip to content

Repository files navigation

License Node

Axum Agent

A Pi-based coding agent distribution that bundles the Pi core with curated extensions and launches them together.

Axum Agent is built around Pi-based agent distribution. The web UI handles provider, retry, and system-prompt settings locally, and startup can be isolated with safe mode when needed.

Quick Start: Quick Start

Requirements: Requirements

Translations: English日本語中文

Overview

Axum Agent is a Pi-based coding agent distribution package. It bundles the Pi core together with extensions and launches them together, so a single npm install -g gives you a ready-to-run agent with no extra wiring.

Highlights

  • One-command install — global npm package from the main branch tarball, no clone or build step.
  • Bundled extensions — Pi core plus a hand-picked set of extensions ship together and start together.
  • Web-based config — provider, retry, and system-prompt settings live in a local web UI.
  • Safe mode — any broken extension can be bypassed to launch only the Pi core.
  • Self-contained runtime — the bundled Pi runtime lives in the user cache, so reinstalling Axum does not repeat first-run setup.

Requirements

  • Node.js >= 22.19.0
  • npm >= 9
  • A terminal on macOS, Linux, or Windows; Android/Termux is supported too.
  • An OpenAI-compatible API key (or any provider you configure in the web UI).

Quick Start

Install Axum globally from the main branch tarball:

npm install -g https://github.com/SakuraByteCore/AxumAgent/archive/refs/heads/main.tar.gz

Start the agent directly:

axum

Configure your Provider and System Prompt on the Web UI:

axum web

Launch the agent:

axum code

Tip: in a repository checkout, run node bin/axum.js code (or the installed code command) to skip the npm run wrapper and shave ~0.2s off every startup.

Start a background subagent from the prompt:

/subagent Explore find all files that handle authentication

Open the bundled pi-plugins skill guide for plugin management workflows:

/plugin-create-mode
axum code --safe

Check health:

axum doctor

Bundled Runtime

The distribution ships these packages, all in one install:

  • @earendil-works/pi-coding-agent
  • pi-bar (AxumAgent bundled fork)
  • pi-header (AxumAgent bundled fork)
  • pi-companion (merged pi-shortcuts + pi-guard: slash shortcuts, response guard, advisory watcher)
  • @narumitw/pi-goal

Configure an OpenAI-compatible Provider

Save it from the Provider tab in axum web (see Quick Start for how to launch).

Fields:

  • Base URL, e.g. https://api.moonshot.cn/v1
  • API Key
  • Model. Providers without /models can be entered manually.

Saved to:

  • ~/.pi/agent/models.json
  • ~/.pi/agent/axum.json

After saving, launch the agent again:

axum code

For compatibility, OpenAI-compatible providers default to supportsDeveloperRole=false / supportsReasoningEffort=false.

Retry Settings

In the retry tab of axum web, configure the automatic retry strategy for failed API requests (see Quick Start for how to launch).

Options:

  • Enable retry — default off. Pi core defaults to on, but Axum requires explicit enablement.
  • Max retry count — default 3.
  • Base backoff delay (ms) — default 2000. Exponential backoff: baseDelayMs * 2^(attempt-1).

Retries target overload, rate-limit, and server errors. Context overflow is not retried (it is handled by compaction).

Saved to:

  • ~/.pi/agent/settings.json

Edit the System Prompt

Edit it from the System Prompt tab in axum web (see Quick Start for how to launch).

Defaults to:

~/.pi/agent/SYSTEM.md

Targets:

  • Global SYSTEM.md — default. Replaces the standard prompt.
  • Global APPEND_SYSTEM.md — appends to the standard prompt.
  • Project APPEND_SYSTEM.md<cwd>/.pi/APPEND_SYSTEM.md.
  • Project SYSTEM.md<cwd>/.pi/SYSTEM.md.

It shows a diff before saving. If the file was changed externally, saving is refused.

Doctor

axum doctor

doctor checks the bundled Pi cache and entrypoint.

The bundled Pi runtime is stored in the user cache, not the npm global package directory. So reinstalling Axum usually does not repeat the first-run setup of axum code.

Update

axum update

Reinstalls the npm global package from the main branch tarball on GitHub. There is usually no need to rerun the first-run setup afterwards.

License

Axum Agent is released under the FSL-1.1-ALv2 license: Functional Source License, Version 1.1, ALv2 Future License. The future license grant is Apache License 2.0. See LICENSE for details.

Translations

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages