Diff
1diff --git a/.gitignore b/.gitignore
2new file mode 100644
3index 0000000000000000000000000000000000000000..858f177639a937640955244b1b3d28bc4ae74f5e
4--- /dev/null
5+++ b/.gitignore
6@@ -0,0 +1,5 @@
7+node_modules/
8+npm-debug.log*
9+.DS_Store
10+.pi/npm/
11+.pi/git/
12diff --git a/README.md b/README.md
13new file mode 100644
14index 0000000000000000000000000000000000000000..272ed1d14550951430c56639261b9eac969575d6
15--- /dev/null
16+++ b/README.md
17@@ -0,0 +1,49 @@
18+# pi-llama
19+
20+llama.cpp Pi extension. Auto-discovers models from a running `llama-server` and
21+registers them as the `llama-cpp` provider in pi.
22+
23+## Install
24+
25+**From the shell:**
26+
27+```bash
28+pi install github.com/huggingface/pi-llama
29+```
30+
31+This clones to `~/.pi/agent/packages/pi-llama/` and adds an entry to your pi
32+settings. Every future `pi` invocation auto-loads it.
33+
34+**From inside an interactive pi session:**
35+
36+```
37+!pi install github.com/huggingface/pi-llama
38+```
39+
40+Then run `/reload` (or restart pi) to load the extension.
41+
42+**Dev mode:**
43+
44+```bash
45+git clone https://github.com/huggingface/pi-llama ~/code/pi-llama
46+pi -e ~/code/pi-llama/index.ts
47+```
48+
49+`-e` loads the extension only for the current session, useful while
50+developing.
51+
52+## Usage
53+
54+```bash
55+# 1. Install llama-server
56+curl -fsSL https://llama.app/install.sh | bash
57+
58+# 2. Start it
59+llama-server
60+
61+# 3. Launch pi
62+pi
63+
64+# 4. Inside pi
65+/model # pick llama-cpp/<id>
66+```
67diff --git a/package.json b/package.json
68new file mode 100644
69index 0000000000000000000000000000000000000000..f341cb069144c0790703c5447b24701a13c8b6be
70--- /dev/null
71+++ b/package.json
72@@ -0,0 +1,21 @@
73+{
74+ "name": "pi-llama",
75+ "version": "0.1.0",
76+ "description": "llama.cpp Pi extension",
77+ "type": "module",
78+ "license": "MIT",
79+ "keywords": ["pi-package", "pi-extension", "llama.cpp", "huggingface"],
80+ "repository": {
81+ "type": "git",
82+ "url": "https://github.com/huggingface/pi-llama.git"
83+ },
84+ "pi": {
85+ "extensions": ["./index.ts"]
86+ },
87+ "peerDependencies": {
88+ "@earendil-works/pi-coding-agent": "*"
89+ },
90+ "peerDependenciesMeta": {
91+ "@earendil-works/pi-coding-agent": { "optional": true }
92+ }
93+}