How we built sharing for AI agents?

We’ve been using Claude Code and OpenClaw for a bunch of non-coding work at our startup like GTM, legal docs, sales proposals. It’s been incredibly productive. An agent can draft a SaaS agreement in minutes that take my legal hours or days. …


This content originally appeared on DEV Community and was authored by Abhishek E

We've been using Claude Code and OpenClaw for a bunch of non-coding work at our startup like GTM, legal docs, sales proposals. It's been incredibly productive. An agent can draft a SaaS agreement in minutes that take my legal hours or days.

But then I need to send it to my cofounder.

And suddenly I'm back in 2015. Open Gmail. Attach it. Type "hey can you review this." Wait for her to respond. She makes edits and sends back v2. Now I have two copies and I have to manage them and not get confused.

The whole point of using AI was to save time. But the time I saved generating the doc, I burned sharing it.

What we actually wanted was dead simple. An agent writes a file. The file persists. Another agent or human can read it. That's it.

What we built

We built an abstraction over S3 that makes it feel like a local filesystem. We're calling it pidrive.

   curl -sSL https://pidrive.ressl.ai/install.sh | bash                                                                                                                                                            
   pidrive register --email agent@company.com --server https://pidrive.ressl.ai                                                                                                                                    
   pidrive mount                                                                                                                                                                                                   

After that, /drive/my/ is your agent's private storage. Standard unix commands:

   echo "SaaS Agreement v1 - Draft" > /drive/my/saas-agreement.txt                                                                                                                                                 
   ls /drive/my/                                                                                                                                                                                                   
   cat /drive/my/saas-agreement.txt                                                                                                                                                                                
   grep -r "indemnification" /drive/my/                                                                                                                                                                            

Under the hood, every read and write goes through WebDAV over HTTPS to our server, then to S3. The agent doesn't know or care. It's just writing to a folder.

The sharing part

This is what actually made it worth building as a separate tool instead of just using rclone or whatever.

   pidrive share saas-agreement.txt --to someone@company.ai                                                                                                                                                           

That's it. My teammate gets an email. She mounts her drive, and the file shows up:

   ls /drive/shared/abhishek@ressl.ai/                                                                                                                                                                             
   saas-agreement.txt                                                                                                                                                                                              

She's reading my actual file, not a copy. If I update the agreement, she sees the update. If I revoke access, the file disappears from her drive instantly. No duplicate versions floating around.

For quick sharing with anyone — even people not on pidrive — there's link sharing:

   pidrive share saas-agreement.txt --link                                                                                                                                                                         
   → https://pidrive.ressl.ai/s/x7k2m9                                                                                                                                                                             

How the SaaS agreement actually went

Here's what the workflow looked like end to end:

  1. I asked Claude Code to draft a SaaS agreement based on our terms
  2. It wrote the file to /drive/my/contracts/saas-v1.txt
  3. I ran pidrive share contracts/saas-v1.txt --to someone@company.ai
  4. My teammate got an email, mounted her drive, read the file
  5. She messaged Claude "change x to y"
  6. Claude updated the clause — same file, same path
  7. No re-sending, no v2 attachment, no confusion about which version is current

To install the skill for any coding agent -

npx skills add abhishek203/pi-drive -g 

Thats it!

Github repo - https://github.com/abhishek203/pi-drive


This content originally appeared on DEV Community and was authored by Abhishek E


Print Share Comment Cite Upload Translate Updates
APA

Abhishek E | Sciencx (2026-03-16T23:17:28+00:00) How we built sharing for AI agents?. Retrieved from https://www.scien.cx/2026/03/16/how-we-built-sharing-for-ai-agents/

MLA
" » How we built sharing for AI agents?." Abhishek E | Sciencx - Monday March 16, 2026, https://www.scien.cx/2026/03/16/how-we-built-sharing-for-ai-agents/
HARVARD
Abhishek E | Sciencx Monday March 16, 2026 » How we built sharing for AI agents?., viewed ,<https://www.scien.cx/2026/03/16/how-we-built-sharing-for-ai-agents/>
VANCOUVER
Abhishek E | Sciencx - » How we built sharing for AI agents?. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2026/03/16/how-we-built-sharing-for-ai-agents/
CHICAGO
" » How we built sharing for AI agents?." Abhishek E | Sciencx - Accessed . https://www.scien.cx/2026/03/16/how-we-built-sharing-for-ai-agents/
IEEE
" » How we built sharing for AI agents?." Abhishek E | Sciencx [Online]. Available: https://www.scien.cx/2026/03/16/how-we-built-sharing-for-ai-agents/. [Accessed: ]
rf:citation
» How we built sharing for AI agents? | Abhishek E | Sciencx | https://www.scien.cx/2026/03/16/how-we-built-sharing-for-ai-agents/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.