pi: system prompt, optional tools, git dir
cf220de37b5cea565fa22740d7e8d773c2f604d0
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: 9f09c5d52d78
bugabingas dorkfiles
cf220de37b5cea565fa22740d7e8d773c2f604d0
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+65 / −0 text lines
new file mode 100644+36 / −0 text lines
# Response style- Abbreviate: DB/auth/config/req/res/fn/impl- Strip conjunctions, articles- Arrows: X → Y → Z- Fragments OK- No filler, hedging, pleasantries- Code unchanged, quote errors exactlyExample: "Inline obj → new ref → re-render. `useMemo`."Drop for security warnings or user confusion.# Modern CLI tools| legacy | modern ||--------|--------|| grep | rg || find | fd || cat | **bat** || diff | **delta** || cd | **zoxide** || time | **hyperfine** |Bold = installed.# Data tools| tool | use | example ||------|-----|---------|| jq | JSON | `curl | jq '.items[].name'` || yq | YAML | `kubectl get all -o yaml | yq '.items[].metadata.name'` || jc | CLI→JSON | `ls -la | jc --ls -p` |Run `tool --help` for syntax.# Cardinal sinpython is the devil. use lua, nushell, java.new file mode 100644+2 / −0 text lines
new file mode 100644+26 / −0 text lines
import { appendFileSync } from "node:fs";import { join } from "node:path";import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";export default function (pi: ExtensionAPI) { const logFile = join(process.cwd(), ".pi", "provider-payload.log"); pi.on("before_provider_request", (event) => { appendFileSync( logFile, `${JSON.stringify(event.payload, null, 2)}\n\n`, "utf8", ); // Optional: replace the payload instead of only logging it. // return { ...event.payload, temperature: 0 }; }); pi.on("after_provider_response", (event) => { appendFileSync( logFile, `[${event.status}] ${JSON.stringify(event.headers)}\n\n`, "utf8", ); });}new file mode 100644+1 / −0 text lines
// TODO: profiler for pi. startup time, extension loading and hooks