Skip to content

Instantly share code, notes, and snippets.

View gotgenes's full-sized avatar

Chris Lasher gotgenes

View GitHub Profile
@gotgenes
gotgenes / README.md
Created May 16, 2026 22:23
Pi coding agent session: edit tool fails on em-dash (U+2014), agent resorts to Python workaround

Pi session: agent fails to edit TypeScript file because of em-dash (U+2014)

Context

This is a Pi coding agent session from the pi-permission-system extension repo, dated 2026-05-04. The agent was implementing issue #72 (replace the regex-based bash tokenizer with shell-quote).

The file src/external-directory.ts contained a JSDoc comment with an em-dash (, U+2014):

/**
@gotgenes
gotgenes / kimi-2.6_session_ending_in_400_response_2_request_validation_errors.jsonl
Created May 15, 2026 23:53
Pi v0.74.0 session using kimi-2.6 via OpenCode Go that errors with 400 status code, "2 request valiadtion errors: Extra inputs are not permitted"
{"type":"session","version":3,"id":"019e2e09-67b6-71d9-9b45-abea684987d5","timestamp":"2026-05-15T23:47:08.862Z","cwd":"/Users/chris/development/pi/pi-packages"}
{"type":"model_change","id":"d0416cdf","parentId":null,"timestamp":"2026-05-15T23:47:09.548Z","provider":"anthropic","modelId":"claude-opus-4-6"}
{"type":"thinking_level_change","id":"e130adac","parentId":"d0416cdf","timestamp":"2026-05-15T23:47:09.548Z","thinkingLevel":"medium"}
{"type":"model_change","id":"5aaf38ce","parentId":"e130adac","timestamp":"2026-05-15T23:47:12.802Z","provider":"anthropic","modelId":"claude-sonnet-4-6"}
{"type":"model_change","id":"7eecc78e","parentId":"5aaf38ce","timestamp":"2026-05-15T23:47:13.347Z","provider":"opencode-go","modelId":"deepseek-v4-flash"}
{"type":"thinking_level_change","id":"b4e0b59b","parentId":"7eecc78e","timestamp":"2026-05-15T23:47:13.348Z","thinkingLevel":"high"}
{"type":"model_change","id":"ab38de2b","parentId":"b4e0b59b","timestamp":"2026-05-15T23:47:14.048Z","provider":"opencode-go","modelId":"de
!_TAG_FILE_ENCODING utf-8 //
bats.vim-bats-vim bats.vim.md /# bats.vim
bats.vim-configuration bats.vim.md /## Configuration
bats.vim-g-bats-vim-consider-dollar-as-part-of-word bats.vim.md /### `g:bats_vim_consider_dollar_as_part_of_word`
bats.vim-installation bats.vim.md /## Installation
bats.vim-license bats.vim.md /## License
bats.vim-or bats.vim.md /# OR
better-escape.nvim-api better-escape.nvim.md /## API
better-escape.nvim-better-escape-nvim better-escape.nvim.md /# 🚪better-escape.nvim
better-escape.nvim-customization better-escape.nvim.md /## ⚙️Customization

Keybase proof

I hereby claim:

  • I am gotgenes on github.
  • I am chrislasher (https://keybase.io/chrislasher) on keybase.
  • I have a public key ASDvna7CwPUAdj7UO_sOO8Ky0MatlRBrbC-Mu3JdZDuRZgo

To claim this, I am signing this object:

@gotgenes
gotgenes / prepare-commit-msg.sh
Last active September 26, 2016 19:04 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
@gotgenes
gotgenes / install_python_env_osx.sh
Last active December 23, 2015 10:59
Install setuptools, pip, and virtualenvwrapper for OS X.
#!/bin/bash
set -e
set -u
PYTHON_VERSION='2.7' # Change this value if you use a different version of python, e.g., 3.3
PYTHON="python${PYTHON_VERSION}"
PIP="pip-${PYTHON_VERSION}"
echo "Installing most recent version of setuptools."
sudo bash -c 'curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | "${PYTHON}"'
@gotgenes
gotgenes / install_python_dependencies.sh
Last active December 11, 2015 17:48
Quick installation of Python dependencies and settings.
#!/bin/bash
set -e
set -u
curl http://python-distribute.org/distribute_setup.py | python
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
pip install nose
easy_install readline
pip install ipython
echo 'export PATH="${HOME}/.local/bin:${PATH}"' >> ~/.bashrc
@gotgenes
gotgenes / linklocalbin.sh
Created November 1, 2012 13:53
A script to link executables into the local bin directory.
#!/bin/bash
# A simple script to symlink executables to the local bin directory
set -e
LOCAL_BIN_DIR="$HOME/.local/bin"
ln_flags="-sn"
while getopts "fd:" OPTION; do
@gotgenes
gotgenes / get_ropevim.sh
Created October 31, 2012 19:01
Get the latest ropevim
set -e
pip install -e hg+https://bitbucket.org/agr/rope#egg=rope
pip install --no-deps -e hg+https://bitbucket.org/agr/ropemode#egg=ropemode
pip install --no-deps -e hg+https://bitbucket.org/agr/ropevim#egg=ropevim
@gotgenes
gotgenes / edgeswap.py
Created May 22, 2012 16:12
Edge swap graph.
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright (c) 2011-2012 Christopher D. Lasher
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to