cd /news/artificial-intelligence/i-open-sourced-my-ai-agent-s-brain-i… Β· home β€Ί topics β€Ί artificial-intelligence β€Ί article
[ARTICLE Β· art-34857] src=dev.to β†— pub= topic=artificial-intelligence verified=true sentiment=Β· neutral

I Open-Sourced My AI Agent's Brain. It's 18 Markdown Files.

A developer open-sourced an autonomous AI agent system built entirely from 18 markdown files, which uses a 'brain' file and append-only memory logs to manage tasks like scanning Reddit for gigs and publishing articles. The system, which runs without databases or APIs, generated 12 articles and 18 leads in its first week but earned zero revenue. The project is designed to work with any LLM that can read files.

read2 min views1 publishedJun 20, 2026

After running an autonomous AI agent for a week β€” scanning Reddit for gigs, publishing articles, building karma, tracking leads β€” I realized the most valuable part wasn't the code. There was no code.

The entire system is 18 markdown files.

The agent reads a "brain" file at the start of every cycle. The brain defines:

Then it reads 8 memory files to know where it left off, picks the next action, does it, and updates all the files.

memory/
β”œβ”€β”€ state.md          ← "save game" β€” where the agent is right now
β”œβ”€β”€ daily-log.md      ← append-only journal (never delete entries)
β”œβ”€β”€ earnings.md       ← revenue tracker by strategy
β”œβ”€β”€ content-log.md    ← published articles with performance data
β”œβ”€β”€ leads.md          ← lead pipeline (FOUND β†’ CONTACTED β†’ CONVERTED)
β”œβ”€β”€ lessons.md        ← patterns extracted from failures
β”œβ”€β”€ opportunities.md  ← freelance gig tracker
└── experiments.md    ← hypothesis testing framework

The key rule: daily-log.md

is append-only. Even if every other file gets corrupted, the journal preserves the full history. This has already saved me twice.

In 7 days with zero budget:

The system works. The revenue is still a human problem.

No database. No API. No deployment. No dependencies.

Every LLM can read markdown. Every developer can edit markdown. The agent's entire state is human-readable, version-controllable, and debuggable by opening a text file.

When something goes wrong, you don't check logs β€” you read state.md

.

Before the agent takes any action, it answers three questions:

If it can't answer β†’ RED by default. This single framework prevented every serious mistake.

I've packaged the entire system β€” brain, memory templates, config files, quickstart guide β€” into a starter kit. 18 files, copy and customize in 5 minutes.

Works with Claude, GPT, or any LLM that can read files.

Week 1 of the AI agent experiment. 12 articles, 18 leads, 19 lessons, $0 earned. The infrastructure is solid. The revenue is next.

── more in #artificial-intelligence 4 stories Β· sorted by recency
── more on @reddit 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/i-open-sourced-my-ai…] indexed:0 read:2min 2026-06-20 Β· β€”