Skip to main content

workledger-cli

Tracks work in a ledger so agents can prove what they did. An agent records its work as append-only ledger entries, hands the ledger down to subagents, and gets it back with their entries folded in, so the whole tree of work and its results stays traceable and checkable.

The package and distribution are named workledger-cli; the command it installs is ledger.

What is in this repository

  • The ledger command (workledger/) — two ledger verbs, append and list, over an append-only JSONL file, plus the self-describing verbs whoami, learn, explain, overview, doctor and cli overview. The package declares no runtime dependencies.
  • A mesh identity — culture.yaml (suffix, backend: colleague, model) and the matching resident prompt file, AGENTS.colleague.md.
  • 18 skills under .claude/skills/, vendored cite-don't-import. Where each one comes from is recorded in docs/skill-sources.md.
  • Tests and CI — tests/ (pytest), and .github/workflows/tests.yml, which runs the tests, black, isort, flake8, bandit, markdownlint, the teken rubric gate, a version-bump check, and SonarCloud. publish.yml publishes to PyPI and TestPyPI with Trusted Publishing.

Quickstart

uv sync
uv run pytest -n auto                 # run the test suite
uv run ledger whoami                  # identity from culture.yaml
uv run ledger learn                   # self-teaching prompt (add --json)
uv run ledger append '{"agent":"a","action":"edit","summary":"did x"}'
uv run ledger list --agent a          # read entries back (add --json)
uv run teken cli doctor . --strict    # the agent-first rubric gate CI runs

CLI

Verb What it does
whoami Report this agent's nick, version, backend, and model from culture.yaml.
learn Print a structured self-teaching prompt.
explain <path> Markdown docs for any noun/verb path.
overview Read-only descriptive snapshot of the agent.
doctor Check the agent-identity invariants (prompt-file-present, backend-consistency).
append <json> Append one entry (agent, action, summary; optional refs, data) to the append-only ledger ($WORKLEDGER_PATH when set; otherwise .workledger/ledger.jsonl under the nearest ancestor directory that contains .git (else the current directory)). --stdin reads JSON from stdin.
list Read entries: --agent, --action, --since, --limit.
cli overview Describe the CLI surface itself.

Every command supports --json. Results go to stdout, errors/diagnostics to stderr (never mixed). Exit codes: 0 success, 1 user error, 2 environment error, 3+ reserved.

License

Apache 2.0 — see LICENSE.

Metadata

Release files for workledger-cli 0.9.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 workledger-cli 0.9.0
File Size Uploaded Provenance Actions
workledger_cli-0.9.0.tar.gz 178.9 kB Without provenance Details for workledger_cli-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for workledger-cli 0.9.0
File Interpreter ABI Platform Actions
workledger_cli-0.9.0-py3-none-any.whl Python 3 none any Details for workledger_cli-0.9.0-py3-none-any.whl

Total release size: 209.8 kB

Release files / workledger_cli-0.9.0.tar.gz

Download URL workledger_cli-0.9.0.tar.gz
Size 178.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e241794ab7bf5ea3e65aff4063816dddef739b7d142e23601636e1daf03c60b5
BLAKE2b-256 checksum
How to use checksums
57249a7a358e3320862a3bc977855133acbc570aca58488e18eb07948796e215
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / workledger_cli-0.9.0-py3-none-any.whl

Download URL workledger_cli-0.9.0-py3-none-any.whl
Size 30.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b269ba6862a8d3b23fee593f3f86c7fb551efba8813ef73d6eb3278c07c69cc8
BLAKE2b-256 checksum
How to use checksums
93ac2612f6aeb3511e032ca6c8283248ce60e7ce10e06fa0bb256306d1dba37d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for workledger-cli 0.9.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