Skip to content

Instantly share code, notes, and snippets.

View steipete's full-sized avatar
🤖
beep boop

Peter Steinberger steipete

🤖
beep boop
View GitHub Profile
@steipete
steipete / agent.md
Created October 14, 2025 14:41
Agent rules for git
  • Delete unused or obsolete files when your changes make them irrelevant (refactors, feature removals, etc.), and revert files only when the change is yours or explicitly requested. If a git operation leaves you unsure about other agents' in-flight work, stop and coordinate instead of deleting.
  • Before attempting to delete a file to resolve a local type/lint failure, stop and ask the user. Other agents are often editing adjacent files; deleting their work to silence an error is never acceptable without explicit approval.
  • NEVER edit .env or any environment variable files—only the user may change them.
  • Coordinate with other agents before removing their in-progress edits—don't revert or delete work you didn't author unless everyone agrees.
  • Moving/renaming and restoring files is allowed.
  • ABSOLUTELY NEVER run destructive git operations (e.g., git reset --hard, rm, git checkout/git restore to an older commit) unless the user gives an explicit, written instruction in this conversation. Treat t
@steipete
steipete / swagent-spec.md
Last active October 10, 2025 06:33
Working Promot for AI Agent Workshop at Swift Connnection 2025

build swagent swift cli and test it yourself until it works. use this development key for testing with openai API:


1) Docs — the exact contract (Responses API, tools, streaming, chaining)

Endpoints

  • Create/continue a response: POST https://api.openai.com/v1/responses

Perfect—let’s make the whole guide Swift‑native and wire it to gpt-5-codex as the default model. This version shows the Responses API tool‑calling loop, built‑in tools (web search), custom tools, structured outputs (text.format), and streaming.

Why gpt-5-codex? It’s a GPT‑5 variant optimized for agentic coding and is Responses‑only—built to drive coding agents (think Codex/CLI/IDE workflows). ([OpenAI][1]) Structured outputs + function/tool calling + previous_response_id are the core building blocks in Responses. ([OpenAI Platform][2]) Prompting tips for this model differ slightly from plain GPT‑5; the cookbook notes it’s Responses‑only and has a few behavior differences. ([OpenAI Cookbook][3])


TL;DR setup

@steipete
steipete / tauri_traffic_light_positioner_plugin.rs
Created September 1, 2025 20:18 — forked from charrondev/tauri_traffic_light_positioner_plugin.rs
This code describes a mechanism to adjust traffic light positioning on MacOS with Tauri 2.x
use objc::{msg_send, sel, sel_impl};
use rand::{distributions::Alphanumeric, Rng};
use tauri::{
plugin::{Builder, TauriPlugin},
Manager, Runtime, Window,
}; // 0.8
const WINDOW_CONTROL_PAD_X: f64 = 15.0;
const WINDOW_CONTROL_PAD_Y: f64 = 23.0;
export const GET = apiHandlers.withAdminAuth(async (request) => {
const url = new URL(request.url);
const sampleCount = Math.min(Number(url.searchParams.get('samples')) || 20, 100);
const includeQueries = url.searchParams.get('queries')?.split(',') || Object.keys(standardTestQueries);
// Create instances for both drivers
const postgresDb = createKyselyWithDriver('postgres');
const neonDb = createKyselyWithDriver('neon');
try {
#!/usr/bin/env bun
"use strict";
const fs = require("fs");
const { execSync } = require("child_process");
const path = require("path");
// ANSI color constants
const c = {
cy: '\033[36m', // cyan

Claude Fans Threw a Funeral for Anthropic's Retired AI Model

By Kylie Robison
Business | August 5, 2025

Roughly 200 people gathered in San Francisco on Saturday to mourn the loss of Claude 3 Sonnet, an older AI model that Anthropic recently killed.


On July 21 at 9 am PT, Anthropic retired Claude 3 Sonnet, a lightweight model known for being quick and cost-effective. On Saturday, in a large warehouse in San Francisco's SOMA district, more than 200 people gathered to mourn its passing.

@steipete
steipete / opencode.json
Last active October 6, 2025 16:01
How to configure opencode with Cerebras Qwen 3 Coder 480B (it's so fast!)
{
"$schema": "https://opencode.ai/config.json",
"model": "cerebras/qwen-3-coder-480b",
"provider": {
"cerebras": {
"api": "https://api.cerebras.ai/v1",
"npm": "@ai-sdk/openai-compatible",
"name": "Cerebras",
"env": [],
"options": {
<summary><strong>🤖 Detailed Setup Guide for AI Agents</strong></summary>
## Complete Setup Instructions for Self-Hosting Qwen3-Coder-480B
This guide provides step-by-step instructions for AI agents to set up Qwen3-Coder-480B on Vast.ai with maximum context window.
### Prerequisites
- Vast.ai account with billing configured
- SSH client installed
- 2-3 hours for initial setup
@steipete
steipete / claude.md
Created July 3, 2025 12:27
VibeTunnel Terminal Title Management

VibeTunnel Terminal Title Management

When working in VibeTunnel sessions, actively use the vt title command to communicate your current actions and progress:

Usage

vt title "Current action - project context"

Guidelines