Agent skill · Audited from source
mantis-reflect
skill · google/mantisApache-2.0 licenceAudited 28 Oct 2026 · source 9702f6eef495
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 9702f6eef495 and found no filesystem, network or shell access and no hard-coded secrets. What it does: Extracts learnings from execution trajectories at the end of a Mantis loop. Use to parse agent conversations, extract successes, failures, and false assumptions, and append them to workspace/learnings.jsonl. Don't use…
Cite
Cite this page
ModelsAtlas. “mantis-reflect (google/mantis)”. Retrieved 28 Oct 2026. https://modelsatlas.com/skills/google/mantis-reflect
Trust audit
Audit 0.4.1 · source read 28 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 13,985 of 14,816 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 9702f6eef495 · 28 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publishergoogle GitHub organizationOwner of the repository this skill is read from
- Source foldergoogle/mantis/skills/mantis-reflectThe exact folder we audited
- LicenceApache-2.0As the repository states it
- Commit pinned for this verdict9702f6eef495A new audit runs when the source changes
- Repository statusNot archivedLast push 2 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Extracts learnings from execution trajectories at the end of a Mantis loop. Use to parse agent conversations, extract successes, failures, and false assumptions, and append them to workspace/learnings.jsonl. Don't use…
---
name: mantis-reflect
description: >-
Extracts learnings from execution trajectories at the end of a Mantis loop.
Use to parse agent conversations, extract successes, failures, and false assumptions, and append them to workspace/learnings.jsonl.
Don't use for analyzing source code or writing patches.
---
# Reflector (/mantis-reflect)
## System Goal
Execution Trajectory Analyst. Analyzes the sequence of thoughts, tool calls, and
observations (the "trajectory" or "conversation") of the other Mantis agents.
Extracts valuable insights to prevent future agents from making the same
mistakes.
## Command Definition
- **Command:** `/mantis-reflect`
- **Description:** Parses execution trajectories from the current loop and
appends structured insights to `workspace/learnings.jsonl`.
## Input/Output Contract
- **Reads**:
- `workspace/.mantis_state.json` (to track the current loop pass, and to read
`active_snapshot.snapshot_id` for provenance stamping — see Instructions
step 3). Read this file STATE-RELATIVE under `--state_root`; never derive
snapshot state by running live VCS.
- Subagent execution logs (`transcript.jsonl` files). The schema
`execution_log_entry` defined in `schema.json` is the normalized
representation. The orchestrator/adapter must normalize raw logs from
unsupported frameworks before passing them, or the reflector must parse
unsupported formats on a best-effort basis.
- **Locating Logs (harness-neutral):** The orchestrator SHOULD pass the list
of absolute file paths to the execution log files (e.g. `transcript.jsonl`)
for the subagents executed during this round; when provided, use these paths
directly. Do NOT hardcode any single framework's log layout. If no path list
was passed, resolve transcript paths from the ACTIVE harness's own
transcript convention — this is harness-specific and there are several. For
example, Antigravity stores them under
`<appDataDir>/brain/<conversation_id>/.system_generated/logs/transcript.jsonl`;
other harnesses (e.g. Gemini CLI, the Google ADK, Claude Code) use different
layouts. Antigravity is ONE example among several, not the default. If,
after both routes, no readable transcript exists for a stage that ran this
round, do NOT abort and do NOT silently emit zero learnings — record a
missing-transcript insight per Instructions step 1.
- **Writes**:
- Appends structured trajectory insights to `workspace/learnings.jsonl`.
- **Preconditions**:
- Execution logs for the current round SHOULD exist and contain entries. If a
stage's log is missing, unreadable, empty, or yields zero parseable entries,
this is NOT a fatal error and NOT a reason to stop: continue with the other
stages and record the gap as a `trajectory_insight` (see Instructions step
1\) so an absent log is never a silent zero-learnings result.
- **Idempotency Guarantee**:
- Parses logs and filters already-recorded learnings to prevent duplicate
entries in `workspace/learnings.jsonl`. It should check existing lines in
`workspace/learnings.jsonl` to ensure it doesn't duplicate the same insight
if retried.
- When de-duplicating, compare on the semantic content (`target_entity` +
`insight` + `source_stage`) and treat `snapshot` as attached metadata, NOT
part of the identity, so a retry within the same pass does not
double-append. Missing-transcript insights (step 1) are de-duplicated the
same way.
## Instructions
### 0. Locator Resolution (Block A — FINDINGS-ONLY role)
```
LOCATOR RESOLUTION (before reading ANY target code or artifact):
0. ROLE: If this skill NEVER reads target source (report, calibrate, reflect),
you are a FINDINGS-ONLY stage: skip steps 2-6; still read active_snapshot from
state for provenance/annotation; NEVER stop merely because a code root is unset.
1. Determine CODE_ROOT, in this priority order:
a. If --target_root is passed on THIS invocation, CODE_ROOT = --target_root.
It is AUTHORITATIVE and OVERRIDES SNAPSHOT_ROOT and the state fallback
(used when a caller hands you a prepared tree, e.g. a patched shadow).
b. Else if --snapshot_root (or SNAPSHOT_ROOT) is passed, use it.
c. Else read state_root/workspace/.mantis_state.json (state_root from
--state_root if passed, else ./workspace/... relative to the current dir)
-> active_snapshot.root / .snapshot_id / .snapshot_pinned.
d. Else (no arg AND no readable active_snapshot): CODE_ROOT = current directory,
treat snapshot_pinned = false (MODE-OFF). Do NOT stop.
2. SENTINEL CHECK (only if snapshot_pinned is true AND you did NOT take path 1a):
verify CODE_ROOT/.mantis_snapshot_id exists and equals SNAPSHOT_ID. If missing
or different -> STOP "snapshot sentinel mismatch". (A --target_root tree (1a) is
deliberately mutated and is sentinel-EXEMPT.)
3. PATH FIELDS:
- SNAPSHOT-RELATIVE (read under CODE_ROOT): code_paths entries; plan target_files
that are file paths. Strip ONLY a trailing ":<digits>". A code_paths entry
containing "://" is a URL/endpoint, NOT a file read. A code_paths entry that is
NOT of the form <existing-path>:<integer> is a non-source LOCATOR
(symbol/offset/endpoint): only check that the artifact/symbol exists; skip ALL
line-range and line-existence logic.
- STATE-RELATIVE (read/write under state_root/workspace, NEVER prefix CODE_ROOT):
kb_references, repro_file_path, reattack_file_path, helper scripts, report
files, and all state/findings JSON.
4. Never WRITE under CODE_ROOT when snapshot_pinned is true. Any command that
compiles, generates, or writes artifacts MUST run in a PRIVATE SHADOW copy
(mktemp -d from CODE_ROOT), never with cwd=CODE_ROOT. Read-only inspection may
cd into CODE_ROOT.
5. VCS-METADATA CARVE-OUT: history-log extraction and any VCS diff/blame command
run in the LIVE repository root (which still has .git/.hg/.repo), NOT CODE_ROOT
(Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 9702f6e
git clone https://github.com/google/mantis git -C mantis checkout 9702f6eef495
The author documents no install command, so this uses the repository directly. Our verdict covers commit 9702f6eef495 only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
| Gemini CLI | Mentioned in its text, not tested | Skills for Gemini CLI · About Gemini CLI |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
9702f6eef495
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/google/mantis-reflect/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All security skills →google/mantis
Generates a human-readable security review packet compiled from confirmed findings and exploit chains. Use at the end of a review cycle to produce stakeholder-facing documentation. Don't use for auditing code or…
google/mantis
Generates and runs crash reproducers to verify security flaws. Use when viable findings exist and you need to write and execute a script or payload to verify the crash. Don't use for code auditing or patching.
google/mantis
Formulates a targeted defensive security reviewing plan based on the active threat model and historical learnings. Use when starting a security review campaign to map the codebase boundaries and generate a roadmap…
google/mantis
Generates minimal security fixes using transactional isolation (shadow directories or file backups), applies patches, and verifies them. Use when security findings are successfully reproduced and need patches applied…
google/mantis
Acts as the persistent supervisor, launching and monitoring the automated review campaign. Use when running a long-running, continuous security review campaign that needs autonomous coordination. Don't use for executing…
google/mantis
Analyzes the repository's version control system (VCS) history to extract past vulnerabilities, security fixes, and vulnerability patterns. Use as an initial pre-processing step to build a historical vulnerabilities…
Add this badge to your README
[](https://modelsatlas.com/skills/google/mantis-reflect/)
<a href="https://modelsatlas.com/skills/google/mantis-reflect/"><img src="https://modelsatlas.com/skills/google/mantis-reflect/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about mantis-reflect
What does the mantis-reflect skill do?
Is mantis-reflect safe to install?
What can mantis-reflect access on my machine?
Which assistants does mantis-reflect work with?
How current is this page?
Sources
- github.com/google/mantis/tree/main/skills/mantis-reflect — the audited source at commit 9702f6eef495 and every finding aboveObserved · 28 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the mantis-reflect skill do?
- Is mantis-reflect safe to install?
- What can mantis-reflect access on my machine?