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
13•ddddazed•1h 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•38m ago
Sansung f05
bob1029•13m 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.

Humanity's Last Machine

https://www.humanityslastmachine.com
1•ofou•22s ago•0 comments

Taking on Anthropic's Public Performance Engineering Interview Challenge

https://matthewtejo.substack.com/p/taking-on-anthropics-public-performance
1•mtejo•48s ago•1 comments

Could Wind Turbines Be Made Out of Wood, Once Again? [video]

https://www.youtube.com/watch?v=xwE7pP3Pv9Y
1•viaredux•1m ago•0 comments

Anthropic Is Down

https://updog.ai/status/anthropic
3•ersiees•1m ago•0 comments

AI Native Marketplace VC fund raises $4.6M

https://www.gardinercolin.com/p/yonder-fund-i-464m-to-back-marketplace
1•predogger•1m ago•0 comments

A tiny TUI to schedule prompts for Claude Code (written in Go)

1•rittik•1m ago•0 comments

Europe shrugs off tariffs, plots to end tech reliance on US

https://www.theregister.com/2026/02/03/europe_tariffs_forrester/
1•jjgreen•1m ago•0 comments

Show HN: DeepClause CLI – Compile Markdown specs into executable logic programs

https://github.com/deepclause/deepclause-sdk
1•schmuhblaster•1m ago•1 comments

Write a Virtual Machine Monitor and Boot Linux

https://blog.mistivia.com/enposts/2026-02-02-vmm/
1•mistivia•1m ago•0 comments

A sane but bull case on Clawdbot / OpenClaw

https://brandon.wang/2026/clawdbot
1•brdd•1m ago•0 comments

Xcode Design Review Toolkit

https://github.com/nthState/DesignReviewToolkit
2•nthState•3m ago•1 comments

AI Agents arguing about private market valuations

https://agentstocks.ai
2•KGKalalsmaa•6m ago•1 comments

Tell HN: Anthropic is down (Sonnet 5 imminent?)

7•obiefernandez•6m ago•1 comments

BotLovin – AI bots autonomously dating each other

https://www.botlovin.ai/
2•hughbird•6m ago•1 comments

Show HN: I built an AI movie making and design engine in Rust

https://github.com/storytold/artcraft
1•echelon•6m ago•1 comments

Lunar mission is delayed to March after problems in NASA's dress rehearsal

https://www.houstonpublicmedia.org/articles/news/nasa/2026/02/03/542379/moon-nasa-artemis-2-launc...
1•DustinEchoes•6m ago•0 comments

Compiling to Categories

http://conal.net/papers/compiling-to-categories/
1•fanf2•7m ago•0 comments

Show HN: Searchable archive of 900 books mentioned on Conversations with Tyler

https://cwtbookarchive.com/
1•jackyli02•7m ago•1 comments

Tell HN: Claude Is Down

8•stuartjohnson12•8m ago•5 comments

Show HN: EnforceAuth GA Launch

https://enforceauth.com/contact?inquiry=waitlist
1•EnforceAuthMark•8m ago•1 comments

Tell HN: Claude Code Is Down

24•sunbum•9m ago•7 comments

Scientists tried to give people Covid – and failed (2024)

https://www.nature.com/articles/d41586-024-01284-1
2•CGMthrowaway•9m ago•0 comments

OpenAI's ChatGPT push triggers senior staff exits

https://www.ft.com/content/e581b7a4-455c-48e6-a87c-c39bb9c62a12
1•1vuio0pswjnm7•9m ago•0 comments

ga68, the GNU Algol 68 Compiler – FOSDEM 2026 [video]

https://fosdem.org/2026/schedule/event/PEXRTN-ga68-intro/
1•matt_d•10m ago•0 comments

Wave: Python Domain-Specific Language for High Performance Machine Learning

https://github.com/iree-org/wave
1•nateb2022•11m ago•0 comments

Why Not Tail Recursion?

https://futhark-lang.org/blog/2026-01-20-why-not-tail-recursion.html
1•PaulHoule•12m ago•0 comments

FISA of 1978 Amendments Act of 2008

https://en.wikipedia.org/wiki/FISA_of_1978_Amendments_Act_of_2008
1•greyface-•14m ago•0 comments

How long does it take the sun to rotate?

https://www.livescience.com/space/the-sun/how-long-does-it-take-the-sun-to-rotate
1•Brajeshwar•14m ago•0 comments

Preserved hair reveals just how bad lead exposure was in the 20th century

https://www.livescience.com/health/preserved-hair-reveals-just-how-bad-lead-exposure-was-in-the-2...
4•Brajeshwar•14m ago•1 comments

A mathematical framework for optimizing robotic joints

https://techxplore.com/news/2026-02-mathematical-framework-optimizing-robotic-joints.html
1•Brajeshwar•14m ago•0 comments