heartbeat-for-claude-code
Health Gecti
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 14 GitHub stars
Code Basarisiz
- fs.rmSync — Destructive file system operation in ambition.mjs
- os.homedir — User home directory access in ambition.mjs
- process.env — Environment variable access in ambition.mjs
- os.homedir — User home directory access in beat.mjs
- process.env — Environment variable access in connect.mjs
- network request — Outbound network request in connect.mjs
- spawnSync — Synchronous process spawning in install.mjs
- fs.rmSync — Destructive file system operation in install.mjs
- os.homedir — User home directory access in install.mjs
- process.env — Environment variable access in install.mjs
- execSync — Synchronous shell command execution in listener.mjs
- fs.rmSync — Destructive file system operation in listener.mjs
- os.homedir — User home directory access in listener.mjs
- process.env — Environment variable access in listener.mjs
- fs.rmSync — Destructive file system operation in send-brief.mjs
- fs.rmSync — Destructive file system operation in telegram-setup.mjs
- network request — Outbound network request in transport.mjs
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Heartbeat for Claude Code: Claude Code messages you first, proposes the next step, and starts real desktop sessions from your phone.
Heartbeat for Claude Code
Claude Code comes to life. It messages you first.
It tells you what finished, what needs you and the next step worth doing.
Reply from your phone and a real session starts on your computer.
Get the hosted version, $9 a month • See it in action • Run it yourself • Agent Ops Club
What Heartbeat does
Claude Code is good at work and silent about it. It waits at your desk until you come back and ask.
Heartbeat changes that:
- It messages you first. Through the day it reads what your sessions and scheduled routines did and sends a short brief to Telegram: what finished and what needs you.
- It proposes the next step. When there is a next step worth doing, it arrives with a Start button and a Skip button.
- Ambitious mode works toward your goals. Setup asks what you are building and how you plan to reach customers. With Ambitious mode on, Heartbeat suggests 1 to 3 next steps toward those goals, 1 to 3 times a day at the times you pick. Each one names the goal it serves.
- Your reply starts real work. A tap or a plain sentence opens a real session in the Claude desktop app on your own computer, on your own Claude plan. A summary comes back to the same chat.
- You stay in control. Every session started from your phone is told not to spend money, post, message other people or change settings, and a push or a deploy waits for your reply.
Two ways to run it
This repository is the part of Heartbeat that runs on your computer. It is open source under the MIT license and you can run it by itself.
Most people should not. The hosted version is the same program with the setup done for you and the smart half switched on.
| Heartbeat hosted | This repository, by itself | |
|---|---|---|
| Price | $9 a month. Month to month, cancel any time | Free |
| Setup | Two clicks. Link your computer and Telegram from your account | Create a Telegram bot with BotFather, save its token on your computer, connect it yourself |
| Time to first message | About five minutes | As long as the steps below take you |
| Bot to build, keys to keep | None | Your own bot and its token |
| Briefs on what finished and what needs you | ||
| Start and Skip buttons | ||
| Start new work with a plain sentence | ||
| Ambitious mode: next steps toward your goals, up to 3 times a day | ||
| Understands what a sentence means: new work, a follow up, or a yes | ||
| Follow ups go into the session already doing that job | ||
| Approve a proposed step in your own words, with an instruction added | Buttons only | |
| Daily request limit and quiet hours managed for you | A daily limit you set in a file | |
| Text message | Coming soon | |
| Help when a step fails | Setup help by email | The issues page here |
Get Heartbeat hosted for $9 a month 👉🏼 club.reinventing.ai/heartbeat
Hosted Heartbeat is also included with Pro and Lifetime in Agent Ops Club, next to the AI Employees it reports on.
What you need (both ways)
- A Windows computer that is on and signed in. A locked screen holds new work for up to an hour. Mac is not supported yet.
- The Claude desktop app with your own Claude plan that includes Claude Code, set to English.
- Node.js 18 or newer.
- Telegram on your phone.
Hosted setup
- Get Heartbeat. Your account is made at checkout.
- On your Heartbeat page, download Heartbeat, open the folder in the Code tab of the Claude desktop app and paste the one line the page gives you.
- Link Telegram from the same page.
That is the whole setup. The first message arrives a few seconds later.
Run it yourself
The steps for the open source version. Your agent does most of them, and it will ask you before it adds anything to Windows startup.
- Download this repository as a ZIP and extract it.
- In Telegram, open @BotFather, send
/newbotand answer its two questions. BotFather gives you a bot token. - Open the extracted folder in the Claude desktop app, in the Code tab, and send: Set up Heartbeat in standalone mode with my own Telegram bot.
- When your agent asks, save the bot token, alone, in a text file named
telegram-token.txtin theHeartbeat\statefolder. Save the file yourself. Do not paste the token into the chat. - Open your new bot in Telegram and press Start, so the setup can learn which chat is yours.
- Answer your agent's questions: a yes to start the listener when you sign in, how often the check in should run, which folder new work should open in, what your goals are, and whether you want Ambitious mode on.
- Read the first brief it writes. It starts in shadow mode, where nothing is sent, and goes live on your yes.
- If you want to start work by message, ask your agent to turn on
workByMessage.
Updating is the same download again; your settings in state are kept.
If step 2 to step 5 is more than you wanted to do, the hosted version skips them.
What it does on your computer
- A small listener runs in the background and checks every few seconds whether you sent something. It uses no model tokens while it waits.
- A check once a minute restarts the listener if it ever stops, so a reply from your phone is not left waiting.
- When you approve or ask for something, it opens a session in the desktop app by filling in the message box and pressing Send, the same as you would.
- A scheduled check in reads your recent session history and writes you a short brief. It uses your Claude plan each time it runs.
| File | What it is |
|---|---|
listener.mjs |
The background listener. Starts sessions and sends a summary back |
transport.mjs |
How the computer reaches your phone: the hosted service, or your own Telegram bot |
telegram-setup.mjs |
Connects your own bot in standalone mode |
connect.mjs |
Connects the computer to a hosted account with a one time code |
beat.mjs |
Reads what your sessions did since the last check. No model tokens |
routine.md |
The scheduled check in that writes the brief and the proposals |
ambition.mjs |
Ambitious mode: reads your goals, decides when suggestions are due and refuses repeats. No model tokens |
send-brief.mjs |
Sends the brief, with any suggestions and their Start and Skip buttons |
start-session.ps1, send-to-session.ps1 |
Open a session in the desktop app, or put a message into one |
install.mjs |
Copies the files, starts the listener at sign in, and removes it again |
CLAUDE.md |
The setup steps your agent follows |
Ambitious mode
Setup asks for your goals and whether you want Ambitious mode on. It is off unless you say yes.
- Your goals live in a file on your computer,
Heartbeat\state\goals.md. Change them any time. - You pick 1 to 3 times a day. At each one Heartbeat suggests 1 to 3 next steps, and every suggestion names the goal it serves.
- Nothing is suggested twice. A suggestion you skip is not offered again for 14 days.
- A suggestion never starts by itself. Press Start and the work begins on your computer, under the same limits as every other session.
- To turn it on or off later, open the Heartbeat folder in the Claude desktop app and send: Turn on Ambitious mode. or Turn off Ambitious mode. It cannot be turned on or off by message.
- It uses your Claude plan on each suggestion run.
Safety
- Every session started from your phone is told not to spend money, post, message other people, change settings or touch credentials, and to ask you before any push or deploy.
- Those are instructions to the session, not a lock. Your app's permission mode is what enforces anything. Keep permission prompts on.
- In standalone mode only the chat that set the computer up is obeyed. A bot is public, so anyone else who messages it gets one line and nothing happens.
- Starting work by message is off until you turn it on.
- Anyone holding your unlocked phone can message your computer. Leave work by message off if other people use it.
- To stop it at once, create an empty file named
PAUSEDin theHeartbeat\statefolder. - Tokens stay in
Heartbeat\stateon your computer and are never printed. Do not commit that folder anywhere.
Questions
Why is there a paid version of an open source project?
The program on your computer is open. The service that links your phone in two clicks, reads a plain sentence for what you mean and passes a follow up to the right session is the part that is hosted, and it costs money to run. $9 a month pays for it.
Does it use my Claude usage?
Yes, both ways. The sessions it starts and its scheduled check ins run on your own Claude plan.
What leaves my computer?
In standalone mode, the briefs, your requests and the summaries pass through Telegram and nothing else. In the hosted version they also pass through the Heartbeat service. The work itself always runs on your computer.
Does it work on a Mac, or with another agent?
Heartbeat runs on Windows with Claude Code in the Claude desktop app today. Mac comes later.
Can I move from standalone to hosted later?
Yes. Get a connect code from your Heartbeat page and ask your agent to connect with it. Your settings are kept.
Does it work with the AI Employees?
Yes. The open source AI Employees run their routines on a schedule. Heartbeat tells you what they finished and brings you the decisions that need you.
License
MIT. See LICENSE.
Heartbeat is made by Agent Ops Club. It works with Claude Code. It is not made or endorsed by Anthropic. Claude and Claude Code are trademarks of Anthropic.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi

