
marciopuga/cog
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
marciopuga/cog — это кандидат на навык агента, импортированный из https://github.com/marciopuga/cog.
Обзор
marciopuga/cog — это кандидат на навык агента, импортированный из https://github.com/marciopuga/cog.
Обзор (машинный перевод)
Одна память, а не одна для каждого инструмента. Централизованный слой памяти с открытым текстом, который разделяется со всеми вашими AI-агентами и проектами.
Документация | Навыки | Почему текст
Что такое Ког?
У агентов ИИ теперь есть память — но она изолирована. Каждый инструмент запоминает вещи по-своему, запертый внутри своего проекта. Переключитесь на инструмент или начните новый проект — и вы заново объясняете себя. Cog даёт вам одну общую память — структурированные файлы в открытом тексте, которые любой агент может читать, искать и поддерживать.
Три примитива:
- L0 заголовки — прогрессивная загрузка контекста (отсканируйте перед чтением)
- Три яруса — горячий (всегда заряженный), тёплый (по требованию), ледник (архивировано)
- Единственный источник истины — каждый факт в одном месте, перекрёстные ссылки через вики-ссылки
Нет сервера, нет базы данных, нет кода приложения. Только файлы с разметками с конвенциями.
Быстрый старт
Запустите агента и запустите /cog, чтобы загрузить домены. Теперь у вашего агента сохраняется постоянная память в адресе ~/cog/memory/.
Пользователи Claude Code: клон уже отправляет навыки на .claude/commands/ (продаётся из cog-skills, канонического источника, под их непрефиксными именами — /reflect, /housekeeping, …).
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Cog
One memory for every agent and project: a folder of plain-text files and one short instruction file. There’s nothing to install, and no server, database, embeddings or scripts: just markdown and the file tools your agent already has.
cog-skills installs the /cog command into other agents.
Quick start
git clone https://github.com/marciopuga/cog ~/cog
cd ~/cog
claude # or any agent that reads AGENTS.md
> /cog # first run: a few questions, then it creates your folders
From then on, ask about your life and work as you normally would. The agent reads memory before it answers and writes new facts as it learns them. Run /cog at the end of a session to catch anything it missed.
If you cloned somewhere else, set COG_HOME (for example export COG_HOME=~/projects/cog).
Use it from every project
Memory lives in one place, ~/cog/memory/. Keep it there and don’t scaffold memory inside each project.
- Claude Code, everywhere: add
@~/cog/AGENTS.mdto~/.claude/CLAUDE.md, and copy.claude/commands/cog.mdto~/.claude/commands/. - Codex, Cursor, Gemini CLI and others: point the agent’s own instruction file at
~/cog/AGENTS.md, and install the/cogcommand withnpx skills add marciopuga/cog-skills.
How it works
At the start of every session the agent reads three small things:
| Read | What it says |
|---|---|
memory/hot-memory.md |
What’s going on now (at most 25 lines) |
memory/patterns.md |
How you want it to work (at most 40 lines, written by hand) |
| The top of the map | The l0: line of each root file and of each folder’s index.md: one line per file or folder |
The map opens one level at a time. When a folder fits the question, the agent reads the l0: lines of that folder’s files and one line per subfolder, and goes down only where a summary fits. A tree of hundreds of files still costs a few dozen lines to navigate, and nothing is generated: each folder’s index.md is one hand-written line. A file over 80 lines gets its headings listed first, then only the section it needs. A name no summary mentions gets one search inside the likely folder.
Time questions need no tool, because every dated line starts with its date:
- A value on a date: the
facts.mdline whosefrom:/until:window covers that date. - “Before the trip”: the trip’s dates from
events.md, then the observation lines in that window. - “Last October”: a search for
^- 2026-10.
That is the whole retrieval model. It works because the agent navigates rather than searches, so the design keeps every file small and every summary honest.
~/cog/
AGENTS.md the instructions (CLAUDE.md just imports it)
memory/
hot-memory.md read every session
patterns.md read every session
facts.md values that change over time
Рекомендуемые инструменты
Попробуйте другой запрос или уберите фильтр.
Установка
npx skillfish add marciopuga/cog