Skip to main content

heinzel-example

Show how a Heinzelmännchen plugin is built: one module with an operation, settings, a health check and a submodule.

A plugin for Heinzelmännchen, the open-source, AI-driven operating system for product development teams. It lives in heinzel-plugins.

Install

Start Heinzelmännchen with uvx heinzel@latest. In another terminal, add this plugin:

hz system plugin add example --confirm

hz system update updates the app and its plugins; hz system plugin remove heinzel-example removes this one.

Use

hz example info                 # this plugin, its version and the Heinzelmännchen it runs on
hz example hello --name Ada     # a submodule collapsed into a command
hz example info --json          # every command speaks JSON, for scripts and agents
hz system info                  # includes a section contributed by this plugin

Develop

From the repository root: make check-fast NAME=example runs this plugin's edit loop; make check NAME=example runs its full checks. make build NAME=example and make acceptance NAME=example verify its installed artifact. The modules live in src/heinzel_example/; read the root AGENTS.md before changing them.

The example is also the teaching example for a footer icon that opens a pane. Three contributions in src/heinzel_example/__init__.py do it, with no core change:

  • @module.status(source="sample", slots={"footer": True, "sidebar": True}) returns a StatusItem with an icon, a detail line (the tooltip, "Example") and effect=Navigate(path="/?panel=example:inspector"), the click target.
  • module.view(..., name="inspector", title="Example", source="sample") is the pane that target opens; its views/index.js shows the value (42, the same sample operation as the Today widget) big. A pane is content, then a divider and a bottom action row only when it has actions; this one has none.
  • tests/contributions_test.py asserts the slots, icon, tooltip, target and view.

Development and release commands: repository guide.

Screenshots

Demo data: the constant 42 appears in both the Today widget and sidebar status.

Demo data: the constant 42 appears in both the Today widget and sidebar status.

Demo data: open the plugin-owned inspector to see the same constant value, 42.

Demo data: open the plugin-owned inspector to see the same constant value, 42.

Demo data: greet fictional Mira with structured JSON in the app's native terminal.

Demo data: greet fictional Mira with structured JSON in the app's native terminal.

Demo data: a seeded Example is ready notice appears in the shared in-app notification panel.

Demo data: a seeded Example is ready notice appears in the shared in-app notification panel.

Command line Demo data: the typed hello operation greets fictional Mira from the CLI.

Demo data: the typed hello operation greets fictional Mira from the CLI.

Demo data: sample returns 42 as JSON, the same constant used by the widget, status and inspector.

Demo data: sample returns 42 as JSON, the same constant used by the widget, status and inspector.

Open the screenshot gallery.

Metadata

Release files for heinzel-example 0.5.1

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

Source distribution (sdist)

Source distribution for heinzel-example 0.5.1
File Size Uploaded Provenance Actions
heinzel_example-0.5.1.tar.gz 450.9 kB Without provenance Details for heinzel_example-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for heinzel-example 0.5.1
File Interpreter ABI Platform Actions
heinzel_example-0.5.1-py3-none-any.whl Python 3 none any Details for heinzel_example-0.5.1-py3-none-any.whl

Total release size: 458.4 kB

Release files / heinzel_example-0.5.1.tar.gz

Download URL heinzel_example-0.5.1.tar.gz
Size 450.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b7138584845048491cd2c87e2669242d9505a652502222903002fca3961fbf56
BLAKE2b-256 checksum
How to use checksums
449dcb78734a917b3239b258a1fc8db1b286caa884fd62661757a4bf4d489a75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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 / heinzel_example-0.5.1-py3-none-any.whl

Download URL heinzel_example-0.5.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
def5708b0d2e5a32ab13ae6f065dcf6d45896208962c58b188def3af9f6a88e7
BLAKE2b-256 checksum
How to use checksums
c508e91fecaef8154d92365c4778d9b63bf1db327fb3f0be90e334426c7820ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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 heinzel-example 0.5.1

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