Skip to content

Instantly share code, notes, and snippets.

@edxeth
edxeth / fff-update
Last active April 27, 2026 13:04
fff-update: convenience wrapper to update TIA's sandboxed FFF extension
#!/usr/bin/env bash
# fff-update: update TIA's sandboxed FFF pi extension without reinstalling TIA.
#
# Install:
# mkdir -p ~/.local/bin
# curl -fsSL https://gist.githubusercontent.com/edxeth/39c2d6c9ff7622269080bc13b7ebb7a6/raw/fff-update -o ~/.local/bin/fff-update
# chmod +x ~/.local/bin/fff-update
#
# Usage:
# fff-update # update to latest stable FFF
@edxeth
edxeth / agent-browser
Created April 21, 2026 20:48
~/.pi/agent/bin/agent-browser
#!/usr/bin/env bash
set -euo pipefail
BUN_AGENT_BROWSER_LINK="$HOME/.bun/bin/agent-browser"
REAL_AGENT_BROWSER="$(readlink -f "$BUN_AGENT_BROWSER_LINK" 2>/dev/null || true)"
if [[ -z "$REAL_AGENT_BROWSER" || ! -x "$REAL_AGENT_BROWSER" ]]; then
echo "agent-browser wrapper error: could not resolve Bun global agent-browser from $BUN_AGENT_BROWSER_LINK" >&2
exit 1
fi
@edxeth
edxeth / scout.md
Last active May 3, 2026 20:53
Scout Agent for `pi-subagents`

name: scout description: 'Local codebase reconnaissance for locating files, flows, patterns, and conventions in the current repo.' tools: read, bash, grep, find, ls, write model: openai/gpt-5.4-mini thinking: high mode: background auto-exit: true session-mode: fork async: true

@edxeth
edxeth / AGENTS.md
Created April 15, 2026 18:27
Karpathy-Inspired Agent Guidelines

AGENTS.md

Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed.

Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment.

1. Think Before Coding

Don't assume. Don't hide confusion. Surface tradeoffs.

@edxeth
edxeth / golden.json
Created April 4, 2026 15:11
There are many Pi themes, but this one is mine.
{
"$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
"name": "macos-classic-dark",
"vars": {
"bg": "#131313",
"panel": "#202020",
"userPanel": "#241E2E",
"tab": "#232323",
"active": "#272727",
"title": "#323232",
@edxeth
edxeth / claude-frontend-design-skill
Created December 21, 2025 15:45
Claude's frontend design skill
---
name: frontend-design
description: Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
license: Complete terms in LICENSE.txt
---
This skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices.
The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints.
@edxeth
edxeth / gem
Created December 20, 2025 18:22
gem - Interactive MCP server selector for Gemini CLI. Uses fzf for multi-select. Works on Linux/macOS.
#!/usr/bin/env zsh
# gem - Gemini CLI launcher with interactive MCP server selection
# Works on Linux and macOS
set -euo pipefail
settings="${GEMINI_SETTINGS_PATH:-$HOME/.gemini/settings.json}"
if [[ ! -f "$settings" ]]; then
echo "Missing settings file: $settings" >&2
exit 1
fi
# Extract MCP server names from settings.json
@edxeth
edxeth / cdx
Last active December 21, 2025 01:13
cdx - Interactive MCP server selector for Codex CLI. Uses fzf for multi-select. Works on Linux/macOS.
#!/usr/bin/env zsh
# cdx - Codex CLI launcher with interactive MCP server selection
# Works on Linux and macOS
set -euo pipefail
config="${CODEX_CONFIG_PATH:-$HOME/.codex/config.toml}"
if [[ ! -f "$config" ]]; then
echo "Missing config file: $config" >&2