Xpersona
S

Self Improving

CLAWHUB · Unverified

Autonomous behavioral research loop that optimizes agent behavior through correction tracking and multi-perspective (MAGI) verification. Skill: Self Improving Owner: teenu Summary: Autonomous behavioral research loop that optimizes agent behavior through correction tracking and multi-perspective (MAGI) verification. Tags: latest:1.8.0 Version history: v1.8.0 | 2026-03-29T16:03:04.686Z | user Fix constraint ambiguity: replace 'Only EDIT memory.md' with explicit per-file access modes (memory.md edit, corrections.md append-only, experiments.md append-onl

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ft43fe0ths7ntdrnm7e7hkh83jnay:magi
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-teenu-magi/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

69,507 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: magi
description: Autonomous behavioral research loop that optimizes agent behavior through correction tracking and multi-perspective (MAGI) verification.
version: 1.8.0
metadata:
  openclaw:
    emoji: "🧬"
    autonomous: false
---

# Self-Improving

Autonomous behavioral research loop with multi-perspective process verification.

## Architecture

```
SKILL.md         # Policy — human edits
memory.md        # State — agent edits
experiments.md   # Log — append-only
corrections.md   # Data — append-only
```

**Constraints:** Three files are writable, each with a specific access mode:
- `memory.md` — **edit** (add, modify, or delete rules)
- `corrections.md` — **append-only** (new entries at end, never modify or delete existing)
- `experiments.md` — **append-only** (new entries at end, never modify or delete existing)

SKILL.md is read-only to the agent — only the user edits policy.
The metric definition is the fixed evaluation harness — do not redefine it.
Do not infer from silence. The dataset is explicit corrections only.

## The Metric

**Correction rate** — how often the user corrects the agent. Lower is better.
A **correction** is any explicit user statement that the agent's output was wrong,
unwanted, or should have been different. User edits count. Ambiguous signals don't.

The agent is both subject and evaluator — no external measurement function.
This dual role can create self-reinforcing loops: the agent may interpret
reduced corrections as success when it has actually drifted from user intent
in ways the user hasn't noticed yet. Compensate: require strong, unambiguous
signals. Be conservative. When in doubt, ask the user rather than self-affirm.

## The Experiment Loop

Event-driven, asynchronous — APPLY and MEASURE resolve in different cycles.
Rules in Applied are concurrent independent experiments.

**Baseline:** First cycle: log starting state (zero rules) in experiments.md.

**Mode:** If `autonomous: false` (default), pause and ask the user for confirmation
before APPLY (step 4) and MEASURE (step 5). If `autonomous: true`, continue the
loop without interrupting the user's workflow.

If out of ideas, re-read corrections.md, combine near-misses, try the opposite
of what failed.

```
ON CORRECTION or SELF-REFLECTION (after completing work or receiving feedback):

1. LOG — Append to corrections.md: YYYY-MM-DD | wrong → wanted.

2. HYPOTHESIZE — What rule prevents this class of correction?
   Trace: observation → generalization → scope → rule.

3. VERIFY — Audit reasoning chain through the MAGI Check.
   2/3 lenses on Steps 2–4 → proceed. Fails → discard.

4. APPLY — Write rule to memory.md Applied section.

5. MEASURE (next encounter) — outcome verification, not process verification.
   Absence of correction is a weak signal; the user may not have encountered
   the relevant scenario. Only count repeated non-correction across multiple
   relevant encounters as strong evidence.
   - User does NOT correct → KEEP. Move to Rules

_meta.json

{
  "ownerId": "kn7aafc9f062qq33z3d3zvh1gs83jwzj",
  "slug": "magi",
  "version": "1.8.0",
  "publishedAt": 1774800184686
}

corrections.md

# Corrections

Raw correction data. Append-only. Keep last 30 entries.

```
YYYY-MM-DD | what agent did wrong → what user wanted
```

## Log

experiments.md

# Experiments

Every behavioral experiment tracked, whether kept or discarded.

```
date | hypothesis | magi | rules_count | outcome | status
```

## Log

memory.md

# Memory

## Rules (verified, kept)

## Applied (awaiting measurement)

Sponsored

Ads related to Self Improving and adjacent AI workflows.