command-code 0.0.4-alpha.42 → 0.0.4-alpha.43
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 +60 -9
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,18 +1,69 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CommandCode
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
CommandCode is a coding agent with taste by Langbase.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g command-code
|
|
9
|
+
```
|
|
6
10
|
|
|
7
|
-
|
|
11
|
+
## Usage
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
Start an interactive chat session:
|
|
10
14
|
|
|
11
15
|
```bash
|
|
12
|
-
|
|
13
|
-
npm install command-code@alpha
|
|
16
|
+
cmd
|
|
14
17
|
```
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
Use `cmd --help` to see all available options.
|
|
20
|
+
|
|
21
|
+
## What is Taste?
|
|
22
|
+
|
|
23
|
+
Taste learning automatically learns your coding preferences and style from conversations. It analyzes patterns in your corrections and stated preferences, storing them in project-specific files.
|
|
24
|
+
|
|
25
|
+
**What Taste learns:**
|
|
26
|
+
|
|
27
|
+
- Your coding style preferences (const vs let, functional vs class components)
|
|
28
|
+
- Framework and library choices
|
|
29
|
+
- Code structure and patterns you prefer
|
|
30
|
+
- Testing and documentation practices
|
|
31
|
+
- Communication style preferences
|
|
32
|
+
|
|
33
|
+
**How it works:**
|
|
34
|
+
|
|
35
|
+
- Learns from explicit preferences ("Please always use TypeScript")
|
|
36
|
+
- Learns from repeated corrections you make
|
|
37
|
+
- Creates rules with confidence scores (0.0-1.0)
|
|
38
|
+
- Only applies rules with confidence > 0.3
|
|
39
|
+
- Organizes learnings by category when you have more than 5
|
|
40
|
+
|
|
41
|
+
Taste learning is **enabled by default**. Learnings are automatically stored in `.commandcode/taste/taste.md` with confidence scores. As it grows, learnings automatically split into multiple files and folders by category (e.g., `cli/`, `typescript/`, `architecture/`). Use `/taste` in the CLI to toggle it on or off.
|
|
42
|
+
|
|
43
|
+
**Try it:** State your preferences or make corrections during chat to see taste learning in action!
|
|
44
|
+
|
|
45
|
+
## Interactive Commands
|
|
46
|
+
|
|
47
|
+
Available during chat sessions:
|
|
48
|
+
|
|
49
|
+
- `/taste` - Toggle taste learning on or off
|
|
50
|
+
- `/share` - Create a shareable link for the conversation
|
|
51
|
+
- `/unshare` - Stop sharing the conversation
|
|
52
|
+
- `/resume` - Resume a past conversation
|
|
53
|
+
- `/memory` - Manage project memory (persistent context)
|
|
54
|
+
- `/clear` - Clear the conversation history
|
|
55
|
+
|
|
56
|
+
## Try These Examples
|
|
57
|
+
|
|
58
|
+
- Build a chrome extension to snooze a tab for 5s, 1min, and 10mins.
|
|
59
|
+
- Analyze this repo and suggest three high impact PRs
|
|
60
|
+
- Build a zero-config, single-file Node.js/TypeScript CLI named `passgen` that generates a random secure password.
|
|
61
|
+
- Build a modern React financial dashboard using shadcn/ui components with stock prices, market indices, and currency converter.
|
|
62
|
+
|
|
63
|
+
## Beta Release & Feedback
|
|
64
|
+
|
|
65
|
+
This is a beta version, and we are actively working on improvements. Expect some rough edges and occasional bugs as we refine the experience. Your feedback is invaluable. Join our Discord community: https://commandcode.ai/discord
|
|
66
|
+
|
|
67
|
+
## Author
|
|
17
68
|
|
|
18
|
-
|
|
69
|
+
[Ahmad Awais](https://twitter.com/_AhmadAwais)
|