Without hark
You find out when you go and look.
- Carol requests changes on #15
- CI fails on main
- Ana asks for you in #deploys
- You check GitHub and Slack and find all three
hark connects Claude Code to GitHub, Slack, Jira, Datadog and Todoist. When a reviewer asks for changes, CI breaks, a teammate pings you or an alert fires, your agent hears about it, tells you what it means and offers to handle it.
Paste it into Claude Code. Your agent installs hark, checks your accounts and starts listening. Free, for Linux and macOS.
Move the refund flow to the new payments client
Editing refund.go and refund_test.go
hark githubpr.changes_requested acme/checkout#15 @carol "move the migration to its own PR (2 inline comments)"
Carol requested changes on #15. She wants the migration in its own PR, and her two inline comments ask to rename the index. I can move it to a new branch and open that PR. Want me to?
hark datadogdatadog.alert "[Triggered on {service:checkout}] p95 latency above 800ms"
The checkout latency alert just fired. I'll finish the refund change unless you want me to look at the alert first.
Your agent hears from
Tools and MCP servers answer when your agent calls them, so it learns about a review only if it thinks to look. hark runs as a background monitor instead: each new event reaches the agent on its own, about a minute after it happens, and the agent works out what it means for you.
You find out when you go and look.
Your agent tells you as it happens.
One prompt tells the agent what each kind of event means for you. These are its defaults, and editing the prompt changes them.
Reads the review and its inline comments and tells you what the reviewer asks for, so you can decide what to change.
pr.changes_requestedNames the workflow and the branch that failed, and offers to read the logs.
ci.failedTells you who wrote, where and what they ask for. It never answers in Slack for you.
slack.mentionedReports monitors that go into Alert or No Data on your services, and tells you when they recover.
datadog.alertTells you right away when an issue is assigned to you or a comment mentions you.
jira.assignedMentions each task due today, once, so nothing slips while you are heads down.
task.dueClaude Code does the installing. You give it access to your accounts and paste the prompt. Any agent that can keep a command running in the background works too.
Export a token for each service you use in your shell profile, so Claude Code starts with them. GitHub needs nothing more if you are logged in with gh.
GITHUB_TOKEN, or the token from gh auth tokenSLACK_TOKEN, the user token of a Slack app you create with the search:read user scopeJIRA_URL, JIRA_EMAIL and JIRA_API_TOKENDD_API_KEY and DD_APP_KEY, plus DD_SITE if your site is not datadoghq.comTODOIST_API_TOKENIt tells the agent how to install and run hark, what to do with each kind of event, and to ask you before it replies, reacts, closes, mutes or changes anything.
Watch my Datadog, GitHub, Jira, Slack and Todoist activity with hark while we work.
1. If `hark` is not on PATH, install it with
`curl -fsSL https://raw.githubusercontent.com/dukex/hark/main/install.sh | sh`.
Then run `hark help` and read it: it describes every line hark prints,
every flag and how to restart a monitor without losing events.
2. Run `hark doctor`. If a provider shows `✗`, tell me what failed. Only start
monitors for providers whose checks all pass.
Start a background monitor running `hark github 2>&1`, described as
"GitHub activity on my issues and PRs", with the longest timeout allowed.
When it expires, start it again. If more than an hour passed since it
stopped, add `--since <time of its last line that is not an error>`, so
nothing in between is lost. If your tool has no monitor, run it in the
background and read its output every few minutes.
3. Each line is one event:
`<time> github <kind> <repo>#<number> @<actor> [watching] "<text>" <url>`.
- `issue.commented` / `pr.commented` without `watching`: someone commented on
my issue or PR. Read the whole comment (`gh issue view` or `gh pr view
--comments`), tell me what it asks for, and if it is about the work in this
session, propose the change.
- `pr.reviewed`, `pr.changes_requested` without `watching`: someone reviewed
my PR. Read the review and its inline comments (`gh pr view --comments`
and `gh api repos/<repo>/pulls/<number>/comments`) and tell me what it asks for.
- `pr.approved`, `issue.closed`, `pr.closed`, `pr.merged`, `pr.opened`: tell me
in one line.
- Lines with `watching`: threads I follow but did not open. Mention them only
if they @mention me or touch what we are working on.
- `*.updated`: other activity, the text is GitHub's reason (for example
`review_requested`). Tell me about review requests.
- `ci.failed`: a workflow failed. Tell me which one and on which branch, and
offer to read the logs (`gh run list --repo <repo> --branch <branch>`).
- `ci.approval_requested`: someone is waiting for me to approve a deploy. Tell me.
- `ci.succeeded`, `ci.cancelled`, `ci.skipped`: stay quiet unless I am
waiting for that workflow.
- `error`: hark keeps retrying and prints a repeated error only once. Tell me
what failed.
- A line starting with `hark:` means hark stopped. Show it to me.
4. If doctor shows jira working, start another monitor the same way with
`hark jira 2>&1`, described as "Jira activity on my issues". Jira, Slack,
Todoist and Datadog resume where they stopped on their own, so re-arm them
without `--since`:
- `jira.mentioned`, `jira.assigned`: tell me right away.
- `jira.commented`: tell me what it asks for.
- `jira.transitioned`: tell me in one line.
If doctor shows todoist working, start one more with `hark todoist 2>&1`,
described as "Todoist activity":
- `task.due`: remind me of what is due today, once.
- `task.commented`: tell me what the comment says.
- `task.created`, `task.completed`, `task.rescheduled`: stay quiet unless
the task is about the work in this session.
If doctor shows slack working, start `hark slack 2>&1`, described as
"Slack mentions and DMs":
- `slack.mentioned`, `slack.dm`: tell me who wrote, where, and what they
ask for. Do not answer in Slack.
If doctor shows datadog working, ask me which services or teams I own and
start `hark datadog --filter '<that>' 2>&1`, described as "Datadog
monitors": without a filter it reports every monitor in the organization.
- `datadog.alert`, `datadog.no_data`: tell me right away, with the monitor.
- `datadog.warn`: tell me in one line.
- `datadog.recovered`: tell me in one line if I was told it was down.
If I ask to watch only some repos, projects, channels, tasks or services,
pass `--filter` with the provider's own syntax (see the hark README).
5. Never reply, react, close, mute or change anything on GitHub, Jira, Slack,
Todoist or Datadog without asking me first.
It installs hark if it is missing and runs hark doctor to see which accounts work. Then it starts one monitor per working service and restarts them without losing events.
$ hark doctor hark 0.8.0 datadog - not configured: set DD_API_KEY, DD_APP_KEY github ✓ token: logged in as you ✓ notifications: readable jira - not configured: set JIRA_URL, JIRA_EMAIL, JIRA_API_TOKEN slack ✓ token: logged in as you on acme ✓ search: 4 mentions and 12 DMs in the last 7 days ✓ state: /home/you/.local/state/hark/slack.json todoist ✓ token: valid ✗ activity log: GET /api/v1/activities: 403 Forbidden ✓ state: /home/you/.local/state/hark/todoist.json
curl -fsSL https://raw.githubusercontent.com/dukex/hark/main/install.sh | sh
Or with Go: go install github.com/dukex/hark/cmd/hark@latest
hark reads and reports. Your agent asks before it acts.
The prompt tells your agent never to reply, react, close, mute or change anything in your accounts without asking you first.
hark only reads your accounts. It marks the GitHub notifications it reports as read, so none reaches your agent twice.
No server, no webhooks, no sign-up. hark runs on your machine with your tokens and talks only to the services you connect, and to GitHub to update itself.
Every service except GitHub continues from a saved cursor. GitHub continues from the time your agent passes to --since.
Narrow each service in its own syntax, from GitHub search qualifiers to JQL, so your agent hears about your work and nobody else's.
On every start hark checks for a newer release, verifies its checksum and restarts on it. Set HARK_NO_UPDATE=1 to turn that off.
Every pull request to hark runs its tests with a 100% coverage check, golangci-lint and shellcheck.
Under the hood, hark prints each event as one line with fixed fields, and hark help explains every line to the agent. Select a field to find it in the line.
2026-11-23T10:10:00Z github pr.commented acme/lib#40 @frank watching "rebase?" https://github.com/acme/lib/pull/40#issuecomment-70
Run one hark per service. Each checks every minute and reports only what is new since its last line.
issue.commentedpr.commentedpr.reviewedpr.approvedpr.changes_requestedissue.closedpr.closedpr.mergedpr.openedci.failedci.succeededci.cancelledci.skippedci.approval_requestedissue.updatedpr.updatedreview_requested.Marks each notification as read once it prints it, so nothing comes twice. After more than an hour off, pass the last line's time to --since.
--filter 'org:acme -is:ci'
slack.mentionedslack.dmFinds messages with Slack search, so one shows up once Slack indexes it, usually within a minute. Skips your own messages and continues from a saved cursor.
--filter '-in:#random -in:#alerts'
jira.commentedjira.mentionedjira.transitionedTo Do to Done.jira.assignedSkips your own actions and continues from a cursor saved in ~/.local/state/hark.
--filter 'project = PROJ AND priority = High'
datadog.alertdatadog.warndatadog.no_datadatadog.recoveredReads the monitor alerts of the whole organization, so filter it down to what you own. Skips re-notifications and continues from a saved cursor.
--filter 'team:payments -env:staging'
task.createdtask.completedtask.rescheduledtask.commentedtask.dueReads the activity log, so your Todoist plan needs activity history. Continues from a saved cursor.
--filter '#Work & p1'
Every service also prints an error line when a request fails, once, and keeps checking.
Something else? Open an issue on GitHub.
Claude Code runs hark as a background monitor and reacts to each line it prints. Any agent that can keep a command running and read its output can use hark the same way.
An MCP server answers when the agent asks. hark tells the agent when something happens, without being asked. They work well together: hark says a review arrived, and the agent reads it with gh or an MCP server.
No. hark runs on your machine and checks each service once a minute with your own tokens. There is nothing to deploy and no account to create.
Only to the services they belong to. hark reads them from your environment, and the only other place it connects to is GitHub, to look for a newer version of itself.
hark only reads, except that it marks the GitHub notifications it reports as read. What the agent does is up to the prompt, and the one on this page tells it to ask you before it replies, closes or changes anything.
Your agent starts it again. Every service except GitHub continues from where it stopped, and for GitHub the agent passes the time of the last line to --since, so nothing in between is lost.
GitHub Enterprise works: set HARK_GITHUB_API to your API URL. Jira needs a Jira Cloud site.
Linux and macOS, on amd64 and arm64.
Nothing. hark is free, and its source is on GitHub.
Copy the prompt, paste it into Claude Code and keep working. Your agent will tell you when something needs you.