Skip to content

Instantly share code, notes, and snippets.

View Thomas-TyTech's full-sized avatar

Thomas Faulds Thomas-TyTech

View GitHub Profile
@Thomas-TyTech
Thomas-TyTech / simple-agent.py
Created July 31, 2025 17:57
Simple Coding Agent - 125 lines of code
import os
from anthropic import Anthropic
def handle_text_editor(tool_call):
"""Handle text editor commands for Claude"""
params = tool_call.input
command = params.get('command')
path = params.get('path')
try: