agentleFS
trac3r00trac3r00/agent-skills/skills/open-loops/SKILL.md

open-loops

Skill0 starsChanged 3 months agoMITView on GitHub

Extracts the unresolved commitments, deferrals, decisions, and open questions from a conversation transcript into a small JSON ledger — so a different surface (a cron job, a trigger, a fresh session) can pick them up instead of dropping them. Use to hand off context across surfaces, or to gate a session/thread handoff on how much is left open.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Session handoff hygiene: before ending a session or spawning a fresh one, gate on open-loop count — refuse a "clean" handoff that leaves 8 …

    line 39
  2. Distinctive:

    Not for: summarizing a conversation (this tracks only the unresolved), sentiment, or verifying that a closed loop was *actually* done (it …

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Open Loops

Carry the thread's unfinished business across the wall between surfaces.

Overview

A long-lived agent chats in a thread — "I'll charge the car later", "let's go with plan B", "I'll clean up the README" — then a scheduled job fires with zero memory of that thread and either repeats a finished task or silently drops a pending one. The conversation and the cron/trigger surfaces don't share a brain.

open_loops.py reads a transcript and extracts only what is still open:

  • → commitment — "I'll do X", "할게요" (closed when a later turn says it's done)
  • ⏳ deferral — "later", "나중에", "follow up" (closed on completion)
  • ◆ decision — "let's go with X", "하기로" (recorded; never auto-closed — it persists)
  • ? open_question — a turn ending in ? (closed by the first substantive reply)

It emits a small, stable JSON ledger the scheduled surface loads before it acts — the missing handshake between a thread and everything that fires later. Bilingual (EN + KO), pure standard library, deterministic. A ruler for handoff hygiene, not an LLM.

When to use

  • Cross-surface handoff: a cron job or trigger loads the ledger for the relevant thread before running, so it knows what the owner is still waiting on.
  • Session handoff hygiene: before ending a session or spawning a fresh one, gate on open-loop count — refuse a "clean" handoff that leaves 8 promises open.
  • Self-audit: an agent checks whether it left commitments dangling in a thread.

Not for: summarizing a conversation (this tracks only the unresolved), sentiment, or verifying that a closed loop was actually done (it trusts the "done" signal).

The method

  1. Get the transcript. JSONL ({"role","content"} per line or a JSON array), or plain text with [speaker] message / speaker: message lines.
  2. Extract the ledger.
    python scripts/open_loops.py thread.jsonl --json
    # or:  cat thread.txt | python scripts/open_loops.py -
  3. Feed open_loops to the scheduled surface. In a cron/trigger prep step, read the JSON and inject the open commitments/deferrals into that run's context so it acts with the thread, not blind to it.
  4. Gate a handoff. Refuse to call a handoff clean when too much is dangling:
    python scripts/open_loops.py thread.jsonl --max-open 5   # exit 1 if >5 open
  5. Re-run after closing loops. Say "done"/"끝났어요" in the thread and watch the commitment move from open to closed on the next extract. Open count is the score.

Anti-patterns

  • Treating it as a summarizer. It deliberately ignores everything that isn't an open loop. If you want a recap, use a recap tool.
  • Trusting a closed loop as verified. A loop closes on a "done" signal, not on proof the work happened — pair with real verification for anything that matters.
  • Over-tuning the regexes into false positives. A noisy ledger a cron job trips over is worse than a conservative one that misses an edge case. Keep it tight.
  • Auto-closing decisions. Decisions persist by design — they describe a standing choice, not a task; don't "resolve" them just to zero the count.

Example

$ printf '[민서] charge the car tonight\n[bob] set the charge later\n[민서] and what do you think of plan B?\n' \
    | python scripts/open_loops.py -
OPEN LOOPS: 2  (commitments 0, deferrals 1, decisions 0, questions 1)  | closed 0
  ⏳ [deferral] (bob) set the charge later
  ? [open_question] (민서) and what do you think of plan B?

The cron job that fires at 9pm can now read that ledger and know the car charge is still owed — instead of firing blind.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.