README.md
# Meeting Prep (AgentRove native agent)
Turns a calendar event and your notes into a time-boxed agenda that fits the meeting exactly, a prep
checklist, and a markdown follow-up template. It works only on the data you pass in: it does not read
your calendar, send invites or contact attendees. Deterministic: the same input gives the same output.
- ID: `agentrove.meeting-prep` · version 0.1.2 · MIT
- Published by AgentRove (provisional, configurable name). Package identifiers keep the agentrove prefix for compatibility.
- Runtime: Node.js 20 or newer, no npm dependencies
- Permissions: no filesystem access by tools, no network, no credentials
- External costs: none
## Tools
| Tool | What it does |
| --- | --- |
| `build_agenda` | Picks the event (`event_uid`, the only event, or the next one that has not ended at `now`), then builds agenda items whose minutes add up exactly to the meeting length. Returns an `agenda` with attendees, carried-over open action items, a parking lot, warnings and the prep list. |
| `prep_checklist` | The prep list as `{task, source}` entries. |
| `follow_up_template` | A markdown follow-up document: summary, decisions, an action-item table (carried-over items first), agenda recap, parking lot and next meeting, with explicit `_(fill in)_` placeholders. Takes `events` (+`notes`) or an `agenda` from `build_agenda`. |
All tools have `side_effects: "none"`.
### How the agenda is built
1. **Topics** come from the `topics` input (with optional `minutes`, `owner`, `notes`) followed by list
items under a notes heading named like *Agenda*, *Topics*, *Discussion* or *Talking points*. A
topic line may carry a time (`(15 min)`, `[10m]`, a trailing `- 10 min`, or `20 minutes`) and an
owner (`@alice`, `owner: Alice`); both markers are removed from the topic name. A bare `m` outside
brackets (as in `$10m ARR` or `2m users`) is not read as minutes. Duplicates are merged. With no topics at all, one slot is labelled `Discussion: <event summary>` and the
checklist says so.
2. **Open action items** are `- [ ]` checkboxes anywhere in the notes outside code blocks (`- [x]` items
are counted as done). Owners come from `@name` / `owner:`; due dates from ISO dates (`2026-11-30`).
If there are any, a review item gets 2 minutes per item (minimum 2, at most 25% of the meeting).
3. **Wrap-up** defaults to 5 minutes for meetings of 30+ minutes, 3 for 15–29, none below that
(`wrap_up_minutes` overrides it).
4. Topics with requested minutes get them; the remaining time is split evenly across the other topics
(leftover minutes go to the earliest ones). If requested minutes exceed what is available they are
scaled down proportionally (largest-remainder rounding, at least 1 minute each) and untimed topics go
to the `parking_lot`. Unused time becomes an "Open discussion / buffer" item.
Each item has `offset_minutes`, `start` (UTC) and `local_start` (in the event start's UTC offset).
### Times
Event `start`/`end` must be ISO 8601 date-times **with** `Z` or a UTC offset
(`2026-11-26T10:00:00-05:00`). Durations are computed from absolute instants, so meetings that span a
daylight-saving change are measured correctly; no timezone database is consulted. Floating times
(no offset) and all-day dates are rejected rather than guessed. The `timezone` field is passed through
unchanged.
## Typed IO (AgentRove composition)
| Name | Type | Where |
| --- | --- | --- |
| input `events` | `calendar_events` | `events` on every tool |
| input `notes` | `text` | `notes` on every tool |
| output `agenda` | `agenda` | the whole `build_agenda` result |
| output `markdown` | `markdown_document` | `follow_up_template` → `markdown` |
## Usage (Node CLI)
```sh
node bin/cli.js build_agenda --json '{"events":[{"uid":"e1","summary":"Weekly sync","start":"2026-11-26T15:00:00Z","end":"2026-11-26T15:30:00Z"}],"topics":[{"topic":"Roadmap","minutes":10},{"topic":"Hiring"}]}'
```
With notes from a file (only reads the files you name):
```sh
node -e "const fs=require('node:fs');fs.writeFileSync('input.json',JSON.stringify({events:JSON.parse(fs.readFileSync(process.argv[1],'utf8')),notes:fs.readFileSync(process.argv[2],'utf8')}))" events.json notes.md
node bin/cli.js build_agenda --input input.json
node bin/cli.js follow_up_template --input input.json
node bin/cli.js --help
```
`--input -` reads the input JSON from stdin instead of a file. Output is JSON on stdout; errors are JSON on stderr with exit code 1. On Windows, `--input` files avoid
shell quoting problems.
## Use as an MCP server (stdio)
`bin/mcp.js` implements MCP over stdio (`initialize`, `tools/list`, `tools/call`). Register it with an
absolute path, for example in Claude Code:
```sh
claude mcp add meeting-prep -- node /absolute/path/to/meeting-prep/bin/mcp.js
```
or in a project `.mcp.json`:
```json
{ "mcpServers": { "meeting-prep": { "command": "node", "args": ["/absolute/path/to/meeting-prep/bin/mcp.js"] } } }
```
`claude-code/SKILL.md` is an optional Claude Code skill that drives the CLI instead.
**Status:** tested with Node.js (unit tests plus MCP message handling). Not yet verified inside Claude
Code by AgentRove.
## Limitations
- Minute granularity; no rounding to 5-minute blocks. Meetings longer than 24 hours are rejected.
- Notes parsing is pattern-based markdown (headings, list items, checkboxes); free-form prose is not
mined for topics. Owners are taken from `@name` or `owner:` text only.
- Attendees are de-duplicated by display name; the same person written two different ways (e.g. an
email address and a first name) appears twice.
- "Overdue" compares an item's due date with the meeting's UTC date.
- It never contacts attendees, edits calendars or sends the follow-up; you share the output yourself.
## Security and privacy
See [SECURITY.md](SECURITY.md). Event and note text is untrusted data: only pattern-matched, never
executed or followed. Nothing leaves your machine.
## License
MIT, see [LICENSE](LICENSE).