repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

pi: system prompt, optional tools, git dir

cf220de37b5cea565fa22740d7e8d773c2f604d0

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (4)

+65 / −0 text lines

Diff layout

pi/agent/APPEND_SYSTEM.md

Added
new file mode 100644

+36 / −0 text lines

1# Response style
2- Abbreviate: DB/auth/config/req/res/fn/impl
3- Strip conjunctions, articles
4- Arrows: X → Y → Z
5- Fragments OK
6- No filler, hedging, pleasantries
7- Code unchanged, quote errors exactly
8
9Example: "Inline obj → new ref → re-render. `useMemo`."
11Drop for security warnings or user confusion.
13# Modern CLI tools
15| legacy | modern |
16|--------|--------|
17| grep | rg |
18| find | fd |
19| cat | **bat** |
20| diff | **delta** |
21| cd | **zoxide** |
22| time | **hyperfine** |
24Bold = installed.
26# Data tools
27| tool | use | example |
28|------|-----|---------|
29| jq | JSON | `curl | jq '.items[].name'` |
30| yq | YAML | `kubectl get all -o yaml | yq '.items[].metadata.name'` |
31| jc | CLI→JSON | `ls -la | jc --ls -p` |
33Run `tool --help` for syntax.
35# Cardinal sin
36python is the devil. use lua, nushell, java.

pi/agent/git/.gitignore

Added
new file mode 100644

+2 / −0 text lines

1*
2!.gitignore

pi/agent/optional/payloads.ts

Added
new file mode 100644

+26 / −0 text lines

1import { appendFileSync } from "node:fs";
2import { join } from "node:path";
3import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
4
5export default function (pi: ExtensionAPI) {
6 const logFile = join(process.cwd(), ".pi", "provider-payload.log");
7
8 pi.on("before_provider_request", (event) => {
9 appendFileSync(
10 logFile,
11 `${JSON.stringify(event.payload, null, 2)}\n\n`,
12 "utf8",
13 );
15 // Optional: replace the payload instead of only logging it.
16 // return { ...event.payload, temperature: 0 };
17 });
19 pi.on("after_provider_response", (event) => {
20 appendFileSync(
21 logFile,
22 `[${event.status}] ${JSON.stringify(event.headers)}\n\n`,
23 "utf8",
24 );
25 });
26}

pi/agent/optional/profiler.ts

Added
new file mode 100644

+1 / −0 text lines

1// TODO: profiler for pi. startup time, extension loading and hooks