frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Tired of duct-taping access control into agent prompts. Here's the fix

https://github.com/yaodub/cast
10•zwigglers•2h ago

Comments

zwigglers•2h ago
Hi HN, Yao here. Most frameworks are built for one developer, one agent. The moment a team shares infrastructure, people end up duct-taping row-level access into the prompt and hoping the model doesn't argue past it. I got tired of that.

Cast is a harness for multi-user, multi-agent systems: one server, a handful of people with their own identities, a fleet of agents handling different things and talking to each other when they need to. Agents are skills and CLAUDE.md, not Python classes, so you can focus on launching quick and refining the agent based on real usage. MIT, self-hosted, runs on a Mac Mini.

Cast puts access control in the routing layer, not the prompt. Each agent runs in its own container with actual filesystem boundaries. Identity verified before the agent sees the conversation (Slack, telegram, etc). Credentials never mounted in.

Developer alpha. Looking for teams that have hit the multi-user Claude Code wall and want to try this out. github.com/yaodub/cast. MIT. BYO Claude key.

embedding-shape•1h ago
> people end up duct-taping row-level access into the prompt

What exactly do you mean with this? The times I've collaborated on projects where most of us are using agents, we basically placed shared files in shared repositories, just like you usually do, so any shared instructions would go there. Then you work on your thing, then eventually submit a PR, and so on. Where does the "duct-taping row-level access" come into play, and how does it relate to the prompts themselves?

> MIT, self-hosted, runs on a Mac Mini.

Interesting approach to write something specifically for macOS and specifically for a Mac Mini :) I'm assuming this actually runs on whatever that can run JavaScript, right? :)

zwigglers•55m ago
For a dev team using agents as coding tools + coordinating via git, that workflow makes sense.

I built cast for other (non-coding) scenarios. A shared agent that multiple people interact with conversationally in real time, with different permission levels.

Think a household assistant on Telegram, or a small team's internal tool where sales and engineering collaborate but shouldn't see each other's data. There's no PR workflow there, just people chatting with a shared service.

On Mac Mini: Runs on anything with Node and a container runtime. Just trying to tap into the zeigeist.

embedding-shape•21m ago
> small team's internal tool where sales and engineering collaborate but shouldn't see each other's data

Right, but wouldn't that happen by default? Lets say I slap a PHP API in front of a local Codex instance running somewhere, then let people login and chat with those, then by default nothing is shared? Sharing stuff between, is extra stuff on top, not things that happen by default, so I'm still not sure what the "duct-taping row-level access into the prompt" actually means in practice? You mean people would ask to access other's data and you want to prevent them from that?

gmmeyer•2h ago
this looks very cool, it’s genuinely hard to manage all my claudes sometimes and i’ve tried to build something like this as well, though with much less success
zwigglers•2h ago
Thanks, means a lot. the "tried to build it myself" crowd is exactly who this is for
raphaelschaad•1h ago
Cool — multi-user, multi-agent, virtual envs, single machine, is probably where most agentic DIY systems need to be going!
binarymax•1h ago
The repo is showing initial commit of the entire codebase "6 minutes ago", and this was posted an hour ago? Are we time travelling now?
zwigglers•52m ago
You caught me. no time travel. I updated the README about an hour in (added the before/after code block). Codebase was there from the start, just some docs polish.
rcarmo•43m ago
I just gave my agents a keychain tool that expands prefixed environment variables automatically into their shell. Can work locally or against a cloud key vault. Done.
zwigglers•39m ago
Fine for single-user setups. I'm solving a different layer: multi-agent/multi-user identity and routing. When multiple people with different permission levels are all talking to the same agent, env vars don't tell you who's asking or what they're allowed to do.
rcarmo•21m ago
You're not getting it. The env vars are only exposed in the local agent runtime. The agent's identity against Azure Key Vault determines what it has access to.

