claude-window-keeper
v0.2.0
Published
Claude's Window Keeper — keep your Claude Code usage window ready for long sessions. Not affiliated with Anthropic.
Maintainers
Readme
CWK — Claude's Window Keeper
Keep your Claude Code usage window ready for long sessions by reducing the next reset time.
[!NOTE] CWK is an independent open-source project. It is not affiliated with, endorsed by, or sponsored by Anthropic. "Claude", "Claude AI" and "Claude Code" are trademarks of Anthropic, PBC.
CWK is a small, engine-first CLI that keeps your Claude Code usage window aligned with your work schedule. It periodically sends a minimal ping through Claude Code so that whenever you sit down to work, the maximum possible window is ahead of you.
CWK does not bypass Anthropic limits, increase quotas, or exploit undocumented behavior. It only automates a single action users already perform manually.
How it works
- You tell CWK when the next ping should happen.
- CWK stores minimal state in
.cwk/and generates a GitHub Actions workflow. - The workflow wakes CWK three times per hour; the Core Engine decides
WAIT,WAIT_THEN_PINGorPING. - GitHub cron fires early, late or not at all — so when the target is close, CWK simply waits inside the run and pings at the exact scheduled time.
- When a ping is due, CWK runs a minimal Claude Code command and updates its state.
Quick start
npm install -g claude-window-keeper
cd your-repository
cwk initThe setup is interactive and accepts natural time expressions:
When should the NEXT ping happen?
> tomorrow 23:50Also accepted: 23:50, 23h50, 11pm, in 2 hours, next monday 21:00, …
Then add the CLAUDE_OAUTH_TOKEN GitHub Secret (a Claude Code OAuth token), commit, and push. CWK takes care of the rest.
Commands
| Command | Description |
|---------|-------------|
| cwk init | Initialize a CWK project (interactive, confirms before writing) |
| cwk status | Show last/next ping, remaining time, timezone |
| cwk ping | Run one synchronization cycle (--force to ping now) |
| cwk doctor | Check project health with actionable fixes |
| cwk repair | Fix what doctor found, preserving as much as possible |
| cwk update | Bring an existing project to the current CWK format |
| cwk reset | Remove the CWK project |
Global options: --json, --verbose, --version, --help.
Updating an existing repository
The generated workflow installs the latest CWK on every run, so the engine updates itself. After a new CWK release, bring the files living in your repository up to date with:
npm install -g claude-window-keeper@latest
cwk update # regenerates outdated runtime files, adds new settings
git add -A && git commit -m "chore: update cwk runtime" && git pushDevelopment
npm install
npm test # unit + integration
npm run test:unit
npm run test:integrationEvery push and pull request to main runs the full test suite and a package sanity check (CI workflow).
Releasing
Releases are fully automated (Release workflow):
- Bump the version:
npm version patch(orminor/major). - Push to
main(directly or via PR). - The workflow runs the tests, publishes
claude-window-keeperto npm with provenance, creates thevX.Y.Ztag and the GitHub release.
Pushes that do not change the version are skipped automatically. Publishing uses npm trusted publishing (OIDC): no npm token is stored in the repository.
Documentation
- ARCHITECTURE.md — engine-first architecture overview
- AGENTS.md — guidelines for AI coding agents
- docs/ — full specification (product, CLI, engine, adapters, roadmap)
Disclaimer
CWK is an independent community project, not affiliated with, endorsed by, or sponsored by Anthropic in any way. "Claude", "Claude AI" and "Claude Code" are trademarks of Anthropic, PBC, used here only to describe compatibility. CWK does not bypass, extend, or alter any Anthropic usage limit: it only automates a minimal action any user can perform manually.
