# Coral: 에이전트 작업의 재사용
# Coral: reusable agent work

- Site: https://select1.dev/2026-11-17 (English), https://select1.dev/ko/2026-11-17 (Korean)
- Entry: 038
- Published: 2026-11-17 (KST). Launch date: 2026-11-16
- Pick: Coral <https://github.com/withcoral/coral> (source: Show HN)
- Verified: ran
- What: Coral 은 에이전트가 성공한 작업을 도구로 저장해 다시 사용하게 하는 프로덕트다. Coral 은 에이전트가 GitHub, Slack 같은 서비스를 호출할 때마다 권한도 확인한다.
- What (en): Coral is a product that lets agents save successful work as tools and reuse them. It also checks permissions each time an agent calls a service such as GitHub or Slack.
- Why: 오늘의 픽으로 선정한 이유는 에이전트가 같은 작업을 처음부터 다시 하지 않아도 되기 때문이다.
- Why (en): It is today’s pick because an agent does not have to redo the same task from scratch.
- Verdict: 작동한다. 저장한 도구를 다음 작업에서 찾아 다시 실행했다.
- Verdict (en): It works. A new task found the saved tool and ran it again.
- Tags: agent, mcp, gateway, typescript, rust

## Checked against the README

- [pass] Coral 은 호출마다 정책을 확인한 뒤 요청에 자격 증명을 추가해 서비스에 전달한다(checks every call against your policy before it adds credentials and forwards the call) — 목록 조회는 승인 없이 실행됐다. 스텁 서버가 받은 요청에는 Coral 이 붙인 Bearer 토큰이 있었다. 프로그램에는 토큰을 넣지 않았다. 티켓 수정은 호출마다 승인을 받아야 실행됐다
- [pass] 저장한 도구는 다음 작업에서 서비스의 도구와 함께 검색된다(HN 글, finds that custom tool in the same search as standard provider tools) — 새 작업에서 close stale tickets 로 검색하자 저장한 coral.private.closeStaleTickets 가 listTickets 다음 둘째로 나왔다
- [pass] Coral 은 저장한 도구 안에서 서비스를 호출할 때도 정책을 확인한다(Coral still checks every provider call inside it against your policy) — 저장한 도구의 정책을 Allow 로 바꿔도 도구 안의 updateTicket 은 승인을 받아야 실행됐다. 승인 요청을 거절하자 실행이 approval_declined 로 실패했다. 스텁 서버에는 수정 요청이 전달되지 않았다

## Measured

- 같은 작업을 처음 실행할 때와 저장한 도구로 실행할 때 보낸 프로그램의 길이: 820바이트 → 59바이트 (exec 는 프로그램을 받아 실행하는 Coral 의 도구다. 이 도구에 넘긴 program 문자열의 바이트 수를 측정했다. 처음에는 티켓 조회, 필터, 수정, 도구 저장 코드를 모두 작성했고, 다음에는 coral.private.closeStaleTickets({ days: 30 }) 호출 한 줄만 보냈다)

## Progress (days after launch; full history https://select1.dev/2026-11-17/progress)

