Agentic FHIR IG Authoring (Demo)
0.1.0 - ci-build International flag

Agentic FHIR IG Authoring (Demo), published by HL7 Switzerland. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/hl7ch/agentic-ig/ and changes regularly. See the Directory of published versions

How This Guide Was Developed

This page records how the first version of this guide was developed: the model, the token usage and the prompts. It is meant as a data point for others who plan similar work.

Model and tools

Item Value
Agent Claude Code (command line)
Model Claude Fable 5.2, model id claude-fable-5-2
Date 18 November 2026
Sessions One, on a single machine
Build tools SUSHI 3.21.0, IG Publisher 3.0.4 in the hl7fhir/ig-publisher-base container
Skills used None from the catalogue; the agent worked from the tools' own output
Connectors used Web search and page fetch for the research, GitHub command line for publishing

Token usage

The figures are summed from the session transcript that Claude Code keeps locally. They cover the 31 model calls from the first prompt up to the start of the fifth prompt, which asked for this page.

Kind Tokens
Input, not cached 74
Input, written to the prompt cache 101,021
Input, read from the prompt cache 3,222,481
Output 38,792
Total 3,362,368

How to read the figures:

  • Almost all input is cache reads. An agent session sends the whole conversation again with every model call, and the prompt cache makes the repeated part cheap. The amount of new content the model read is close to the cache-write figure, about 100,000 tokens.
  • The output figure covers everything the model wrote: the FSH, the pages, the shell commands and its replies.
  • The transcript does not record the tokens that the web search and page fetch tools spent on summarising pages with a smaller model, so those are not included.
  • The work for this page and its publication is not included.

Prompts

The session had five prompts from the IG editor. They are copied as typed.

Prompt 1

can your create a demo FHIR Implementaton Guide focused on maintaining / developing a FHIR IG with agents? You need to do research what current skills/agents are availble and list them in the ig and proivde a guidance how to use them. Verify with FSH and IG Publiser that it has no errors.

Result: the research, all pages, the profiles and terminology, the agent set-up files, and a build without errors.

Prompt 2

can you change the canonical to ahdis.ch/... and publish it in our repo and add the hl7 ci-build?

Result: the agent asked which canonical, repository and publisher to use. The editor dismissed the question and answered with prompt 3.

Prompt 3

lets us hl7.ch instead of ahdis.ch

Result: the canonical and package id were changed and the sources committed locally. The agent then asked for confirmation before creating a public repository.

Prompt 4

yes hl7ch is right, public is fine, make it HL7 Switzerland

Result: the publisher was set, the repository created and pushed, the webhook for the HL7 ci-build added, and the build on build.fhir.org confirmed.

Prompt 5

thx can you add the token count and model you used for this first development with a copy of the prompts?

Result: this page.

Observations

  • One prompt produced the guide. The following prompts dealt with naming and publishing, which are decisions the agent could not take alone.
  • The agent needed three full IG Publisher runs for the first version. The first failed on a mistake in the agent's own build script, the second reported one error and 90 warnings, and the third reported no errors.
  • The agent stopped twice to ask before acting: once on the choice of canonical and repository, and once before creating a public repository.

First agent runs after the first version

The figures above cover the first version only. The later work, such as the issue and pull request workflows on the contributing page, was done in the same way and is not counted here.

The first issue that the workflow handled gives a comparison of two models on the same task. The issue asked how the concepts of HL7 AI Transparency on FHIR could be taken over. It was implemented once by the workflow with Claude Sonnet 5.5 and once in a local rerun with Claude Opus 5.5, from the same commit, with the same prompt, skill and tools.

  Sonnet 5.5 Opus 5.5
Pages of the HL7 guide read 2 9
Other checks none package registry, code lookups on a terminology server
Lines added to the page 17 39
Total tokens 557,926 1,381,910

Both runs changed only a narrative page and left the modelling decisions to the editor. The Opus run found that labelling is the required part of the HL7 guide, compared the HL7 provenance profile and named a conflict with this guide; the Sonnet run did not read those pages. This is one run per model, so part of the difference may be chance. The workflow now uses Opus 5.5.