frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Inverting Agent Model (App as Clients, Chat as Server and Reflection)

https://github.com/RAIL-Suite/RAIL
15•ddddazed•2h ago
Hello HN. I’d like to start by saying that I am a developer who started this research project to challenge myself. I know standard protocols like MCP exist, but I wanted to explore a different path and have some fun creating a communication layer tailored specifically for desktop applications.

The project is designed to handle communication between desktop apps in an agentic manner, so the focus is strictly on this IPC layer (forget about HTTP API calls).

At the heart of RAIL (Remote Agent Invocation Layer) are two fundamental concepts. The names might sound scary, but remember this is a research project:

Memory Logic Injection + Reflection Paradigm shift: The Chat is the Server, and the Apps are the Clients.

Why this approach? The idea was to avoid creating huge wrappers or API endpoints just to call internal methods. Instead, the agent application passes its own instance to the SDK (e.g., RailEngine.Ignite(this)).

Here is the flow that I find fascinating:

-The App passes its instance to the RailEngine library running inside its own process.

-The Chat (Orchestrator) receives the manifest of available methods.The Model decides what to do and sends the command back via Named Pipe.

-The Trigger: The RailEngine inside the App receives the command and uses Reflection on the held instance to directly perform the .Invoke().

Essentially, I am injecting the "Agent Logic" directly into the application memory space via the SDK, allowing the Chat to pull the trigger on local methods remotely.

A note on the Repo: The GitHub repository has become large. The core focus is RailEngine and RailOrchestrator. You will find other connectors (C++, Python) that are frankly "trash code" or incomplete experiments. I forced RTTR in C++ to achieve reflection, but I'm not convinced by it. Please skip those; they aren't relevant to the architectural discussion.

