Skip to content

feat: let an agent hear dead capture and its user's name without polling, and cap its summaries - #403

Merged
GeiserX merged 4 commits into
mainfrom
feat/agent-events-monitor
Oct 12, 2026
Merged

GeiserX merged 4 commits into
mainfrom
feat/agent-events-monitor

Conversation

@GeiserX

@GeiserX GeiserX commented Oct 12, 2026

Copy link
Copy Markdown
Owner

An agent following a live call had no way to learn that capture died, or that someone said the user's name, short of polling in a shell loop. It also had no rule about how often to post summaries, so it could post them far too often.

The fix:

  • akou events --mention prints a mention row when any word of user.name is said on the call channel. The row carries the line's id, seq, wall time and speaker, never the text. The mic channel never counts, since that is the user speaking.
  • akou events -f --type health,share.started,share.stopped --mention is the monitor. It prints only health, share and mention rows, never a transcript line.
  • A new setting, agent.summary_every_minutes, defaults to 10. 0 turns summaries off, and the range is 1 to 120. It is in the window's Settings under the assistant rows and in docs/configuration.md. akou config get KEY reads it.
  • The akou skill has a new section 2, "Live-call posture". The agent picks watch (the default) or answer, reads the interval once, and starts the monitor instead of any polling loop. It posts a summary at most once per interval. The skill version is unchanged.
  • PROGRAMMABILITY rows PG-S4, PG-K3, PG-K6 and PG-Z4 now say what is built and what is not.

Tests, in tests/cli-events-monitor.e2e.test.ts:

  • Against a live headless call, an hour of fake speech prints nothing, including the user's name said on the mic channel.
  • A health: dead is printed within 2 s, and the name said on the call channel prints one mention row with time and speaker.
  • No output line holds transcript text. A positive control lets seg through, and the leak check fails.
  • Two hand mutations also turn the main test red: printing the text in the mention row, and letting seg events through.
  • config get returns 10 by default and 0 after a set. 121 is refused, and an unknown key exits 64.

Not done here:

  • watch.words is not built yet.
  • The plugin's own monitor entry is part of PG-K2.
  • The PG-K6 recorded session on the reference Mac has not been run.

An agent following a call had to poll to learn that capture died or
that the user was named. `akou events --mention` adds a `mention` row
when any word of user.name is said on the call channel: the line's id,
seq, wall time and speaker, never its text. With
`-f --type health,share.started,share.stopped` it is the monitor the
skill starts (PG-K3, PG-S4).

`agent.summary_every_minutes` (default 10, 0 for none, 1 to 120) caps
how often that agent posts a summary, and `akou config get KEY` reads
one setting.
The akou skill now has the agent pick `watch` or `answer` at the start,
start `akou events -f ... --mention` instead of any polling loop, and
post a summary at most once every agent.summary_every_minutes (PG-K6).
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: GeiserX/akou/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6134000a-9e7f-40ea-b4d4-0395d6536cae
📥 Commits

Reviewing files that changed from the base of the PR and between dfd69c2 and 178df5c.

📒 Files selected for processing (11)
  • docs/cli.md
  • docs/configuration.md
  • docs/ux/PROGRAMMABILITY.md
  • skills/akou/SKILL.md
  • src/core/mention.ts
  • src/main/cli/commands/follow.ts
  • src/main/cli/commands/setup.ts
  • src/main/config/schema.ts
  • src/ui/settings-labels.ts
  • src/ui/settings-page.ts
  • tests/cli-events-monitor.e2e.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@GeiserX
GeiserX merged commit 9d9ca7f into main Oct 12, 2026
29 checks passed
@GeiserX
GeiserX deleted the feat/agent-events-monitor branch October 12, 2026 22:37
GeiserX added a commit that referenced this pull request Oct 14, 2026
… line comes in about a second (#410)

I want to see my Mac's old recordings and transcripts from my iPhone, the way the desktop app shows them, with what each key may see set by its permissions. 1.1.0 could not do that: a key reached only its own file jobs and the desktop app listened on 127.0.0.1 alone. 1.2.0 is the release that carries #409, so the phone app can read the Mac over the tailnet with a `read` key, and the six post-1.1.0 merges that were already owed a release.

## What 1.2.0 carries

- #409: the `read` key scope, the opt-in network listener (`network.enabled`, `network.bind`, `network.port`, tailnet by default with a 30 s look until Tailscale is up), and `a0`/`a1` audio offsets on transcript lines.
- #406: a default call's first line in 1.3 s instead of 6 to 8 s, `asr.warmAtStart` off by default.
- #405: no invented subtitles on silence and noise, on every preset (T4.37).
- #404: the dictation key says why it does nothing without Accessibility (T4.36).
- #403: `akou events --mention`, `agent.summary_every_minutes`, `akou config get`.
- #402: an idle model's memory back after 10 minutes.
- #401: one recognizer cache and one audio cache shared by the three OSes.

## The release itself

- `bun scripts/stamp-version.ts --set 1.2.0`: every version declaration says 1.2.0 (package.json, app-info.ts, both skills, the plugin, the OpenAPI file, the compose example, both Cargo.toml and Cargo.lock). The docs' image tags and the Mac server clone tag say 1.2.0.
- The CHANGELOG's Unreleased section becomes the 1.2.0 section, with the six other merges written in.
- docs/providers.md: the vendor terms were read again on 2026-10-13, as CI-28 requires after the 1.1.0 tag of 2026-10-12. Nothing changed in the terms. One thing the earlier readings had missed is recorded: OpenAI documents "ChatGPT plan usage for open-source and locally hosted apps" through Sign in with ChatGPT, where the app holds its own OAuth token. It says nothing about akou's route, `codex exec` on Codex's saved login, so the open question stays open with that alternative beside it. No default changes.

## Checks

- `bun scripts/stamp-version.ts --check`: 11 places say 1.2.0. `bun scripts/openapi.ts --check` is clean.
- `bun test tests/release-evidence.test.ts`: 10 pass. The terms check was shown red with the new row redated to 2026-10-12 and green with 2026-10-13.
- The 8-hour soak of the release checklist ran on the reference Mac (MacMini-2) from 23:40Z to 07:40Z on 2026-10-13/14 at real time, with a burner on every core and the release's own `akou-capture` 1.2.0 in file mode: 0 holes, heap growth 0.17 MB, RSS growth -2.3 MB, event loop late by at most 227 ms, 0 unreadable log lines, 9 of 9 checks ok. The JSON is committed as docs/gates/soak-1.2.0.json. Trap found on the way: on that box `CARGO_TARGET_DIR` sends the helper to /Volumes/Data/cargo-targets, so the checklist's `native/akou-capture/target/release/akou-capture` path was a stale 1.0.0 binary; the first start was killed after two minutes and the soak restarted with the binary cargo reports.
- After the merge: tag `v1.2.0` on the merge commit, then release.yml builds the signed app, the images and the update feed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant