From: Arun Isaac <arunisaac@systemreboot.net>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: Ricardo Wurmus <rekado@elephly.net>, kaagum@systemreboot.net
Subject: Re: connecting to bifrost over SOCKS5 proxy fails
Date: Sun, 08 Nov 2026 23:50:02 +0000 [thread overview]
Message-ID: <87mrririhh.fsf@systemreboot.net> (raw)
In-Reply-To: <878q35s8zl.fsf@systemreboot.net>
>> I have filed a bug report:
>> https://github.com/xenodium/agent-shell/issues/936
From your bug report:
> My prompt caused three tool calls to read three files. I denied
> permission to one of the calls via the button "Reject once" on the
> permission prompt for one of the files
I may have ideas for a rather complex but interesting workaround—object
capabilities.
I'm assuming the problem is that you need the LLM to only read a few
files from the working directory. But since the LLM can see all the
files in the directory, it chooses to read other files as well. At least
I encounter this issue a lot, and every time, I have to reword my prompt
telling the LLM to not read any files other than those I mentioned.
An interesting idea may be to expose to the LLM, only those few files
that we want it to read. Containers can't help us much here. But object
capabilities can. Here's the basic idea:
You create "objects" representing the files you wish to share. Each
object is identified by a long unforgeable UUID. These UUIDs are shared
with the LLM. And to invoke a tool such as `read', the LLM must specify
the UUID of the file it wishes to read rather than the path. Since the
UUIDs are unforgeable, the LLM can only read those files whose UUIDs
have been shared with it. The LLM cannot even *refer* to any other
files.
This way, filesystem access is restricted without even needing
containers. And, in contrast to containers, we can easily allow the LLM
to read files that don't live under the same directory—imagine you wish
to share a file from a different project that lives in a different
directory.
We may also extend this idea to other kinds of objects. Here are a few
ideas:
- directory objects
- directory objects that only permit listing of contents, but not
reading
- objects representing specific GitHub/Codeberg repos—thus allowing us
to limit the repos the LLM can access—really fine-grained network access
control
I'd love to hear what you think—does this make sense? does this address
any problems you may have? etc.
next prev parent reply other threads:[~2026-11-08 23:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 19:54 Ricardo Wurmus
2026-11-03 0:43 ` Arun Isaac
2026-11-03 12:45 ` Ricardo Wurmus
2026-11-04 0:15 ` Arun Isaac
2026-11-04 7:45 ` Ricardo Wurmus
2026-11-04 10:40 ` Arun Isaac
2026-11-05 12:13 ` Ricardo Wurmus
2026-11-06 0:46 ` Arun Isaac
2026-11-06 9:36 ` Ricardo Wurmus
2026-11-07 1:53 ` Arun Isaac
2026-11-08 23:50 ` Arun Isaac [this message]
2026-11-09 11:58 ` Ricardo Wurmus
2026-11-15 15:43 ` object capabilities Arun Isaac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mrririhh.fsf@systemreboot.net \
--to=arunisaac@systemreboot.net \
--cc=kaagum@systemreboot.net \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox