Skip to main content

Work Ledger CLI

work-ledger is a deterministic command-line tool for managing an Obsidian-compatible, Git-backed personal work ledger. It owns IDs, schemas, links, locking, transactions, Git commits, privacy filtering, weekly-report facts, diagnostics, and migrations.

Requirements

  • Python 3.11 or newer
  • Git
  • A POSIX platform providing fcntl.flock (macOS or Linux)

The runtime uses only the Python standard library.

Entry points

work-ledger --version
work-ledger version
work-ledger capabilities
python -m work_ledger

All commands except --version emit exactly one JSON object on stdout. Run work-ledger --help for the complete command surface.

Configuration defaults to ~/.config/work-ledger/config.toml; local state defaults to ~/.local/state/work-ledger/. Override them with WORK_LEDGER_CONFIG and WORK_LEDGER_STATE_DIR for isolated environments.

Projects support nullable ISO start_date and end_date boundaries. When both are present, the start must be on or before the end. The range is descriptive and does not automatically change project status or reject tasks and events outside it.

Project and Task notes use a portable projection of the creation title as their permanent readable filename. Their titles are immutable, and projected filenames are unique within each note type. In schema 4, a root Task stores its Project link while a child Task stores only its parent link and derives project membership recursively, keeping the Obsidian Graph free of redundant child-to-project edges. CLI 0.6 and later migrate schema 1, 2, or 3 Vaults to schema 4 in one Git-backed transaction and reject ambiguous cross-project child histories.

CLI 0.7 adds work-ledger snapshot, a body-free, deterministic read projection for desktop visualization clients. It returns Project, Task, effective Event and weekly Report summaries from one shared read lock, including the derived project for child tasks, Vault identity, managed Work digest and an independent snapshot schema version.

CLI 0.8 adds work-ledger report export, a read-only clean projection of a digest-valid managed Report. Markdown export removes controlled frontmatter and evidence comments and reduces Obsidian wikilinks to visible labels; text export also removes Markdown presentation syntax. Export requires an explicit personal or reportable audience and never writes the Vault or Git history.

CLI 0.9 enriches work-ledger report facts with visibility-filtered Project and Task bodies plus the ancestor Task context needed to synthesize workstreams. Report evidence validation also covers full-width and ASCII numbered paragraphs used by paste-ready weekly reports. Vault schema 4 remains unchanged.

CLI 0.10 makes a newly created ordinary Project reportable when visibility is omitted. Explicit private remains supported, Task and Event visibility still copies the current effective visibility of its parent at creation, and the protected Inbox remains private. Existing Vault objects are not rewritten and Vault schema 4 remains unchanged.

Build

Any PEP 517 frontend can build the standard artifacts. For example:

uv build --out-dir dist
python tools/build_zipapp.py --dist dist

The first command builds the wheel and sdist. The second builds an executable zipapp and writes SHA256SUMS for all artifacts.

For the complete PyPI release gate, install build and twine, then run:

python tools/build_pypi.py --dist dist

The helper runs the source test suite, builds exactly one wheel and one sdist, runs twine check, validates and installs the direct wheel, rebuilds a wheel from the sdist in an isolated PEP 517 environment, and subjects that rebuilt wheel to the same metadata, installation, and CLI probes.

Public distribution

Production wheel and source-distribution releases use the agent-ledger-harness distribution name on PyPI. They are published through GitHub Actions Trusted Publishing after TestPyPI installation verification and the merged CLI Release PR approval. The executable zipapp and SHA256SUMS are attached to the matching GitHub Release.

Published versions are immutable and follow PEP 440. The version in src/work_ledger/__init__.py is the source for package metadata, CLI probes, tags, and artifact names. See the public PyPI release runbook.

Installation

Install an exact production version with a user-level tool manager such as pipx or uv tool:

pipx install agent-ledger-harness==<version>
uv tool install agent-ledger-harness==<version>

These installs provide the work-ledger command and work_ledger Python module for the work-ledger-cli product. A verified wheel or GitHub Release zipapp is also supported. Never make normal or scheduled use depend on TestPyPI, an editable checkout, or an unfixed latest version.

GitHub Release zipapps are bare .pyz files, and HTTP downloads do not preserve POSIX file modes. Verify SHA256SUMS, then run one portably with python3 work-ledger-<version>.pyz. On POSIX, after checksum verification, chmod +x work-ledger-<version>.pyz also enables direct execution.

Download files

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

Source Distribution

agent_ledger_harness-0.10.0.tar.gz (69.1 kB view details)

Uploaded Source

Built Distribution

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

agent_ledger_harness-0.10.0-py3-none-any.whl (59.7 kB view details)

Uploaded Python 3

File details

Details for the file agent_ledger_harness-0.10.0.tar.gz.

File metadata

  • Download URL: agent_ledger_harness-0.10.0.tar.gz
  • Upload date:
  • Size: 69.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agent_ledger_harness-0.10.0.tar.gz
Algorithm Hash digest
SHA256 fd79cea301402e8fbd34922c516dee9bad172e9d752dd59d2296541e28fb5964
MD5 95e4afda4960b51d6da2b062a1cd9853
BLAKE2b-256 356616b8df863ff945e2c609063cbb80f2f9a9b17217311ece1494caad845341

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_ledger_harness-0.10.0.tar.gz:

Publisher: release.yml on likaihz/tz-agent-harness

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agent_ledger_harness-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_ledger_harness-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbc01c6c8804d6e8b414b94de941039c06ff424aeaf78801ce0b5cc1c55a5e40
MD5 8730e1d9e2e5574b43b56e805d05a3bc
BLAKE2b-256 4d2bbb687f529c4d63e82c0e481bfc5771a1d1328683f96161aea2889186b40b

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_ledger_harness-0.10.0-py3-none-any.whl:

Publisher: release.yml on likaihz/tz-agent-harness

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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