mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 16:42:19 +00:00
* feat(workspace): search hosts by tag (#3001)
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(cli): bind Skills+CLI chat session via host env
Hide --chat-session from agents so they cannot spoof another chat tenant.
The host injects NETCATTY_CLI_CHAT_SESSION_ID, and Copilot/CodeBuddy
approval gates reject leftover flags and env-prefix overrides.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(ai): isolate Skills+CLI chat env across concurrent SDK turns
Cursor and OpenCode mutate process.env around spawn. Serialize those
writes so overlapping chats cannot inherit or restore the wrong
NETCATTY_CLI_CHAT_SESSION_ID.
Co-authored-by: Cursor <cursoragent@cursor.com>
* Revert "feat(workspace): search hosts by tag (#3001)"
This reverts commit 4b651a3841.
* fix(ai): preserve chat isolation when cancelling Cursor startup
* fix(ai): isolate Cursor turns in cancellable workers
* fix(ai): contain native Cursor cleanup in a utility process
* fix(ai): report Cursor utility process fatal errors
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: bincxz <16399091+binaricat@users.noreply.github.com>
2.7 KiB
2.7 KiB
SFTP Reference
Use this reference for remote file or directory tasks.
Default Path
- Treat file and directory tasks as SFTP tasks by default, not shell tasks.
- If the user explicitly says to use only
sftp, do not callexec. - Every
sftpcommand must include--session <session-id>. The current chat session is already bound in the host environment. - Do not use reusable SFTP handles or
--sftp <id>. - After choosing a target session, first run
session --session <id> --jsonand inspect the returned metadata. - Use SFTP only when that
sessionresult shows a connected SSH-backed session. For local, Mosh, Telnet, serial/raw, or network-device sessions, do not use SFTP. - Keep path semantics strict:
--remote-pathalways means a path on the remote host.--local-pathalways means a path on the local machine running Netcatty.
- If the user says "download" to a local destination such as
/tmp,~/Downloads, or Desktop, usesftp download. - If the user says to create or modify a file on the remote host, use
sftp write,sftp upload, or another remote SFTP operation. Do not reinterpret that as a local download.
One-Off Commands
- List a directory:
<netcatty-cli-prefix> sftp list --session <session-id> --remote-path <remote-path> --json
- Read a file:
<netcatty-cli-prefix> sftp read --session <session-id> --remote-path <remote-path> --json
- Write a small text file with known content:
<netcatty-cli-prefix> sftp write --session <session-id> --remote-path <remote-path> --content <text> --json
- Download a remote file to an existing local path:
<netcatty-cli-prefix> sftp download --session <session-id> --remote-path <remote-path> --local-path <local-path> --json
- Upload an existing local file:
<netcatty-cli-prefix> sftp upload --session <session-id> --local-path <local-path> --remote-path <remote-path> --json
- Delete a remote path:
<netcatty-cli-prefix> sftp delete --session <session-id> --remote-path <remote-path> --json
Rules
- Use
sftp writedirectly for creating or updating a small text file with known content. - Use
sftp uploadonly when a real local file already exists and must be transferred. - Use
sftp downloadwhen the result must be saved to the local filesystem. - Do not create temporary local files just to upload text that could be sent with
sftp write. - Do not use
sftp readas a substitute forsftp downloadwhen the user asked for a local saved file. - Do not use
sftp writeas a substitute forsftp download; writing to/tmp/foowithsftp writewrites to the remote host's/tmp, not the local machine. - Do not use shell commands like
cat,touch, redirection, or ad hoc SCP/SSH usage for remote file tasks.