This is a personal reference workflow for minimizing token usage while maintaining project continuity across Claude Code (Sonnet 4 with file access).
Claude loads CLAUDE.md automatically at session start.
| #!/usr/bin/env -S uv run --script | |
| # /// script | |
| # requires-python = ">=3.13" | |
| # dependencies = [ | |
| # "httpx>=0.28.1", | |
| # "python-decouple>=3.8", | |
| # "sh>=2.2.2", | |
| # ] | |
| # [tool.uv] |
| { | |
| "description": "Remap media keys for YouTube Music Desktop (ytmdesktop)", | |
| "manipulators": [ | |
| { | |
| "from": { "consumer_key_code": "play_or_pause" }, | |
| "to": [ | |
| { | |
| "key_code": "p", | |
| "modifiers": ["command", "option", "shift"] | |
| } |
| # Script: nvidia-error43-fixer.ps1 | |
| # Author: (C) 2018-2021 [email protected] (Converted to PowerShell by @pythoninthegrass) | |
| # Homepage: https://egpu.io/nvidia-error43-fixer | |
| param( | |
| [switch]$Force | |
| ) | |
| # Check if running as administrator | |
| function Test-Administrator { |
| [settings] | |
| disable_backends = ["dotnet"] | |
| idiomatic_version_file_enable_tools = [] | |
| [settings.pipx] | |
| uvx = true | |
| [settings.python] | |
| compile = true |
| # BookStack API Configuration | |
| BOOKSTACK_BASE_URL= | |
| BOOKSTACK_API_TOKEN= | |
| BOOKSTACK_TIMEOUT=30000 | |
| # Server Configuration | |
| SERVER_NAME=bookstack-mcp-server | |
| SERVER_VERSION=1.0.0 | |
| SERVER_PORT=3000 |
| config: | |
| core.https_address: '[::]:8443' | |
| networks: | |
| - config: | |
| ipv4.address: auto | |
| ipv6.address: auto | |
| description: "" | |
| name: lxdbr0 | |
| type: "" | |
| project: default |
| container_always_pull="1" | |
| container_generate_entry=0 | |
| container_manager="docker" | |
| container_image_default="registry.fedoraproject.org/fedora-toolbox:latest" | |
| container_name_default="distrobox-default" | |
| container_user_custom_home="$HOME/.config/distrobox/home" | |
| # container_init_hook="~/.local/distrobox/a_custom_default_init_hook.sh" | |
| # container_pre_init_hook="~/a_custom_default_pre_init_hook.sh" | |
| non_interactive="1" | |
| skip_workdir="0" |
| #!/usr/bin/env python | |
| import json | |
| import requests | |
| from pathlib import Path | |
| from requests.exceptions import RequestException | |
| from urllib.parse import urlencode | |
| def get_my_ip(): |
| #!/bin/bash | |
| #see https://github.com/ollama/ollama/issues/2006 for why this is needed | |
| set -e | |
| run_nethogs() { | |
| local pid="$1" | |
| nethogs -t -d 0 -P "$pid" | grep --line-buffered "ollama" | |
| } |