Share code snippets

Share code snippets

 Pieces provides a simple way to share code with others.  No more sharing raw text that is hard to search, instead share enriched code with all the context your recipients need.

Try Pieces for free

Trusted by individuals working for

Share code with colleagues or publicly

All your code snippets can be shared with anyone. When you share a code snippet, Pieces will generate a unique link that you can share with colleagues or with the world that links to your enriched code snippet. Once shared, the recipient can save the code to their Pieces Drive with a single click or copy and paste the code to where they need it.

Share enrichments with your code

When you share code, all enrichments are shared too, including all enrichments generated with AI, along with everything you have added or changed manually. When a shared snippet is saved to Pieces, it comes with all your enrichments, allowing the recipient to quickly find this snippet at a later date.

Get a personal Pieces cloud domain

Personalize the snippets you share with your own Pieces cloud domain. Once you claim your personal domain, all snippets you share will be shared to YourPersonalDomain.pieces.cloud. This helps recipients know and trust where the code came from. Grab your personal Pieces domain now!

Share your code as GitHub Gists

Share code to GitHub as a Gist using Pieces. These gists contain markdown with the shared code in a markdown code block, and all the enrichments are included in a table below. Share this Gist, and the recipient can use the code directly, or import it into their Pieces.

  • You need to try pieces out if you write code and feel that you need a true second brain, where you can basically store any function or code you've ever written and can use it again and again and again.

    Henry Rausch

    Quality Engineer @ FIC America Corp

  • Everyone's got a copilot. You're inverted, you've rotated the whole thing. It's not a vertical copilot, it's a horizontal one.

    Scott Hanselman

    VP of Developer Community @ Microsoft

  • Pieces Copilot has become much more efficient for any developer to ask any question and get a particular result. The LLMs in Pieces are sensitive to programming, so I think that gives better results.

    Ayush Kumar

    Data Analyst @ Accenture

  • I was playing around with live context, and just wow, I’m speechless. I mean, this is not just a coding assistant anymore, it’s a mentor that knows literally everything, a guardian angel.

    Domagoj Lalk

    CTO & Co-Founder @ Sparroww Inc.

1 million +

saved materials

17 million +

associated points of context

5 million +

copilot messages

Dive into the Pieces technical documentation to explore everything our platform offers

Explore

Learn how to optimize your workflow with Long-Term Memory, on-device AI, and switching between LLM

Find solutions to common issues

Access additional tools, SDKs, and APIs for advanced integration

DOWNLOAD FOR FREE

10x your developer productivity

DOWNLOAD FOR FREE

10x your developer productivity

DOWNLOAD FOR FREE

10x your developer productivity

Frequently asked questions

Can I share snippets from all the Pieces plugins?

You can share snippets from the Pieces Desktop app, or any Pieces plugins. Once a snippet is shared, the share URL is available from that snippet no matter where you access it from.

Can I share snippets from all the Pieces plugins?

You can share snippets from the Pieces Desktop app, or any Pieces plugins. Once a snippet is shared, the share URL is available from that snippet no matter where you access it from.

Can I share snippets from all the Pieces plugins?

You can share snippets from the Pieces Desktop app, or any Pieces plugins. Once a snippet is shared, the share URL is available from that snippet no matter where you access it from.

How are snippets shared?

How are snippets shared?

How are snippets shared?

Can someone edit my shared snippet? Can I edit the snippet once shared?

Can someone edit my shared snippet? Can I edit the snippet once shared?

Can someone edit my shared snippet? Can I edit the snippet once shared?

Can I revoke access to a shared snippet?

Can I revoke access to a shared snippet?

Can I revoke access to a shared snippet?

Can I share snippets privately?

Can I share snippets privately?

Can I share snippets privately?

When I share a snippet, does the recipient need to have Pieces installed?

When I share a snippet, does the recipient need to have Pieces installed?

When I share a snippet, does the recipient need to have Pieces installed?

Do I have to pay extra for a personal Pieces cloud domain?

Do I have to pay extra for a personal Pieces cloud domain?

Do I have to pay extra for a personal Pieces cloud domain?

Do I need to be logged in to GitHub to save a Gist?

Do I need to be logged in to GitHub to save a Gist?

Do I need to be logged in to GitHub to save a Gist?