Logo di Setting Up Relayfile

Setting Up Relayfile

Organizzazione
AgentWorkforce
setting-up-relayfile

Usala quando un agente o una persona deve configurare relayfile da cima a fondo, in modo che gli agenti possano leggere e scrivere file dei provider tramite un mount locale. Copre `relayfile setup`, la ricerca dinamica delle integrazioni con `relayfile integration available/search`, la scelta del backend Nango o Composio, la selezione del sito Atlassian e i relativi metadati, l'accesso al cloud, i flussi OAuth/di connessione, la verifica del mount, il passaggio di consegne con `RELAYFILE_LOCAL_DIR`, lo stato di scrittura e i comandi per riprovare, oltre ai principali problemi noti dei mount cloud di maggio 2026.

Add to TypingMind

Panoramica

Pubblicato daAgentWorkforce
Repositoryrelay
Nome della skillsetting-up-relayfile
Stelle
875
Fork
73
File inclusi
Solo istruzioni
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da AgentWorkforce su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Setting Up Relayfile in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/AgentWorkforce/relay/tree/main/.agents/skills/setting-up-relayfile
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AgentWorkforce/relay.git /tmp/relay
mkdir -p .claude/skills
cp -r /tmp/relay/.agents/skills/setting-up-relayfile .claude/skills/setting-up-relayfile
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Setting Up Relayfile in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Setting Up Relayfile non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Setting Up Relayfile non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Overview

Relayfile mounts a provider (Notion, Linear, Slack, GitHub, and other adapter-backed integrations) as ordinary files on disk so an agent can read and write through the filesystem instead of calling APIs. This skill is the canonical setup recipe. Follow it top-to-bottom for first-time setup; jump to Recovering from breakage if a working mount has gone wrong.

When to use this skill

  • An agent needs read access to a provider (e.g., "summarize this Notion database").
  • An agent needs to write back to a provider (e.g., "post a review on this Notion page", "update this Linear issue").
  • A human is setting up a mount before delegating work to an agent.
  • A mount stopped reflecting changes and you need to diagnose where.

What you get

After setup, files appear under <local-dir>/<provider>/...:
text
~/relayfile-mount/notion/
├── databases/
│   ├── <slug>--<id>/
│   │   ├── metadata.json     ← database schema (read-only)
│   │   └── pages/
│   │       ├── <slug>--<id>.json     ← page metadata
│   │       └── <slug>--<id>/
│   │           ├── content.md        ← page body (READ + WRITE)
│   │           └── blocks/<id>.json  ← raw Notion block tree
└── pages/                            ← top-level pages (not in a database)

Prerequisites

  • Recent relayfile CLI on $PATH. Verify: relayfile --help should list setup, integration, writeback, and the integration available / integration search / integration set-metadata subcommands.
  • A modern macOS or Linux shell with jq for JSON inspection. AWS CLI access is optional and only needed for internal cloud log diagnostics.
  • Network access to agentrelay.com/cloud (cloud control plane), api.relayfile.dev (relayfile API), connect.nango.dev (Nango OAuth), and Composio connect endpoints when using --backend composio.

Step 1 — Run setup (interactive happy path)

```bash
bash
relayfile setup \
  --provider notion \
  --workspace my-agent \
  --local-dir ~/relayfile-mount \
  --no-open

Step 2 — Verify the mount is healthy

```bash
bash
relayfile status my-agent

Step 3 — Hand off to an agent

Pattern A: local agent (Claude Code, scripts, Cursor)
bash
export RELAYFILE_LOCAL_DIR=~/relayfile-mount
# point Claude Code at the dir or `cd` in
Pattern B: remote agent / SDK access (no disk mirror)
ts
import { RelayFileClient } from '@relayfile/sdk';

const token = process.env.RELAYFILE_TOKEN; // from ~/.relayfile/credentials.json
const client = new RelayFileClient({ token, server: 'https://api.relayfile.dev' });

