一键导入
pantry
Local-first note storage for coding agents. You MUST retrieve notes at session start and store notes before session end. This is not optional.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Local-first note storage for coding agents. You MUST retrieve notes at session start and store notes before session end. This is not optional.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | pantry |
| description | Local-first note storage for coding agents. You MUST retrieve notes at session start and store notes before session end. This is not optional. |
You have persistent notes across sessions. USE THEM.
Before doing ANY work, retrieve notes from previous sessions:
pantry list --project
If the user's request relates to a specific topic, also search for it:
pantry search "<relevant terms>" --project
When search results show "Details: available", retrieve them:
pantry retrieve <note-id>
Do not skip this step. Prior sessions may contain decisions, bugs, and context that directly affect your current task.
Before ending your response to ANY task that involved making changes, debugging, deciding, or learning something, you MUST store a note. This is not optional. If you did meaningful work, store it.
pantry store \
--title "Short descriptive title" \
--what "What happened or was decided" \
--why "Reasoning behind it" \
--impact "What changed as a result" \
--tags "tag1,tag2,tag3" \
--category "<category>" \
--related-files "path/to/file1,path/to/file2" \
--source "<your-agent-id>" \
--details "Full context with all important details. Be thorough.
Include alternatives considered, tradeoffs, config values,
and anything someone would need to understand this fully later."
Categories: decision, bug, pattern, context, learning.
Set --source to your agent identifier: claude-code, codex, cursor, opencode, or roocode.
--project defaults to the current directory name — only set it explicitly if storing a note for a different project.
You MUST store a note when any of these happen:
Run once to auto-install hooks for your agent:
pantry setup claude-code # or: cursor, codex, opencode, roocode
To remove: pantry uninstall claude-code
pantry config # show current configuration
pantry notes # list daily note files (alias: log)
pantry reindex # rebuild search index
pantry remove <id> # remove a note
<redacted> tags.