AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Loop Memory

skill-haidrrrry-loop-engineering-skills-loop-memory · by haidrrrry

Give the agent episodic memory so it improves every cycle instead of repeating mistakes. Use this skill whenever working in a project that has a .loop/LESSONS.md file, whenever a task is being retried after a failure, whenever the user says "remember this", "don't make that mistake again", "learn from this", or "why do you keep doing that", and at the start and end of every task run inside a loop…

No reviews yet
0 installs
21 views
0.0% view→install

Install

$ agentstack add skill-haidrrrry-loop-engineering-skills-loop-memory

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-haidrrrry-loop-engineering-skills-loop-memory)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Loop Memory? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Loop Memory

Reflexion-style verbal memory: the agent reflects on each attempt in writing, stores the reflection, and reads recent reflections before acting. Research (Shinn et al., 2023) shows this mechanism — reflect, store, re-read — beats blind retrying by wide margins (+22% on decision tasks over 12 trials, +11% on code) and beats memory-without-reflection by 8 points. The gain comes from written reasons, not from retrying harder.

The protocol

Before acting (every task)

  1. Read .loop/LESSONS.md.
  2. Apply the Standing rules section unconditionally.
  3. Read the 3 most recent entries. If any is relevant to the current

task, state in one line how it changes your approach. If none is relevant, proceed — do not force it.

After acting (every attempt, pass or fail)

Append exactly one entry in the file's format:

## [date] — [task, 5 words max] — PASS|FAIL
- What happened: [one line]
- Root cause / why it worked: [one line]
- Next time: [one specific, checkable instruction]

Quality bar for "Next time":

  • ❌ "Be more careful with the database" — not checkable
  • ✅ "Run npx prisma migrate deploy before any seed script" — checkable
  • ❌ "Remember the API is tricky" — vague
  • ✅ "The /users endpoint paginates at 50; always pass ?page= when counting"

Failure reflection, specifically

When an attempt failed, the reflection must answer: what did I believe that was wrong? Failed attempts usually come from a false assumption, not a typo. Name the assumption. That's the lesson.

Maintenance (when the file exceeds ~30 entries)

  1. Read all entries oldest-first.
  2. Any lesson that appears 2+ times graduates into Standing rules,

rewritten as a single imperative line.

  1. Delete the oldest 20 entries after graduation.
  2. Never delete Standing rules without the user's approval.

What NOT to store

  • Secrets, keys, tokens, personal data — never, even if they caused the failure.
  • Narration ("I then tried X, after which Y…") — store conclusions only.
  • Duplicate lessons — if it's already there, don't re-add; consider graduating it.
  • Blame or self-criticism — lessons are instructions, not feelings.

Failure modes to avoid

  • Memory theater: writing entries but never reading them. The read step

is the value; the write step alone is a diary.

  • Overfitting to one incident: a one-off environment hiccup is not a

lesson. If it can't recur, don't record it.

  • Unbounded growth: a 200-entry file no one reads is dead memory. Compress.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.