Skip to content

Instantly share code, notes, and snippets.

View ryx2's full-sized avatar
💽
cd

Raymond Xu ryx2

💽
cd
View GitHub Profile
@ryx2
ryx2 / cc_status.sh
Created August 11, 2025 00:15
my claude code status line
#!/bin/bash
# Read JSON input from stdin
input=$(cat)
# printf "input: %s\n" "$input"
# Extract current directory and replace home with ~
current_dir=$(echo "$input" | jq -r '.workspace.current_dir' | sed "s|^$HOME|~|")
# Extract session id and Claude version
@ryx2
ryx2 / gist:fb6edf5cb6e259bc2b563864e0f35f71
Created April 24, 2025 07:13
openhands crash from context too long
This file has been truncated, but you can view the full file.
cd /tmp && python -m openhands.resolver.resolve_issue \
--selected-repo modern-realty-inc/plug-chat \
--token *** \
--issue-number 2567 \
--issue-type issue \
--max-iterations 50 \
--comment-id None \
--is-experimental true
shell: /usr/bin/bash -e {0}
env:
@ryx2
ryx2 / trace.ts
Last active December 7, 2024 09:23
/**
* TypeScript Method Tracing Utility
* --------------------------------
*
* This utility provides automatic method tracing for TypeScript classes using decorators.
* It's designed to be a drop-in solution for debugging and monitoring method execution flow.
* Great for allowing coding AI agents to see the stack trace from terminal being put back into prompts.
/**
* TypeScript Method Tracing Utility
* --------------------------------