Skip to main content

Multi-provider lightweight local coding agent

Project description

pbi-agent logo

pbi-agent

work smart.

Tests Release Python License

pbi-agent is a token-efficient local coding agent designed to cut session token usage by up to 60% while keeping the model focused on the task. Its main interface is the browser-based web UI, and it also offers a non-interactive CLI mode for scripted or terminal-first runs. It combines interactive sessions, reusable project skills and commands, sub-agents, MCP tools, and kanban-style coordination in one workspace-first runtime.

Repository: https://github.com/pbi-agent/pbi-agent

Full documentation lives at pbi-agent.github.io/pbi-agent.

Three pillars

Modern LLMs are more intuitive and capable, so a coding agent does not need to over-script every step. pbi-agent is built around three concise defaults that let the model choose the trajectory while the runtime protects the context window.

  1. Compact default system instructions The default prompt is intentionally small: define the goal, active tools, and hard workspace rules, then let the model reason from the task. Users can still add INSTRUCTIONS.md, AGENTS.md, skills, commands, and sub-agents when a project needs more guidance.

  2. Bounded workspace output Shell output is returned raw with size guardrails, while workspace search, read, and list operations use codetool-explore to return compact, model-ready file evidence. The agent avoids dumping unbounded terminal logs or whole files when snippets are enough.

  3. Tool history omitted by default When resuming a session, pbi-agent keeps the conversation useful without replaying every prior tool call and result by default. This supports isolated flows such as planning, review, or fresh task runs. If previous tool traces matter, enable them with --include-tool-history or the web UI tool-history toggle.

Together, these defaults are designed to reduce session token usage by up to 60%, with larger savings possible in long multi-turn sessions where tool output and history would otherwise dominate the context.

Quick Start

  1. Install the CLI:
uv tool install pbi-agent
  1. Open your project workspace:
cd /path/to/my-project
  1. Start the app:
pbi-agent

Running pbi-agent with no command launches the browser UI on http://localhost:8000.

Docs

Customization

pbi-agent supports a few workspace-level customization points:

  • INSTRUCTIONS.md replaces the default system prompt for the workspace.
  • AGENTS.md adds project-specific rules on top of the active prompt.
  • .agents/skills/<skill-name>/SKILL.md adds project-local skills that are advertised to the model.
  • .agents/agents/<agent-name>.md adds project-local sub-agents that can be selected through the sub_agent tool.
  • .agents/mcp.json declares MCP servers whose tools are exposed to the model at startup.

See the full Customization guide for examples and behavior details.

Common Commands

pbi-agent
pbi-agent web
pbi-agent run --prompt "Summarize this repository."
pbi-agent skills add
pbi-agent skills add --skill openai-docs
pbi-agent commands add
pbi-agent commands add --command execute
pbi-agent agents add
pbi-agent agents add --agent code-reviewer

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pbi_agent-0.20.0.tar.gz (82.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pbi_agent-0.20.0-py3-none-any.whl (4.0 MB view details)

Uploaded Python 3

File details

Details for the file pbi_agent-0.20.0.tar.gz.

File metadata

  • Download URL: pbi_agent-0.20.0.tar.gz
  • Upload date:
  • Size: 82.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pbi_agent-0.20.0.tar.gz
Algorithm Hash digest
SHA256 800c7b9e1efa9bb5416d7e4830df12464de6d5d2a0a4de93b18aa4330add1f93
MD5 db29a0150e183ccdee5dff7c44e1e9ca
BLAKE2b-256 19d12893fb126de2bb030db7e35e5627a6949265e9ca2949c0ec1bddd0d55b3f

See more details on using hashes here.

File details

Details for the file pbi_agent-0.20.0-py3-none-any.whl.

File metadata

  • Download URL: pbi_agent-0.20.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pbi_agent-0.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7cc79cb78ccf64ca84cf5f40cf2d4827b0e8b0424d02c318dd5bac1d668be78
MD5 0a99efba41b7a80c7c48bab3fa68d45f
BLAKE2b-256 58920cef8de9d2703ee06e433a600193d35da7d9f1015edc7e2681ce769d3f21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page