Sublime Text fans, is your AI experience actually in your flow, or floating outside it? Pieces is your dedicated AI connector for Sublime Text, turning your lightweight editor into a context-aware powerhouse without breaking your workflow or wasting valuable time juggling multiple tools.

Unlike generic tools or clunky terminals, Pieces delivers an integrated, fast, and personal AI experience inside Sublime Text. You'll spend less time switching tools and more time shipping.

What sets Pieces Apart?


  • Pieces truly understands your project, your files, and your code, not just generic prompts, setting it apart from just another AI extension for VS Code. 

  • We remember everything! The documentation you visited yesterday? We remember it. The code snippet you saw on StackOverflow? We saved it for you. Everything Hands-off, it just works for you!

  • Pieces is available directly in Sublime Text, which means no switching back and forth between apps.

  • This enables you to spend less time searching for answers or debugging, and more time building.


Connecting your code with context via Pieces in Sublime Text

Getting set up with Pieces means connecting your Sublime Text environment to a powerful AI Connector - Pieces that understands your development needs.


Step 1: Establishing the connection (installation & prerequisites)

To function as your AI connector, Pieces relies on a robust PiecesOS Agent and comes with a beautiful UI, Pieces Copilot. For our needs, we will get started with PiecesOS first.


  1. Download & install PiecesOS: Available for Windows, macOS, and Linux.

  2. Sublime Code: Ensure you have Sublime Code installed.

  3. Add Pieces in Sublime Code:

  • Open Sublime Code, go to Package Control and install Pieces.

    1. Go to Tools > Command Palette (⇧⌘P / Shift+Ctrl+P)

    2. Then search: Pieces for Sublime Text

  • Sign-in or Sign-up: You can create a new Pieces account (or sign in to an existing one), and access cloud-enhanced features like advanced AI models, shareable links and more. Pieces offers a generous free tier for all your needs. All your Long-term memory data remains on-device. Read more about our security practices here.


Long-term memory 

Enable long-term memory, and your Copilot remembers previous chats, snippets, and project context. It learns with you, building a deeper understanding of your workflow over time.

Pro Tip: You don't have to take any extra steps to make Pieces remember your work; you can just browse like you do, and Pieces will create memories for you automatically. You can look at the workstream activity to see what memories Pieces collects and also export them. 


Step 2: Supercharging your Context with AI (PiecesOS)

PiecesOS is an OS-level agent that helps you build context over time and allows you to work worry-free, as it remembers everything for you. Its role as an AI connector is crucial for providing a rich, persistent context for your AI interactions. PiecesOS runs locally for maximum privacy for you and your data. Learn more about how your data is handled.


  1. Saving AI-enhanced Context from your activity:

  • In the PiecesOS, select Enable Long-term memory.

  • Browse and do things you usually would. PiecesOS will start forming memories for you and begin collecting context and storing it on your device. You can also see the sources and disable or enable more sources.



  1. Searching Your AI-Organised memory:

You can access this memory across your VS Code. (We support the majority of them) Or use the Pieces Desktop App to interact with your memories. You can simply ask, "What was I doing yesterday?" or go more complex with your prompt and ask for something specific like "Give me the code snippet I was looking for yesterday to fix the getProfile function?"



Step 3: Activating your AI connector (using Pieces Copilot)

Sign into your Pieces account and pick the LLM (like GPT-4 or Ollama) that best fits your workflow. Currently, we support 50+ LLMs


Explore the commands and shortcuts

Want to ask the AI about your project? Refactor code? Save a snippet? There's a shortcut for that.


Action

macOS

Windows/Linux

Ask Copilot

⌘+⌥+⇧+o

Ctrl+Alt+Shift+O

Fix a bug

⌘+⌥+⇧+f

Ctrl+Alt+Shift+F

Add comments

⌘+⌥+⇧+c

Ctrl+Alt+Shift+C

Save snippet

Right-click > Save to Pieces

Same

Search snippets

⌘+⌥+⇧+s

Ctrl+Alt+Shift+S

Tip: Use ⌘+⇧+P (macOS) or Ctrl+⇧+P (Windows/Linux) to access the full list of Pieces commands, including onboarding, settings, and LLM switching.



Why Pieces is the go-to AI connector you need for your Sublime Text workflow?

Pieces goes beyond simple AI features. It builds a genuine AI connection with your development environment by creating long-term memory of your work across your system. It enables you to use it via Sublime Text or MCP. 


  • Maintain deep context: The AI doesn't work in a vacuum. By integrating with your active files, folders, and saved snippets, it gains an understanding of your project, which is especially beneficial for complex projects.

  • Streamlining AI Interaction: No more copying code to external websites. All your AI-powered tasks: from code generation to explanation, happen directly within Sublime Text, reducing friction and maximising flow state. This makes Pieces a reliable AI connector for VS Code compared to generic alternatives.

  • Empowering informed decisions: With AI insights readily available and truly contextual, you can make quicker, more confident decisions for your workflow.

Ready to experience AI as a seamless part of your building process? Add Sublime Text and set up PiecesOS locally to make your code intelligent and powerful.

Your AI connector for Sublime Text

DOWNLOAD FOR FREE

Stay focused, save mental energy, and keep moving with AI that works across all your tools.

Try it free

DOWNLOAD FOR FREE

Stay focused, save mental energy, and keep moving with AI that works across all your tools.

Get started

DOWNLOAD FOR FREE

Stay focused, save mental energy, and keep moving with AI that works across all your tools.

Get started