Skip to content

Instantly share code, notes, and snippets.

View mvandermeulen's full-sized avatar

Mark mvandermeulen

  • Fivenynes
  • Sydney, Australia
  • 23:49 (UTC +10:00)
View GitHub Profile
@mvandermeulen
mvandermeulen / grep.md
Created June 1, 2026 00:51 — forked from romainl/grep.md
Instant grep + quickfix

FOREWORDS

I don't mean the snippet at the bottom of this gist to be a generic plug-n-play solution to your search needs. It is very likely to not work for you or even break things, and it certainly is not as extensively tested and genericised as your regular third-party plugin.

My goal, here and in most of my posts, is to show how Vim's features can be leveraged to build your own high-level, low-maintenance, workflows without systematically jumping on the plugins bandwagon or twisting Vim's arm.


Instant grep + quickfix

AGENTS.md Best Practices for AI Coding Assistants: Comprehensive Guide

AGENTS.md has emerged as the de facto open standard for guiding AI coding assistants, now adopted by over 20,000 repositories and formalized in August 2025 through collaboration between OpenAI, Google, Cursor, Factory, and Sourcegraph. This file acts as a "README for machines"—providing structured, technical context that helps AI assistants write better code from the start. For Python + AWS + Terraform projects, a well-crafted AGENTS.md dramatically reduces friction, ensuring generated code follows your conventions, uses the right tools, and adheres to security requirements.

What is AGENTS.md and why it matters

AGENTS.md is a dedicated Markdown file that complements, not replaces, README.md. While README targets human developers with project overviews and quick-start guides, AGENTS.md contains detailed technical instructions specifically for AI coding agents. Think of it as onboarding documentation for an AI team member: ex

@mvandermeulen
mvandermeulen / claude_code_tools_cli.md
Created June 1, 2026 00:51 — forked from bgauryy/claude_code_tools_cli.md
Internal claude code tools implementaion

Claude Code Internal Tools - Technical Reference

Complete technical documentation of Claude Code's internal tools

This document provides comprehensive technical details about Claude Code's internal tools, including parameter schemas, implementation behaviors, and usage patterns.

Claude Sonnet 4.5

Technical Details:

@mvandermeulen
mvandermeulen / claude-code-tools.md
Created June 1, 2026 00:51 — forked from wong2/claude-code-tools.md
Tools and system prompt of Claude Code

Task

Launch a new agent that has access to the following tools: Bash, Glob, Grep, LS, exit_plan_mode, Read, Edit, MultiEdit, Write, NotebookRead, NotebookEdit, WebFetch, TodoRead, TodoWrite, WebSearch. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries, use the Agent tool to perform the search for you.

When to use the Agent tool:

  • If you are searching for a keyword like "config" or "logger", or for questions like "which file does X?", the Agent tool is strongly recommended

When NOT to use the Agent tool:

  • If you want to read a specific file path, use the Read or Glob tool instead of the Agent tool, to find the match more quickly
  • If you are searching for a specific class definition like "class Foo", use the Glob tool instead, to find the match more quickly
  • If you are searching for code within a specific file or set of 2-3 files, use the Read tool instead of the Agent tool, to find the match more quickly
@mvandermeulen
mvandermeulen / useful_tips.md
Created June 1, 2026 00:51 — forked from ggrrll/useful_tips.md
programming TIPS

Bash / Unix admin

https://www.cheatsheet.wtf/Nano/

  • useful prompt (when working in git repos):
# Show Git branch in the prompt
parse_git_branch() {
git branch 2>/dev/null | grep '*' | sed 's/* //'
@mvandermeulen
mvandermeulen / rgo.sh
Created June 1, 2026 00:51 — forked from cartok/rgo.sh
[cli] rgo - rip grep open
function rgo() {
local input="rg --column --line-number --no-heading --color=always --smart-case --"
: | fzf --ansi --disabled --query "${*:-}" \
--bind "start:reload:$input {q}" \
--bind "change:reload:sleep 0.1; $input {q} || true" \
--delimiter : \
--preview 'bat --color=always {1} --highlight-line {2}' \
--preview-window 'up,60%,border-bottom,+{2}+3/3,~3' \
--bind "enter:become($VISUAL {1})"
}
@mvandermeulen
mvandermeulen / claude_code_commands.sh
Created June 1, 2026 00:51 — forked from leonjang88/claude_code_commands.sh
Claude Code (cc) tmux session management commands for .bashrc
#!/bin/bash
# Claude Code (cc) Commands for .bashrc
# Quick tmux-based session management for Claude Code
# Context directories
_CC_HA="$HOME/pezbox/infra/homeAssistant"
_CC_HW="$HOME/pezbox/hiveworth"
_CC_RS="$HOME/pezbox/redfin-scraper"
# Resolve context name to directory
@mvandermeulen
mvandermeulen / .zshrc
Created June 1, 2026 00:51 — forked from daniellin-eero/.zshrc
fix lsp nvim
devup() {
git submodule update --init --recursive
local container_id=$(docker ps -aq --filter "label=devcontainer.local_folder=$(pwd)")
if [[ -z "$container_id" ]]; then
# No container exists, create it
devcontainer up --workspace-folder . --skip-post-create
container_id=$(docker ps -aq --filter "label=devcontainer.local_folder=$(pwd)")
elif [[ -z $(docker ps -q --filter "id=$container_id") ]]; then
@mvandermeulen
mvandermeulen / notify.py
Created June 1, 2026 00:51 — forked from kosumic/notify.py
# Codex `notify.py` with `ntfy` (topic: codex-example)
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.13"
# dependencies = []
# ///
import argparse
import base64
import json
import os
import select
@mvandermeulen
mvandermeulen / statusline-command.sh
Created June 1, 2026 00:51 — forked from otkrickey/statusline-command.sh
Claude Code StatusLine script — tmux session | Model | Context usage bar
#!/bin/bash
# Claude Code StatusLine for Swarm CTL
# Displays: tmux_session | Model | Context usage bar
set -euo pipefail
# Read JSON input from stdin
input=$(cat)
# Extract values using jq