The Problem: Lost Context in AI-Assisted Development
The rapid integration of AI coding assistants like Claude, Gemini, and others into daily development workflows presents a significant challenge: the erosion of context. Developers building complex software, from reading apps for dyslexic children to desktop maps and meditation tools, often find that the code itself tells only half the story. The real problem emerges months later, when revisiting a file and struggling to recall the rationale behind specific architectural decisions, the dead ends explored, or the uncertainties that shaped the implementation. This crucial 'why' behind the code evaporates the moment the editor is closed, leaving future selves (or colleagues) in the dark.
This isn't a problem with the code compiling or running; it's a problem of human memory and collaborative understanding. Traditional documentation methods often fall short. Docstrings explain what a function does, but not the journey taken to arrive at that solution. Version control commit messages can be terse, and the intricate details of experimentation and decision-making are easily lost. When AI contributes to this process, generating code snippets or even entire modules, the lack of explicit human intent behind those generated lines exacerbates the issue. The developer might have used a specific model, set particular parameters, or made a judgment call based on preliminary testing, but this information is rarely captured systematically.
The author, Kev, experienced this firsthand. After months of building various AI-assisted projects, he found himself staring at code with no recollection of the thought process. The code worked, but the journey to get there was a blank slate. This realization spurred the creation of a new approach to documenting code, one that focuses on capturing the human element and the AI collaboration.

Introducing MurphySig: A Comment-Based Changelog
To combat this pervasive loss of context, Kev developed MurphySig. It's not a standalone tool or a complex documentation generator; rather, it’s a convention, a specific type of code comment designed to embed crucial contextual information directly within the codebase. The core idea is to leave a 'note' attached to the code, much like a developer would leave a message for their future self.
A typical MurphySig comment includes several key pieces of information:
- Author/Signer: Who wrote or significantly modified the code.
- AI Collaborators: Which AI models were used (e.g., Claude, Gemini, specific versions) and their role.
- Date and Time: When the code was written or modified.
- Confidence Level: A subjective assessment of the generated code's reliability or suitability (e.g., 0.5 for a spike, 0.9 for production-ready).
- Status: The stage of development (e.g., 'spike', 'on-device run pending', 'compiles', 'production').
- Prior State: What the code was like before this change, if relevant.
- Reviewer: Who reviewed the code, including any AI reviewers, and their feedback or observations.
This structured comment acts as a mini-changelog for individual code blocks or files. It’s designed to be easily scanned and understood, providing immediate insight into the code's origin and development history. For instance, a comment might read:
// Signed: Kev + claude-sonnet-5, 2026-07-14, Confidence 0.5 (spike;
// compiles, on-device run pending), Prior: Unknown
// Review: claude-fable-5, 2026-07-14 — the on-device run HAPPENED same
// day: gemma-
This format allows a developer to quickly grasp that Kev, with the assistance of Claude Sonnet 5, implemented a speculative 'spike' version of this code on July 14, 2026. The confidence was moderate, indicating it compiled but hadn't been fully tested on-device yet. A subsequent review by Claude Fable 5 was also noted, suggesting an iterative process.
The Broader Implications for Software Development
MurphySig addresses a fundamental tension in modern software engineering: the increasing reliance on AI tools versus the enduring need for human accountability and understandable development history. As AI models become more sophisticated and integrated into IDEs, the line between human-written and AI-generated code blurs. Without a mechanism to track this collaboration, projects risk becoming opaque, making maintenance, debugging, and knowledge transfer significantly more difficult.
The 'soul' in the title refers to this intangible aspect of software development – the intent, the reasoning, the struggle, and the triumph that accompany the creation process. MurphySig aims to preserve this soul by embedding its echoes directly into the code. This approach is particularly valuable for projects involving experimental AI techniques, rapid prototyping, or complex integrations where the 'why' is as critical as the 'what'.
Consider the scenario of a security audit. If a vulnerability is discovered, being able to trace the exact AI models and human decisions that contributed to the affected code section could be invaluable for understanding the root cause and preventing recurrence. Similarly, for open-source projects or large collaborative efforts, this level of detail can foster greater trust and facilitate onboarding for new contributors.
The surprising detail here is not the simplicity of the solution – it's just comments – but its potential to address a profound, emerging problem in AI-assisted software development. By standardizing a way to document AI collaboration, MurphySig offers a path toward more maintainable, transparent, and understandable codebases in an increasingly AI-driven landscape.
What's Next for Contextual Code Documentation?
While MurphySig provides a compelling framework, several questions remain. How will IDEs and AI agents adapt to formally integrate and potentially automate the generation of these comments? Will standardized tooling emerge to parse and visualize MurphySig data, perhaps generating project-wide AI collaboration reports? The long-term impact will depend on adoption and the development of supporting ecosystems. For now, however, the principle is clear: the context behind our code, especially when AI is involved, is too valuable to lose.
