Loop

From fritzprix/libr-agent · View interactive version

Loop is an AI agent skill from the GitHub repository fritzprix/libr-agent. PRIMARY skill for clock-based session wakes via scheduleCallback. Use when the user asks for reminders, delays, or recurring checks inside the active conversation — "remind me in 5 minutes", "tomorrow at 9", "매일 아침 확인해줘", timers, and wall-clock recurrence bound to this chat. NEVER for process exit,

How to use this skill

Skill file

Loop (PRIMARY for clock-based session wakes)

Session loops inject a message into the current session at a **future clock

time** (delay or cron). They preserve conversation context, history, and

workspace, surviving tab switches and app restarts while staying bound to this

session's lifecycle.

The MCP tool is scheduleCallback (or scheduled_task__scheduleCallback).

The skill name is loop.

vs `call-me-back` (hard split)

| Signal | Skill |

| --- | --- |

| Wall clock / relative delay / cron | loop (this skill) |

| Process exit, kanban/ticket status, webhook, watcher | call-me-back |

"끝나면 알려줘" / "작업 끝나고 깨워줘" that means a job or external event finished

→ call-me-back, not a guessed delaySeconds.

Core Policy: Session-First by Default

When a user asks for a time-based reminder or recurring check inside an

active conversation, they almost always expect it in this conversation.

Wrong skill choice is usually selecting global schedule /

createScheduledTask, which drops session context.

Always default to loop for:

When to escalate to global `schedule`

Escalate to schedule (createScheduledTask) ONLY when:

("even if I close this chat", "전역 백그라운드 작업으로 등록해줘").

Handling Ambiguous Requests

If intent is ambiguous (e.g., "매일 9시에 주가 체크해서 알려줘" with no

global/permanent wording):

  1. Proceed with loop immediately — do not ask first by default.
  2. Ask only when the request looks like always-on automation that should

survive this chat. Then explain once:

If ambiguous between time and completion event, ask one clarifying

question, or prefer call-me-back when a concrete process/ticket/system was named.

Routing decision

Is the wake driven by a completion event (process / kanban / webhook / watcher)?
  Yes -> call-me-back
  No  -> Should the run stay bound to the current session?
           Yes / Unclear -> loop (scheduleCallback) [DEFAULT]
           Explicit global -> schedule (createScheduledTask)

Both one-shot (delaySeconds) and recurring (cronExpression) are supported.

Pick the timing mode, not a different skill — unless the signal is event-based.

Workflow

1. Choose timing mode

Provide exactly one of:

Do not pass both. Do not pass neither.

2. Create the schedule

scheduled_task__scheduleCallback(
  message="...",           // required instruction injected when it fires
  name="...",              // optional Planning panel label
  delaySeconds=300         // OR cronExpression="0 9 * * *"
)

Optional: executionMode (normal | yolo | unsafe) when unattended tool runs must auto-approve.

Requirements:

3. Manage existing session schedules

Users can also manage these from the session Planning panel.

4. Set expectations honestly

Guardrails

Related skills

User guide

Session-clock wakes, writer/reviewer backlog cycles, and copy-paste recipes:

docs/user/guides/loop.md (KO) · docs/user/en/guides/loop.md (EN).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.