Skip to main content

RAYNSIS Shift

"Keep working until 17:30" should still be true at 16:00.

You give Claude Code a timed order. It finishes one item, writes a tidy summary and stops. You type "continue". Again. And again. In the setup this was extracted from, the owner gave 14 timed orders in 30 days and had to re-issue every one of them by hand.

raynsis-shift keeps the order per session and turns back every attempt to end the turn until the deadline.

pip install raynsis-shift
raynsis-shift install

Then just say it:

  • keep working until 17:30
  • don't stop for 3 hours
  • carry on for another 45 minutes

raynsis-shift status shows active orders. raynsis-shift undo removes the two hooks.

It cannot loop forever

The order is released when any of these is true:

Condition Why
The deadline passed The order is over.
The answer contains order-complete: <what was measured> Nothing in scope is left; the reason is logged.
Two blocks in a row with no tool call The agent has nothing to do or is stuck; forcing it only burns tokens.
40 blocks issued Hard ceiling.
You type stop, that's enough or cancel the order You are in charge.
RAYNSIS_SHIFT=off is set Kill switch.

Orders are capped at 9 hours. A prompt needs both a time and a work verb, so "the meeting runs until 5pm" is not an order. If the transcript cannot be read, the gate does not block.

How it works

Two hooks, one file, standard library only.

  • UserPromptSubmit: parses the order, stores the deadline in ~/.raynsis-shift/orders/<session>.json, and reminds the model of the time left on every prompt.
  • Stop: while an order is active, returns {"decision": "block", "reason": ...} naming the deadline and asking for the next item in scope.

Every decision is one line in ~/.raynsis-shift/log.jsonl.

Limits

  • English order phrases only in 0.1.
  • Tested on macOS with Python 3.9.
  • An order belongs to one session. Other sessions are not affected.

Tests

python -m unittest discover tests

Metadata

Release files for raynsis-shift 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 raynsis-shift 0.1.0
File Size Uploaded Provenance Actions
raynsis_shift-0.1.0.tar.gz 11.5 kB Without provenance Details for raynsis_shift-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for raynsis-shift 0.1.0
File Interpreter ABI Platform Actions
raynsis_shift-0.1.0-py3-none-any.whl Python 3 none any Details for raynsis_shift-0.1.0-py3-none-any.whl

Total release size: 22.9 kB

Release files / raynsis_shift-0.1.0.tar.gz

Download URL raynsis_shift-0.1.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e38a149643aa2981a467ca4d0e48a4351170505b30005b6d7a0fabdc85fb0841
BLAKE2b-256 checksum
How to use checksums
ff079b7f3f5be4de953978f0cf7001894e581f3c9f48e7dfd49e1d30e9eedab6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

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

Download URL raynsis_shift-0.1.0-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ede2536f24e988e66c2d6655d868d8e34852157a2dd1c2b4f812d35c0c7409c
BLAKE2b-256 checksum
How to use checksums
906de056f608ec3b94a7ffb0b0a10b40b353c1090ec9377f837e334df429cef9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for raynsis-shift 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