You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Production-ready, independently installable [Pi](https://pi.dev) extension packages for the Pi coding agent. This monorepo provides native Pi tools and commands for Chrome DevTools automation, Firecrawl web scraping, Python LSP diagnostics with ty and Ruff, goal-driven task completion, retry handling, terminal statuslines, and keep-awake automation.
5
+
Production-ready, independently installable [Pi](https://pi.dev) extension packages for the Pi coding agent. This monorepo provides native Pi tools and commands for Biome LSP diagnostics, Chrome DevTools automation, Firecrawl web scraping, Python LSP diagnostics with ty and Ruff, goal-driven task completion, retry handling, terminal statuslines, and keep-awake automation.
6
6
7
7
## 📦 Pi extension packages
8
8
9
9
Install only the Pi extensions you need. Each package is published under the `@narumitw` npm scope and can be installed directly with `pi install npm:<package>`.
10
10
11
11
| Pi extension | What it adds | Install |
12
12
| --- | --- | --- |
13
+
|[`@narumitw/pi-biome-lsp`](./extensions/pi-biome-lsp)| 🧬 Biome language-server tools for diagnostics, formatting, import organization, and source fixes. |`pi install npm:@narumitw/pi-biome-lsp`|
13
14
|[`@narumitw/pi-btw`](./extensions/pi-btw)| 💬 `/btw` side-question command for asking quick questions without polluting the main conversation. |`pi install npm:@narumitw/pi-btw`|
14
15
|[`@narumitw/pi-caffeinate`](./extensions/pi-caffeinate)| ☕ Cross-platform sleep prevention while the Pi agent is processing long-running prompts. |`pi install npm:@narumitw/pi-caffeinate`|
15
16
|[`@narumitw/pi-chrome-devtools`](./extensions/pi-chrome-devtools)| 🌐 Native Chrome DevTools Protocol tools for listing tabs, navigating pages, evaluating JavaScript, and taking screenshots. |`pi install npm:@narumitw/pi-chrome-devtools`|
@@ -37,11 +38,15 @@ pi -e npm:@narumitw/pi-statusline
37
38
Use multiple Pi extensions together:
38
39
39
40
```bash
40
-
pi -e npm:@narumitw/pi-goal -e npm:@narumitw/pi-statusline -e npm:@narumitw/pi-python-lsp
41
+
pi -e npm:@narumitw/pi-goal -e npm:@narumitw/pi-statusline -e npm:@narumitw/pi-python-lsp -e npm:@narumitw/pi-biome-lsp
41
42
```
42
43
43
44
## 🛠️ Extension use cases
44
45
46
+
### 🧬 JavaScript and TypeScript coding with Biome
47
+
48
+
Use [`@narumitw/pi-biome-lsp`](./extensions/pi-biome-lsp) to let Pi run Biome diagnostics through `biome lsp-proxy`, format supported files, organize imports, and apply safe Biome source fixes.
49
+
45
50
### 🌐 Browser automation and debugging
46
51
47
52
Use [`@narumitw/pi-chrome-devtools`](./extensions/pi-chrome-devtools) when you want the Pi agent to inspect browser tabs, navigate web apps, run JavaScript in Chrome, or capture screenshots through the Chrome DevTools Protocol.
@@ -83,6 +88,7 @@ npm run check
83
88
Try a package locally:
84
89
85
90
```bash
91
+
pi -e ./extensions/pi-biome-lsp
86
92
pi -e ./extensions/pi-btw
87
93
pi -e ./extensions/pi-caffeinate
88
94
pi -e ./extensions/pi-chrome-devtools
@@ -97,6 +103,7 @@ pi -e ./extensions/pi-subagents
`@narumitw/pi-biome-lsp` is a native [Pi coding agent](https://pi.dev) extension that exposes [Biome](https://biomejs.dev/) language-server tools.
6
+
7
+
Use it to give Pi Biome diagnostics, formatting, import organization, and safe source fixes through Language Server Protocol (LSP) workflows.
8
+
9
+
## ✨ Features
10
+
11
+
- Runs `biome lsp-proxy` on demand for diagnostics.
12
+
- Computes or writes formatting edits for Biome-supported files.
13
+
- Computes or writes Biome source actions such as `source.fixAll.biome` and `source.organizeImports.biome`.
14
+
- Supports workspace roots, file limits, and recursive file discovery.
15
+
- Starts the language server only for tool calls, then shuts it down.
16
+
- Provides clear setup errors when Biome is missing.
17
+
18
+
## 📦 Install
19
+
20
+
```bash
21
+
pi install npm:@narumitw/pi-biome-lsp
22
+
```
23
+
24
+
Try without installing permanently:
25
+
26
+
```bash
27
+
pi -e npm:@narumitw/pi-biome-lsp
28
+
```
29
+
30
+
Try this package locally from the repository root:
31
+
32
+
```bash
33
+
pi -e ./extensions/pi-biome-lsp
34
+
```
35
+
36
+
## ✅ Requirements
37
+
38
+
Install Biome somewhere on `PATH`, for example:
39
+
40
+
```bash
41
+
npm install -D @biomejs/biome
42
+
```
43
+
44
+
Or provide a custom server command:
45
+
46
+
```bash
47
+
PI_BIOME_LSP_COMMAND="npx biome lsp-proxy" pi -e ./extensions/pi-biome-lsp
48
+
```
49
+
50
+
Optional timeout override:
51
+
52
+
```bash
53
+
PI_BIOME_LSP_TIMEOUT_MS=30000 pi -e ./extensions/pi-biome-lsp
54
+
```
55
+
56
+
## 🛠️ Pi tools
57
+
58
+
-`biome_lsp_diagnostics` — start `biome lsp-proxy`, open supported files, and return diagnostics.
59
+
-`biome_lsp_format` — compute or write formatting edits for one file.
60
+
-`biome_lsp_fix` — compute or write source actions such as `source.fixAll.biome` or `source.organizeImports.biome`.
61
+
62
+
## 🚀 Examples
63
+
64
+
Check a project subset with Biome diagnostics:
65
+
66
+
```json
67
+
{
68
+
"paths": ["src", "extensions/pi-biome-lsp/src"],
69
+
"limit": 100
70
+
}
71
+
```
72
+
73
+
Format a TypeScript file with Biome:
74
+
75
+
```json
76
+
{
77
+
"path": "src/index.ts",
78
+
"write": true
79
+
}
80
+
```
81
+
82
+
Organize imports with Biome:
83
+
84
+
```json
85
+
{
86
+
"path": "src/index.ts",
87
+
"kind": "source.organizeImports.biome",
88
+
"write": true
89
+
}
90
+
```
91
+
92
+
If `paths` is omitted for diagnostics, the tool recursively discovers Biome-supported files under the workspace root, skipping common generated and dependency directories.
93
+
94
+
## 💬 Command
95
+
96
+
```text
97
+
/biome-lsp
98
+
```
99
+
100
+
Shows the configured Biome LSP command and whether it is available on `PATH`.
101
+
102
+
## 🗂️ Package layout
103
+
104
+
```txt
105
+
extensions/pi-biome-lsp/
106
+
├── src/
107
+
│ └── biome-lsp.ts
108
+
├── README.md
109
+
├── LICENSE
110
+
├── tsconfig.json
111
+
└── package.json
112
+
```
113
+
114
+
## 🔎 Keywords
115
+
116
+
Pi extension, Pi coding agent, Biome LSP, Biome formatter, Biome linter, import organization, Language Server Protocol, AI coding tools.
0 commit comments