(and I also expand some env vars on fetch() requests for APIs that don't have hard IAM/Entra ID auth)

The keychain tool has the same semantics whether we're running solo, locally, in a container, anything. The agent doesn't know anything except the handles for the keys it has access to, whether they come from encrypted SQLite locally or from the Azure Key Vault via REST. It can't tell the difference, and different agents on different K8s containers (or other IAM entities) see different things depending on their key vault access.

It's literally 100 lines of Bun Typescript (150 for the cloud version).

And believe me, you don't want to reinvent IAM in your keychain/secrets management. Let the provider do it for you, that's what they are there for.

embedding-shape•12m ago
> And believe me, you don't want to reinvent IAM in your keychain/secrets management. Let the provider do it for you, that's what they are there for.

On the other hand, be careful what platforms you lock yourself into. I'm not saying "don't do it", just carefully evaluate all trade-offs by doing that. Turns out letting someone else handle your auth wholesale isn't always worth it long-term, but again, very "case by case" situation.

DaVinci Resolve 21

https://www.blackmagicdesign.com/products/davinciresolve/whatsnew
83•pentagrama•1h ago•33 comments

Hacking your PC using your speaker without ever touching it

https://blog.nns.ee/2026/06/03/katana-badusb/
407•xx_ns•5h ago•73 comments

A Post-Quantum Future for Let's Encrypt

https://letsencrypt.org/2026/06/03/pq-certs
23•SGran•50m ago•7 comments

Meta workers can opt out of being tracked at work up to 30 min

https://www.bbc.com/news/articles/c93x0k194yno
328•reconnecting•3h ago•296 comments

Every Byte Matters

https://fzakaria.com/2026/06/01/every-byte-matters
153•ingve•4h ago•72 comments

PlayStation Architecture

https://www.copetti.org/writings/consoles/playstation/
138•gregsadetsky•5h ago•24 comments

1-Click GitHub Token Stealing via a VSCode Bug

https://blog.ammaraskar.com/github-token-stealing/
569•ammar2•1d ago•84 comments

Show HN: Edsger – A handwritten Clojure REPL for the reMarkable 2

https://handwritten.danieljanus.pl/2026-06-01-edsger.html
167•nathell•21h ago•26 comments

Nabokov's pale fire: the lost 'father of all hypertext demos'? (2011)

https://dl.acm.org/doi/pdf/10.1145/1995966.1996008
71•aragonite•2d ago•15 comments

I built a ceiling projection mapping of the planes flying over my house

https://old.reddit.com/r/nextfuckinglevel/comments/1tvmcin/i_live_in_the_take_off_path_of_sfo_and...
104•frereubu•2h ago•15 comments

I Found a Bug in Apple's Fsck_hfs

https://medium.com/@kivancgunalp/i-found-a-bug-in-apples-fsck-hfs-here-s-how-i-tracked-it-down-ed...
5•zdw•14h ago•1 comments

Show HN: I reverse-engineered the world maps of Test Drive III (1990 DOS game)

https://github.com/s-macke/Test-Drive-3-Maps
170•s-macke•3d ago•50 comments

Use your Nvidia GPU's VRAM as swap space on Linux

https://github.com/c0dejedi/nbd-vram
403•tanelpoder•17h ago•106 comments

Piramidal (YC W24) – Software Engineers – NYC Onsite

1•dsacellarius•3h ago

What I've learned about the trombone

http://bryanhu.com/blog/posts/what-ive-learned-about-the-trombone/
42•bookofjoe•5h ago•33 comments

Shopify Is Down

https://www.shopifystatus.com
51•harrouet•1h ago•36 comments

MAI-Code-1-Flash

https://microsoft.ai/news/introducingmai-code-1-flash/
511•EvanZhouDev•21h ago•239 comments

Leiden Declaration on Artificial Intelligence and Mathematics

https://leidendeclaration.ai/
86•zvr•9h ago•41 comments

The Unreasonable Redundancy of Nature's Protein Folds

https://research.ligo.bio/posts/unreasonable-redundancy-of-natural-protein-folds/
139•ray__•12h ago•43 comments

Are You Enjoying Our Linguine? (2025)

https://www.thedial.world/articles/news/american-tourists-rome
3•NaOH•1d ago•0 comments

AI outperforms law professors in Stanford Law study

https://law.stanford.edu/press/ai-outperforms-law-professors-in-stanford-law-study/
358•berlianta•16h ago•301 comments

Show HN: Tired of duct-taping access control into agent prompts. Here's the fix

https://github.com/yaodub/cast
10•zwigglers•2h ago•13 comments

Thomas Mann: Goethe Heartened by Panama (As Suez for English, or Danube-Rhine)

https://yalereview.org/article/thomas-mann-goethe
13•curio_Pol_curio•2d ago•0 comments

DIY Bipedal Robot Used Pneumatic "Air-Muscles" Instead of Motors

https://spectrum.ieee.org/shadow-walker-biped-humanoid-robot
60•sohkamyung•3d ago•17 comments

32GB of DDR5 now costs $375 – AI shortage continues to squeeze PC building

https://www.tomshardware.com/pc-components/ddr5/32gb-of-ddr5-now-costs-usd375-minimum-ai-shortage...
160•papersail•3h ago•186 comments

U of T researchers demonstrate AI worm could target any online device

https://www.utoronto.ca/news/u-t-researchers-demonstrate-ai-worm-could-target-any-online-device
101•shscs911•12h ago•33 comments

Pluto.jl 1.0 release – reactive notebook for Julia

https://discourse.julialang.org/t/pluto-1-0-release/137296
198•fons-p•16h ago•30 comments

Roku LT Operating System open source distribution

https://blog.roku.com/developer/roku-lt-os
107•dpmdpm•14h ago•49 comments

Capstone – multi-platform, multi-architecture disassembly framework

https://www.capstone-engine.org/
91•gregsadetsky•13h ago•4 comments

My thoughts after using Clojure for about a month

https://www.acdw.net/clojure/
284•speckx•20h ago•150 comments