ArXiv TLDR

Applying SHAPR in AI-Assisted Research Software Development: Lessons Learnt from Building a Share Trading System

🐦 Tweet
2604.15020

Ka Ching Chan

cs.SEcs.HC

TLDR

This paper applies the SHAPR framework to AI-assisted software development, showing how structured practices maintain continuity and clarity.

Key contributions

  • Contracts stabilized AI-assisted coding, improving reliability and predictability.
  • A maintained source-of-truth layer improved project coherence and traceability.
  • Cycle-boundary snapshots strengthened continuity and project understanding.
  • Code and documentation co-evolved through quick capture and iterative refinement.

Why it matters

This paper offers practical guidance for researchers using AI in software development, addressing challenges like continuity and traceability. It demonstrates how structured practices like SHAPR can maintain project clarity and knowledge, improving development outcomes.

Original Abstract

Generative AI is changing how research software is developed, but rapid AI-assisted development can weaken continuity, traceability, and methodological clarity. SHAPR (Solo, Human-centred, AI-assisted PRactice) was proposed as a framework for structuring AI-assisted research software development. This paper presents a documented case of applying SHAPR to the development of a modular share trading system. From the outset, the project adopted a SHAPR-informed working configuration that shaped how interaction, implementation, and documentation were organised. Across iterative development cycles, the project generated a structured evidence base including reflection notes, development cycle review notes, source-of-truth documents, contracts, quick captures, workflow notes, and evolving code artefacts. The case showed that continuous documentation updates, supported by quick capture and AI-assisted refinement, helped maintain organised and usable project knowledge throughout development. Five recurring lessons were identified: contracts stabilised AI-assisted coding, a maintained source-of-truth layer improved coherence, cycle-boundary snapshots strengthened continuity, code and documentation co-evolved through quick capture and iterative refinement, and environment setup itself contributed to knowledge generation. The case also illustrates a practical SHAPR operating configuration in which a ChatGPT Project and cycle-specific chats supported interaction, reasoning, summarisation, and coding collaboration, PyCharm supported artefact implementation, and Obsidian supported external working memory, structured documentation, reflection, continuity, and repository-oriented note organisation, while remaining consistent with SHAPR's tool-agnostic principle. The paper contributes practical guidance and good practices for researchers conducting AI-assisted research software development.

📬 Weekly AI Paper Digest

Get the top 10 AI/ML arXiv papers from the week — summarized, scored, and delivered to your inbox every Monday.