
How I Built an Autonomous AI Agent with Claude Code
Originally published at kjetilfuras.com Most people use AI as a chatbot. I turned it into a 24/7 autonomous agent that pulls analytics, drafts content, publishes to social media, and learns from every session — all running on my Mac while I sleep. Here is how I built it, and how you can too. The Problem I run two products: Notipo (a SaaS that syncs Notion to WordPress) and Build & Automate (a Skool community for builders). Marketing both while working a full-time consulting job meant content was always the thing that slipped. I needed a system that could handle the repetitive parts of marketing autonomously — pulling analytics, drafting posts, publishing content — while keeping me in control of what actually goes live. The Architecture The system has four components: The Daemon — Claude Code running inside a tmux session, connected to Discord. This is the brain. It stays alive 24/7 and auto-restarts if it crashes. The Autonomous Loop — A bash script that runs every 30 minutes via macOS
Continue reading on Dev.to Tutorial
Opens in a new tab


