Prompt LibraryAgents

Multi-Agent Shared Scratchpad Protocol Prompt

Define how cooperating agents read and write shared memory safely.

The prompt

Design a shared scratchpad schema for agents collaborating on: {{task}}

Specify:
- the fields every agent may read
- the fields only the owning agent may write, and who owns each
- how an agent claims a task to avoid two agents duplicating work
- how a stale or conflicting write is detected and resolved
- the maximum scratchpad size before it must be summarised, and who summarises it

Output the schema as a JSON shape with a one-line comment per field.

Replace the {{fields}} with your own context and tighten the rules to match your domain.

Share this prompt