npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cordfuse/politik

v0.3.0

Published

Politik — a governed multi-agent framework built on git. The SCM repository is the session: charter, record, state, and invite in one.

Readme

Politik

DOI License

A governed multi-agent framework built on git.

Pluggable governance protocols. Stateless agent workers. Git as the session substrate. Immutable Hansard. Append-only LEDGER. Human constitutional authority.


The Problem

Multi-agent AI coordination today is:

  • Ungoverned — agents act without rules, quorum, or accountability
  • Unrecorded — no immutable audit trail of who decided what and why
  • Uncosted — no per-decision attribution of time, tokens, or dollars
  • Single-machine — no framework for agents across machines, orgs, or human teams
  • Human-absent — humans monitor, not govern

The result: agents that produce outputs nobody can fully trust, audit, or reproduce.


What Politik Solves

Politik is a governed multi-agent operating system where:

  • A human is the constitutional authority — present but not operational
  • Agents are stateless CLI workers that spawn, do work, and dispose
  • A git repository IS the session — charter, record, state, and invite in one
  • Pluggable governance protocols translate the framework to any industry vocabulary
  • No new infrastructure required — git already built it

Nobody connected these pieces this way before.


Install

Politik runs on Node with no build step — the source is TypeScript, executed directly via tsx. Requires Node 20+ and git.

git clone [email protected]:cordfuse/politik.git
cd politik
npm install
node bin/politik.js doctor        # probe this host: can it run a session, with which agents?
npm link                          # optional — puts `politik` on your PATH

The npm package (@cordfuse/politik) is not published yet; install from source for now.

A first session

Every command below is a git commit. git log in the session directory is the Hansard — the immutable record.

politik scaffold --dir ./session --quorum 2                                  # write a Charter to edit
politik init     --dir ./session --charter ./session/CHARTER.md --speaker you
politik division call  --dir ./session --motion adopt-standard --actor you --role AUTHORITY
politik division vote  --dir ./session --motion adopt-standard --actor ada --role MEMBER --vote AYE
politik division vote  --dir ./session --motion adopt-standard --actor bo  --role MEMBER --vote AYE
politik division tally --dir ./session --motion adopt-standard               # → Motion CARRIED
politik assent         --dir ./session --motion adopt-standard --actor you --role AUTHORITY

Seat a real agent to do the work instead of a human vote:

politik run --dir ./session --agent claude-code --actor ada --role OPERATOR \
  --task "Draft and commit a Motion to adopt trunk-based development."

The agent's turn is captured, its cost measured, and the result recorded — see politik ledger --dir ./session.


Technical

CANON — The Primitive Layer

The engine speaks in canonical terms. Protocols translate them to domain vocabulary.

Roles: AUTHORITY (human only) · DELEGATE · OPERATOR · MEMBER · OBSERVER

Primitives: SESSION · PROCEEDING · CHARTER · RECORD · MOTION · DIVISION · MATCH · ESCALATION · SUSPENSION · QUORUM · CONFLICT · DEADLOCK

Verbs: READ · WRITE · VOTE · ASSENT · ESCALATE · PROMOTE · DEMOTE · HIRE · FIRE · SUSPEND · EXPEL · VETO · SPAWN · DISSOLVE · EXIT

States: CONVENED · SUSPENDED · PROROGUED · STALE · INVALID

The Session Repo

The git repository IS the Politik session. That much is always true — Charter, Hansard, state and audit trail all live there.

An SCM provider is optional. Configure one and governance acts are additionally projected onto the platform; without one a session runs complete and correct on git alone. Run local, run free.

| GitHub feature (when hosted) | Politik primitive | |---|---| | Repository | Session | | CHARTER.md | Standing Orders | | Pull Request | Motion | | PR Review | Division (vote) | | Issue | Escalation | | GitHub Actions | Clerk automation | | Repo access | Taking a Seat | | git history | Hansard (immutable record) |

Agent Model

Agents are stateless. No persistent processes. State lives in git.

Broadcast received → Agent spawned → Prompt executed → Result committed to Hansard → Agent disposed

The Human Role

The Speaker (human) is constitutionally present, not operationally present. Drops the Writ, defines Standing Orders, rules on escalations. The session governs itself.