// Read
const file = await client.getFile('rw_xxxxxxxx', '/notion/pages/xxx/content.md');

// Write — triggers writeback automatically
await client.putFile('rw_xxxxxxxx', '/notion/pages/xxx/content.md', {
  content: '# New body\n\n…',
  contentType: 'text/markdown',
});

Step 4 — Verify writeback works (optional but recommended)

Skip-able if the agent only reads. Required if the agent will write.
bash
echo "[writeback test $(date -u +%FT%TZ)]" > ~/relayfile-mount/notion/pages/<throwaway-page>/content.md

Discover writeback contracts before writing

Do not guess writeback shapes and do not use a magic new.json filename. Current relayfile adapters ship discovery documents for writable resources:
text
<provider>/
├── .adapter.md                         ← adapter overview, operations, ID patterns
└── <resource>/
    ├── .schema.json                    ← full-record JSON Schema, draft 2020-12
    └── .create.example.json            ← minimal create payload

Path conventions per provider

ProviderRead pathsWrite paths
Notion/notion/pages/<slug>--<id>/content.md, /notion/databases/<id>/pages/.../content.md, <slug>.json (metadata)same paths overwrite the body / properties
Slack/slack/channels/<id>/messages/ plus .adapter.md / .schema.json discoverycreate by writing a valid message JSON to /slack/channels/<id>/messages/<non-canonical>.json; edit/delete canonical message files when supported
Linear/linear/issues/<id>.json, comments under issue resources, plus .adapter.md / .schema.json discoverycreate by writing a valid issue/comment JSON to a non-canonical filename; edit/delete canonical issue files when supported
GitHub/github/repos/<owner>/<repo>/pulls/<n>/metadata.json, files.json, plus .adapter.md / .schema.json discoverycreate a review by writing the review JSON to a non-canonical file under the reviews resource

new.json is not special in the file-native adapter contract. If a current .adapter.md and .schema.json are present, translate older examples using /messages/new.json or /comments/new.json to "write the create payload to any non-canonical filename in the resource directory." If the live mount only exposes new.json, treat that as an older deployment surface and follow the mounted template or wait for the workspace to refresh onto the new adapter version.

<local-dir>/.relay/ is reserved — never write there. Anything you put under it gets ignored or treated as daemon state.

Adding more integrations after setup

Do not guess provider names. Ask the CLI for the live catalog first; it pulls static Relayfile integrations plus dynamic Nango providers and Composio toolkits from the cloud, then caches the result locally.
bash
relayfile integration available --refresh
relayfile integration search docker --backend composio --refresh
relayfile integration available --backend nango --search notion

Common gotchas

G2 — OAuth callback timing trap
bash
curl -sS -X POST "https://agentrelay.com/cloud/api/v1/workspaces/<id>/integrations/connect-session" \
  -H "Authorization: Bearer $(cat ~/.relayfile/credentials.json | jq -r .token)" \
  -H "Content-Type: application/json" \
  -d '{"allowedIntegrations":["notion"]}'
G3 — Dynamic provider discovery and Composio names
bash
relayfile integration search <term> --backend composio --refresh
relayfile integration search <term> --backend nango --refresh
G4 — Jira / Confluence sync says cloudId is missing
bash
relayfile integration connect jira --workspace my-agent --no-open
# or, if you know the target site:
relayfile integration set-metadata jira cloudId=<cloud-id> baseUrl=https://<site>.atlassian.net --workspace my-agent --yes
G6 — Mount mirror dir conventions
text
<local-dir>/
├── <provider>/...                     ← actual files
├── .relay/
│   ├── state.json                     ← daemon's live state (workspaceId, lag, counters, remoteRoot)
│   ├── integrations/<provider>.json   ← per-integration metadata
│   ├── dead-letter/<opId>.json        ← failed writebacks (Phase 1 dead-letter)
│   ├── permissions-denied.log         ← read/write denials preserved for diagnosis
│   ├── disconnected/<provider>.json   ← marker after `integration disconnect`
│   └── conflicts/<resolved-conflicts>
└── .relayfile-mount-state.json        ← sync revisions per file

