@ai-launchpad-v1/expert-code 0.1.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 +106 -0
- package/dist/index.js +2707 -0
- package/package.json +38 -0
package/README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Expert Code CLI
|
|
2
|
+
|
|
3
|
+
Expert Code — AI Launchpad's autonomous coding agent — in your terminal. Works in
|
|
4
|
+
any IDE's integrated terminal (VS Code, JetBrains, Windows Terminal, iTerm, …) and
|
|
5
|
+
on any project: `cd` into a folder and run `expert`; that folder becomes the
|
|
6
|
+
workspace.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
Requires Node.js ≥ 18.
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install -g @ai-launchpad-v1/expert-code
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Or run it without installing:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npx @ai-launchpad-v1/expert-code
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Choose how it runs the AI
|
|
23
|
+
|
|
24
|
+
Two options — pick either:
|
|
25
|
+
|
|
26
|
+
### Option A — Managed sign-in (no API key)
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
expert login
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Enter your email, then the one-time code we email you. Expert Code then runs on the
|
|
33
|
+
hosted backend — no API key to manage. (Managed inference requires a Premium
|
|
34
|
+
account.) Sign out any time with `expert logout`.
|
|
35
|
+
|
|
36
|
+
### Option B — BYOK (bring your own key)
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
expert setup
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Pick a provider (Anthropic, OpenAI, Gemini, Groq, or OpenRouter) and paste your own
|
|
43
|
+
API key. It's saved once to `~/.expertcode/config.json` and used for every run —
|
|
44
|
+
inference bills to your key, nothing goes through our backend. Non-interactive:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
expert setup --provider anthropic --key sk-ant-... --model claude-sonnet-4-6
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
You can also just set a key in your shell for one session (it overrides the saved
|
|
51
|
+
config): `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY`, `GROQ_API_KEY`, or
|
|
52
|
+
`OPENROUTER_API_KEY` (plus `AI_PROVIDER` to choose, and `<PROVIDER>_MODEL` to pin a
|
|
53
|
+
model). On OpenRouter, pick a model that supports tool-calling or the agent can't
|
|
54
|
+
edit files.
|
|
55
|
+
|
|
56
|
+
**Which lane runs:** signed in → managed; otherwise BYOK. Force one with
|
|
57
|
+
`EXPERT_LANE=byok` or `EXPERT_LANE=managed`. Check with `expert whoami`.
|
|
58
|
+
|
|
59
|
+
## Use
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
expert # work in the current directory
|
|
63
|
+
expert ../other-proj # work in another directory
|
|
64
|
+
expert --manual # approve every write/edit/command (default: auto)
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Type a task at the `›` prompt in plain English — the agent explores, edits, and runs
|
|
68
|
+
commands, showing diffs and live output.
|
|
69
|
+
|
|
70
|
+
- **`/init`** — have it generate an `EXPERT.md` (project orientation it auto-loads on
|
|
71
|
+
every future task). Run once per project.
|
|
72
|
+
- **Approvals** (`auto` mode, the default): reads and file edits apply automatically;
|
|
73
|
+
risky/unknown commands pause — press `y` (run), `n` (skip), `a` (always allow this
|
|
74
|
+
exact command this session), or type a note to reject with guidance.
|
|
75
|
+
- **`--manual`** / `/manual` — approve *every* write, edit, and command.
|
|
76
|
+
- **Ctrl-C** once — stop the current task and return to the prompt.
|
|
77
|
+
- Other commands: `/auto`, `/clear` (fresh conversation), `/help`, `/exit`.
|
|
78
|
+
|
|
79
|
+
## Commands
|
|
80
|
+
|
|
81
|
+
| Command | What it does |
|
|
82
|
+
|---|---|
|
|
83
|
+
| `expert [dir] [--manual]` | Start the agent in a project (default: current dir) |
|
|
84
|
+
| `expert setup` | Configure BYOK (your own provider key) |
|
|
85
|
+
| `expert login` / `expert logout` | Managed sign-in / sign-out |
|
|
86
|
+
| `expert whoami` | Show sign-in and active inference lane |
|
|
87
|
+
| `expert config [set <k> <v>]` | Show or edit config (`apiBase`, `provider`) |
|
|
88
|
+
| `expert --version` / `--help` | Version / help |
|
|
89
|
+
|
|
90
|
+
## Safety
|
|
91
|
+
|
|
92
|
+
Every file operation is confined to the workspace root — checked lexically and after
|
|
93
|
+
resolving symlinks — and writes under `.git/` are refused. Destructive, install,
|
|
94
|
+
network, and outward-facing commands always require explicit approval, even in auto
|
|
95
|
+
mode.
|
|
96
|
+
|
|
97
|
+
## Self-hosting the managed backend
|
|
98
|
+
|
|
99
|
+
`expert config set apiBase https://your-deployment` points the managed lane at your
|
|
100
|
+
own deployment (must match that backend's `NEXT_PUBLIC_APP_URL`). Supabase values can
|
|
101
|
+
be overridden with `EXPERT_SUPABASE_URL` / `EXPERT_SUPABASE_ANON_KEY`.
|
|
102
|
+
|
|
103
|
+
## Not yet included
|
|
104
|
+
|
|
105
|
+
Session persistence/resume, MCP tools, "get a human code review", and chat
|
|
106
|
+
attachments (all present in the ExpertAI desktop app).
|