Governance Protocols

Eleven reference protocols ship — Parliamentary, Republic, Monarchy, Socialism (political archetypes), Jury Deliberation, Elimination Tournament, Emergency Response (ICS), Corporate, Peer Review, Adversarial Collaboration, and Solo (single-lead) — spanning constitutional, authoritarian and darwinist modes. Each is a vocabulary translation plus a composition of behavioral mechanics — how a decision resolves (majority · supermajority · unanimity), how an actor exits (voted out · elimination · none), and when a session ends (objective · last-standing · verdict) — on top of CANON. You compose your own for anything else; the framework is the product, these are exemplars. Parliamentary is protocol #1, not a privileged mode. A wider catalogue of governance shapes is sketched in PROTOCOLS.md.

Hansard and LEDGER

Hansard — append-only session record. Every motion, vote, escalation, and commit. Attributed, timestamped, immutable. Cannot be edited. Cannot be gamed.

LEDGER — cost accounting per act: elapsed time, token count, dollar cost, model. Every governance act writes a row; agent turns carry measured spend, and the human-driven acts (division, assent, escalation, ruling) carry unmeasured cost, so the ledger is a complete account of a session. No story points.

Measured, never estimated — and the distinction is enforced. An agent that reports usage produces exact figures; one that does not is recorded as unmeasured, never as $0.00, and totals report unmeasured rows separately rather than folding them in. Five CLI agents report usage today — Claude Code, Codex, Gemini, OpenCode and Qwen; the rest record elapsed time and mark cost unmeasured.


Game Theory

Game theory is not a protocol in Politik. It is the analytical layer that observes and describes what emerges from sessions that are already running.

Game theory is to Politik what physics is to the universe. Physics doesn't run the universe — it describes it. Game theory doesn't run Politik sessions — it describes the equilibria that emerge from them.

Every protocol in Politik instantiates a formal game structure:

| Protocol | Game Structure | Nash Equilibrium Prediction | |---|---|---| | Parliamentary | Cooperative with veto players | Stable coalition at quorum threshold | | Emergency Response (ICS) | Stackelberg leader-follower | Full compliance, zero deviation | | Jury Deliberation | Unanimity / holdout game | Convergence to consensus, or a hung result | | Elimination Tournament | All-pay elimination | Aggressive early, conservative late | | Adversarial Collaboration | Two-player, pre-committed | Maximum honest disclosure |

The research question (not yet a built feature — see RESEARCH.md): do AI agents converge on Nash Equilibrium predictions when governed by protocols that formally instantiate known game structures? If yes — protocol selection becomes a mechanism design problem. If no — why do agents deviate? Either result is publishable.


Business Disruption

Jira is a database humans are required to keep updated. Hansard is a database that is impossible to not keep updated.

That is not a feature comparison. It is a category difference.

| Jira | Politik | |---|---| | Developer types ticket title | Motion title in Hansard | | Developer estimates story points | LEDGER — exact elapsed, tokens, dollars | | Someone manually assigns reviewer | Division record — attributed votes | | Developer links commits manually | Every governance act is its own commit — the git history is the audit trail | | Developer manually closes ticket | Prorogation — one command, with the terminating trigger recorded | | Cost tracking is finance's estimate | LEDGER — actual cost per decision |

Politik produces a superior project record as a zero-overhead side effect of running governed sessions. Nobody updates it. Nobody logs time. It is all there because it cannot be otherwise.

GitHub Alignment

A session is a git repository, so Politik runs anywhere git does. Point it at a GitHub repo and governance acts additionally project onto the platform — a Motion becomes a pull request, a Division a review request, an Escalation an issue, Assent a merge — and a shipped Actions workflow emails the Speaker when an escalation is filed. Agents run in GitHub Actions like any other CLI. The projection is optional; without it a session is complete and correct on git alone.

Open Source

MIT licensed. The entire framework — CANON, protocol library, session engine, Hansard substrate, CLI tooling, reference implementation — is open source.


Attribution: Steve Krisjanovs, Cordfuse
Architecture: POLITIK-ARCHITECTURE.md · PROTOCOLS.md · RUNTIME.md · RESEARCH.md · EXECUTION.md
DOI: 10.5281/zenodo.19490359
License: MIT