CRAFT™️ Experiment: Rethinking A.I. Data Types (1 of 5): Recap of Last Week

THE CRAFT™️ EXPERIMENT :: WEEK 3 :: POST 1

A Recap of Last Week’s Work: A Detailed Exploration of the CRAFT Framework's Comment System

The CRAFT framework (Configurable Reusable AI Framework Technology) introduces a sophisticated comment system that revolutionizes human-AI communication by applying programming principles to conversational AI. Here's a comprehensive explanation of this innovative approach and its benefits.

Each Craft Project currently contains 3 text files which are uploaded to the chat before it begins:

1. CFT-PROJ-0001_AI-CHAT-HISTORY-v25a1.txt

  • Defines the purpose of the “AI chat history” file: maintaining session-to-session continuity.

  • Outlines a HANDOFF_SNAPSHOT format (with fields like SESSION_SUMMARY, STATE, DECISIONS, QUESTIONS, NEXT_STEPS) and length guidelines for each section.

  • Includes revised end-of-session prompt templates to automatically generate those snapshots at 500–750 words.

2. CFT-PROJ-0001_BUILDINGCRAFT-v25a1.txt

  • Serves as the active “working code” file for this project’s CRAFT implementation.

  • Lays out the core sections you’ll load at the start of each chat:

    1. PROJECT_META – IDs and versioning

    2. PROJECT_VARIABLES – constants/configuration

    3. PROJECT_FUNCTIONS – reusable operations

    4. PROJECT_OBJECTS – class and object templates

    5. PROJECT_INSTRUCTIONS – global rules and execution guidelines

3. CFT-FWK-SPEC-v25a1.txt

  • The overarching CRAFT Framework Specification (Configurable Reusable AI Framework Technology).

  • Details naming conventions and the role of each project file.

  • (Placeholder sections for VARIABLES, FUNCTIONS, etc., to be defined as the framework evolves.)

Summary

  • You have a three-file structure: a spec (“how things should look”), a build file (“the code we load”), and a history file (“what we’ve done so far”).

  • Each file is versioned and timestamped (05-04-2025 v25a1).

  • Together, they set up a standardized, repeatable process for carrying project context between AI chat sessions.


The CRAFT Comment System: Transforming AI Communication

A Detailed Exploration of the CRAFT Framework's Comment System

The CRAFT framework (Configurable Reusable AI Framework Technology) introduces a sophisticated comment system that revolutionizes human-AI communication by applying programming principles to conversational AI. Here's a comprehensive explanation of this innovative approach and its benefits.

Core Concept: Comments as Communication Channels

Unlike traditional programming where comments are ignored by compilers, CRAFT repurposes comments as active communication channels. In the CRAFT system, comments serve as structured prompts that both humans and AI can interpret consistently.

Content Block System

A key feature of CRAFT is its content block system that clearly delineates different types of content:

### START REGULAR TEXT BLOCK ### Everything in between these comment blocks is regular text and should be read by the A.I. the same way that any normal text file would be read. It will include things like prompts, information, instructions and more ### END REGULAR TEXT BLOCK ### ### START PYTHON CODE BLOCK ### # Everything in between these comment blocks is Python ### END PYTHON CODE BLOCK ### ### START HTML BLOCK ### <!-- Everything in between these comment blocks is HTML --> ### END HTML BLOCK ###

This systematic approach offers several advantages:

  • Allows direct copying and pasting of HTML and Python from chats into CRAFT text documents

  • Eliminates ambiguity about how content should be interpreted

  • Creates clear boundaries between instructional text and executable code

  • Maintains proper syntax highlighting and formatting for each content type

The Dual-Direction Communication Flow

CRAFT establishes two primary comment flows:

  • Human to AI (#H->AI::) - Commands, instructions, and context from the user

  • AI to Human (#AI->H::) - Recommendations, observations, and questions from the AI

This bidirectional system creates a clear protocol for interaction, reducing ambiguity and improving communication efficiency.

Comment Types and Their Benefits

The CRAFT comment system includes various specialized prefixes that serve different communication needs:

Human to AI Comments

  • #H->AI::Directive: Clear commands and explicit instructions

  • #H->AI::Context: Background information and situational constraints

  • #H->AI::Constraint: Specific limitations and boundaries

  • #H->AI::Focus: Areas requiring special attention

  • #H->AI::Consider: Implicit guidance for AI reasoning

  • #H->AI::Structure: Output formatting requirements

  • #H->AI::CreateImage: Image creation requests

  • #H->AI::Placeholder: Marks spots for future changes

AI to Human Comments

  • #AI->H::Note: General observations

  • #AI->H::Caution: Potential issues or concerns

  • #AI->H::RecommendedChange: Suggested modifications

  • #AI->H::RequestingFeedback: Questions about implementation

  • #AI->H::Question: Direct inquiries needing clarification

Benefits of the CRAFT Comment System

  1. Structural Clarity: Comments separate different types of communication, making complex prompts more navigable and organized.

  2. Context Preservation: The system maintains important contextual information across multiple sessions through the handoff mechanism.

  3. Token Efficiency: Standardized comment formats reduce redundancy and token usage, making AI interactions more economical.

  4. Consistent Interpretation: Fixed syntax ensures comments are interpreted the same way across different AI models and sessions.

  5. Functional Integration: Comments can be embedded within functions, allowing for function-specific instructions that remain isolated from other parts of the framework.

  6. Error Handling: Specialized comments like #H->AI::OnError provide clear contingency plans for when things don't work as expected.

  7. Modularity: Different comment types serve distinct purposes, creating a modular system that can be expanded as needed.

  8. Cognitive Efficiency: The structured approach reduces cognitive load by standardizing how instructions are communicated.

  9. Multi-language Support: The block system accommodates different languages (Python, HTML) while maintaining proper syntax and structure.

Practical Applications

The CRAFT comment system excels in scenarios requiring:

  • Complex, multi-session projects where context needs to be maintained

  • Workflows requiring consistent outputs across different AI models

  • Projects benefiting from reusable components and structured collaboration

  • Cross-language development involving both code and natural language instructions

Implementation Example

def create_photo(data):

#H->AI::CreateImage: (Create a photographic image using the data provided)

#H->AI::OnError: (If image creation fails, respond with "Sorry, I cannot make images.")

# Additional implementation details would follow here

This example demonstrates how comments integrate naturally with code while providing explicit instructions to the AI about expected behavior and error handling.

Looking Forward

The CRAFT comment system establishes a foundation for more sophisticated AI-human collaboration. As the framework evolves, we can expect the comment system to expand with additional specialized types, addressing new communication challenges and use cases.

By borrowing concepts from programming language design and applying them to natural language interaction, CRAFT creates a hybrid approach that leverages the strengths of both paradigms—the precision of programming and the accessibility of conversation.


Previous
Previous

CRAFT™️ Experiment: ChatGPT 04-mini-high: Rethinking A.I. Data Types (2 of 5)

Next
Next

The TXT File: ChatGPT o3: Testing the new CRAFT™️ Experiment Comment System