Skip to content

Instantly share code, notes, and snippets.

View stewartcelani's full-sized avatar
🙂

Stewart Celani stewartcelani

🙂
  • Adelaide, South Australia
View GitHub Profile
@stewartcelani
stewartcelani / .py
Created March 17, 2025 08:14 — forked from Madhav-MKNC/coding-agent.py
All the code you need to create a powerful agent that can create and edit any file on your computer using the new text_editor tool in the Anthropic API.
import anthropic
import os
import sys
from termcolor import colored
from dotenv import load_dotenv
class ClaudeAgent:
def __init__(self, api_key=None, model="claude-3-7-sonnet-20250219", max_tokens=4000):
"""Initialize the Claude agent with API key and model."""
@stewartcelani
stewartcelani / 0_reuse_code.js
Created August 24, 2016 00:36
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console