Skip to content

Instantly share code, notes, and snippets.

View zeke's full-sized avatar
🍓
@-message me directly if I'm slow to respond.

Zeke Sikelianos zeke

🍓
@-message me directly if I'm slow to respond.
View GitHub Profile
@zeke
zeke / opencode-reads-claude-md.md
Created January 13, 2026 18:05
OpenCode reads ~/.claude/CLAUDE.md (undocumented Claude Code compatibility)

OpenCode reads ~/.claude/CLAUDE.md (undocumented)

If you use both OpenCode and Claude Code, you may notice that OpenCode automatically picks up your ~/.claude/CLAUDE.md file.

This is intentional but undocumented behavior for Claude Code compatibility.

How it works

OpenCode loads instruction files from multiple locations:

@zeke
zeke / gist:9927445e67b28cd97a1afa916dbdd444
Created January 13, 2026 18:05
OpenCode reads ~/.claude/CLAUDE.md (undocumented Claude Code compatibility)
# OpenCode reads ~/.claude/CLAUDE.md (undocumented)
If you use both [OpenCode](https://opencode.ai) and [Claude Code](https://docs.anthropic.com/en/docs/claude-code), you may notice that OpenCode automatically picks up your `~/.claude/CLAUDE.md` file.
This is **intentional but undocumented** behavior for Claude Code compatibility.
## How it works
OpenCode loads instruction files from multiple locations:
@zeke
zeke / replicate-demo-apps.md
Created January 9, 2026 18:45
Comprehensive list of Replicate demo apps on GitHub

Replicate Demo Apps on GitHub

A comprehensive list of demo applications, interactive web apps, templates, and example projects from the Replicate organization on GitHub.


Interactive Web Apps & Demos

These are fully-functional web applications that showcase Replicate's capabilities.

@zeke
zeke / get_model_metadata.sh
Created June 16, 2025 18:36
A demo of the unneeded OpenAPI "paths" data formerly returned by Replicate's API for serialized model versions.
curl -s \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
https://api.replicate.com/v1/models/replicate/hello-world \
| jq .latest_version.openapi_schema.paths
# Clone llama.cpp
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
# Build it
LLAMA_METAL=1 make
# Download model
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin
wget "https://huggingface.co/TheBloke/Llama-2-13B-chat-GGML/resolve/main/${MODEL}"
title Hello, world!
authors evilstreak, zeke
intro We are saying hello to the world with this blog post.
published_at 2022-05-16

Markdown goes here. Post title will be an H1.

Something else

@zeke
zeke / cog-predictor-with-multiple-outputs.py
Created May 12, 2022 20:44
A contrived example of a Cog predictor that produces multiple outputs
# https://github.com/replicate/cog/blob/main/docs/python.md#output
from cog import BasePredictor, BaseModel, File
class Output(BaseModel):
image: File
coords: str
class Predictor(BasePredictor):
def predict(self, source_image: Path = Input(description="Image in which to detect objects")) -> Path:
~/git/arxiv/arxiv-browse develop*
arxiv-browse $ pyenv install 3.6.15
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Installing Python-3.6.15...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 11.5.2 using python-build 20180424)
baakha
baakhe
baakhi
baakho
baakhu
baekha
baekhe
baekhi
baekho
baekhu
# The predictions table is called models_prediction
# The users table is called users_user
# Select all predictions where the user id is equal to the user with username 'zeke'
SELECT * FROM models_prediction WHERE user_id = (SELECT id FROM users_user WHERE username = 'zeke');
# Count all predictions where the user id is equal to the user with username 'zeke'
SELECT COUNT(*) FROM models_prediction WHERE user_id = (SELECT id FROM users_user WHERE username = 'zeke');