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
14•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•56m 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.

Agent Skills

https://agentskills.io/home
150•mooreds•2h ago•117 comments

Qwen3-Coder-Next

https://qwen.ai/blog?id=qwen3-coder-next
58•danielhanchen•30m ago•13 comments

New York Wants to Ctrl+Alt+Delete Your 3D Printer

https://blog.adafruit.com/2026/02/03/new-york-wants-to-ctrlaltdelete-your-3d-printer/
41•ptorrone•40m ago•20 comments

What's up with all those equals signs anyway?

https://lars.ingebrigtsen.no/2026/02/02/whats-up-with-all-those-equals-signs-anyway/
392•todsacerdoti•6h ago•117 comments

Heritability of intrinsic human life span is about 50%

https://www.science.org/doi/10.1126/science.adz1187
47•XzetaU8•2d ago•26 comments

GitHub Browser Plugin for AI Contribution Blame in Pull Requests

https://blog.rbby.dev/posts/github-ai-contribution-blame-for-pull-requests/
23•rbbydotdev•1h ago•19 comments

Launch HN: Modelence (YC S25) – App Builder with TypeScript / MongoDB Framework

5•eduardpi•29m ago•0 comments

Bunny Database

https://bunny.net/blog/meet-bunny-database-the-sql-service-that-just-works/
80•dabinat•4h ago•29 comments

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

https://github.com/oug-t/difi
24•oug-t•2h ago•18 comments

Ask HN: Is there anyone here who still uses slide rules?

70•blenderob•2h ago•81 comments

Floppinux – An Embedded Linux on a Single Floppy, 2025 Edition

https://krzysztofjankowski.com/floppinux/floppinux-2025.html
206•GalaxySnail•11h ago•132 comments

Show HN: Sandboxing untrusted code using WebAssembly

https://github.com/mavdol/capsule
18•mavdol04•2h ago•7 comments

The Everdeck: A Universal Card System (2019)

https://thewrongtools.wordpress.com/2019/10/10/the-everdeck/
11•surprisetalk•6d ago•2 comments

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

https://safe-now.live
116•tinuviel•7h ago•48 comments

Emerge Career (YC S22) is hiring a product designer

https://www.ycombinator.com/companies/emerge-career/jobs/omqT34S-founding-product-designer
1•gabesaruhashi•4h ago

Data Brokers Can Fuel Violence Against Public Servants

https://www.wired.com/story/how-data-brokers-can-fuel-violence-against-public-servants/
24•achristmascarl•1h ago•4 comments

Banning lead in gas worked. The proof is in our hair

https://attheu.utah.edu/health-medicine/banning-lead-in-gas-worked-the-proof-is-in-our-hair/
210•geox•14h ago•130 comments

Anthropic is Down

https://updog.ai/status/anthropic
91•ersiees•44m ago•77 comments

The Codex App

https://openai.com/index/introducing-the-codex-app/
756•meetpateltech•22h ago•567 comments

Anki ownership transferred to AnkiHub

https://forums.ankiweb.net/t/ankis-growing-up/68610
500•trms•19h ago•196 comments

Todd C. Miller – Sudo maintainer for over 30 years

https://www.millert.dev/
554•wodniok•23h ago•285 comments

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

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

A WhatsApp bug lets malicious media files spread through group chats

https://www.malwarebytes.com/blog/news/2026/01/a-whatsapp-bug-lets-malicious-media-files-spread-t...
18•iamnothere•1h ago•1 comments

How does misalignment scale with model intelligence and task complexity?

https://alignment.anthropic.com/2026/hot-mess-of-ai/
225•salkahfi•16h ago•70 comments

Archive.today is directing a DDoS attack against my blog?

https://gyrovague.com/2026/02/01/archive-today-is-directing-a-ddos-attack-against-my-blog/
275•gyrovague-com•2d ago•117 comments

See how many words you have written in Hacker News comments

https://serjaimelannister.github.io/hn-words/
116•Imustaskforhelp•3d ago•190 comments

GitHub experience various partial-outages/degradations

https://www.githubstatus.com?todayis=2026-02-02
244•bhouston•19h ago•95 comments

LNAI – Define AI coding tool configs once, sync to Claude, Cursor, Codex, etc.

https://github.com/KrystianJonca/lnai
54•iamkrystian17•7h ago•24 comments

Ask HN: Who is hiring? (February 2026)

295•whoishiring•1d ago•376 comments

xAI joins SpaceX

https://www.spacex.com/updates#xai-joins-spacex
832•g-mork•18h ago•1850 comments