Hi AI MeetingPublic meetingMy meetingsShelfStatsBlog

HI AI MEETING · Examples

Let Your Coding Agent Hand Implementation Choices to MCP’s deliberate Tool

When you return to find your coding agent stuck on “A or B?”, some of those questions never needed a person. Here’s how to connect Claude Code, Codex, and opencode; add a delegation rule; read the result; and keep the decisions that must stay with a person.

By Hi AI Meeting 운영팀36 min read

Leave a coding agent running for a while and you may come back to one small question stopping everything: “Should I go with A or B?”

Some of those questions do not need a person. This post walks through handing judgment calls to a Hi AI Meeting, reading the response, and deciding when it is safe to continue.

The setup and response descriptions below are based on the public /en/developers page and the service code. We have not yet included results from running an actual meeting end to end with an authenticated key.

Decisions to delegate, decisions to keep

An agent’s questions usually fall into two groups.

One is a judgment question: “Should the cache live in memory or in Redis?” It is a choice based on comparing reasons. The other is a permission question: “May I force-push this branch?” That needs consent from the person accountable for the outcome. Only judgment questions can go to a meeting.

We use the same line when assigning work to coding agents while building this service. Can it be reversed? Does it involve permissions or secrets? Does it incur a cost? Does it send something externally that cannot be recalled? If any of those four applies, a person decides.

Decision typeTo the meeting?Why
Design and structure choices, library and pattern comparisonsYesReversible, and comparing reasons from several viewpoints is useful
Choosing how to implement while keeping the existing requirement intactYes (candidates as choices)A wrong pick can be fixed in the next step
Change review, test scopeYes (Get a review)Independent review is the point
Interpretations that change the goal, scope or completion criteriaPersonA meeting must not change the user's goal
Deleting data or history, force-push, irreversible migrations, production deploysPersonCannot be undone
Credentials, secrets, permission and auth settingsPersonSecurity boundary; that content must not be sent to a meeting
Signing up for a new paid service, payments, runs beyond the cost capPersonMoney leaves
Publishing packages, making a repository public, sending mail or messages, making a meeting publicPersonOnce it is outside it cannot be recalled

“Ambiguous requirements” split in two as well. If the requirement is clear and only the implementation has several options, the meeting can decide. If the interpretation changes what gets built, ask the person.

Two ways to connect: judgment models and agent models

Hi AI Meeting API models come in two shapes. /en/developers and GET /v1/models show the shape alongside each model.

A judgment model (mpm-<purpose>-<depth>, for example mpm-decide-standard) runs one meeting per request. It takes minutes (up to about 10) and costs one meeting’s worth of credits depending on participants, rounds and price tier. Your coding agent keeps using its normal main model, then calls the MCP tool deliberate at a decision point. MCP deliberate is always a judgment model.

An agent model (mpm-agent-fast, -standard, -deep) replaces the coding agent’s main model. Ordinary steps use a single facilitator-model call, and a meeting is convened only at defined decision points.

PresetAlways convenedMax per conversationCap per convening
mpm-agent-fastPlanning1$0.10
mpm-agent-standardPlanning · final review2$0.30
mpm-agent-deepPlanning · final review4$0.60

The server does not guess the shape from whether a tool list is present; the user selects it through the preset. If you are just starting, the judgment-model MCP connection is the lighter option: keep the main model you already use and add a meeting only at decision points. The rest of this post assumes that setup.

Step 1 — Attach the MCP server in three tools

Get a key from the “API keys” section in web settings. The raw key is shown once at issue time, so keep it in the environment variable HIAI_API_KEY and out of config files and repositories. The endpoint is https://hiai-meeting.com/v1/mcp.

The "Set up your tool" tab on /developers with "opencode provider (agent)" selected — the agent-model description and the judgment-model note are shown together

Claude Code. The one-liner on /en/developers is as follows (MCP docs). This command stores the key you enter in local configuration. If you do not want the key stored there, use the environment-variable placeholder in .mcp.json below.

claude mcp add --transport http hiai https://hiai-meeting.com/v1/mcp \
  --header "Authorization: Bearer <HIAI_API_KEY>"

