@psnext/slingcli 2.5.20260718-1 → 2.5.20260718-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/compaction.md +396 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/containerization.md +111 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/custom-provider.md +763 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/docs.json +143 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/extensions.md +2943 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/images/doom-extension.png +0 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/images/exy.png +0 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/images/interactive-mode.png +0 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/images/tree-view.png +0 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/index.md +79 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/json.md +82 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/keybindings.md +198 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/llama-cpp.md +99 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/models.md +540 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/packages.md +228 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/prompt-templates.md +96 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/providers.md +297 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/quickstart.md +165 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/rpc.md +1480 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/security.md +59 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/session-format.md +422 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/sessions.md +145 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/settings.md +319 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/shell-aliases.md +13 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/skills.md +231 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/terminal-setup.md +142 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/termux.md +127 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/themes.md +297 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/tmux.md +63 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/tui.md +942 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/usage.md +311 -0
- package/node_modules/@earendil-works/pi-coding-agent/docs/windows.md +17 -0
- package/package.json +2 -2
- package/slingshot/index.js +57 -57
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# Quickstart
|
|
2
|
+
|
|
3
|
+
This page gets you from install to a useful first sling session.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Sling is distributed as an npm package:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g --ignore-scripts @psnext/slingcli
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
`--ignore-scripts` disables dependency lifecycle scripts during install. Sling does not require install scripts for normal npm installs.
|
|
14
|
+
|
|
15
|
+
### Uninstall
|
|
16
|
+
|
|
17
|
+
Use the package manager that installed sling. The curl installer uses npm globally, so curl and npm installs are removed with npm:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# curl installer or npm install -g
|
|
21
|
+
npm uninstall -g @psnext/slingcli
|
|
22
|
+
|
|
23
|
+
# pnpm
|
|
24
|
+
pnpm remove -g @psnext/slingcli
|
|
25
|
+
|
|
26
|
+
# Yarn
|
|
27
|
+
yarn global remove @psnext/slingcli
|
|
28
|
+
|
|
29
|
+
# Bun
|
|
30
|
+
bun uninstall -g @psnext/slingcli
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Uninstalling sling leaves settings, credentials, sessions, and installed pi packages in `~/.sling/agent/`.
|
|
34
|
+
|
|
35
|
+
Then start sling in the project directory you want it to work on:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
cd /path/to/project
|
|
39
|
+
sling
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Authenticate
|
|
43
|
+
|
|
44
|
+
Sling can use slingshot platform through `/login`, or the auth file.
|
|
45
|
+
|
|
46
|
+
### Option 1: subscription login
|
|
47
|
+
|
|
48
|
+
Start sling and run:
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
/login
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Then select a provider. Built-in subscription logins include Claude Pro/Max, ChatGPT Plus/Pro (Codex), and GitHub Copilot.
|
|
55
|
+
|
|
56
|
+
### Option 2: API key
|
|
57
|
+
|
|
58
|
+
Set an API key before launching pi:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
export SLINGSHOT_API_KEY=ek134-...
|
|
62
|
+
sling
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
You can also run `/login` and select an API-key provider to store the key in `~/.sling/agent/auth.json`.
|
|
66
|
+
|
|
67
|
+
See [Providers](providers.md) for all supported providers setup.
|
|
68
|
+
|
|
69
|
+
## First session
|
|
70
|
+
|
|
71
|
+
Once sling starts, type a request and press Enter:
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
Summarize this repository and tell me how to run its checks.
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
By default, sling gives the model four tools:
|
|
78
|
+
|
|
79
|
+
- `read` - read files
|
|
80
|
+
- `write` - create or overwrite files
|
|
81
|
+
- `edit` - patch files
|
|
82
|
+
- `bash` - run shell commands
|
|
83
|
+
|
|
84
|
+
Additional built-in read-only tools (`grep`, `find`, `ls`) are available through tool options. Sling runs in your current working directory and can modify files there. Use git or another checkpointing workflow if you want easy rollback.
|
|
85
|
+
|
|
86
|
+
## Give sling project instructions
|
|
87
|
+
|
|
88
|
+
Sling loads context files at startup. Add an `AGENTS.md` file to tell it how to work in a project:
|
|
89
|
+
|
|
90
|
+
```markdown
|
|
91
|
+
# Project Instructions
|
|
92
|
+
|
|
93
|
+
- Run `npm run check` after code changes.
|
|
94
|
+
- Do not run production migrations locally.
|
|
95
|
+
- Keep responses concise.
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Sling loads:
|
|
99
|
+
|
|
100
|
+
- `~/.sling/agent/AGENTS.md` for global instructions
|
|
101
|
+
- `AGENTS.md` or `CLAUDE.md` from parent directories and the current directory
|
|
102
|
+
|
|
103
|
+
Restart pi, or run `/reload`, after changing context files.
|
|
104
|
+
|
|
105
|
+
## Common things to try
|
|
106
|
+
|
|
107
|
+
### Reference files
|
|
108
|
+
|
|
109
|
+
Type `@` in the editor to fuzzy-search files, or pass files on the command line:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
sling @README.md "Summarize this"
|
|
113
|
+
sling @src/app.ts @src/app.test.ts "Review these together"
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Images or text can be pasted with Ctrl+V (Alt+V on Windows); images can also be dragged into supported terminals.
|
|
117
|
+
|
|
118
|
+
### Run shell commands
|
|
119
|
+
|
|
120
|
+
In interactive mode:
|
|
121
|
+
|
|
122
|
+
```text
|
|
123
|
+
!npm run lint
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
The command output is sent to the model. Use `!!command` to run a command without adding its output to the model context.
|
|
127
|
+
|
|
128
|
+
### Switch models
|
|
129
|
+
|
|
130
|
+
Use `/model` or Ctrl+L to choose a model. Use Shift+Tab to cycle thinking level. Use Ctrl+P / Shift+Ctrl+P to cycle through scoped models.
|
|
131
|
+
|
|
132
|
+
### Continue later
|
|
133
|
+
|
|
134
|
+
Sessions are saved automatically:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
pi -c # Continue most recent session
|
|
138
|
+
pi -r # Browse previous sessions
|
|
139
|
+
pi --name "my task" # Set session display name at startup
|
|
140
|
+
pi --session <path|id> # Open a specific session
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Inside pi, use `/resume`, `/new`, `/tree`, `/fork`, and `/clone` to manage sessions.
|
|
144
|
+
|
|
145
|
+
### Non-interactive mode
|
|
146
|
+
|
|
147
|
+
For one-shot prompts:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
pi -p "Summarize this codebase"
|
|
151
|
+
cat README.md | pi -p "Summarize this text"
|
|
152
|
+
pi -p @screenshot.png "What's in this image?"
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Use `--mode json` for JSON event output or `--mode rpc` for process integration.
|
|
156
|
+
|
|
157
|
+
## Next steps
|
|
158
|
+
|
|
159
|
+
- [Using Pi](usage.md) - interactive mode, slash commands, sessions, context files, and CLI reference.
|
|
160
|
+
- [Providers](providers.md) - authentication and model setup.
|
|
161
|
+
- [Settings](settings.md) - global and project configuration.
|
|
162
|
+
- [Keybindings](keybindings.md) - shortcuts and customization.
|
|
163
|
+
- [Pi Packages](packages.md) - install shared extensions, skills, prompts, and themes.
|
|
164
|
+
|
|
165
|
+
Platform notes: [Windows](windows.md), [Termux](termux.md), [tmux](tmux.md), [Terminal setup](terminal-setup.md), [Shell aliases](shell-aliases.md).
|