orrevan 0.1.1 → 0.5.0
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/README.md +104 -8
- package/dist/orrevan.js +315 -162
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,25 +20,115 @@ cat log.txt | orrevan -p "what went wrong?"
|
|
|
20
20
|
orrevan -c continue the last conversation in this folder
|
|
21
21
|
orrevan models list models and prices
|
|
22
22
|
orrevan balance show your credit
|
|
23
|
+
orrevan whoami account, credit, model and version
|
|
24
|
+
orrevan update update to the latest version
|
|
25
|
+
orrevan config show settings
|
|
26
|
+
orrevan config set model <id> default model (unset with: orrevan config unset model)
|
|
23
27
|
```
|
|
24
28
|
|
|
25
|
-
Options: `-m <model>`, `--
|
|
29
|
+
Options: `-m <model>`, `--scout` (read only), `--auto` (no approvals, careful), `--web` (allow web search), `--reasoning <level>` (thinking depth: auto, off, low, medium, high, max; which ones depend on the model, see `orrevan models`).
|
|
26
30
|
|
|
27
|
-
###
|
|
31
|
+
### Modes
|
|
28
32
|
|
|
29
|
-
|
|
|
33
|
+
| Mode | |
|
|
30
34
|
|---|---|
|
|
35
|
+
| **Scout** | reads and searches, then proposes a plan. Changes nothing. |
|
|
36
|
+
| **Forge** | edits files and runs commands, shows a diff or the command and asks first. Default. |
|
|
37
|
+
| **Auto** | Forge without asking (`/auto`, `--auto`). Careful. |
|
|
38
|
+
|
|
39
|
+
`tab` switches between Scout and Forge.
|
|
40
|
+
|
|
41
|
+
### Type while it works
|
|
42
|
+
|
|
43
|
+
Keep typing while Orrevan works. `enter` queues the message, Orrevan reads it at its next step (after the current tool) and adjusts. `esc` stops the current answer and sends queued messages right away, so "stop, do this instead" is one keypress.
|
|
44
|
+
|
|
45
|
+
### Thinking
|
|
46
|
+
|
|
47
|
+
Reasoning models think before they answer. While they do, the working line shows the latest thought next to the animated Orrevan planet.
|
|
48
|
+
|
|
49
|
+
- `ctrl+t` shows thoughts in full (live and in the transcript) or collapses them to one line
|
|
50
|
+
- `/thoughts` prints the last thoughts in full
|
|
51
|
+
- `/reasoning` picks the thinking depth (auto, off, low, medium, high, max, as the model offers), `shift+tab` cycles through them. More thinking costs more tokens
|
|
52
|
+
|
|
53
|
+
### Keys
|
|
54
|
+
|
|
55
|
+
| Key | |
|
|
56
|
+
|---|---|
|
|
57
|
+
| `?` | all shortcuts (on an empty input) |
|
|
58
|
+
| `ctrl+p` | command palette |
|
|
59
|
+
| `ctrl+x` then a key | leader: `m` model, `r` reasoning, `t` thoughts, `n` new, `s` sessions, `u` undo, `c` compact, `d` diff, `y` copy, `e` export, `w` web, `a` auto, `k` keys, `q` quit |
|
|
60
|
+
| `tab` / `shift+tab` | mode / thinking depth |
|
|
61
|
+
| `@` | attach a file, with completion (`tab`) |
|
|
62
|
+
| `!` | shell mode: run commands yourself, the output goes into the context (`!` or `esc` goes back) |
|
|
63
|
+
| `ctrl+o` | write the message in your editor (`$VISUAL` / `$EDITOR`) |
|
|
64
|
+
| `↑` while working | take the last queued message back to edit it |
|
|
65
|
+
| `esc` | stop |
|
|
66
|
+
| `\` + enter, `ctrl+j` | new line |
|
|
67
|
+
| `ctrl+c` | clear input, stop, twice to quit |
|
|
68
|
+
|
|
69
|
+
### Commands
|
|
70
|
+
|
|
71
|
+
| Command | |
|
|
72
|
+
|---|---|
|
|
73
|
+
| `/help` | every command and key |
|
|
31
74
|
| `/model` | switch model (price per 1M tokens shown) |
|
|
32
|
-
| `/
|
|
75
|
+
| `/scout`, `/forge`, `/auto` | modes |
|
|
76
|
+
| `/reasoning [level]`, `/thoughts` | thinking depth, last thoughts |
|
|
33
77
|
| `/init` | writes `ORREVAN.md` with notes about the project |
|
|
78
|
+
| `/remember <note>` | adds a note to `ORREVAN.md` |
|
|
34
79
|
| `/compact` | summarises the conversation to save tokens |
|
|
35
|
-
| `/
|
|
36
|
-
|
|
|
37
|
-
| `
|
|
38
|
-
|
|
|
80
|
+
| `/undo` | restores the files Orrevan changed in its last turn (shell commands are not undone) |
|
|
81
|
+
| `/diff` | uncommitted changes (`git diff`) |
|
|
82
|
+
| `/copy`, `/export [file]` | copy the last answer, save the conversation as Markdown |
|
|
83
|
+
| `/resume` (`/sessions`) | continue an earlier conversation in this folder |
|
|
84
|
+
| `/title <name>`, `/fork` | name the conversation, branch off into a copy |
|
|
85
|
+
| `/btw <question>` | quick side question on the current context, no tools, not kept. Works while Orrevan works |
|
|
86
|
+
| `/status` | version, model, mode, context, cost, MCP |
|
|
87
|
+
| `/todo` | the task list Orrevan keeps for bigger jobs |
|
|
88
|
+
| `/web` | web search on/off (small fee per search). Once web content is in the conversation, edits and commands need your approval again, even after "always allow" |
|
|
89
|
+
| `/mcp`, `/commands` | connected MCP servers, your own commands |
|
|
90
|
+
| `/clear`, `/cost`, `/balance`, `/exit` | |
|
|
91
|
+
|
|
92
|
+
Long pastes (over 1000 characters or 15 lines) show as `[Pasted text #1 +40 lines]` and are sent in full.
|
|
93
|
+
|
|
94
|
+
`@src/app.ts`, `@screenshot.png` sends the file with your message. Images (PNG, JPEG, WebP) need a model with vision. Text files up to 256 KB, images up to 4 MB.
|
|
95
|
+
|
|
96
|
+
Long conversations are compacted automatically above 100k context tokens (`ORREVAN_AUTO_COMPACT=<tokens>`, `0` turns it off).
|
|
97
|
+
|
|
98
|
+
### Your own commands
|
|
99
|
+
|
|
100
|
+
A Markdown file becomes a slash command. Its text is the prompt, `$ARGUMENTS` is what you type after the command (`$1` … `$9` single words).
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
.orrevan/commands/review.md this project (can be committed)
|
|
104
|
+
~/.config/orrevan/commands/review.md all your projects
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
```md
|
|
108
|
+
---
|
|
109
|
+
description: Review a file for bugs
|
|
110
|
+
---
|
|
111
|
+
Review $ARGUMENTS for bugs and risky code. List findings by severity.
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Then: `/review src/app.ts`.
|
|
115
|
+
|
|
116
|
+
### MCP servers
|
|
117
|
+
|
|
118
|
+
Connect tools over the Model Context Protocol (stdio servers):
|
|
119
|
+
|
|
120
|
+
```sh
|
|
121
|
+
orrevan mcp add github -e GITHUB_TOKEN=… -- npx -y @modelcontextprotocol/server-github
|
|
122
|
+
orrevan mcp # list
|
|
123
|
+
orrevan mcp remove github
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
The config lives in `~/.config/orrevan/mcp.json` (`{"mcpServers": {...}}`, same format as other MCP clients). Only this file is read, never one inside a project, so a cloned repository cannot start programs. Servers start in the background with each session, `/mcp` shows their tools. Every MCP call asks first ("always" allows one server for the session), the Orrevan key is not passed to servers, and their output is treated as untrusted.
|
|
39
127
|
|
|
40
128
|
### Tools and approvals
|
|
41
129
|
|
|
130
|
+
Besides files and commands Orrevan has `todo` (visible task list), `ask_user` (asks you with options when a decision is yours), `task` (a read-only sub-agent with a fresh context for broad searches) and, with `/web` on, `web_search` and `fetch_url` (reads a page, asks first).
|
|
131
|
+
|
|
42
132
|
Orrevan can `read_file`, `list_dir`, `glob` and `grep` freely inside the project folder. `write_file`, `edit_file` and `run_command` always ask first and show a diff or the command. Answer with *Yes*, *Yes for this session*, or *No* plus what it should do instead.
|
|
43
133
|
|
|
44
134
|
The tool protocol is plain text, so it works with every model, including uncensored models without native function calling.
|
|
@@ -56,6 +146,12 @@ The key is stored in `~/.config/orrevan/config.json` (mode 600). Conversations a
|
|
|
56
146
|
| `ORREVAN_API_KEY` | key instead of `orrevan login` |
|
|
57
147
|
| `ORREVAN_BASE_URL` | default `https://orrevan.com/api/v1` |
|
|
58
148
|
| `ORREVAN_MODEL` | default model |
|
|
149
|
+
| `ORREVAN_NO_UPDATE_CHECK=1` | no update notice |
|
|
150
|
+
| `ORREVAN_NO_ANIMATION=1` | no logo animation |
|
|
151
|
+
|
|
152
|
+
### Updates
|
|
153
|
+
|
|
154
|
+
`orrevan update` installs the newest version from npm (same as `npm install -g orrevan@latest`). In interactive sessions Orrevan checks npm at most once a day and shows a short notice when a newer version exists. The check sends no user data.
|
|
59
155
|
|
|
60
156
|
## Development
|
|
61
157
|
|