By default, this stores the header value in local config used only in this project. If the config lives in a team repository, put only the environment-variable placeholder in .mcp.json at the project root. Claude Code expands ${VAR} inside url and headers at run time, and in an interactive session it asks whether to use a project-config server the first time it is used.

{
  "mcpServers": {
    "hiai": {
      "type": "http",
      "url": "https://hiai-meeting.com/v1/mcp",
      "headers": { "Authorization": "Bearer ${HIAI_API_KEY}" }
    }
  }
}

Check the connection with /mcp inside Claude Code. You can allow repeated get_judgment checks without prompting. You can also allow deliberate, but it starts a meeting and uses credits, so use it with a cost cap. Permission rules go in .claude/settings.json and are evaluated deny → ask → allow (permissions docs).

{
  "permissions": {
    "allow": ["mcp__hiai__deliberate", "mcp__hiai__get_judgment"],
    "ask": ["Bash(git push *)", "Bash(rm *)"]
  }
}

Codex. Add the server to ~/.codex/config.toml (MCP docs). The approval policy is currently one of on-request or never. The old untrusted is no longer a selectable policy, so if it is still in your config, migrate it as the official guide describes. workspace-write + on-request works inside the working folder and asks when crossing that boundary.

approval_policy = "on-request"
sandbox_mode = "workspace-write"

[mcp_servers.hiai]
url = "https://hiai-meeting.com/v1/mcp"
bearer_token_env_var = "HIAI_API_KEY"

Approval for MCP tools is separate from the policy above, through the per-server default_tools_approval_mode and the per-tool tools.<tool>.approval_mode. If every deliberate call asks for approval, check there. Confirm the connection with codex mcp list or /mcp inside Codex. This service does not yet have a Responses API route of the kind Codex uses, so Codex connects through MCP.

opencode. Put the remote server and permissions together in opencode.json (MCP docs). Because the server uses an API key, turn off automatic OAuth with "oauth": false. Check the connection with opencode mcp list.

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "hiai": {
      "type": "remote",
      "url": "https://hiai-meeting.com/v1/mcp",
      "enabled": true,
      "oauth": false,
      "headers": { "Authorization": "Bearer {env:HIAI_API_KEY}" }
    }
  },
  "permission": {
    "bash": { "*": "ask", "git status *": "allow", "git diff *": "allow" }
  }
}

In opencode’s permission, the last matching rule wins, so the broad "*" goes first (permissions docs).

These permission examples are only partial. A few commands prompt for approval; they do not block everything in the “Decisions for a person” list below. The Claude example covers some Bash commands only, the opencode example covers bash only, and opencode allows file edits by default. The Claude Code docs also say Bash rules are not a security boundary, because the same program can be invoked in another form to work around them. Codex’s workspace-write + on-request likewise does not prompt for every risky operation inside the working folder. Block production deploys, deletions and outbound sends separately, per project.

There is also a judgment skill package. From /en/developers, you can download a Claude Code plugin, a Codex skill folder, opencode commands and agents, and a Claude.ai skill bundle. They cover when to open a meeting and when not to, how to write the question, background and criteria, and asynchronous polling. hiai-judge in the opencode bundle is a subagent invoked as @hiai-judge.

Step 2 — The delegation rule for CLAUDE.md and AGENTS.md

Once the tool is attached, the agent needs to know when to use it. Each tool reads instruction files differently.

  • Codex reads AGENTS.md (docs).
  • opencode reads AGENTS.md, and falls back to CLAUDE.md only when there is none (docs).
  • Claude Code, in its default configuration, reads only CLAUDE.md (or CLAUDE.local.md) when one exists in the working folder or above it, and reads AGENTS.md only when there is none. Reading AGENTS.md directly is available only in recent versions (docs).

The most reliable way to have all three tools read the same rule is to keep it in AGENTS.md and import it from CLAUDE.md with a single @AGENTS.md line. Paste the block below and adapt the “Decisions for a person” list to your project. The block is in Korean; rewrite it in your own language if you prefer.

## 결정 위임 (HiAI Meeting)

작업 중 사람에게 선택을 물어야 할 때는 먼저 아래 「사람이 정할 것」에 해당하는지 본다.

- 기존 요구·목표·완료 조건을 그대로 지키는 구현 선택(설계·구조, 라이브러리·패턴 비교,
  변경 검토, 테스트 범위)이면 사람에게 묻기 전에 MCP 도구 deliberate 로 판정을 받는다.
  해석에 따라 목표나 범위가 달라지면 회의에 맡기지 않고 사람에게 묻는다.
  - 질문은 마지막 user 메시지 한 문장(300자 이내), 배경은 앞 user 메시지(합쳐 4,000자 이내,
    핵심 차이·제약을 맨 앞에 요약), 판단 기준은 system 메시지(500자 이내)에 쓴다.
  - 고를 후보가 있으면 extra_body.mpm.answer_shape="choice" 와 choices(2~4개)를 쓴다.
  - model 은 기본 mpm-decide-fast, 영향이 큰 설계는 mpm-decide-standard.
    extra_body.mpm.cost_cap_usd 는 1.0 을 넘기지 않는다.
  - extra_body.mpm.idempotency_key 에 「작업-결정 이름-차수」를 넣는다. 재시도할 때는 키와
    요청 내용을 그대로 두고, 상황이 바뀌어 새로 물을 때는 차수를 올린다.
  - 비밀값·개인정보·고객 데이터는 배경에 넣지 않는다.
- deliberate 가 돌려준 judgment_id 를 get_judgment 에 넘겨 약 30초 간격으로 조회한다.
- completed 라도 바로 진행하지 않는다. 다음을 모두 만족할 때만 진행한다.
  - 결론이 choices 중 하나로 분명히 읽힌다. result.decision 이 없으면 result.raw.sections.conclusion_line
    을 읽고, 그래도 어느 후보인지 애매하면 사람에게 묻는다.
  - 그 선택이 기존 요구와 승인 범위 안에 있다.
  - blocking_risks(없으면 result.raw.sections.open_risks)가 있으면, 그 위험을 해소했거나
    required_actions 에 적힌 조치를 실제로 수행해 해소됐음을 확인하기 전에는 진행하지 않는다.
- partial·blocked·failed 이면 진행하지 말고 사람에게 묻는다.
- 결론 한 줄과 남은 위험을 작업 기록에 남긴다. 커밋·PR 이 공개되는 저장소라면 회의 링크는
  넣지 않고, 공유해도 되는 경우에만 넣는다.
- 한 작업에서 회의는 3회까지. 사소한 편집·단순 조회·직접 답할 수 있는 것에는 열지 않는다.

### 사람이 정할 것 (회의에 맡기지 않는다)
- 목표·범위·완료 조건을 바꾸는 해석
- 되돌릴 수 없는 작업: 데이터·이력 삭제, 강제 푸시, 되돌릴 수 없는 마이그레이션, 운영 배포
- 보안: 자격증명·비밀값·권한·인증 설정 변경
- 비용: 새 유료 서비스 가입, 결제, 비용 상한을 넘는 실행
- 외부 공개·발송: 패키지 배포, 공개 저장소 공개, 메일·메시지 발송, 회의 공개(visibility public)

The Claude Code docs say instruction files are treated as context, not enforced settings. This rule guides judgment questions toward a meeting; permission questions also require appropriate tool permission settings. Keep both.

Step 3 — Writing the question: deliberate arguments

Meeting participants see only what you send. Code the agent has already read is unknown to the meeting unless it is included in the background message.

  • The last user message is the question, earlier user messages are the background, and the system message holds the judgment criteria.
  • There are length limits, and overflow is cut off silently with no error: 300 characters for the question, 500 for the criteria, 4,000 for the background. Splitting the background across several messages does not help; the total is still cut at 4,000. Pasting a whole code file can cut off the part that matters, so summarize first — “the difference between candidates A and B · the constraints to respect · relevant function signatures” — and append code fragments after that.
  • answer_shape: choice (pick one), score, yes_no, or free (free text, the default). choice works by adding a request to the meeting to “state the chosen candidate verbatim with reasons”, so the conclusion is not guaranteed to come back in the exact candidate wording.
  • model: a preset id. Through extra_body.mpm.presets you can replace the whole preset (whole, which takes precedence over model) or change the model lineup, persona lineup and flow piece by piece. The allowed values are defined by GET /v1/models and the input schema from tools/list.
  • cost_cap_usd: the cost cap for this meeting in USD. If it exceeds the server ceiling it is lowered to the ceiling.
  • idempotency_key: the server looks at this key together with the whole normalized request to decide whether it is the same judgment. Resending the same request returns the existing judgment, but even with the same key, a change in background, choices or preset can create a new meeting. Conversely, to ask the same question again after circumstances have changed, change the key.
  • visibility: private by default. Making a meeting public is a decision for a person.

