Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)
All skills

mantis-reflect

Parse agent execution logs and append structured lessons to workspace/learnings.jsonl.

  • Part of google/mantis
  • 1.6k installs
  • Security & Privacy · Security auditing

When to use it

A Mantis loop round has finished and you have transcript logs from the agents that ran, but nothing has been distilled into reusable lessons yet.

For example

You say

Run /mantis-reflect on this round's transcripts at /tmp/mantis/logs/researcher.jsonl and /tmp/mantis/logs/patch.jsonl; the researcher wasted turns on a parameter that was already sanitized upstream.

You get
  • Appended learnings.jsonl entries
  • False-assumption insight
  • Missing-log gap notes

How it works

  • Filters out insights already in learnings.jsonl so retries don't create duplicates.
  • Records a note when a stage's transcript is missing or empty instead of silently producing nothing.
  • Stamps each insight with the snapshot id from state, without running any VCS command.