Skip to content

celtric/java-ai-annotations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Annotations

A set of Java annotations for marking AI-assisted code.

Use Cases

  • Setting expectations – Signal to other developers that code may require closer review or may follow different patterns than hand-written code.
  • Legal and compliance – Help organizations track AI-generated code for licensing, intellectual property, or regulatory compliance assessments.
  • Model versioning – Identify code generated by older AI models that may benefit from revision with newer, more capable models.
  • Quality tracking – Correlate defect rates or maintenance burden with AI-generated vs. human-written code.
  • Auditing – Provide traceability for codebases where AI usage must be documented or disclosed.
  • Code review prioritization – Flag AI-generated sections for additional human scrutiny before deployment.

Annotations

Annotation Description
@AIGenerated Code that was fully generated by AI
@AIAssisted Code written with AI assistance
@AIRefactored Code that was refactored by AI
@AIReviewed Code that was reviewed by AI
@AISuggested Code based on AI suggestions
@HumanVerified AI-generated code that has been verified by a human

Usage

@AIGenerated(model = "GPT-4", date = "2025-12-11")
public class Example {
    // ...
}

Status

⚠️ Draft – This project is not published yet. It is intended for discussion purposes only.

License

This project is released into the public domain under The Unlicense. See LICENSE for details.

About

Draft to navigate the option of marking AI-generated code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages