Skip to content

Specialized agent instructions for the Pinecone vector database, designed to be integrated into `AGENTS.md` file for use with AI coding assistants.

License

Notifications You must be signed in to change notification settings

pinecone-io/pinecone-agents-ref

Repository files navigation

Pinecone Agent Reference

This repository contains specialized agent instructions for the Pinecone vector database, designed to be integrated into your AI coding assistant's configuration file.

AGENTS.md is an open format used by over 20k open-source projects and is supported by most coding assistants including Cursor, Aider, GitHub Copilot, and many others.

What's Included

This repository provides comprehensive Pinecone documentation organized into the .agents/ folder:

  • PINECONE.md - Universal concepts, CLI vs SDK guidance, common patterns, and navigation guide
  • PINECONE-quickstart.md - Step-by-step tutorials (Quick Test, Search, RAG, Recommendations)
  • PINECONE-cli.md - CLI installation, authentication, and command reference
  • PINECONE-python.md - Python SDK guide with code examples
  • PINECONE-typescript.md - TypeScript/Node.js SDK guide with code examples
  • PINECONE-go.md - Go SDK guide with code examples
  • PINECONE-java.md - Java SDK guide with code examples
  • PINECONE-troubleshooting.md - Common issues, solutions, and debugging tips

How It Works

This project leverages the AGENTS.md format to enhance your AI coding assistant's understanding of Pinecone. Here's how the integration works:

The AGENTS.md Format

AGENTS.md (or CLAUDE.md for Claude Code) is a configuration file that lives in your project root and contains directives for your AI coding assistant. When you add a section about Pinecone, you're telling your assistant: "When users ask about Pinecone, follow these special instructions."

The Integration Flow

  1. Installation: When you download and extract a release, two key components are added to your project:

    • .agents/ folder: Contains comprehensive Pinecone documentation files organized by topic and language
    • Configuration snippet: A directive added to your AGENTS.md that instructs the assistant to read from the .agents/ folder
  2. The Instruction Directive: The snippet you add to AGENTS.md contains a mandatory instruction that says:

    "If you need to help with Pinecone, you MUST read .agents/PINECONE.md first"

  3. How Assistants Use It: When a user asks about Pinecone:

    • The assistant reads your AGENTS.md file
    • It sees the Pinecone directive and knows to consult .agents/PINECONE.md first
    • The main guide helps the assistant navigate to the appropriate language-specific or topic-specific documentation
    • The assistant provides accurate, context-aware answers based on the comprehensive documentation
  4. Benefits: This approach ensures:

    • Consistency: All assistants have access to the same, up-to-date Pinecone documentation
    • Accuracy: Language-specific guides prevent common mistakes (like using deprecated SDKs)
    • Completeness: The documentation covers CLI vs SDK usage, common patterns, troubleshooting, and more
    • Maintainability: Updates to the Pinecone reference automatically improve assistant responses

Why This Approach?

Instead of relying on general knowledge or web searches, your assistant has access to curated, project-specific documentation that includes:

  • Current best practices and patterns
  • Language-specific implementations
  • Common pitfalls and how to avoid them
  • Troubleshooting guides for typical issues

This makes your assistant more reliable and knowledgeable about Pinecone than it would be with general training data alone.

Quick Start

The general process is to download the latest release, extract the archive, and add the Pinecone section to your assistant's configuration file.

Most Assistants (Cursor, Aider, GitHub Copilot, etc.)

Linux/macOS (Bash/Zsh):

curl -L -o agents.zip https://github.com/pinecone-io/pinecone-agents-ref/releases/latest/download/agents.zip
unzip agents.zip && rm agents.zip
touch AGENTS.md && cat AGENTS-pinecone-snippet.md >> AGENTS.md && rm AGENTS-pinecone-snippet.md

Windows (PowerShell):

Invoke-WebRequest -Uri https://github.com/pinecone-io/pinecone-agents-ref/releases/latest/download/agents.zip -OutFile agents.zip
Expand-Archive -Path agents.zip -DestinationPath . -Force
Remove-Item agents.zip
if (-not (Test-Path AGENTS.md)) { New-Item -Path AGENTS.md -ItemType File }
Add-Content -Path AGENTS.md -Value (Get-Content AGENTS-pinecone-snippet.md)
Remove-Item AGENTS-pinecone-snippet.md

Claude Code

Claude Code uses CLAUDE.md instead of AGENTS.md.

Linux/macOS (Bash/Zsh):

curl -L -o agents.zip https://github.com/pinecone-io/pinecone-agents-ref/releases/latest/download/agents.zip
unzip agents.zip && rm agents.zip
touch CLAUDE.md && cat AGENTS-pinecone-snippet.md >> CLAUDE.md && rm AGENTS-pinecone-snippet.md

Windows (PowerShell):

Invoke-WebRequest -Uri https://github.com/pinecone-io/pinecone-agents-ref/releases/latest/download/agents.zip -OutFile agents.zip
Expand-Archive -Path agents.zip -DestinationPath . -Force
Remove-Item agents.zip
if (-not (Test-Path CLAUDE.md)) { New-Item -Path CLAUDE.md -ItemType File }
Add-Content -Path CLAUDE.md -Value (Get-Content AGENTS-pinecone-snippet.md)
Remove-Item AGENTS-pinecone-snippet.md

That's it! Your project now has the .agents/ folder with all Pinecone documentation and your configuration file has been updated.

Important: Allow Re-indexing

Many coding assistants need to re-index your codebase to recognize the new .agents/ folder and configuration file. Before using Pinecone-related features, either:

  • Wait a few moments for automatic re-indexing to complete, or
  • Manually trigger a re-index (if your assistant provides this option)

If you start using Pinecone features immediately after installation, your assistant may not yet have access to the Pinecone documentation. Once re-indexing is complete, your assistant will automatically reference the .agents/PINECONE.md files when you ask questions about Pinecone.

Verify Installation

After running the commands above, you should have:

your-project/
├── .agents/                         # Agent documentation folder
│   ├── PINECONE.md                  # Main universal guide
│   ├── PINECONE-quickstart.md       # Quickstart tutorials
│   ├── PINECONE-cli.md              # CLI documentation
│   ├── PINECONE-python.md           # Python SDK guide
│   ├── PINECONE-typescript.md       # TypeScript/Node.js SDK guide
│   ├── PINECONE-go.md               # Go SDK guide
│   ├── PINECONE-java.md             # Java SDK guide
│   └── PINECONE-troubleshooting.md  # Troubleshooting guide
└── AGENTS.md                        # Your project's agent guide (with Pinecone section)

Customizing the Integration

The third command appends AGENTS-pinecone-snippet.md to your AGENTS.md. If you already have an AGENTS.md file and want more control over where the Pinecone section is placed:

  1. Extract the archive: unzip agents.zip && rm agents.zip
  2. Open AGENTS-pinecone-snippet.md and copy the "Pinecone (Vector Database)" section
  3. Manually add it to your AGENTS.md where you prefer
  4. Remove the snippet file: rm AGENTS-pinecone-snippet.md

Updating

To update to a newer version, simply download the latest release and extract the archive. Your configuration file (AGENTS.md or CLAUDE.md if using Claude Code) typically doesn't need changes unless the structure changes.

Linux/macOS (Bash/Zsh):

curl -L -o agents.zip https://github.com/pinecone-io/pinecone-agents-ref/releases/latest/download/agents.zip
rm -rf .agents/PINECONE* && unzip agents.zip && rm agents.zip

Windows (PowerShell):

Invoke-WebRequest -Uri https://github.com/pinecone-io/pinecone-agents-ref/releases/latest/download/agents.zip -OutFile agents.zip
Remove-Item .agents\PINECONE*
Expand-Archive -Path agents.zip -DestinationPath . -Force
Remove-Item agents.zip

Usage

Once installed, your AI coding assistant will automatically reference the .agents/PINECONE.md files when users ask questions about Pinecone. The main guide provides navigation to language-specific documentation based on the user's needs.

For Maintainers: Creating Releases

The included GitHub Actions workflow (.github/workflows/release.yml) automatically packages and creates releases when you push a version tag.

How to Create a Release

Simply tag and push your code:

git tag v1.0.0
git push origin v1.0.0

The workflow will automatically:

  1. Detect the version tag (matches v* pattern, e.g., v1.0.0, v2.1.3)
  2. Create a GitHub release if one doesn't already exist for that tag
  3. Package all files from the .agents/ folder
  4. Include the AGENTS-pinecone-snippet.md file for easy integration
  5. Create both agents.zip and agents.tar.gz archives
  6. Attach both archives to the release as downloadable assets

How It Works

The workflow triggers automatically on tag push (push: tags: v*) and:

  1. Extracts the tag name (e.g., v1.0.0)
  2. Checks if a GitHub release already exists for that tag
    • If a release exists → uses that release and attaches assets
    • If no release exists → creates a new release automatically
  3. Packages the following files:
    • All files from .agents/ folder (8 Pinecone documentation files)
    • AGENTS-pinecone-snippet.md file
  4. Creates archives with the structure:
    archive/
    ├── .agents/
    │   ├── PINECONE.md
    │   ├── PINECONE-quickstart.md
    │   ├── PINECONE-cli.md
    │   ├── PINECONE-python.md
    │   ├── PINECONE-typescript.md
    │   ├── PINECONE-go.md
    │   ├── PINECONE-java.md
    │   └── PINECONE-troubleshooting.md
    └── AGENTS-pinecone-snippet.md
    
  5. Uploads both agents.zip and agents.tar.gz to the release

Manual Release Option

You can still create releases manually through the GitHub UI if you prefer. If you create a release for a tag that doesn't have assets yet, you can manually trigger the workflow or just push the tag again to have it run automatically.

Contributing

Issues and pull requests are welcome! Please see the repository's contribution guidelines (if available).

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

About

Specialized agent instructions for the Pinecone vector database, designed to be integrated into `AGENTS.md` file for use with AI coding assistants.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages