Rechercher

PythonReactSEOPDF
GitHub Skill

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.

mobydeck☆ 23 Étoiles du dépôt4 Forks du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

Voir la source ↗Guides

Instructions

Pantry — Agent Notes

You have persistent notes across sessions. USE THEM.

Session start — MANDATORY

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.

Session end — MANDATORY

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.

What to store

You MUST store a note when any of these happen:

  • You made an architectural or design decision
  • You fixed a bug (include root cause and solution)
  • You discovered a non-obvious pattern or gotcha
  • You set up infrastructure, tooling, or configuration
  • You chose one approach over alternatives
  • You learned something about the codebase that isn't in the code
  • The user corrected you or clarified a requirement
What NOT to store
  • Trivial changes (typo fixes, formatting)
  • Information that's already obvious from reading the code
  • Duplicate of an existing note (search first)

Agent setup (recommended)

Run once to auto-install hooks for your agent:

pantry setup claude-code   # or: cursor, codex, opencode, roocode

To remove: pantry uninstall claude-code

Other commands

pantry config       # show current configuration
pantry notes        # list daily note files (alias: log)
pantry reindex      # rebuild search index
pantry remove <id>  # remove a note

Rules

  • Retrieve before working. Store before finishing. No exceptions.
  • Always capture thorough details — write for a future agent with no context.
  • Never include API keys, secrets, or credentials.
  • Wrap sensitive values in <redacted> tags.
  • Search before storing to avoid duplicates.
  • One note per distinct decision or event. Don't bundle unrelated things.

Exemples

Consultez les exemples du dépôt source.

Voir la source ↗

Historique source

Date d’indexation
2026-03-11
Mise à jour de l’index
2026-03-11
Branch
main

Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!