This widget was generated entirely by an AI agent from prompt.md and AGENTS.md. These files constitute the complete specification needed to build a functional monitor@ widget.
This widget provides the number of packages installed on Fedora Workstation that are tracked via:
dnfflatpakpipnpm
It's not all that useful, but it is a good pilot because it spans the full stack and has quantifiable numbers that are easy to verify at the command line.
It took codex 12 minutes to produce this widget through two prompts only.
First, clone the repo itself and install:
git clone https://github.com/brege/monitorat.git
cd monitorat
uv tool install -e .Configure ~/.config/monitor@/config.yaml to point to the sandbox and enable the widget:
paths:
widgets: /path/to/monitorat/testing/widgets
widgets:
enabled:
- packages
- # other widgets you use
packages:
name: System PackagesStart the server:
monitorat serverAccess the widget at http://localhost:6161 and verify the API endpoint:
curl http://localhost:6161/api/system-packagesTo regenerate this widget, give an agent prompt.md and AGENTS.md while in monitor@'s source code directory. The agent builds the widget from scratch in testing/widgets/packages/.
Use this as an archetype to build out new widgets.
Once satisfied, move the widget to production:
mv testing/widgets/packages ~/.config/monitor@/widgets/packagesNote
"packages" is the name of the widget, not a bundle of widgets.
Update ~/.config/monitor@/config.yaml to point to the production location.