Recovering from breakage

Symptom: file edits don't appear in the provider
bash
relayfile writeback status my-agent --json | jq
Symptom: cloud run marked FAILED but the handler logged runner.handler.ok
json
{ "message": "relayfile.mount.cleanup", "flushExitCode": 124, "killAttempted": true, "killExitCode": 0 }

Cleaning up

When you're done with a mount and want to tear down:
bash
# 1. stop the daemon
relayfile stop my-agent

# 2. disconnect each integration (revokes OAuth, removes <provider>/ tree)
relayfile integration disconnect notion --workspace my-agent --yes

# 3. remove the local workspace registration
relayfile workspace delete my-agent --yes

# 4. delete the mirror dir
rm -rf ~/relayfile-mount

What this skill does NOT cover

  • Self-hosted relayfile (running your own relayfile-server Go binary against a private Nango). For most agent use-cases the managed cloud at agentrelay.com is the right choice; self-hosted is for environments where data residency rules out the cloud.
  • Multi-workspace agents. A single agent talking to multiple workspaces simultaneously needs careful token handling that's out of scope here.
  • GitHub-via-relayfile for source code. The GitHub adapter exists but the productized cloud-mount workflow is heavier-weight than git clone; only use it if the agent specifically benefits from filesystem-shaped access to PR metadata, reviews, etc.

Quick reference

CommandPurpose
relayfile setup --provider <p> --workspace <name> --local-dir <path>First-time setup
relayfile status <workspace>Health overview
relayfile mount <workspace> <local-dir>Restart the daemon
relayfile stop <workspace>Stop the daemon
relayfile integration available [--search <q>] [--backend <nango|composio>] [--json] [--refresh]Browse the live provider catalog
relayfile integration search <q> [--backend <nango|composio>] [--json] [--refresh]Search dynamic Nango providers and Composio toolkits
relayfile integration list --workspace <name> --jsonList connected providers
relayfile integration connect <provider> [--backend <nango|composio>] --workspace <name>Add another provider
relayfile integration set-metadata <provider> KEY=VALUE... --workspace <name> --yesReplace flat provider metadata, such as Jira/Confluence cloudId and baseUrl
relayfile integration disconnect <provider> --workspace <name> --yesRemove a provider
relayfile tree <workspace> <path>Live cloud-side directory listing
relayfile read <workspace> <path>Live cloud-side file read
relayfile writeback status <workspace> [--json]Pending / failed / dead-lettered counts
relayfile writeback retry --opId <op> <workspace>Re-enqueue a dead-lettered op
relayfile pull --workspace <name>Force a refresh from provider
relayfile ops list --workspace <name> --jsonCloud-side operation log
relayfile workspace delete <name> --yesRemove from local registry

Domande frequenti

Cosa fa la skill IA Setting Up Relayfile?

Usala quando un agente o una persona deve configurare relayfile da cima a fondo, in modo che gli agenti possano leggere e scrivere file dei provider tramite un mount locale. Copre `relayfile setup`, la ricerca dinamica delle integrazioni con `relayfile integration available/search`, la scelta del backend Nango o Composio, la selezione del sito Atlassian e i relativi metadati, l'accesso al cloud, i flussi OAuth/di connessione, la verifica del mount, il passaggio di consegne con `RELAYFILE_LOCAL_DIR`, lo stato di scrittura e i comandi per riprovare, oltre ai principali problemi noti dei mount...

Perché usare Setting Up Relayfile su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Setting Up Relayfile è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Setting Up Relayfile in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/AgentWorkforce/relay/tree/main/.agents/skills/setting-up-relayfile. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Setting Up Relayfile?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Setting Up Relayfile?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Setting Up Relayfile: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Setting Up Relayfile è gratuita?

Sì. È pubblicata su GitHub da AgentWorkforce con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