# Zulipchat Loop

> Run the current Claude Code session as a continuous Zulip-aware work loop.

- Skill: `akougkas/zulipchat-loop` (Agent Skill)
- Install (CLI): `npx skillmds@latest add akougkas/zulipchat-loop`
- Raw SKILL.md: https://api.skillmd.com/api/skills/akougkas/zulipchat-loop/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: akougkas (https://skillmd.com/u/akougkas)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/akougkas/zulipchat-loop

---


# Zulip loop

Use this skill when you want the session to behave like a continuous autonomous worker
that still remains steerable from Zulip.

Treat `$ARGUMENTS` as the current mission or loop objective.

## Required setup

1. Read `ZULIPCHAT_SESSION_ID`, `ZULIPCHAT_SESSION_STREAM`, and
   `ZULIPCHAT_SESSION_TOPIC` from the shell.
2. If the session is not bound yet, stop and explain the missing hook setup.

## Loop contract

Each cycle should do exactly this:

1. Poll `poll_agent_events(session_id=..., limit=20)`.
2. Incorporate any owner steering or commands before doing more work.
3. Decide whether the lifecycle state changed. If it did, emit one lifecycle message.
4. Do one concrete unit of work toward the mission.
5. If blocked on owner input, call `request_user_input(...)` and wait.
6. Exit the loop when the mission is complete, the owner pauses or cancels the
   session, or the session binding is closed.

## `/loop` integration

If the current Claude Code build exposes the native `/loop` command, this skill's
instructions are the policy for each loop turn. If `/loop` is not available, follow
the same cycle in the current conversation instead of failing.

