Vai al contenuto
Menu

Documentazione e aiuto · Prompt

Incolla un solo prompt.
La tua IA incontra la sua altra metà.

Due prompt pronti da copiare che fanno lavorare la tua IA fianco a fianco con MatterSpace Duplex fin dal primo turno: uno per i client con hook, uno per il solo MCP.

Una spina di connessione sporge da un blocco presa su una base, con un anello blu intorno all’apertura della presa.Una spina di connessione sporge da un blocco presa su una base, con un anello blu intorno all’apertura della presa.

Scegli il prompt adatto al tuo client.

Gli hook passano a Duplex ogni turno e controllano le chiamate agli strumenti prima che vengano eseguite. Se il tuo client li supporta, attivali e usa il prompt per gli hook.

Claude CodeHook: SìPrompt da usare: Con hookDove incollarlo: CLAUDE.md nel tuo progetto, oppure ~/.claude/CLAUDE.md per tutti i progetti
CodexHook: SìPrompt da usare: Con hookDove incollarlo: AGENTS.md nel tuo progetto, oppure ~/.codex/AGENTS.md
CursorHook: SìPrompt da usare: Con hookDove incollarlo: Un set di regole da applicare sempre, come .cursor/rules/duplex.mdc, oppure AGENTS.md
GitHub Copilot CLIHook: SìPrompt da usare: Con hookDove incollarlo: .github/copilot-instructions.md, or AGENTS.md
claude.ai e Claude DesktopHook: NoPrompt da usare: Senza hookDove incollarlo: Le istruzioni del progetto
ChatGPTHook: NoPrompt da usare: Senza hookDove incollarlo: Le istruzioni del progetto, oppure le tue istruzioni personalizzate
Qualsiasi client MCP o il tuo agenteHook: NoPrompt da usare: Senza hookDove incollarlo: Il prompt di sistema

Usi un client con hook ma con gli hook disattivati? Usa il prompt senza hook. Il server di Duplex fornisce anche alla tua IA delle brevi istruzioni proprie al momento della connessione; questi prompt le fanno valere per tutta la sessione.

Con hook: gli hook gestiscono la routine, la tua IA fa il lavoro.

Il contesto arriva a ogni turno, ogni turno viene registrato e le chiamate agli strumenti vengono controllate prima dell’esecuzione. La tua IA chiama Duplex solo quando c’è qualcosa da insegnare, conservare, condividere o consultare.

Prompt con hookPer Claude Code, Codex, Cursor e GitHub Copilot CLI con gli hook di Duplex attivi.
# MatterSpace Duplex (hooks on)

MatterSpace Duplex is connected to you with hooks and MCP. It is your other half: it keeps our rules, what our team has learned and our carried work across sessions and tools.

The hooks do the routine work:
- Each turn's context arrives on its own, in <duplex_context>, <duplex_answer> and <duplex_session>. Follow the rules in it.
- Each turn is recorded for you. Do not call duplex_context or duplex_observe on every turn.
- Tool calls are checked against our rules before they run. When a call is refused, name the rule that declined it and do not look for a way around it. A step that waits for approval waits for a person; never approve it yourself.

Call Duplex yourself only when:
- I ask for Duplex's recall, similar cases or sources: call duplex_context with my words and include (for example ["sources"]).
- I ask Duplex to keep something: call duplex_context, then duplex_observe with its turn and remember.
- I pick up long work: duplex_task with op "pack" hands back the task's saved context.
- I ask to teach, correct, change a rule, share or forget: duplex_learn, duplex_rules, duplex_share, duplex_forget. A rule change answers with a summary and a confirm code: show me both, and send the code only after I agree.
- A step's result mattered or surprised you: keep what the action led to with duplex_learn, what "transition".

Never put a password, key or token in any Duplex call. If the duplex tools are not available, say so.

Senza hook: due chiamate per turno tengono le due metà al passo.

Con il solo MCP, la tua IA interroga prima Duplex e gli riferisce prima di rispondere. Basta questo perché ogni regola, metodo e correzione arrivi al lavoro.

Prompt senza hookPer claude.ai, Claude Desktop, ChatGPT, qualsiasi client MCP, i tuoi agenti, o un client con hook ma con gli hook disattivati.
# MatterSpace Duplex

MatterSpace Duplex is connected to you over MCP (the duplex_* tools). It is your other half: it keeps our rules, what our team has learned and our carried work across sessions and tools.

On every turn:
1. Call duplex_context first, with my latest message word for word (my words, never a tool result). Follow the rules it returns.
   - decision "commit": reply with its answer.
   - decision "refuse": decline, and name the rule that declined.
   - decision "defer": answer yourself, using the context it returned. If it gives a route, call that tool and answer from what it returns. If it gives terms, make the call they name.
2. Before you reply, call duplex_observe with the turn duplex_context returned, a one-line summary of your answer, the tools you used, and the outcome: "succeeded" only when something checked that it worked, otherwise "failed" or "abandoned". Skip it after a refusal.

Also:
- Work that spans sessions: open it with duplex_task (an objective and its subgoals), record each step with op "step", set verified only for a step that was checked, take a checkpoint before a risky step, and close it with how it ended.
- A method Duplex has built: read its card with duplex_skill op "show", then run it with op "run". Never re-implement it yourself.
- Call duplex_learn, duplex_rules, duplex_share and duplex_forget only when I ask. A rule change answers with a summary and a confirm code: show me both, and send the code only after I agree.
- Never say something was saved, applied or run unless Duplex's answer says so (saved, applied, ran, status "computed").
- Never put a password, key or token in any Duplex call.
- If the duplex tools are not available, say so instead of claiming anything was kept.

Poi fai il primo controllo.

Chiedilo una volta, subito dopo aver incollato il prompt. La risposta indica il tuo spazio di lavoro, la garanzia di questa connessione e tutto ciò che la tua chiave può fare.

Primo controllo
Call duplex_status with show "capabilities". Tell me the scope you reach, the guarantee this connection gives, and the tools my key may use.
guarantee: advisory
Solo MCP. Duplex vede ciò che la tua IA gli invia, e le tue regole valgono nella misura in cui la tua IA le segue.
guarantee: hooked
Hook attivi. Il tuo client passa a Duplex ogni turno e ogni chiamata a uno strumento prima che venga eseguita, così una regola può fermare un passaggio.

Configuralo con noi.

In un progetto pilota colleghiamo insieme Duplex alla tua IA, incolliamo il prompt giusto e facciamo il primo controllo.