agentleFS
gustavoeenriquezgustavoeenriquez/MakerAi/Demos-V3_1/CLAUDE.md

MakerAi / Demos-V3_1

CLAUDE.md212 starsChanged 2 months agoMITView on GitHub

This is the Demos directory for the MakerAI 3.x framework. Contains 18+ working example applications demonstrating AI integration patterns for Delphi developers. Each demo has its own CLAUDE.md with specific implementation details. IDE: Delphi 11 Alexandria through 13 Florence (demos require Delphi 11+; the core framework supports 10.4 Sydney minimum) Group project: Open DemosVersion31.groupproj in Delphi IDE to access all demos. Individual build (MSBuild): Build all demos: Output: Each project compiles to ./$(Platform)/$(Config)/ (e.g., ./Win64/Release/) Each demo subdirectory contains: -…

The file

Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Overview

This is the Demos directory for the MakerAI 3.x framework. Contains 18+ working example applications demonstrating AI integration patterns for Delphi developers. Each demo has its own CLAUDE.md with specific implementation details.

Building Demos

IDE: Delphi 11 Alexandria through 13 Florence (demos require Delphi 11+; the core framework supports 10.4 Sydney minimum)

Group project: Open DemosVersion31.groupproj in Delphi IDE to access all demos.

Individual build (MSBuild):

msbuild 010-Minimalchat/MinimalChat.dproj /p:Config=Release /p:Platform=Win64

Build all demos:

msbuild DemosVersion31.groupproj /t:Build /p:Config=Release /p:Platform=Win64

Output: Each project compiles to ./$(Platform)/$(Config)/ (e.g., ./Win64/Release/)

Demo Categories

Chat Integration (01x)

DemoPurposeKey Pattern
010-MinimalchatBasic FMX chatTAiOllamaChat direct + TAiChatConnection factory
012-ChatAllFunctionsFull-featured chatMultimodal (images, audio), streaming, tool calls
014-ChatTestClaude-specific testingClaude API integration

RAG Systems (02x)

DemoPurposeKey Classes
021-RAG+Postgres-UpdateDBVector RAG with PostgreSQLTAiVectorRAG, pgvector
022-1-RAG_SQLiteVector RAG with SQLiteLightweight local storage
023-RAGVQLVector Query LanguageVQL semantic search syntax
025-RAGGraphKnowledge graph RAGTAiGraphRAG, entity relationships
026-RAGGraph-BasicBasic graph RAGSimplified graph patterns

MCP Servers (03x)

DemoPurposeTransport
031-MCPServerMulti-protocol serverSSE, HTTP, StdIO
032-MCP_StdIO_FileManagerFile manager MCPStdIO, HTTP, SSE variants
032-MCPServerDataSnapDataSnap integrationHTTP with DataSnap
035-MCPServerWithTAiFunctionsMCP + function callingTAiFunctions integration
036-MCPServerStdIO_AiFunctionFunction-based MCPStdIO with AI functions

Video Generation (04x)

DemoPurposeProvider
041-GeminiVeoVideo generationGoogle Veo API

Agent Orchestration (05x)

DemoPurposeKey Pattern
051-AgentDemoAgent graph workflowsTAIAgentManager, visual orchestration
052-AgentConsoleConsole agent interfaceCommand-line agent execution
053-DemoAgentesToolsAgents with toolsTool integration in agent flows

Utilities (09x)

DemoPurpose
090-Varios/ListAllModelsList available models across providers
090-Varios/CompareEmbeddingsCompare embedding quality

Common Runtime Dependencies

  • Ollama: Required for local models (default: localhost:11434)
  • API Keys: OpenAI, Claude, Gemini keys in environment or config
  • PostgreSQL + pgvector: For 021-RAG demos
  • SQLite: For 022-RAG demos (included with Delphi)

Navigation Pattern

Each demo subdirectory contains:

  • *.dproj - Delphi project file
  • *.dpr - Program source
  • uMain*.pas / uMain*.fmx - Main form
  • CLAUDE.md - Demo-specific instructions

Common Code Patterns Across Demos

Synchronous AI call:

AiModel.Asynchronous := False;
Response := AiModel.AddMessageAndRun(Prompt, 'user', []);

Streaming with callback:

AiModel.Asynchronous := True;
AiModel.OnReceiveData := procedure(Sender: TObject; Data: string; IsDone: Boolean)
begin
  TThread.Synchronize(nil, procedure begin Memo1.Text := Memo1.Text + Data; end);
end;
AiModel.AddMessageAndRun(Prompt, 'user', []);

Error handling:

AiModel.OnError := procedure(Sender: TObject; ErrorMsg: string; E: Exception; Resp: IHTTPResponse)
begin
  ShowMessage(ErrorMsg);
end;

Navigation

See ../CLAUDE.md for project overview, build instructions, and architecture details.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.