Introducing RPACT Code

Friedrich Pahlke
Daniel Sabanés Bové
Anoop Rawat
Deniz Aydoğdu

November 25, 2026

Introducing the RPACT Code engineers

Anoop Rawat
Product Innovation Lead at RPACT

  • Leads prototyping of new products and AI applications
  • Previously at Cytel (5+ years): trial design simulation algorithms and product prototypes
  • Earlier: RCT design and analysis at J-PAL; data science at Mu Sigma

Deniz Aydoğdu
AI Engineering Intern at RPACT

  • Builds and maintains the RPACT Code AI assistant
  • Pursuing MSc in Bioinformatics, interested in AI applications in healthcare and genomics
  • Background in Statistics and Biology, bridging quantitative methods with life sciences

Why RPACT Code?

  • Trial design typically involves writing code (rpact) or using a graphical interface (RPACT Cloud)
  • RPACT Code brings a conversational interface to trial design, allowing users to interact with the software in a more natural and intuitive way
  • It uses rpact for statistical calculations and ggplot2 for plotting
  • RPACT Code aims to be the purpose built, high quality and (in the end) validated, AI assistant for trial design

Why not just use Claude or ChatGPT?

General AI assistants RPACT Code

Calculations Codes them from scratch, often in Python Calls the rpact package

Results Usually not reproducible [@DoblerEtAl2025] Reproducible rpact code and output

Context General knowledge only rpact docs, validation, tests, and book

Workflows Generic, built for single users Trial design, shared with clinicians and other stakeholders

Access Agents like Claude Code run in IDEs (VS Code, Positron) Conversational interface, no IDE needed

Unique context for RPACT Code

We provide our agent with unique and internal context specific to RPACT Code, including:

  • rpact vignette sources
  • rpact function and parameter documentation
  • rpact validation documentation, incl. functional specification and formulas
  • rpact test code
  • rpact source code
  • The accompanying book sources [@wassmer2025]
  • Optionally, company-specific documents such as statistical sections in protocol templates, standard operating procedures, and internal guidelines

Building our own agent = LLM + harness

From deepgains.substack.com/p/people-who-are-serious-about-ai-should

Statisticians in the loop and in the lead

LLMs still hallucinate sometimes, and errors will occur even with the best context.

We are therefore keeping statisticians in the loop and in the lead:

  • An automatic review button runs an initial agent review of the results.
  • Statistician review button then allows manual review and approval of the agent’s results

This can be customized to the company needs, e.g., send email to distribution list, create an issue on a task board, etc.

Internal deployment as secure option

Like RPACT Cloud, we plan to offer RPACT Code as an internally deployable solution, ensuring that sensitive data and proprietary information remain secure within the company’s infrastructure.

  • Bring your own LLM: e.g., models from OpenAI or Anthropic, in your own VPC (Virtual Private Cloud) such as AWS Bedrock, ensuring that the language model runs within your secure infrastructure.
  • Open source models: open-weight LLMs can also be plugged in, e.g., hosted on your own servers, so that no data leaves your infrastructure.
  • On-premise computing: deploying RPACT Code on local servers within the company’s infrastructure, ensuring full control over data and computational resources.
  • Docker containers: packaging RPACT Code and its dependencies (e.g., database for storing conversations) into Docker containers could be one possible technical solution.

Status of our alpha version

Our prototype for RPACT Code is in alpha stage, meaning it is functional but still under active development and testing.

  • We want to show it very early to you today to gather feedback on the idea, and potential features you would like to see in the next beta version
  • Lots of things are not yet available but are on the roadmap already (e.g., data analysis, MCP server, connection with RPACT Cloud)

Next steps

  • Please book a separate demo session with us if you would like to see more
  • You can also get free demo version access to try it out yourself, please contact us for the access details
  • We are very curious about your feedback:
    • What is surprising to you?
    • What would you like to use it for next?
    • Do you have some “crazy” ideas or use cases in mind?

People collaborating

References