- For complex tasks, I never ask for code first. My initial prompt is to create a plan "Create a detailed implementation plan for [FEATURE, BUG]".
- Create multiple hierarchical GEMINI md files defining roles, helpful code snippets, and a strict rule: "You cannot edit this file."
- Collaboration >> YOLO. I don't use a "YOLO mode" and rather intercept and re-prompt.
- Use MCP servers to access bugs, issues, browsers, Github (& internal tools), or run code in sandboxes.
- Leverage the 1M Context. Instruct it to read a lot of files into context or use “@” primitives.
- Code → Test → Commit. I force it to write tests or execute code snippets and have it fix it in a loop.
Gemini CLI comes with a free usage for Gemini 2.5 Pro. Give it a try and let us know what you think.
| #uv add browser-use | |
| #playwright install-dep | |
| #playwright install-deps | |
| #playwright install | |
| import asyncio | |
| from dotenv import load_dotenv | |
| from langchain_openai import ChatOpenAI | |
| from browser_use.browser.browser import Browser, BrowserConfig | |
| from browser_use import Agent |
A complete step-by-step guide to create a local MCP (Model Context Protocol) server from scratch.
- Python 3.12 or higher
uvpackage manager installed (Install uv)
| #!/bin/bash | |
| # Set errexit to exit immediately if a command exits with a non-zero status | |
| set -e | |
| # Print a message indicating the start of the script | |
| echo "Starting Rust installation script..." | |
| # Download and execute the rustup installer | |
| echo "Downloading and executing rustup installer..." |
A from-scratch walkthrough of what happens between typing a prompt and getting a response — no ML background assumed.
Every large language model — GPT-4, Claude, Gemini, Llama — is built on the same core idea. This guide follows that idea in the exact order data actually flows through a real model: text in, tokens, vectors, 80 stacked layers, and a word out — then loops back to explain how the model got trained in the first place. Read it top to bottom; each section is built to need only what came before it.
| import asyncio | |
| import base64 | |
| import json | |
| import os | |
| import pyaudio | |
| from websockets.asyncio.client import connect | |
| class SimpleGeminiVoice: | |
| def __init__(self): |
File: gemini_thinking_deep.py
from google import genai
import os
os.environ['GEMINI_API_KEY'] = '<KEY>'
client = genai.Client(
api_key=os.environ['GEMINI_API_KEY'],
http_options={This gist demonstrates how to create a custom context provider for the Continue.dev VS Code extension using a FastAPI server. This allows you to integrate external data sources or custom logic into the Continue.dev context.
The provided code consists of two files:
server.py: A Python file that sets up a FastAPI server with a single endpoint/check. This endpoint receives data in the form of a JSON object, and returns a JSON response with content and description.requirements.txt: A text file that lists the Python dependencies required to run the FastAPI server.
This guide explains how to set Python 3.12 as the default Python version on macOS Sequoia 15.2, so that typing python in the terminal runs Python 3.12. It also covers keeping the ability to call any Python 3.x version using python3.
- macOS System Python: macOS has a system Python installation at
/usr/bin/python, used by the OS and should not be modified. - Multiple Python Versions: You likely have multiple Python versions installed, possibly via Homebrew.
pythonvs.python3: Typically,pythonpoints to an older version, whilepython3specifically calls Python 3. The goal is to havepythonpoint to 3.12 while still being able to usepython3for other 3.x versions.