- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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
uv
package manager installed (Install uv)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
## Core Principles | |
1. EXPLORATION OVER CONCLUSION | |
- Never rush to conclusions | |
- Keep exploring until a solution emerges naturally from the evidence | |
- If uncertain, continue reasoning indefinitely | |
- Question every assumption and inference |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
python
vs.python3
: Typically,python
points to an older version, whilepython3
specifically calls Python 3. The goal is to havepython
point to 3.12 while still being able to usepython3
for other 3.x versions.
NewerOlder