Cog — Documentation skill for Claude Code
240+ Cognitive architecture for Claude Code -- persistent memory, self-reflection, and foresight via plain-text conventions.
How to install Cog
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open marciopuga/cog and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cog does
A plain-text cognitive architecture for Claude Code — simple by design, so the model can reason over its own memory with the same Unix tools (`grep`, `find`, `git diff`) it already knows.
Alternatives in Documentation
- Hyperresearch — Agent-driven research knowledge base 2.4k ★
- Wiki Reflect — Run a self-reflection pass over the whole wiki — look for patterns, gaps, and improvement opportunities 375 ★
- Apply Self Review — Apply the approved improvements from the latest memory-self-review PROPOSAL 297 ★
README
Cog
A plain-text cognitive architecture for Claude Code — simple by design, so the model can reason over its own memory with the same Unix tools (`grep`, `find`, `git diff`) it already knows.
**[Documentation](https://lab.puga.com.br/cog)** | **[Why Text](https://lab.puga.com.br/cog/#/why-text)** | **[Credits & Inspiration](https://lab.puga.com.br/cog/#/credits)**
What is Cog?
Cog is a set of conventions — not code — that teach Claude Code how to build and maintain its own memory. You define the rules in plain text. Claude scaffolds the structure and follows them. The filesystem is the interface.
There is no server, no runtime, no application code. `CLAUDE.md` contains the conventions — how to tier memory, when to condense, how to route queries, when to archive. The skill files (`.claude/commands/*.md`) teach Claude specific workflows: reflection, foresight, housekeeping, self-evolution. Claude reads these instructions and follows them to organize, maintain, and grow a persistent knowledge base across sessions.
Everything is plain text [by design](https://lab.puga.com.br/cog/#/why-text). Not as a compromise — because plain text is what makes this work. Memory files are just markdown, which means Claude can `grep` for patterns, `find` what changed, `wc` to check file sizes, and `git diff` to see what the last pipeline run touched. The same Unix tools that make Linux powerful make Cog's memory observable and maintainable.
Cog is a learning tool — an experiment in watching how a memory architecture evolves when given clear conventions and self-observation capabilities. You set the rules, Claude scaffolds the structure, and the pipeline skills refine the conventions over time. The model doesn't evolve — it follows whatever rules it finds. The rules are what change. Every decision is visible. Every rule is editable. Every change is in the git log.
Quick Start
Requires [Claude Code](https://docs.anthropic.com/en/docs/claude-code/overview).
...
Related Skills
Memoria MCP
Persistent, plain-text memory for Claude over MCP — Markdown files you own, hybrid search, OAuth 2.1 remote tr
Opencode Claude Memory
OpenCode plugin for Claude Code memory: persistent local Markdown memory shared with Claude Code, zero config,
HTML Effectiveness Skill
Claude Code skill: Generate interactive HTML instead of markdown walls of text. 9 output patterns, zero deps,
AgentOS Public
Project memory for coding agents: Markdown-first institutional memory beside the code, an explicit JSON knowle
Claude Code Memory Stack
A complete, runnable template for giving Claude Code a persistent memory: a Markdown knowledge vault, skills,
Claude Session Publisher
Turn a Claude Code session into a self-contained HTML/text/Markdown/LaTeX/PDF document — with a fidelity repor
Related Agents
Cognitive Engineer
Agent cognition and memory systems expert. When to use: memory plugin design, decision-making models, agent ps
Polymathic Aurelius
Reasons through Marcus Aurelius's cognitive architecture — dichotomy of control, premeditatio malorum, the obs
Reflection
Self-improvement engine. Captures learnings, updates memory files, and identifies gaps in agents and context.