OpenParable
Skip to content
← Back to skills

Ct Memory

Agent Building
ct-memory

Ct Memory is an Agent Skill for agent building published in the kryptobaseddev/cleo repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Brain memory protocol with progressive disclosure for anti-hallucination and context recall

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/kryptobaseddev/cleo/blob/HEAD/packages/skills/skills/ct-memory/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ct-memory, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

ct-memory -- Brain Memory Protocol

Purpose

Ensures LLM agents never start conversations with amnesia. Provides structured memory access through CLEO's brain system using progressive disclosure.

Tier 0: Session Start (ALWAYS run on first interaction)

Use CLI (cleo) for all memory operations.

  1. The memory bridge (.cleo/memory-bridge.md) is already loaded via CLEO-INJECTION.md @-reference
  2. If the bridge content feels stale (>2 hours old), refresh:
    • cleo memory find "session task decision" --limit 10
  3. Check for anti-patterns to avoid:
    • cleo memory find "mistake error avoid warning" --limit 5
  4. If results are relevant, fetch details:
    • cleo memory fetch O-xxx O-yyy

Tier 1: During Work (run when topic-relevant)

Before Making Decisions

  • cleo memory find "decision ADR architecture" --limit 5
  • Check if a similar decision was already made

Before Repeating Work

  • cleo memory find "{current-topic}" --limit 10
  • Avoid re-doing work that's already been completed

After Completing Significant Work

  • cleo memory observe "Completed X using approach Y. Key learning: Z" --title "Work completion"

Anti-Hallucination Protocol

Before stating facts about the codebase or project:

  1. Search brain:
    • cleo memory find "{claim-topic}" --limit 5
  2. If results exist, verify your claim matches stored knowledge
  3. If no results, state your uncertainty clearly

Tier 2: Deep Recall (run when specifically needed)

Full Timeline

  • cleo memory timeline O-xxx --before 5 --after 5
  • Understand chronological context around a specific observation

Cross-Project Knowledge (via NEXUS)

  • cleo nexus search "pattern" --scope global
  • Search across all CLEO-managed projects

Token Budget Guidelines

Operation~TokensWhen
memory-bridge.md (auto-loaded)200-400Always (free)
cleo memory find50/hitDiscovery
cleo memory fetch500/entryDetails
cleo memory timeline200-500Context

Stay within LAFS MVI budget: start minimal, escalate only when needed.