evolving-cognition

Capture measurable outcomes and refine agent prompts with UCB1 retrieval.

6|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Kgan01/ghengis-skills --skill evolving-cognition
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: evolving-cognition
Source: https://github.com/Kgan01/ghengis-skills/tree/main/plugins/ghengis-skills/skills/evolving-cognition
Command: npx skills add https://github.com/Kgan01/ghengis-skills --skill evolving-cognition

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pattern for building agent systems that get sharper over time by distilling causal lessons from measurable outcomes and feeding them back into future prompts. Inspired by ASI-Evolve (GAIR-NLP). The core insight: measurable outcomes from agent work (tests, deployments, transactions) are often discarded; this skill stores and leverages them to improve future prompts.

Core Features & Use Cases

  • Fitness signal design: define measurable outcomes for code, deployment, data pipelines, and transactions.
  • Cognition store schema: structure lessons with retrieval-ready fields (id, created_at, lesson, causal_factor, applies_when, confidence, etc.).
  • Analyzer prompts: distill causal lessons from outcomes into concise, actionable lessons.
  • UCB1 retrieval: rank past lessons to balance exploitation and exploration.
  • Audit loops and poison mitigations: flag contradictions, retire stale entries, and maintain safety.

Quick Start

Capture a measurable outcome from an agent task and feed the resulting lesson back into the cognition store for retrieval in future prompts.

Frequently Asked Questions about evolving-cognition

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I improve agent prompts using measurable outcomes from tasks?

To improve agent prompts using measurable outcomes, you capture task results, distill causal lessons via Analyzer prompts, and store them in a cognition store for retrieval in future prompts.

What is a cognition store schema for agent memory?

A cognition store schema for agent memory structures distilled lessons with retrieval-ready fields like id, created_at, lesson, causal_factor, applies_when, and confidence to enable future prompt refinement.

How do I build a feedback loop for autonomous agent systems?

You build a feedback loop for autonomous agents by defining fitness signals, capturing outcomes, distilling them into lessons, and feeding those lessons back into future prompts using UCB1 retrieval.

How does UCB1 retrieval rank past lessons for agent prompts?

UCB1 retrieval ranks past lessons for agent prompts by balancing exploitation of high-confidence lessons with exploration of less frequently retrieved entries to optimize future task performance.

Do I need a defined outcome schema to use evolving cognition patterns?

Yes, you need a defined outcome schema to use evolving cognition patterns. The system requires measurable fitness signals, an Analyzer prompt, and a retrieval mechanism with guardrails to ensure evidence integrity.

How do I handle contradictions and stale lessons in an agent memory store?

To handle contradictions and stale lessons in an agent memory store, you run audit loops and poison mitigations that flag conflicting entries and retire outdated lessons to maintain safety and consistency.