agentdrop-portability-cli
v1.0.15
Published
Standalone CLI companion for AgentDrop
Readme
AgentDrop — AI Context Portability Layer
"It doesn't move a chat window. It moves the AI's working context."
AgentDrop is a local-first, vendor-neutral AI coding context portability layer designed for developer teams, multi-device workflows, and continuous AI development handoffs.
🚀 The Problem AgentDrop Solves
When Developer D1 works on a feature using an AI coding agent (such as Google Antigravity or Claude Code):
- D1 provides detailed requirements, refines architectural choices, and tests code changes.
- The AI runs tests, inspects files, and hits a specific edge-case error.
- D1 pushes the code to GitHub.
Later, Developer D2 (or D1 on a second machine) clones the repository:
- Git provides the code modifications, but zero AI working context.
- D2 has no record of D1's original prompt, the AI's internal decisions, what approaches failed, or why tests are breaking.
- D2 is forced to manually re-explain the entire feature to their AI from scratch.
⚡ The AgentDrop Solution
AgentDrop binds the AI agent's working memory directly to the Git & GitHub lifecycle:
[Machine 1 / Developer 1]
│ Works with Antigravity or Claude Code
│ Runs: agentdrop save
▼
[.agentdrop/ in Repo Root]
├── handover.json (Structured JSON contract: objective, decisions, blocker, prompt)
└── HANDOVER.md (Human-readable GitHub Markdown rendered on GitHub.com!)
│
│ Runs: git add .agentdrop && git commit -m "chore: save AI handover" && git push
▼
[GitHub Remote Repository]
│
│ * Machine 1 goes offline *
│ * Machine 2 clones repo and pulls main *
▼
[Machine 2 / Developer 2]
│ Runs: agentdrop status (or opens VS Code)
▼
[Active AI Handover Detected Instantly!]
├── Objective: Write full-stack authentication middleware
├── Important Decisions: Redis token rotation, atomic single-key lock
├── Current Roadblock: AssertionError on 500ms replay window
└── Primed Resume Prompt: 1-click execution in Machine 2's AI agent!✨ Features
- 🔄 Git-Native Persistence: Context handovers live directly inside
.agentdrop/in your repository. They version-control alongside your code commits. - 🤖 Universal Multi-Agent Support: Out-of-the-box adapters for Google Antigravity IDE, Claude Code, Cursor, Windsurf, and VS Code.
- 🔒 Pre-AI Secret Scrubbing: Pattern-based security scanner redacts API keys (
sk-,ghp_, tokens, private keys, database URLs) and excludes sensitive files (.env*,*.pem,*.key). - ⚡ Local Ephemeral P2P Streaming: Transfer context directly between devices over local Wi-Fi / hotspot via ECDH + HKDF + 6-digit SAS verification code + AES-256-GCM encryption.
- 🎯 Smart Workspace Isolation: Automatically isolates sessions per workspace directory depth so parallel project instances never leak.
- 🌐 Embedded Local Web Dashboard: Built-in HTTP dashboard (
agentdrop ui) for visual inspection of handovers, active sessions, and local pairing.
📦 Installation
Install globally via npm:
npm install -g agentdrop-portability-cliVerify installation:
agentdrop --version🛠️ CLI Command Reference
agentdrop init
Initializes AgentDrop in the current Git repository by setting up .agentdrop/, adding AGENTS.md context bridge, installing Git hooks, and configuring npm scripts.
agentdrop initagentdrop save
Captures the active AI coding session from your local agent, scrubs secrets, synthesizes the handover contract, and writes .agentdrop/HANDOVER.md and .agentdrop/handover.json.
agentdrop saveTip: Test with verified golden demo fixture:
agentdrop save --demoagentdrop status
Inspects the current repository for active AI handovers, verifying branch compatibility, commit hashes, current roadblocks, and displaying the Primed Resume Prompt.
agentdrop statusagentdrop load
Outputs the loaded context contract summary and formats the primed resume prompt for direct 1-click execution into any AI agent.
agentdrop loadagentdrop beam & agentdrop listen
Direct offline P2P transfer over local network / Wi-Fi hotspot without committing to remote Git.
# On Machine A (Sender):
agentdrop beam
# On Machine B (Receiver):
agentdrop listen <PAIRING_PAYLOAD>agentdrop ui
Launches the interactive Web UI Dashboard locally on http://localhost:3333.
agentdrop ui🔒 Security & Privacy Guarantees
- Zero Cloud Leak: AgentDrop operates local-first. Raw transcripts never leave your machine unless explicitly pushed to your private Git remote.
- Pre-Sanitization: API keys (OpenAI, Google, GitHub, AWS, JWT), private keys, and sensitive environment variables are scrubbed before reaching any prompt or handover file.
- P2P Encryption: Direct local network streams use ephemeral ECDH key pairs with HKDF key derivation and AES-256-GCM authenticated encryption.
📄 License
MIT © Anshul Vats
