Skip to main content

Polyglav

Polyglav terminal session

One agent, many heads

PyPI version Site Python >=3.11 CI Zero dependencies MIT License

Polyglav is an AI agent that lives in your terminal. You describe an outcome once, it breaks the job into steps, brings in specialist agents for each one, and lets them work through it in order, handing results from one to the next as they finish. You stay at a single prompt the whole time. The name says it: poly means many, glav means heads.

Why Polyglav

  • One prompt, many heads - ask for an outcome, and Polyglav splits it across specialists that run one after another in the same process, one context at a time. As soon as one delivers, the next continues. No windows to switch and no babysitting.
  • It actually gets work done - it reads and writes files, searches the web, runs commands, edits code, and commits, all behind permissions you control.
  • Grows with you - reusable roles and skills, scheduled jobs that run a supervisor for many agents at once.
  • Your machine, your keys - config and complete session logs stay on your disk. Bring your own provider key, or run fully local.
  • Safe by default - every tool is permission controlled. Anything outside your project asks first, the HTTP API needs a token, and every action is on the record.
  • Zero dependencies - pure Python standard library. No dependency supply chain to audit, no lockfile churn, and the code that runs is the code in this repository.
  • At home in the terminal - a fast streaming REPL with a plain input prompt, a color-coded submitted line, dimmed thinking, hidden tool bodies, command completion, and history. No browser and no account.
  • Many providers, any model - Ollama, OpenAI, Groq, Anthropic, OpenCode, or any OpenAI-compatible endpoint, picked automatically from the address.

What you can do with it

  • Ship a change end to end - ask for a feature and let a planner, a programmer, and a reviewer work through it in order.
  • Plan a long run - read mode can write a durable internal plan and todo under .polyglav/, so a long task keeps its instructions, decisions, role split, and current work across compaction and role switches.
  • Keep a project tidy - schedule a job that refreshes docs, updates a changelog, or summarizes logs on a cron.
  • Research and write - point it at a folder of notes or papers and ask for a summary with sources.
  • Run many agents - give each folder its own agent and watch them all from one place.
  • Automate with the API - drive the same loop from scripts, CI, or another program.

How it works

  1. Ask - describe an outcome to the assistant in one sentence.
  2. Compose - for bigger work it designs a small team: the specialists and the order they run in.
  3. Run - stages run one after another, each with its own tools and permissions.
  4. Continue - the next agent continues from the previous result with its own session, so context moves forward without switching windows.
  5. Report - read live state with /status, inspect the durable tree with /history and output parts with /print, and pause a long turn with Ctrl-C, /continue or /cancel it.

Install

pipx install polyglav
polyglav

On first run, Polyglav asks for your provider, model, mode, and project setup. You can rerun it with /onboard, or change the connection later with /connect and /model.

For source installs, the REPL, the headless CLI, the HTTP API, Docker, plugins, and the full command reference, see INSTALL.md.

Learn more

License

MIT

Metadata

Release files for polyglav 0.55.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polyglav 0.55.0
File Size Uploaded Provenance Actions
polyglav-0.55.0.tar.gz 345.9 kB Without provenance Details for polyglav-0.55.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polyglav 0.55.0
File Interpreter ABI Platform Actions
polyglav-0.55.0-py3-none-any.whl Python 3 none any Details for polyglav-0.55.0-py3-none-any.whl

Total release size: 670.3 kB

Release files / polyglav-0.55.0.tar.gz

Download URL polyglav-0.55.0.tar.gz
Size 345.9 kB
Tags Source
SHA-256 checksum
How to use checksums
83158a1bb7cf63c6eb450b588e694923b58b0ca0549d87a168859622f8ea44e9
BLAKE2b-256 checksum
How to use checksums
c1cb5894255e32b3b199c9e91522a230b247c6c2c43974f792a63f5ea25d1023
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / polyglav-0.55.0-py3-none-any.whl

Download URL polyglav-0.55.0-py3-none-any.whl
Size 324.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18c16dd81c75ab6a406b1e02fd605559256df73eee1fd789c3bbc1d01b71db05
BLAKE2b-256 checksum
How to use checksums
45f0438577fc8cfdf02ceac265bdf72e1395e7b15cbf92ded4587a0030bfc470
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for polyglav 0.55.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page