Skip to content

gitignore : add .pi + personal SYSTEM.md#22316

Merged
ggerganov merged 3 commits into
masterfrom
gg/agents-local
Apr 25, 2026
Merged

gitignore : add .pi + personal SYSTEM.md#22316
ggerganov merged 3 commits into
masterfrom
gg/agents-local

Conversation

@ggerganov

@ggerganov ggerganov commented Apr 24, 2026

Copy link
Copy Markdown
Member

Overview

Allow personal system prompts when using the pi agent.

Personal system prompts live in subdirectories. They can be symlinked to the .pi/SYSTEM.md to be activated.

Requirements

@ggerganov ggerganov force-pushed the gg/agents-local branch 2 times, most recently from b1851d5 to aa092ad Compare April 24, 2026 08:01
@github-actions github-actions Bot added the devops improvements to build systems and github actions label Apr 24, 2026
Comment thread .pi/gg/SYSTEM.md
@CISC

CISC commented Apr 24, 2026

Copy link
Copy Markdown
Member

Got a link to the agent?

@ggerganov

Copy link
Copy Markdown
Member Author

Got a link to the agent?

https://pi.dev

@jacekpoplawski

Copy link
Copy Markdown
Contributor

pi works much better with llama.cpp than opencode

@am17an

am17an commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Perhaps create a tutorial for pi.dev + llama.cpp, seems like a good combo

@tarruda

tarruda commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Perhaps create a tutorial for pi.dev + llama.cpp, seems like a good combo

Here's a simple one:

  • install pi with npm install -g @mariozechner/pi-coding-agent
  • create ~/.pi/agent/models.json with something like this (which is what I use with Qwen 3.6 35B):
{
  "providers": {
    "local-llm": {
      "baseUrl": "http://127.0.0.1:8080/v1",
      "api": "openai-completions",
      "apiKey": "local",
      "models": [
        {
          "id": "llama.cpp",
          "contextWindow": 262144,
          "maxTokens": 80000
        }
      ]
    }   
  }
}
  • Run pi and enter /model, which will show an interactive model selection. Then you type llama.cpp and select it.

@ggerganov

Copy link
Copy Markdown
Member Author

Also can start it without context and use the system prompt as explained here.

# skips `AGENTS.md`, but loads `.pi/SYSTEM.md` if present
pi --offline --no-context-files

@abitrolly

Copy link
Copy Markdown

Perhaps create a tutorial for pi.dev + llama.cpp, seems like a good combo

Would be nice to get some chapter on security. How to run it all without leaking your SSH keys and all other files, through pi.dev or llama.cpp server with public IP.

@am17an

am17an commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Speaking of security (or the lack thereof), I vibe-coded (using the shiny new Deepseek v4 pro max) a pi extension for llama-server, https://www.npmjs.com/package/pi-llama-server, which does what I want (i.e. want to change load/unload models on the fly with some presets in models.ini)

@ngxson

ngxson commented Apr 24, 2026

Copy link
Copy Markdown
Collaborator

It's probably time to add a shortcut llama-cli --launch pi ?

@ggerganov ggerganov merged commit 8ea8fee into master Apr 25, 2026
2 checks passed
@ggerganov ggerganov deleted the gg/agents-local branch April 25, 2026 06:20
@ggerganov ggerganov mentioned this pull request Apr 26, 2026
IntelNav pushed a commit to IntelNav/llama.cpp that referenced this pull request Apr 29, 2026
* gitignore : add .pi + personal SYSTEM.md

* cont : fix requirements heading in PR template

* cont : shorten line
IntelNav pushed a commit to IntelNav/llama.cpp that referenced this pull request Apr 29, 2026
* gitignore : add .pi + personal SYSTEM.md

* cont : fix requirements heading in PR template

* cont : shorten line
samuraieng pushed a commit to samuraieng/llama.cpp that referenced this pull request May 6, 2026
* gitignore : add .pi + personal SYSTEM.md

* cont : fix requirements heading in PR template

* cont : shorten line
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
* gitignore : add .pi + personal SYSTEM.md

* cont : fix requirements heading in PR template

* cont : shorten line
meh pushed a commit to meh/llama.cpp that referenced this pull request May 10, 2026
* gitignore : add .pi + personal SYSTEM.md

* cont : fix requirements heading in PR template

* cont : shorten line
baramofme pushed a commit to baramofme/llama-cpp-turboquant that referenced this pull request May 23, 2026
* gitignore : add .pi + personal SYSTEM.md

* cont : fix requirements heading in PR template

* cont : shorten line
fewtarius pushed a commit to fewtarius/CachyLLama that referenced this pull request May 30, 2026
* gitignore : add .pi + personal SYSTEM.md

* cont : fix requirements heading in PR template

* cont : shorten line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops improvements to build systems and github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants