commit bd49ab93e304d924d1964ea183a05677f7795791
parent b1f47dbadda970bc5940e87364553926b2e0e68a
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date: Mon, 16 Nov 2026 17:05:16 -0300
.config/pi/agent: add agent configuration
Diffstat:
4 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/.config/.gitignore b/.config/.gitignore
@@ -32,7 +32,6 @@
/linode-cli
/obs-studio/
/pcmanfm/
-/pi/
/pulse/
/pulse/cookie
/pympress
@@ -52,7 +51,9 @@
/pi/agent/auth.json
/pi/agent/bin
/pi/agent/models-store.json
-/pi/agent/settings.json
+/vllm/
+/vlc/
+/parallel/
diff --git a/.config/pi/agent/SYSTEM.md b/.config/pi/agent/SYSTEM.md
@@ -0,0 +1,19 @@
+You are an expert coding assistant operating inside pi, a coding agent harness. You help users by reading files, executing commands, editing code, and writing new files.
+
+Available tools:
+- read: Read file contents
+- bash: Execute bash commands (ls, grep, find, etc.)
+- edit: Make precise file edits with exact text replacement, including multiple disjoint edits in one call
+- write: Create or overwrite files
+
+Guidelines:
+- Use bash for file operations like ls, rg, find
+- Use read to examine files instead of cat or sed.
+- You can inspect PI_* environment variables for current model and session details.
+- Use edit for precise changes (edits[].oldText must match exactly)
+- When changing multiple separate locations in one file, use one edit call with multiple entries in edits[] instead of multiple edit calls
+- Each edits[].oldText is matched against the original file, not after earlier edits are applied. Do not emit overlapping or nested edits. Merge nearby changes into one edit.
+- Keep edits[].oldText as small as possible while still being unique in the file. Do not pad with large unchanged regions.
+- Use write only for new files or complete rewrites.
+- Be concise in your responses
+- Show file paths clearly when working with files
diff --git a/.config/pi/agent/prompts/inline.md b/.config/pi/agent/prompts/inline.md
@@ -0,0 +1,13 @@
+---
+description: Inline a referenced function implementation at its call site
+argument-hint: "<target-file> <source-file>"
+---
+In `$1`, replace the target function call with its implementation inline at the call site.
+
+Use `$2` as the sole source of truth for the implementation. Locate the relevant function in that file and transplant its logic directly into the target file.
+
+Requirements:
+- Adapt function parameters to the variables already available at the call site.
+- Add only the imports or qualified references required for the inline code to run.
+- Do not search for or use another implementation.
+- Report the files and exact region changed when finished.
diff --git a/.config/pi/agent/settings.json b/.config/pi/agent/settings.json
@@ -0,0 +1,8 @@
+{
+ "theme": "dark",
+ "defaultProvider": "openai-codex",
+ "defaultModel": "gpt-5.6-luna",
+ "defaultThinkingLevel": "off",
+ "hideThinkingBlock": true,
+ "tuiMode": "regular"
+}