Ct Memory
Agent Buildingct-memoryCt 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
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- 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.
- The memory bridge (.cleo/memory-bridge.md) is already loaded via CLEO-INJECTION.md @-reference
- If the bridge content feels stale (>2 hours old), refresh:
cleo memory find "session task decision" --limit 10
- Check for anti-patterns to avoid:
cleo memory find "mistake error avoid warning" --limit 5
- 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:
- Search brain:
cleo memory find "{claim-topic}" --limit 5
- If results exist, verify your claim matches stored knowledge
- 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 | ~Tokens | When |
|---|---|---|
| memory-bridge.md (auto-loaded) | 200-400 | Always (free) |
cleo memory find | 50/hit | Discovery |
cleo memory fetch | 500/entry | Details |
cleo memory timeline | 200-500 | Context |
Stay within LAFS MVI budget: start minimal, escalate only when needed.