# Reload

> Schedule a delayed self-reload of the current herdr pane. After a delay, a detached background timer types a prompt back into THIS pane and presses Enter, re-waking whatever agent (Claude Code, a shell) is idle there. Use when the user says "/reload", asks you to self-reload, wake yourself up later, continue or resume after a pause, re-prompt this session after N minutes, or fire a follow-up at a wall-clock time — inside a herdr terminal session. Requires the herdr CLI and an active herdr pane.

- Skill: `htlin222/reload` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add htlin222/reload`
- Raw SKILL.md: https://api.skillmd.com/api/skills/htlin222/reload/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: htlin222 (https://skillmd.com/u/htlin222)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/htlin222/reload

---


# reload — herdr agent self-reload

Wake yourself (or any agent in the current pane) after a delay by typing a
prompt back into the pane and pressing Enter. Useful for polling, timed
follow-ups, "check again in 5 minutes", or resuming a paused workflow without a
human in the loop.

## How it works

1. Resolve the current pane from `$HERDR_PANE_ID` (fallback: `herdr pane current`).
2. Launch a **detached** background timer (`nohup`, or `setsid` on Linux) that
   outlives the current agent turn.
3. After the delay it runs `herdr pane send-text <pane> "<prompt>"` then
   `herdr pane send-keys <pane> enter` — the prompt lands in the pane's input
   and submits, re-prompting the idle agent.

The heavy lifting is in `scripts/reload.sh`, which handles pane resolution,
delay parsing, and cross-platform detaching (Linux + macOS).

## Usage

Run the bundled script (use the **Base directory for this skill** value injected
when this skill loads as `$SKILL`):

```bash
bash "$SKILL/scripts/reload.sh" <delay> <prompt...>
```

Examples:

```bash
bash "$SKILL/scripts/reload.sh" 4m  "continue where you left off"
bash "$SKILL/scripts/reload.sh" 30s "re-run the tests and report results"
bash "$SKILL/scripts/reload.sh" 2h  "check if the deploy finished"
bash "$SKILL/scripts/reload.sh" 09:30 "start the morning standup summary"
```

Run it in the **foreground** (not a background Bash call) — the script returns
immediately after arming the detached timer and prints a confirmation line. Then
end your turn. When the timer fires it re-prompts you automatically.

### Delay formats

| Form     | Meaning                                   |
| -------- | ----------------------------------------- |
| `90`     | bare number = **seconds**                 |
| `30s`    | seconds                                   |
| `4m`     | minutes                                   |
| `2h`     | hours                                     |
| `1d`     | days                                      |
| `HH:MM`  | next wall-clock occurrence (today/tomorrow) |

## Important

- **Single-line prompts only.** A newline in the prompt submits early. Keep the
  reload prompt to one line.
- **The pane must stay open.** If the user closes the pane or the herdr session,
  the timer has nowhere to deliver the prompt (it fails silently; see the log at
  `$TMPDIR/herdr-reload.log`).
- **One timer per call.** Call the script again to schedule additional reloads.
- Only works inside a herdr pane. Outside herdr the script errors out with a
  clear message.

