A. AI coding agents
Multi-repo shared scratchpad
Multiple agents working across separate repos coordinate via a shared scratchpad document store keyed by feature branch.
Prompt for any LLM (no setup needed)
Paste this into ChatGPT, Claude, or Gemini — no MCP, no API key, no install:
Read https://instanode.dev/llms.txt for the API.I want to: multiple agents working across separate repos coordinate via a shared scratchpad document store keyed by feature branch.
Write a complete runnable script (bash + whatever language fits) that: - Provisions the services I need (MongoDB) from instanode.dev - Does the work above end-to-end - Prints expected output at each step - Tells me how to claim the resources at the end if I want to keep them past 24 hours
Use real curl commands against api.instanode.dev. Quote the actual response shapes from llms.txt. ```
Sample agent prompt
Spin up a shared Mongo scratchpad so the four coding agents working across our monorepo + two satellite repos can leave notes for each other, keyed by feature branch. The schema is flexible (each note is a JSON doc). Provision Mongo and return the URL plus an example insert/query.Steps to follow
- Step 1: Provision Mongo.
``bash
curl -s -X POST https://api.instanode.dev/nosql/new -H 'Content-Type: application/json' -d '{"name":"multi-repo-shared-scratchpad-mongo"}' | jq -r .connection_url
``
- Step 2: Connect and pick a collection per branch.
``python
from pymongo import MongoClient
m = MongoClient(os.environ["MONGO_URL"])["scratch"]["notes"]
m.create_index([("branch", 1), ("ts", -1)])
``
- Step 3: Agent leaves a note.
``python
m.insert_one({
"branch": "feat/billing-rework",
"agent": "frontend-1",
"kind": "blocker",
"ref": "packages/web/src/Checkout.tsx:142",
"note": "Stripe element re-renders on form change; need useMemo",
"ts": datetime.utcnow()
})
``
- Step 4: Another agent reads the latest on that branch before starting.
``python
for n in m.find({"branch": "feat/billing-rework"}).sort("ts", -1).limit(20):
print(n["agent"], n["note"])
``
- Step 5: GC stale branch notes weekly.
``javascript
db.notes.deleteMany({ ts: { $lt: new Date(Date.now() - 14*864e5) } })
``
Why this works on instanode.dev
Mongo's schemaless collections fit agent notes that drift in shape across repos, and the branch-keyed index makes cross-agent reads cheap. One curl produces a working URL — no Atlas account, no IP allowlist.
Related cases
- Claude Code agent-teams scratchpad — Postgres-table version of the same coordination idea
- Coding-agent cross-session memory — long-horizon memory across days, not just across repos
- Shared episodic memory store — generalizes the scratchpad to non-coding agent pairs