I’d love to focus the discussion on memory-managed languages (like C#/.NET) and ask you:

-Architecture: Does this inverted architecture (Apps "dialing home" via IPC) make sense for local agents compared to the standard Server/API model?

-Performance: Regarding the use of Reflection for every call—would it be worth implementing a mechanism to cache methods as Delegates at startup? Or is the optimization irrelevant considering the latency of the LLM itself?

-Security: Since we are effectively bypassing the API layer, what would be a hypothetical security layer to prevent malicious use? (e.g., a capability manifest signed by the user?)

I would love to hear architectural comparisons and critiques.

Comments

Ahnonimus•1h ago
Sansung f05
bob1029•1h ago
The ergonomics of this are good in terms of integration mechanics. I wouldn't worry about performance as long as we are in the tens of milliseconds range on reflection/invoke.

I think the biggest concern is that the # of types & methods is going to be too vast for most practical projects. LLM agents fall apart beyond 10 tools or so. Think about the odds of picking the right method out of 10000+, even with strong bias toward the correct path. A lot of the AI integration pain is carefully conforming to the raw nature of the environment so that we don't overwhelm the token budget of the model (or our personal budgets).

I would consider exposing a set of ~3 generic tools like:

  SearchTypes 
  GetTypeInfo 
  ExecuteScript
This constrains your baseline token budget to a very reasonable starting point each time.

I would also consider schemes like attributes that explicitly opt-in methods and POCOs for agent inspection/use.

Show HN: difi – A Git diff TUI with Neovim integration (written in Go)

https://github.com/oug-t/difi
25•oug-t•2h ago•20 comments

Show HN: Sandboxing untrusted code using WebAssembly

https://github.com/mavdol/capsule
19•mavdol04•2h ago•8 comments

Show HN: Safe-now.live – Ultra-light emergency info site (<10KB)

https://safe-now.live
119•tinuviel•7h ago•50 comments

Show HN: Inverting Agent Model (App as Clients, Chat as Server and Reflection)

https://github.com/RAIL-Suite/RAIL
15•ddddazed•2h ago•2 comments

Show HN: LUML – an open source (Apache 2.0) MLOps/LLMOps platform

https://github.com/luml-ai/luml
5•okost1•1h ago•2 comments

Show HN: Minikv – Distributed key-value and object store in Rust (Raft, S3 API)

https://github.com/whispem/minikv
56•whispem•8h ago•24 comments

Show HN: govalid – Go validation without reflection (5-44x faster)

https://github.com/sivchari/govalid
2•sivchari•2h ago•0 comments

Show HN: Sentinel Gate – Open-source RBAC firewall for MCP agents

https://github.com/Sentinel-Gate/Sentinelgate
2•Sentinel-gate•2h ago•1 comments

Show HN: Adboost – A browser extension that adds ads to every webpage

https://github.com/surprisetalk/AdBoost
114•surprisetalk•1d ago•121 comments

Show HN: npx claude-mycelium grow – fungi agent orchestration for your repo

https://www.npmjs.com/package/claude-mycelium
2•altras•4h ago•0 comments

Show HN: I built a task manager in the MacBook notch for my ADHD brain

https://notchable.com
5•rezabeye•5h ago•1 comments

Show HN: Kannada Nudi Editor Web Version

https://nudiweb.com/
6•Codegres•12h ago•0 comments

Show HN: Nioh guide site – release info, beginner guides, and builds

https://nioh3.net/
2•tanjump•6h ago•1 comments

Show HN: PolliticalScience – Anonymous daily polls with 24-hour windows

https://polliticalscience.vote/
28•ps2026•22h ago•40 comments

Show HN: Axiomeer – An open marketplace for AI agents

https://github.com/ujjwalredd/Axiomeer
4•ujjwalreddyks•15h ago•0 comments

Show HN: Wikipedia as a doomscrollable social media feed

https://xikipedia.org
427•rebane2001•1d ago•140 comments

Show HN: Find viral video ideas on YouTube

https://viraloutlier.com
3•jklepatch•7h ago•0 comments

Show HN: Apate API mocking/prototyping server and Rust unit test library

https://github.com/rustrum/apate
31•rumatoest•2d ago•21 comments

Show HN: NanoClaw – “Clawdbot” in 500 lines of TS with Apple container isolation

https://github.com/gavrielc/nanoclaw
516•jimminyx•1d ago•220 comments

Show HN: ErwinDB, a TUI to view 7k Stack Overflow answers by Postgres expert

https://github.com/ahacop/erwindb
3•ahacop•8h ago•0 comments

Show HN: Open-source semantic search over your local notes via CLI

https://github.com/chenxin-yan/nia-vault
4•jellyotsiro•13h ago•3 comments

Show HN: ÆTHRA – Writing Music as Code

100•CzaxTanmay•4d ago•33 comments

Show HN: Minimal – Open-Source Community driven Hardened Container Images

https://github.com/rtvkiz/minimal
118•ritvikarya98•2d ago•28 comments

Show HN: Ask-a-Human.com – Human-as-a-Service for Agents

https://app.ask-a-human.com
6•ManuelKiessling•20h ago•7 comments

Show HN: Moltbook – A social network for moltbots (clawdbots) to hang out

https://www.moltbook.com/
279•schlichtm•5d ago•879 comments

Show HN: I trained a 9M speech model to fix my Mandarin tones

https://simedw.com/2026/01/31/ear-pronunication-via-ctc/
467•simedw•3d ago•152 comments

Show HN: Voiden – an offline, Git-native API tool built around Markdown

https://github.com/VoidenHQ/voiden
47•dhruv3006•2d ago•28 comments

Show HN: 127 PRs to Prod this wknd with 18 AI agents: metaswarm. MIT licensed

https://github.com/dsifry/metaswarm
5•dsifry•15h ago•2 comments

Show HN: Phage Explorer

https://phage-explorer.org/
124•eigenvalue•3d ago•34 comments

Show HN: Sandbox Agent SDK – unified API for automating coding agents

https://github.com/rivet-dev/sandbox-agent
41•NathanFlurry•6d ago•7 comments