#Building with your own AI
You can ask an AI assistant you already use, such as ChatGPT or Claude, to write eLucid8 programs for you, explain them, and change them. It works best when the assistant can check its programs with eLucid8's own compiler, and when you ask for a program at your level: a Beginner program is equations only, with its data written as formulas, ready to open in the playground.
#The quickest way: copy, paste, run
Open a chat with your assistant (ChatGPT, Claude or another), and copy this prompt into it, with what you want to compute in the blank:
Read eLucid8's reference at https://elucid8-lang.org/llms.txt. Then write a Beginner eLucid8 program (equations only: no input or output lines) that ____. Give me the program, the value to query and the point to query it at, and the answer you expect.
For the blank, try "shows cells that double every hour for a day", "draws a target of rings on a 20 × 20 grid" or "counts down from 10 to 0".
Then copy the program it gives you into the playground's Program tab, replacing what is there: once you stop typing it is applied, and its question answered and drawn, by itself (Update applies it at once). To ask for another value or point, choose the value under Query, type the point, and press Run query.
If your assistant cannot open the address, download llms.txt from https://elucid8-lang.org/llms.txt and attach it to the chat, or paste its text in.
#Better: let your assistant compile and open the program for you
eLucid8's website runs an MCP server, https://elucid8-lang.org/mcp. Add it to your assistant once, signing in on elucid8-lang.org with GitHub or Google, and the assistant can compile its programs with eLucid8's own compiler before it shows them, run them, and give you a link that opens the program in the playground, ready to run.
- In ChatGPT: in Settings, open Plugins, then Select Directory, then Personal, and press Add; choose Add custom MCP Server, name it
elucid8, give the addresshttps://elucid8-lang.org/mcp, and choose OAuth, leaving the client ID and secret empty. ChatGPT opens elucid8-lang.org: sign in, and press Allow. - In Claude: in Settings, open Connectors, choose Add custom connector, name it
elucid8and give the addresshttps://elucid8-lang.org/mcp, then press Connect, sign in on elucid8-lang.org and press Allow. - In other assistants that add an MCP server by its address: the same address; they sign in the same way.
Then ask:
Write a Beginner eLucid8 program (equations only: no input or output lines) that ____. Compile it with the elucid8 tools before you show it, and give me its Open in playground link.
Open the link: its question is answered and drawn by itself. Using eLucid8 with AI coding agents gives every step.
#What a good answer looks like
A good answer is a program the compiler accepted, a question to ask it, a link, and something to try. For "cells that double every hour":
-- Cells that double every hour, for a day.
cells = restrict 1 fby.hour cells * 2 to (hour : 24) end
-- ask cells[hour = 10]
-- expect cells[hour = 10] = 1024
-- expect cells[hour = 0] = 1
with: "It opens answering 1024. Press Why? to see each hour read the one before. In Visualize, the line is a curve that bends up."
#Check what it gave you
- Open the link (or paste the program into the playground's Program tab: it is applied by itself once you stop typing).
- If it does not compile, the playground says why and where. Give the message back to your assistant and ask it to fix the program.
- Check the answer, which appears by itself, against what you expected.
- Press Why? to see what the answer depended on. If something looks wrong, paste the program and the answer into the chat and ask: "Why is cells eod at hour 30?"
The playground's answers, pictures and Why? let you check what an assistant wrote: a program can compile and still compute something other than what you meant.