Repository navigation
Keepawake Files
Ilia edited this page Nov 30, 2026
·
5 revisions
| File | What is in it |
|---|---|
bin/keepawake |
the holder detector, status, manual extension |
keepawake/hold_loop.py |
the holding side's loop on Linux and macOS: the state read every 30 seconds, the lock taken and dropped, the log lines status greps |
bin/keepawake-linux |
the holding side on plain Linux: a systemd-inhibit lock |
bin/keepawake-macos |
the holding side on macOS: an IOKit power assertion, and the lid through pmset where the sudoers rule allows it |
launchd/keepawake.plist, launchd/keepawake.hold.plist
|
macOS's agents: the minute's count and the holding side |
launchd/keepawake.telegram.plist |
macOS's agent for the bot, written once the token and the chat id are there |
launchd/keepawake.code-server.plist |
macOS's agent for code-server, loaded and started only by the bot |
keepawake/units.py |
what a button runs for a service: systemctl --user on Linux, launchctl for the same service's agent on macOS |
keepawake/state.py |
the state under flock, atomic writes, the "should we hold" decision |
keepawake/telegramd.py |
the bot's process: the environment, the loop, the periodic checks; when its own code or sclaude's library changes and the new code imports, it runs itself again in place (the sclaude runs it started live on) |
keepawake/botapi.py |
Telegram's Bot API client with its retries, and the bot's profile |
keepawake/handling.py |
what the person sends: commands, typed text, button presses |
keepawake/menus.py |
the menu in the chat, its keyboards and the anchor message |
keepawake/holding.py |
the awake screen: extending and releasing the hold |
keepawake/status_report.py |
the status screen: what holds the machine and why |
keepawake/sleep_warning.py |
the warning before sleep, forgotten hard holders, the phone after a boot |
keepawake/activities.py |
an activity's start and end in one message: the end, and the review's verdict on the round, edited into the message that said it started |
keepawake/processes.py |
a process sclaude runs as a widget in its feature's topic: its lines go into it, one message when it ends |
keepawake/widgets.py, keepawake/widget_html/
|
HTML widgets (Bot API 10.4): the templates, their state within Telegram's 1024 bytes, the switch between them and plain messages |
keepawake/asks.py |
sclaude's questions on the phone and what becomes of their messages |
keepawake/topics.py |
a topic per feature: its record, naming it, deleting it with the feature |
keepawake/tg_journal.py |
the journal of a feature's topic: what the bot and sclaude-notify sent, edited and deleted there, and what the person typed, pressed and tapped, one JSON line each in the feature's tree |
keepawake/card_view.py |
the feature's card in its topic |
keepawake/sessions.py |
the steps' sessions: which claude runs where, the list of features |
keepawake/repos.py |
the repositories the bot knows and their features |
keepawake/project_config.py |
the project's config on the phone |
keepawake/phone_access.py |
the phone's way in: tailscale serve and funnel, the gate |
keepawake/services.py |
Chrome's debugging port, code-server, the features' dev servers |
keepawake/shell.py |
running commands: the PATH a unit lacks, the one wrapper |
keepawake/i18n.py |
the bot's strings in Russian and English |
keepawake/docs.py |
the docs the bot prints on a button |
bin/code-server-start |
opens the repository chosen in the bot |
bin/code-server-proxy |
the localhost forward on Linux and WSL, address from code-server's config |
windows/KeepAwake.ps1 |
SetThreadExecutionState and the polling loop on the Windows side |
windows/KeepAwake.vbs |
a hidden manual start, should it be needed |
bin/keepawake-windows |
starts and stops the Windows side from WSL |
systemd/keepawake.timer |
the minute-by-minute polling of holders |
systemd/keepawake-telegram.service |
the bot's daemon |
systemd/code-server.service |
VS Code in the browser, tailnet only, on demand |
systemd/code-server-local.socket |
the same server for the Windows browser |
Generated from docs/keepawake.md; edit it there, then rebuild with wiki/build.py.
SClaude is open source under MIT · Repository · Landing page · Contact
Why
How it works
- The cycle
- Big features in parts
- Limits in code
- Fewer tokens
- Feedback loops
- Metrics and the replay
- For a team
- Working from the phone
- Stack and costs
- Privacy
Guide
- Getting started
- Setting up
- Using sclaude
- The config, key by key
- When something goes wrong
- Glossary
- Gates and rules
- Team setup
- Privacy in full
- The tools
- Decks and the map
- Contributing
Inside
Links