Skip to content

Instantly share code, notes, and snippets.

View vinhnx's full-sized avatar

Vinh Nguyen vinhnx

View GitHub Profile
@vinhnx
vinhnx / vtcode-system-prompt.md
Last active November 25, 2026 05:20
VT Code system prompt, Auto mode (Default profile), exported from source with assembly order and review notes

VT Code System Prompt :: Auto mode (Default profile)

Exported from source for transparency. Static core is byte-for-byte from the repo; dynamic layers are documented with their assembly order.

  • Repo: https://github.com/vinhnx/VTCode
  • License: Apache-2.0 (Copyright 2025 Vinh Nguyen) + MIT — see LICENSE, LICENSE-MIT
  • Export date (UTC): 2026-11-25
  • Workspace version at export: vtcode-core v0.185.2
  • Sources:
    • crates/codegen/vtcode-core/src/prompts/static_prompts.rs (build_static_prompt, agent_identity_label)
    • crates/codegen/vtcode-core/src/prompts/runtime_guidance.rs (RUNTIME_GUIDANCE_SECTION)
@vinhnx
vinhnx / README.md
Last active November 3, 2026 08:52
Helix config + Vitesse theme, snapshot. Actively maintained at github.com/vinhnx/helix-config and github.com/vinhnx/vitesse-helix

helix-config + vitesse-helix (snapshot)

Single-file snapshot of my Helix setup. Actively maintained in two repos:

Repo What
vinhnx/helix-config the Helix config (VS Code keybindings, fixes for common porting pitfalls)
vinhnx/vitesse-helix Vitesse theme for Helix, with a generated color palette

Files here

@vinhnx
vinhnx / config
Last active March 11, 2026 09:18
My Ghostty config (save as '~/Library/Application Support/com.mitchellh.ghostty/config')
# Ghostty 1.3.0
# Tuned for a macOS 26.3.1 Apple M4 MacBook with 16 GB RAM:
# keep the UI dense and responsive, but avoid settings that increase power use
# or override standard shell/editor behavior.
# Appearance
theme = "/Users/vinhnguyenxuan/.config/ghostty/themes/vitesse/vitesse-black"
custom-shader = "/Users/vinhnguyenxuan/.config/ghostty/focus-pane.glsl"
custom-shader-animation = false
macos-icon = "chalkboard"
@vinhnx
vinhnx / config
Created March 11, 2026 06:30 — forked from jamesgecko/config
Ghostty - Add a focus rectangle around the active pane
unfocused-split-opacity = 1
custom-shader=~/.config/ghostty/focus-pane.glsl
@vinhnx
vinhnx / detect-256-theme.py
Created March 1, 2026 06:56 — forked from jake-stewart/detect-256-theme.py
Detect and handle 256-color themes
#!/usr/bin/env python3
"""
Detects whether the terminal is using a light or dark theme and automatically
adjusts 256-color palette indices so that colors render consistently regardless
of the active theme. This is especially useful when a terminal (e.g. Ghostty)
generates its 256-color palette to match the current theme — or when it doesn't,
and we need to compensate by flipping the indices ourselves.
"""
import os
@vinhnx
vinhnx / color256.md
Created March 1, 2026 06:56 — forked from jake-stewart/color256.md
Terminals should generate the 256-color palette

Terminals should generate the 256-color palette from the user's base16 theme.

If you've spent much time in the terminal, you've probably set a custom base16 theme. They work well. You define a handful of colors in one place and all your programs use them.

The drawback is that 16 colors is limiting. Complex and color-heavy programs struggle with such a small palette.

@vinhnx
vinhnx / ANSI-escape-sequences.md
Created February 25, 2026 06:38
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@vinhnx
vinhnx / microgpt.py
Created February 12, 2026 02:10 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@vinhnx
vinhnx / LICENSE
Created January 27, 2026 04:03
algorithmic-art AgentSkills P5.js
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,