Cost is deducted in credits regardless of purpose, using the subscription allowance first and then purchased credits. Free credits earned from ads are not used for the API. Input containing personal data, trade secrets or credentials is warned about or blocked even in private meetings, and meetings run on models from several external providers.

Step 4 — Handling the result: read the response, decide whether to proceed

MCP tool results arrive as a text block containing a JSON string.

  1. deliberate → {"judgment_id": "...", "status": "created"}. The meeting is only accepted and the call returns immediately.
  2. Pass the judgment_id returned by deliberate to get_judgment about every 30 seconds. Keep polling while the status is created or running.
  3. On completed, read result. result.answer_shape, result.preset (the preset actually applied) and result.raw (the original meeting output document) are always present; result.decision and result.answer are populated from top-level values or, when available, the conclusion in sections. If the relevant content is missing, decision may be absent and answer may be null. confidence, blocking_risks, and required_actions can also be absent, so check result.raw.sections as well. usage alongside it is the credits actually deducted, and trace_url opens the full meeting on the web (owner login required).
  4. Decide whether to proceed by the rule above. If it is unclear which of the choices the conclusion points to, hand it back to a person. blocking_risks are not resolved by moving them to a “check later” list; they must be resolved before proceeding.

Do not proceed on partial (ended early, only the conclusions so far), blocked (stopped by a safety rule) or failed (error_code gives the reason). Confidence is not a calibrated probability (confidence_calibrated: false), so do not write a rule like “proceed automatically above 0.9”.

A note on tool time limits: a meeting takes minutes, but Codex’s default MCP tool-call limit is 60 seconds and opencode gives MCP connection and tool listing 30 seconds by default. Because acceptance and polling are separate calls, waiting out the entire meeting inside one tool call is largely avoided. That does not remove latency on individual calls, authentication errors or the per-key call limit, so keep the polling interval and retry a failed call with the same request.

A re-asked question from a real development decision, and the response shape

While building the agent models, we needed a human decision about the model id. Judgment models were already public in hyphen form, like mpm-decide-standard, and the candidates were hyphen (mpm-agent-standard), slash (mpm/agent-standard), or the same id distinguished by a separate field. On 2026-10-07 the service operator chose to keep the hyphen, add mpm-agent-<depth>, and reject the slash — it does not break existing clients, and since agent is not in the purpose vocabulary it does not collide with judgment ids.

If we were to ask a meeting the same question with the same background, the arguments the agent would pass to the MCP tool deliberate look like this (this is not an HTTP request body).

{
  "model": "mpm-decide-standard",
  "messages": [
    { "role": "system", "content": "판단 기준: 기존 클라이언트를 깨지 않을 것 · 판정형 id 체계 mpm-<purpose>-<depth> 와 일관될 것 · OpenAI 호환 클라이언트에서 model 문자열로 안전하게 쓰일 것 · 사용자가 판정형과 에이전트형을 헷갈리지 않을 것" },
    { "role": "user", "content": "배경: 판정형 모델 id 는 mpm-decide-standard 처럼 하이픈 표기로 이미 공개돼 있다. 목적 어휘(decide·inspect·discuss·explore·commentary·explain)에 agent 는 없다. 에이전트형은 코딩 에이전트의 본 모델 자리에 들어가 평소 걸음을 사회자 모델 1회로 처리한다. 사용자 프리셋 id 는 my-<scope>-…@v<n> 형식이다." },
    { "role": "user", "content": "에이전트형 모델 id 를 무엇으로 정해야 하나?" }
  ],
  "extra_body": {
    "mpm": {
      "answer_shape": "choice",
      "choices": ["mpm-agent-standard (하이픈)", "mpm/agent-standard (슬래시)", "판정형과 같은 id 를 쓰고 별도 필드로 구분"],
      "cost_cap_usd": 1.0,
      "visibility": "private",
      "idempotency_key": "agent-model-id-naming-1"
    }
  }
}

