# Coral – Open-source gateway where agents write their own to…

Hi HN, I'm James, one of the co-founders of Coral. Coral is an open-source, self-hosted gateway that sits between your agents and the systems they work on. Agents call tools by writing short TypeScript programs that they can save as custom tools to reuse. You can publish custom tools for groups of…

- **Page:** https://magpie.gallery/i/coral-open-source-gateway-where-agents-write-their-3kp5
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** web
- **Tags:** agents, gateway, open-source, tools, typescript

## Source

Web · jcs: Coral – Open-source gateway where agents write their own tools

- **Original:** https://news.ycombinator.com/item?id=50517803

> Hi HN, I'm James, one of the co-founders of Coral. Coral is an open-source, self-hosted gateway that sits between your agents and the systems they work on. Agents call tools by writing short TypeScript programs that they can save as custom tools to reuse. You can publish custom tools for groups of agents, so your team’s library of tools adapts to your unique systems, data and use cases. Custom tools help agent performance and give more precise units of permission control. Here’s a short demo: https://www.youtube.com/watch?v=p0PKOlHLyVI We started on this while building an AI SRE. To investigate an incident, the agent had to connect the dots across an ocean of telemetry data and undocumented relationships across internal and external systems. It took broad permissions, a lot of tokens and it would start from scratch the next time. We built Coral so that the agent remembers the route. Once a task succeeds, the agent writes the steps that worked into a program and saves it as a custom tool. Next time, the agent finds that custom tool in the same search as standard provider tools (e.g. Datadog, Slack), and reuses it. It started with SRE, but we (and our early users) now use Coral for agent work across the org. For our tasks across GitHub, Linear and Slack with Opus 5.5, custom tools help agents work 29% faster, at 31% lower cost (tasks here: https://withcoral.com/docs/examples/custom-tools). Coral builds on code mode, adding custom tools, policy controls and managed identities. Each program runs in a V8 isolate with no network access or credentials. Coral checks every tool call against workspace policy before attaching credentials and forwarding it to the provider. You can configure each provider to use the caller’s own account, so teammates can share tools without sharing API tokens. (e.g. https://withcoral.com/blog/slackbot-works-better-with-coral) Coral is written in Rust, and you can run it as a desktop app or as a shared server. The core is Apache 2.0 and has no li

## GitHub projects

- https://github.com/withcoral/coral

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
