Public helper script for OpenAI Codex banked manual reset credits.
Features:
- Read-only status:
--status - Full GET response dump:
--show-responses - Manual consume flow with confirmation
- Supports Pi auth file default:
~/.pi/agent/auth.json
| import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; | |
| const SENTINEL = "BEGIN_OPENAI_GPT_PROMPT_GUIDANCE"; | |
| // Source: https://developers.openai.com/api/docs/guides/prompt-guidance | |
| // (Prompt guidance for GPT-5.4; extracted + lightly adapted for a coding/terminal agent harness.) | |
| const OPENAI_GPT_PROMPT_GUIDANCE = String.raw` | |
| ${SENTINEL} | |
| [OpenAI GPT prompt guidance — coding/agent harness] |
| #!/data/data/com.termux/files/usr/bin/bash | |
| set -Eeuo pipefail | |
| SCRIPT_NAME="android-env-safe" | |
| SCRIPT_VERSION="1.0.1" | |
| PREFIX="${PREFIX:-/data/data/com.termux/files/usr}" | |
| HOME_DIR="$HOME" | |
| SHELL_RC="$HOME_DIR/.bashrc" | |
| GRADLE_DIR="$HOME_DIR/.gradle" | |
| GRADLE_PROPERTIES="$GRADLE_DIR/gradle.properties" |
/**
* Tool Call Filter Extension
*
* Filters out invalid tool calls before they're sent back to the provider.
* This addresses issues where some models construct malformed tool call blocks.
*
* Install: Place in ~/.pi/extensions/tool-call-filter.ts or project .pi/extensions/
*/This pattern bypasses the VS Code webview’s default drag handling by:
preventDefault() (and often stopImmediatePropagation())dataTransfer.items / dataTransfer.filesThis workflow provides comprehensive performance analysis for code changes with the rigor expected in game engines, graphics engines, and critical systems where speed, space efficiency, reliability, and robustness are paramount. The approach systematically evaluates algorithmic complexity, data structures, memory patterns, and system-level optimizations through specialized sub-agents with deep performance expertise.
I need to perform critical performance analysis for [CODE CHANGE DESCRIPTION] in [REPOSITORY/BRANCH]. This analysis must meet the standards of game engines, graphics engines, and critical systems where performance is paramount. Follow this comprehensive performance analysis workflow with nested sub-agent delegation:
This workflow provides comprehensive code review coverage by deploying specialized sub-agents across multiple review domains. The approach ensures systematic evaluation of security, performance, architecture, testing, and functionality through parallel domain analysis and structured integration.
I need to perform a thorough code review for [CODE CHANGE DESCRIPTION] in [REPOSITORY/BRANCH]. Follow this comprehensive code review workflow with specialized sub-agent delegation:
This adaptive workflow systematically diagnoses and fixes bugs in unknown codebases by using strategic sub-agent delegation and evidence-based investigation strategies.
I need to fix [BUG DESCRIPTION] in this unfamiliar codebase. Follow this adaptive bug fixing workflow with strategic sub-agent delegation:
This workflow maximizes efficiency and reliability when implementing new features in unknown codebases by using strategic sub-agent delegation and systematic discovery phases.
I need to implement [FEATURE DESCRIPTION] in this unfamiliar codebase. Follow this optimized workflow with strategic sub-agent delegation:
| import http.server | |
| import socketserver | |
| import logging | |
| import requests | |
| import json | |
| from urllib.parse import urlparse | |
| PORT = 8000 | |
| class ProxyHandler(http.server.SimpleHTTPRequestHandler): |