Skip to main content

huxley-skill-timers

One-shot relative timers for Huxley. "Remind me in 5 minutes." Persistent, supervised, stale-restore-guarded.

Status: bundled with the Huxley repo as a workspace member.

What it does

  • set_timer — "set a timer for 5 minutes" / "remind me in 30 seconds to take it out of the oven" — schedules a one-shot proactive announcement after the given relative duration. The skill's wait task fires inject_turn(message) when the timer expires.

For calendar-time reminders ("at 9am tomorrow") use huxley-skill-reminders instead — the two skills cleanly split absolute vs. relative time.

Persistence + supervision

  • Timer rows live in ctx.storage under timer:<id> keys.
  • The wait task for each timer is wrapped in ctx.background_task so the framework can see crashes (logged via aexception), restart within a budget, and cancel cleanly at shutdown.
  • On boot, setup() enumerates timer:* and reschedules the survivors against wall-clock time.
  • Stale-restore guard: if a restored timer's fire_at is more than stale_restore_threshold_s in the past, it's dropped silently — no spammy "your 7am wake-up timer is now firing at 6pm" surprises.

Configure

skills:
  timers:
    stale_restore_threshold_s: 300 # default 5 min; raise if you want catch-up
    fire_prompt: "El temporizador terminó:" # prefix the persona narrates
    i18n:
      es:
        seconds_word: "segundos"
        minutes_word: "minutos"
      en:
        seconds_word: "seconds"
        minutes_word: "minutes"

config_schema = None — locale i18n maps don't fit a JSON-Schema-rendered form; v2's PWA falls back to "edit YAML directly."

Development

uv run --package huxley-skill-timers pytest server/skills/timers/tests
uv run ruff check server/skills/timers
uv run mypy server/skills/timers/src

License

MIT — see LICENSE.

Metadata

Release files for huxley-skill-timers 0.1.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 huxley-skill-timers 0.1.0
File Size Uploaded Provenance Actions
huxley_skill_timers-0.1.0.tar.gz 16.2 kB Without provenance Details for huxley_skill_timers-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for huxley-skill-timers 0.1.0
File Interpreter ABI Platform Actions
huxley_skill_timers-0.1.0-py3-none-any.whl Python 3 none any Details for huxley_skill_timers-0.1.0-py3-none-any.whl

Total release size: 29.1 kB

Release files / huxley_skill_timers-0.1.0.tar.gz

Download URL huxley_skill_timers-0.1.0.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
689cf5983bc316cf38b83aae2b8462f0114a228f4b2216c59c6055716021dba7
BLAKE2b-256 checksum
How to use checksums
828813a2ec17ddaac46fdef37bbb469ffbb5f59971ec561a7d148f594a293544
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.5

Release files / huxley_skill_timers-0.1.0-py3-none-any.whl

Download URL huxley_skill_timers-0.1.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
709682af61dc02852183d8bac681a6f7b50ece6f4670d12d5a5564ce95e33093
BLAKE2b-256 checksum
How to use checksums
7dae8a54b92adf65ecdf67f317bd33e9c192ce5768614ff7cf91a154558345ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.5

Security for huxley-skill-timers 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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