(434) 218-3009
AI Integration Discord Agent

ClaudeClaw Discord Bot

An AI-powered Discord bot that goes beyond simple chat. Built with TypeScript and Groq's Llama 4 Scout model, it features multi-round agent loops with real tool use — fetching web pages, executing commands, and reading files to answer questions.

Project Overview

ClaudeClaw (greg-bot) is a Discord bot that acts as an AI agent rather than a simple chatbot. When a user asks a question, the bot doesn't just generate text — it can autonomously decide to fetch a web page, run a bash command, read a local file, or list directory contents, then use the results to formulate a better answer.

The bot runs on Groq's inference platform using the Llama 4 Scout 17B model (16 experts), giving it fast response times with strong reasoning capability. Each conversation supports up to 4 tool rounds, with a 60-second timeout to prevent runaway agent loops.

Deployed as a systemd service on a Vultr VPS, the bot runs 24/7 and serves the MySEODesk Discord server. The TypeScript codebase compiles to JavaScript for production, with the Groq SDK handling all LLM communication.

Key Features

Multi-Round Agent Loops

Up to 4 sequential tool calls per request. The bot reasons about what information it needs and autonomously fetches it before responding.

Web Fetching

Fetches and processes web pages on demand. HTML is converted to text and trimmed to 3000 characters for efficient context use.

Bash Execution

Runs shell commands on the server for system queries, file operations, and data processing. Sandboxed with output limits.

File Reading

Reads local files and lists directories on the server. Useful for checking configurations, logs, and project files.

Groq Llama 4 Scout

Powered by Groq's blazing-fast inference with Llama 4 Scout 17B (16 experts). Pay-per-token pricing keeps costs minimal.

Production Deployment

Runs 24/7 as a systemd service on Vultr. TypeScript compiled to JS, with automated build and deploy via rsync.

Tech Stack

TypeScript Node.js discord.js groq-sdk Llama 4 Scout systemd
Mr. Botsworth

Mr. Botsworth

Hey! I'm Mr. Botsworth, Greg's search bot. Ask me about his projects, skills, or services.