What it is
This is a pattern for a personal AI helper that lives in a private Discord server. You message the bot as you would a friend. A small relay script passes the message to Claude running without a screen, which reads and updates a folder of Markdown files as its memory, then posts the reply back to Discord. Scheduled jobs send check-ins at set times. Three versions run today: a fitness and nutrition coach used daily, a business-partner bot, and an accountability coach that works through a ticket list.
How it works
- Send the bot a message in Discord, such as a workout, a meal photo or a question.
- The relay hands it to Claude along with that bot's instructions.
- Claude reads and updates its memory files and replies.
- The files are saved to version history after every exchange.
- Morning, evening and weekly check-ins arrive on a schedule.
- For the fitness coach, a small web dashboard shows and edits the same files.
What exists today
- A relay script of about 140 lines with session handling
- Coach instructions tuned for three model sizes
- A Markdown memory folder, saved automatically after each exchange
- Scheduled check-ins and process management that restarts the bot if it stops
- A web dashboard with pages for today, program, logs, weight, nutrition and consistency, including shorthand parsing for workout sets
- No open network ports; the bot only makes outgoing connections
What isn't there yet
- Not packaged as a template; each copy is wired to its own prompts and file layout
- No setup guide for someone starting fresh
- Needs a Discord bot and a Claude login, so there is no public demo
- The dashboard exists only for the fitness coach
Under the hood
- Python with the discord.py library for the bot
- Claude Code in headless mode does the thinking and file edits
- Cron for schedules, pm2 to keep processes running, git for history
- A small Python web app for the dashboard