- day 3 (checked 2026-11-19) [active] commits since launch 119, stars 5019, releases 46, contributors 67, last commit 2026-11-18
  - Tool search now uses semantic search by default (#3268).
  - Coral refuses the call when the request already has a value where the credential would go (#3286). In that case, Coral now reports that the tool is unavailable. It no longer reports a missing account (#3261).
  - Coral refuses an upgrade that skips a database version. An older version of Coral can now run on a database that a newer version has upgraded (#3191).
  - Coral asks an agent whose registration has expired to sign in again instead of retrying (#3263).
- day 7 (checked 2026-11-23) [active] commits since launch 168, stars 5025, releases 48, contributors 67, last commit 2026-11-21
  - Added a Sub-agent that a lead agent hands work to. The lead agent can see the steps the Sub-agent took. When a thread nears the model’s context limit, the Sub-agent compacts it.
  - Coral can read credential fields from AWS Secrets Manager.
  - Added a [search] embedder_cores setting for computing search embeddings on more than one CPU core.

## 한국어

## 무엇이 문제인가

코딩 에이전트는 MCP 서버를 통해 GitHub, Slack 같은 서비스를 사용한다. 제작자는 README 에서 에이전트가 작업마다 도구 설명을 다시 읽고, 이전 작업에서 성공한 단계의 코드도 다시 작성한다고 했다. 권한도 문제다. Claude Code 의 공식 문서에 따르면 MCP 도구의 권한은 도구 이름마다 허용, 확인, 거부 중 하나로 지정한다. MCP 도구의 인자를 조건으로 넣을 수 있는 규칙은 거부 규칙뿐이고, 이 규칙은 설정 파일이 아니라 CLI 옵션으로 넘겨야 한다. 그래서 레코드를 수정하는 도구를 허용하면, 에이전트는 그 도구로 어떤 레코드든 수정할 수 있다.

## 어떻게 해결했나

제작사의 공동 창업자 James 가 2026년 11월 16일 Hacker News 에 Show HN 글로 Coral 을 소개했다.

Coral 은 에이전트와 서비스 사이에 설치하는 MCP 서버다. 에이전트는 도구를 하나씩 호출하지 않고, 여러 도구를 호출하는 TypeScript 프로그램을 보낸다. HN 글에 따르면 프로그램은 네트워크 접근과 자격 증명이 없는 샌드박스 에서 실행된다. 서비스 호출만 샌드박스 밖으로 전달된다. Coral 은 호출마다 워크스페이스의 정책을 확인한 뒤 요청에 자격 증명을 추가해 서비스에 전달한다. 작업이 성공하면 에이전트는 프로그램의 함수를 커스텀 도구로 저장한다. 다음 작업에서 에이전트는 서비스의 도구와 함께 이 도구도 검색해 호출한다. 정책은 도구마다 Allow, Ask, Block 가운데 하나로 지정한다. 기본 정책에서 읽기 전용 도구는 바로 실행되고, 나머지는 사용자의 승인을 받아야 실행된다.

## 무엇이 다른가

첫째, 성공한 작업을 남기는 방식이 다르다. Claude Code 에서 에이전트는 MCP 도구를 하나씩 호출하고 결과를 대화 안에서 받는다. Coral 에서는 여러 호출이 프로그램 하나에 들어간다. 그 프로그램의 함수는 이름과 TypeScript 선언이 있는 도구로 저장된다. 제작자가 문서에 공개한 비교에서는 같은 작업 34개를 두 번 실행했다. 한 번은 저장한 도구 없이, 한 번은 저장한 도구를 사용할 수 있게 했다. 저장한 도구를 사용할 수 있을 때 토큰 사용량이 37%, 시간이 29% 줄었다. 트레이드오프는 사용자가 검토하지 않은 코드가 도구로 저장된다는 점이다. 제작자는 HN 댓글에서 도구가 추가되거나 바뀔 때 사용자에게 검토하라고 권했다.

둘째, 권한을 지정하는 단위가 다르다. Coral 은 저장한 도구에도 정책을 지정할 수 있다. README 에는 30일 동안 활동이 없는 티켓에서 필드 하나만 바꾸는 도구가 예로 나온다. 이런 조건은 도구의 코드 안에 있어서, Claude Code 처럼 도구 이름마다 지정하는 규칙으로는 표현할 수 없다. 저장한 도구의 정책은 그 도구를 호출할 수 있는지만 결정한다. 도구 안에서 티켓을 수정하는 호출에는 티켓 수정 도구의 정책이 따로 적용된다.

## 실행해 보니

Linux 용 데스크톱 앱 1.8.0 을 내려받았다. 앱에 포함된 Coral 서버와 웹 UI 를 앱과 같은 설정으로 직접 실행했다. 서비스로는 티켓 API 의 스텁을 만들어 OpenAPI 문서로 등록했다. 스텁의 열린 티켓 3개 가운데 2개는 30일 넘게 활동이 없다. 모델은 사용하지 않았다. 에이전트 대신 MCP 요청을 직접 보내 프로그램을 실행했다.

1. 등록. 워크스페이스를 만들고 OpenAPI 문서 주소를 넣자 Coral 이 API 3개를 도구로 만들었다. 인증 방식으로 Bearer 토큰을 선택하고 가짜 토큰을 입력했다.
2. 첫 작업. 30일 넘게 활동이 없는 열린 티켓을 닫는 프로그램을 보냈다. 목록 조회는 바로 실행됐다. 스텁이 받은 요청에는 Coral 이 붙인 토큰이 있었다.
3. 승인. 티켓 수정은 호출마다 승인을 받아야 실행됐다. 승인 화면에는 프로그램 소스와 실행이 멈춘 라인이 표시됐다. 두 번 승인하자 티켓 2개가 닫혔다. 같은 프로그램이 함수를 closeStaleTickets 라는 도구로 저장했다.
4. 다음 작업. 스텁을 다시 시작해 티켓을 처음 상태로 복원했다. 새 작업에서 close stale tickets 로 도구를 검색하자, 저장한 도구가 티켓 목록 도구 listTickets 다음으로 나왔다. 처음 보낸 프로그램은 820바이트였고, 저장한 도구를 호출하는 프로그램은 59바이트였다. 다음 작업에서 에이전트가 작성할 코드가 그만큼 짧아진다.
5. 저장한 도구의 권한. 저장한 도구를 실행하자 승인 요청이 다시 두 번 표시됐다. 저장한 도구의 정책은 Coral 의 도구 updateCustomTool 을 호출해 Allow 로 바꿨다. 이 호출은 승인 없이 실행됐다. 그래도 도구 안의 티켓 수정은 승인을 받아야 실행됐다. 거절하자 실행이 실패했다. 스텁에는 수정 요청이 전달되지 않았다.
6. 막힌 것. `fetch` 라는 이름이 들어간 프로그램을 보내자 Coral 은 실행하기 전에 거부했다. 프로그램으로 티켓 수정을 허용하도록 정책을 바꾸려고도 했다. 이 프로그램은 Coral 의 updatePolicy 도구를 호출한다. updatePolicy 호출은 승인을 받아야 실행됐다.

README 와 HN 글에서 선택한 설명 3개는 모두 실행에서 확인됐다. 자격 증명을 붙이는 방식, 저장한 도구의 검색, 저장한 도구 안의 정책 확인이다.

```json title="MCP 응답, 저장한 도구 안의 호출을 거절한 뒤"
"failure": {
  "code": "program_rejected",
  "message": "ToolError: Invocation approval was declined",
  "error": {
    "frames": [
      { "source": "Private Tool coral.private.closeStaleTickets", "line": 7, "column": 45 }
    ],
    "tool": { "code": "approval_declined" }
  }
}
```

## 확인하지 못한 것

- 실제 에이전트를 연결했을 때 저장한 도구로 토큰 사용량이 줄어드는지. 다음에는 Claude Code 를 연결해, 저장한 도구가 없을 때와 있을 때 같은 작업을 한 번씩 실행하고 토큰 사용량을 비교하자.
- 팀 서버와 도구 공유. 팀 서버를 실행하려면 로그인 서비스와 웹 서버를 따로 준비해야 한다.

## 판정

작동한다. 저장한 도구를 다음 작업에서 찾아 다시 실행했다. 다만 1.8.0 에서는 저장한 도구의 정책을 Allow 로 바꿔도 도구 안의 티켓 수정은 매번 승인을 받아야 실행됐다. Coral 문서에 따르면, 승인 없이 실행하려면 티켓 수정 도구 자체를 허용해야 한다. 그러면 에이전트는 저장한 도구를 거치지 않고 어떤 티켓이든 수정할 수 있다. 에이전트가 동일한 조회를 매일 반복하는 팀의 경우 써 볼 만하다.

## 얻어갈 것

- 승인 화면에는 승인을 기다리는 호출이 소스의 몇 번째 라인인지 보여 주자. Coral 은 그 라인을 소스와 함께 표시했다.
- 금지한 API 는 실행 전에 막아 보자. Coral 은 `fetch` 라는 이름만 보고 프로그램을 거부했다.
- 에이전트가 도구를 저장할 때 승인을 받을지 결정해 두자. Coral 은 도구 저장을 승인 없이 실행했고, 다음 작업은 저장한 도구를 검색해 호출했다.

### 용어

- MCP: Model Context Protocol. AI 모델을 외부 도구와 데이터에 연결하는 방식을 정의한 규격이다.
- 샌드박스: 프로그램이 파일, 네트워크 같은 시스템 자원에 접근하지 못하게 제한한 실행 환경이다.
- OpenAPI: HTTP API 의 주소, 요청, 응답 형식을 JSON 이나 YAML 로 기술하는 규격이다. 이 규격으로 작성한 문서로 클라이언트 코드를 생성할 수 있다.

## English

## The problem

Coding agents use services such as GitHub and Slack through MCP servers. The maker says in the README that agents start every task from scratch. They read tool descriptions again and rewrite the code for steps that worked in an earlier task. Permissions are another problem. Claude Code’s official docs say each MCP tool gets one rule by name: allow, ask or deny. Only a deny rule can use an MCP tool’s arguments as a condition, and it must be passed as a CLI option, not in a settings file. So if you allow a tool that updates records, the agent can update any record with it.

## How it solves it

James, a co-founder, posted Coral to Hacker News as a Show HN on November 16, 2026.

Coral is an MCP server that sits between agents and services. The agent sends a TypeScript program that contains several calls. The HN post says each program runs in a sandbox with no network access or credentials, and only service calls leave it. Coral checks each call against the workspace policy. It then adds credentials and forwards the call to the service. When a task succeeds, the agent saves a function from the program as a custom tool. In the next task, the same search that finds service tools also finds this tool. Each tool has one policy: Allow, Ask or Block. By default, read-only tools run right away, and everything else waits for a person to approve.

## What is different

First, Coral keeps successful work in a different way. In Claude Code, the agent calls MCP tools one at a time and gets the results in the conversation. In Coral, several calls go into one program, and a function from that program can be saved as a tool with a name and a TypeScript declaration. The maker ran 34 tasks once without saved tools and once with them, and posted the results in the docs. The tasks used 37% fewer tokens and took 29% less time with saved tools. The trade-off is that a saved tool is code that no person has reviewed. In an HN comment, the maker advised having a person review tools when they are added or changed.

Second, Coral can also set a policy on a saved tool. The README’s example is a tool that changes one field only on tickets with no activity for 30 days. A rule that matches tool names, as in Claude Code, cannot express that condition, because the condition is in the tool’s code. A saved tool’s policy only decides whether the tool can be called. A ticket update call inside it follows the ticket update tool’s own policy.

## Running it

I downloaded the 1.8.0 Linux desktop app, which contains the Coral server and web UI. I started both myself, with the same settings the app uses. I made a stub ticket API and used an OpenAPI document to add it to Coral as a service. Two of its three open tickets had no activity for over 30 days. I used no model and no agent. I sent the programs to Coral myself as MCP requests.

1. Setup. I made a workspace and entered the OpenAPI document’s address. Coral made tools from its 3 operations. I chose Bearer token authentication and entered a fake token.
2. First task. I sent a program that closes open tickets with no activity for over 30 days. The list call ran at once. The request the stub received had the token that Coral added.
3. Approval. Each ticket update asked for approval. The approval screen showed the program source and the line where it stopped. I approved both updates, and 2 tickets were closed. The same program saved a function as a tool named closeStaleTickets.
4. Next task. I restarted the stub to reset the tickets, then searched for tools with close stale tickets in a new task. The saved tool came second, after the ticket list tool listTickets. The first program was 820 bytes, and the program that calls the saved tool was 59 bytes. The agent has that much less code to write in the next task.
5. The saved tool’s permissions. When I ran the saved tool, I got two approval requests again. I changed its policy to Allow by calling updateCustomTool, a Coral tool. That call ran without approval. Still, the ticket update inside the tool needed approval. When I declined, the run failed, and no update request reached the stub.
6. What was blocked. When I sent a program that contained the name `fetch`, Coral rejected it before running it. I also sent a program that called updatePolicy, Coral’s tool for changing policies, to allow ticket updates. That call needed approval.

I picked three claims from the README and the HN post, and all of them matched the run. They covered how credentials are added, how saved tools are found, and the policy check inside saved tools.

```json title="MCP response, after declining a call inside the saved tool"
"failure": {
  "code": "program_rejected",
  "message": "ToolError: Invocation approval was declined",
  "error": {
    "frames": [
      { "source": "Private Tool coral.private.closeStaleTickets", "line": 7, "column": 45 }
    ],
    "tool": { "code": "approval_declined" }
  }
}
```

## Not checked

- Whether saved tools cut token use with a real agent. Next, connect Claude Code, run the same task once without the saved tool and once with it, and compare token use.
- The shared team server and tool sharing. Running a team server needs a separate sign-in service and web server.

## Verdict

It works. A new task found the saved tool and ran it again. But in 1.8.0, the ticket update inside the saved tool asked for approval every time, even after I set the saved tool’s policy to Allow. By Coral’s docs, running it without approval means allowing the ticket update tool itself. Then the agent can update any ticket without going through the saved tool. It is worth trying for a team whose agents repeat the same lookups every day.

## What to take away

- On the approval screen, show which line of the source made the waiting call. Coral showed that line with the source.
- Block forbidden APIs before a program runs. Coral rejected a program just for the name `fetch`.
- Decide whether saving a tool needs approval. In Coral, saving a tool needed no approval, and the next task found the saved tool and called it.

### Terms

- MCP: Model Context Protocol. It is a standard for how AI models connect to outside tools and data.
- sandbox: An environment that runs a program while blocking its access to system resources such as files and the network.
- OpenAPI: A standard for describing an HTTP API’s paths, requests and responses in JSON or YAML. Tools can generate client code from an OpenAPI document.

## Launches the same day

- The Last Complication <https://lastcomplication.com/> (Show HN, 82): 시계 제작 퍼즐 게임. 톱니바퀴의 비율을 맞춰 시계를 조립한다.
- Coral <https://github.com/withcoral/coral> (Show HN, 50): 에이전트 게이트웨이. 에이전트가 성공한 작업을 도구로 저장해 다시 사용한다.
- OpenTodo <https://github.com/OpenTodoApp/OpenTodo> (Show HN, 20): 할 일 앱. Go 바이너리 하나로 직접 운영하고 오프라인에서도 쓴다.
- Rbit <https://rbit.sh/> (Show HN, 20): Git 저장소 호스팅 서버. Rust 로 작성했고 직접 설치해 운영한다.
- Minute <https://minutenotes.app/> (Show HN, 10): 회의록 앱. 맥에서 녹음, 받아쓰기, 요약을 오프라인으로 한다.
- Allo <https://github.com/joshpuckett/allo> (GitHub, 229): 서체. 무료 오픈소스로 배포한다.
- SuperBot <https://github.com/davidondrej/superbot> (GitHub, 204): 셀프호스팅 AI 봇. 역할이 다른 봇 여러 개가 서버 한 대에서 일한다.
- ForceDuoApp <https://github.com/34306/ForceDuoApp> (GitHub, 196): iOS 조정 도구. iPhone Duo 의 앱이 iPad 화면 대신 최신 SDK 화면을 쓰게 한다.
- Zoom Slides <https://www.producthunt.com/products/zoom> (Product Hunt, 235): 발표 자료 생성 도구. Zoom 회의 내용으로 슬라이드를 만든다.
- Boost.space AgentOS <https://www.producthunt.com/products/boost-space> (Product Hunt, 198): 에이전트 관리 도구. 여러 AI 에이전트를 한곳에서 운영한다.
- OpenBot <https://www.producthunt.com/products/copilotkit> (Product Hunt, 191): 셀프호스팅 AI 봇. Grok Bot 대신 직접 운영하고 고쳐 쓴다.

## Getting started

- Steps: ./coral-app-linux-x86_64.AppImage ; claude mcp add --scope user --transport http coral <워크스페이스의 MCP URL>
- Needs: macOS(Apple silicon), Windows(x64), Linux(x86_64) 데스크톱 앱., MCP 클라이언트(Claude Code, Codex 등)., 팀이 함께 사용하는 서버는 Docker Compose 나 Kubernetes 가 필요하다. OIDC 로그인 서비스와 TLS 를 처리하는 웹 서버도 필요하다.
- Cost: Apache 2.0, 무료. ee/ 디렉토리의 Enterprise Edition 코드에는 별도 라이선스가 적용된다. Enterprise 요금은 제작사에 문의해야 한다.
