# Sync

The `Sync` command is used to re-sync the named pipe stream, ensuring that the output corresponds to the commands issued.&#x20;

Sync may be lost during operations for various reasons, and using this command helps maintain accurate and reliable communication between your session and the target system.

<figure><img src="/files/og1ZPmrVthDSTyDSQ3Zz" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://leo4j.gitbook.io/amnesiac/sessions/core-commands/sync.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