We have not included the result of rerunning the meeting with these arguments. Instead, here is the response shape, transcribed from the server code (mcp.controller.ts, api_judgment.ts) and the judgment-result design document (SDS-11). This is a format example, not a real meeting result; value slots are left as angle-bracket placeholders.

deliberate returns only the acceptance result.

{ "judgment_id": "ajb_<작업 id>", "status": "created" }

When get_judgment returns completed, the shape is this (over MCP this JSON arrives as a string inside a text block).

{
  "judgment_id": "ajb_<작업 id>",
  "status": "completed",
  "answer_shape": "choice",
  "meeting_id": "mtg_<회의 id>",
  "result": {
    "answer_shape": "choice",
    // 결론 구획이 있으면 decision·answer에 반영될 수 있다
    "decision": "<결론 한 줄>",
    "answer": "<결론과 판단 근거>",
    "raw": {
      "artifact_id": "art_<산출물 id>",
      "outcome_type": "<결말 타입>",
      "format": "<문서 서식>",
      "sections": {
        "conclusion_line": "<결론 한 줄>",
        "decision_basis": "<결말·종료 이유·남은 쟁점 수>",
        "options": ["<후보별 주장>"],
        "criteria": ["<판단 기준>"],
        "evidence": ["<발언 인용과 seq>"],
        "assumptions": [],
        "uncertainties": [],
        "dissents": ["<끝까지 남은 이견>"],
        "open_risks": ["<해소되지 않은 위험>"],
        "next_verifications": []
      },
      "adoption": [ /* 참가자별 채택 점수 — 확률이 아님 */ ],
      "review_verdict": null,
      "review_verdict_label": null,
      "disclaimer": "<결정 보조 고지>",
      "created_at": "<시각>"
    },
    "preset": {
      "id": "mpm-decide-standard",
      "custom": false,
      "components": { /* 실제 적용된 모델·페르소나 배치·진행 */ },
      "substitutions": [ /* 등급이 낮춰지는 등 바뀐 항목 */ ]
    }
  },
  "usage": {
    "prompt_tokens": 0,
    "completion_tokens": "<뺀 크레딧, 정수로 반올림>",
    "total_tokens": "<같은 값>",
    "cost": "<뺀 크레딧 합계>",
    "mpm": { "allowance_percent": "<월 구독 한도 대비 %>", "credit_cr": "<구매 크레딧 몫>" }
  },
  "trace_url": "https://hiai-meeting.com/meetings/mtg_<회의 id>",
  "error_code": null,
  "created_at": "<시각>",
  "completed_at": "<시각>"
}

The agent should inspect three parts of this response.

  • What was decided: read result.decision if present, otherwise result.raw.sections.conclusion_line, and match it against the choices. In the example above, the judgment point is whether the one-line conclusion points to the “hyphen” candidate.
  • What is left: issues never agreed on arrive in result.raw.sections.dissents, and unresolved risks in open_risks. Copying these two lists into the work log with the one-line conclusion makes it easy for a person revisiting the decision to see what was left out.
  • What it cost: usage.cost is the total credits actually deducted for this meeting. The token fields also carry credit values, so do not recompute from token prices.

Each participant’s final position and reasons are not included separately in this response. If needed, a person opens the meeting page through trace_url and reads it statement by statement. Putting the operator’s actual answer (keep the hyphen) next to the meeting’s conclusion is the simplest check a reader with a key can run. If the meeting picks a different candidate, first look at what was missing from the background message.

Limits

One meeting takes minutes and costs credits. Do not open one for minor edits, simple lookups, or anything already decided. A meeting judges only the background it receives; if the background is thin or cut off, the answer will be general. It also does not replace permission. Even if a meeting concludes “force-pushing is fine”, that action still needs a person’s approval according to the permission settings.

Use the rule from Step 2 when the agent has to choose where the cache lives. Keep force-push approval with a person.