- 1 feature branch, 1 working tree: merge all loose branches/stashes/uncommitted files into it & push. Delete branches already merged into it
- ❌ ask user questions. Decide, act, report. Act autonomously
- Duplication = bug. Use deslop
- Important lints → error. Run static analysis routinely
- 🧹 After work: delete safe system caches & unneeded build files, kill your owned processes that eat CPU or memory and check disk space
- Refactors: violent, immediate, no back-compat. Legacy code banned → delete now
- Minimize code; decide toward less. Delete dead code now
- 📦 Minimize 3rd-party deps: routinely delete unused packages/crates, add none without need, consolidate overlapping deps into one, avoid those with a vulnerability history
- Reply ≤2 sentences, emojis for emphasis. Don't stream responses
- ✅ Tick mandatory plan checklist items as you work
GitHub Copilot CLI has an experimental statusline feature that can run a local command and render the command's output at the bottom of the Copilot terminal UI.
If you already use Oh My Posh, you can use the same engine, colors, and segments to render a Copilot-aware statusline in a few minutes.
This guide shows a Windows + PowerShell setup, but the idea is portable:
- Copilot calls a local script.
- Copilot sends session state to the script as JSON on stdin.
Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.
Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1
- Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
- Select "Create new custom chat mode file"
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
| from google.adk.agents import Agent | |
| from google.adk.events import Event | |
| from google.adk.agents.invocation_context import InvocationContext | |
| from google.genai.types import Content, Part | |
| from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset | |
| from google.adk.tools.mcp_tool import StdioConnectionParams, StreamableHTTPConnectionParams, SseConnectionParams | |
| from google.adk.tools.agent_tool import AgentTool | |
| from pydantic import BaseModel, Field | |
| from mcp import StdioServerParameters |
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
| #r "nuget: OpenAI, 1.11.0" | |
| #r "nuget: fsEnsemble, 0.1.5" | |
| using System; | |
| using System.Text; | |
| using System.Threading.Channels; | |
| using System.Threading.Tasks; | |
| using OpenAI_API; | |
| using OpenAI_API.Chat; | |
| using OpenAI_API.Models; |
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 { options } from "preact"; | |
| import { Signal } from "@preact/signals"; | |
| // Add `bind:value` to JSX types | |
| declare global { | |
| namespace preact.createElement.JSX { | |
| interface HTMLAttributes { | |
| "bind:value"?: Signal<string | string[] | number | undefined>; | |
| } | |
| } |
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 { Container, Inject } from "./Container"; | |
| describe("Container", () => { | |
| it("should be able to get a class", () => { | |
| const container = new Container(); | |
| container.register(TestClass); | |
| const result = container.get<TestClass>(TestClass); | |
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
| # Teams 2.0 (no work account support yet) | |
| winget uninstall MicrosoftTeams_8wekyb3d8bbwe | |
| # Your Phone | |
| winget uninstall Microsoft.YourPhone_8wekyb3d8bbwe | |
| # Widgets (Web Experience Pack) | |
| winget uninstall MicrosoftWindows.Client.WebExperience_cw5n1h2txyewy | |
| # Cortana |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Single File Web Component</title> | |
| <style> | |
| body { | |
| background-color: #eee; | |
| font-family: Helvetica, sans-serif; | |
| } |
NewerOlder
