Skip to content

Commit 8af7d7d

Browse files
authored
Merge pull request #138 from cagostino/chris/shell_upgrades
Chris/shell upgrades
2 parents 0b28714 + 5037bfb commit 8af7d7d

File tree

3 files changed

+568
-3
lines changed

3 files changed

+568
-3
lines changed

README.md

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,13 +385,18 @@ if __name__ == "__main__":
385385
### Linux install
386386
```bash
387387

388+
# for audio primarily
388389
sudo apt-get install espeak
389390
sudo apt-get install portaudio19-dev python3-pyaudio
390391
sudo apt-get install alsa-base alsa-utils
391392
sudo apt-get install libcairo2-dev
392393
sudo apt-get install libgirepository1.0-dev
393394
sudo apt-get install ffmpeg
394395

396+
# for triggers
397+
sudo apt install inotify-tools
398+
399+
395400
#And if you don't have ollama installed, use this:
396401
curl -fsSL https://ollama.com/install.sh | sh
397402

@@ -414,11 +419,17 @@ pip install npcsh[all]
414419

415420
### Mac install
416421
```bash
422+
#mainly for audio
417423
brew install portaudio
418424
brew install ffmpeg
425+
brew install pygobject3
426+
427+
# for triggers
428+
brew install ...
429+
430+
419431
brew install ollama
420432
brew services start ollama
421-
brew install pygobject3
422433
ollama pull llama3.2
423434
ollama pull llava:7b
424435
ollama pull nomic-embed-text
@@ -992,13 +1003,30 @@ npc ots -f test_data/catfight.PNG
9921003
### Plan : Schedule tasks to be run at regular intervals (under construction)
9931004
Use the /plan macro to schedule tasks to be run at regular intervals.
9941005
```npcsh
995-
npcsh> /plan run a rag search on the files in the current directory every 5 minutes
1006+
npcsh> /plan run a rag search for 'moonbeam' on the files in the current directory every 5 minutes
9961007
```
9971008
1009+
```npcsh
1010+
npcsh> /plan record the cpu usage every 5 minutes
1011+
```
1012+
1013+
```npcsh
1014+
npcsh> /plan record the apps that are using the most ram every 5 minutes
1015+
```
1016+
1017+
1018+
1019+
9981020
```bash
9991021
npc plan -f 30m -t 'task'
10001022
```
10011023
1024+
Plan will use platform-specific scheduling tools. In particular, it uses crontab on Linux and launchd on macOS and Schedule Tasks on Windows.
1025+
1026+
Implementations have been provided for Mac and Windows but only has been tested as of 3/23/2025 on Linux.
1027+
1028+
1029+
10021030
### Plonk : Computer Control
10031031
Use the /plonk macro to allow the LLM to control your computer.
10041032
```npcsh
@@ -1284,6 +1312,18 @@ npcsh> /spool model=llama3.3
12841312
npc spool -n npc.npc
12851313
```
12861314
1315+
### Trigger
1316+
Use the /trigger macro to execute specific actionss based on certain conditions.
1317+
1318+
```npcsh
1319+
npcsh> /trigger watch for new PDF downloads in the ~/Downloads directory and move them
1320+
to the ~/Documents/PDFs directory . Ensure that the directory exists or create it if it does not.
1321+
```
1322+
1323+
On Linux, trigger makes use of inotify-tools to watch for file system events. On macOS, it uses fswatch, and on Windows, it uses Watch-Command.
1324+
1325+
1326+
12871327
12881328
12891329
### Vixynt: Image Generation

0 commit comments

Comments
 (0)