Repository navigation
Proposal: let agents work with files from any drive (file providers, universal search index, prompt attachments) #53285
PharosDigital
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The problem
Most of my agent work starts from files that don't live in the repository: a client brief on a cloud
drive, a PDF quote, a spreadsheet, a video on a shared server. Today I copy paths around or download files
by hand before I can say "read the brief". Orca already knows my machines (local and SSH) and runs my
agents there, so it is the natural place to bridge this.
What I built (working today, as a plugin)
Files is an Orca panel (HTML panel + trusted worker) backed by a small server next to the agents:
A "+" tab adds, reorders, hides, renames or removes drives.
generic rclone connector, which covers 50+ services (OneDrive, Dropbox, Google Drive, Box, pCloud,
Koofr, Nextcloud/WebDAV, SFTP, SMB, S3…). The add-drive wizard is generated from rclone's own option
metadata; OAuth services open the login page in the user's browser and the worker relays the callback.
Credentials go straight to rclone's control API (never on a command line) and are stored obscured.
search by name and content, download, share links (always after confirmation).
server folders, any rclone remote, or a future connector), is indexed locally by one engine and
refreshed incrementally (the drive's change feed when it has one, a full listing otherwise). One search
covers all drives at once, ranked by name match then most recent, in about a second, where cloud
search APIs were slow, full-text noisy or sorted oldest first. Agents use the same index from a CLI
(
drive-index search "invoice" --latest --json), so "get me the latest Kbis" is one call.workspace — once — through each agent's prompt hook (Claude Code
UserPromptSubmit, AntigravityPreInvocation). Remote files are copied next to the agent first, so it reads them with its usual tools.MCP tools (
fb_list,fb_search,fb_fetch…) let agents browse drives themselves.(
terminal.create/terminal.read), runs a pairing command that prints a one-time code (2 min,single use) and the server's addresses (local, Tailscale, HTTPS via
tailscale serve), redeems thecode from the PC and stores the key in plugin secrets. The key is never displayed.
Every drive implements one small contract:
list,info,open(byte ranges), plus optionalsearch,recent,thumbnail,shareandlocalPath, declared as capabilities; the UI only shows what a drivecan do.
Repository:
https://github.com/PharosDigital/orca-files(v1.7.0, MIT, in the community directory queue)What would make this first-class in Orca
composer.attachor similar): let a plugin add files to the nextprompt of a workspace, shown as chips in the composer, delivered to whatever agent runs there.
Today the plugin needs a different hook per agent and uses the status bar instead of a chip;
agents without prompt hooks can't receive attachments at all.
contributes.fileProviders): a plugin registers a provider(list / read / search / capabilities) and Orca shows it in a shared Files view, the file picker and
@-mentions. The contract above is a working starting point, and rclone shows one provider can covermost cloud services.
HTTPS, but not one that is only reachable over the SSH connection Orca already holds. The Ports panel
exists; exposing it (or
host.fetchthrough the SSH host) would remove the last manual setup.Smaller things we ran into: HTML panels can't show remote images (thumbnails go through the worker in
<1 MiB chunks) and have no clipboard write.
I'm happy to adapt the plugin to whatever shape you prefer, or to help with a PR for any of the above.
All reactions