command-code 0.9.12 → 0.10.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 +10 -70
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# [Command Code](https://commandcode.ai)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Command code with your taste. Check it out at [CommandCode.ai](https://commandcode.ai)
|
|
4
|
+
|
|
5
|
+
> Stop fixing sloppy AI code. Command Code continuously learns your coding taste. Powered by taste-1 applied meta neuro-symbolic AI.
|
|
6
|
+
|
|
7
|
+
## Docs
|
|
8
|
+
|
|
9
|
+
Please follow the full documentation at [CommandCode.ai/docs](https://commandcode.ai/docs)
|
|
4
10
|
|
|
5
11
|
## Installation
|
|
6
12
|
|
|
@@ -10,73 +16,7 @@ npm i -g command-code
|
|
|
10
16
|
|
|
11
17
|
## Usage
|
|
12
18
|
|
|
13
|
-
Start an interactive chat session:
|
|
14
|
-
|
|
15
19
|
```bash
|
|
16
|
-
|
|
20
|
+
command-code <command> [options]
|
|
17
21
|
```
|
|
18
|
-
|
|
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
|
-
- `/login` - Authenticate with CommandCode via browser (zero-copy auth)
|
|
50
|
-
- `/logout` - Sign out from CommandCode
|
|
51
|
-
- `/taste` - Toggle taste learning on or off
|
|
52
|
-
- `/share` - Create a shareable link for the conversation
|
|
53
|
-
- `/unshare` - Stop sharing the conversation
|
|
54
|
-
- `/resume` - Resume a past conversation
|
|
55
|
-
- `/memory` - Manage project memory (persistent context)
|
|
56
|
-
- `/clear` - Clear the conversation history
|
|
57
|
-
|
|
58
|
-
## Authentication
|
|
59
|
-
|
|
60
|
-
CommandCode uses browser-based authentication for a secure, seamless login experience:
|
|
61
|
-
|
|
62
|
-
1. Run `/login` in the CLI
|
|
63
|
-
2. Your browser opens automatically to CommandCode Studio
|
|
64
|
-
3. Click "Approve" to authorize the CLI
|
|
65
|
-
4. You're authenticated! The CLI receives your credentials automatically
|
|
66
|
-
|
|
67
|
-
No need to copy-paste API keys - authentication happens securely in the background.
|
|
68
|
-
|
|
69
|
-
## Try These Examples
|
|
70
|
-
|
|
71
|
-
- Build a chrome extension to snooze a tab for 5s, 1min, and 10mins.
|
|
72
|
-
- Analyze this repo and suggest three high impact PRs
|
|
73
|
-
- Build a zero-config, single-file Node.js/TypeScript CLI named `passgen` that generates a random secure password.
|
|
74
|
-
- Build a modern React financial dashboard using shadcn/ui components with stock prices, market indices, and currency converter.
|
|
75
|
-
|
|
76
|
-
## Beta Release & Feedback
|
|
77
|
-
|
|
78
|
-
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
|
|
79
|
-
|
|
80
|
-
## Author
|
|
81
|
-
|
|
82
|
-
[Ahmad Awais](https://twitter.com/_AhmadAwais)
|
|
22
|
+
For detailed usage instructions, please refer to the [documentation](https://commandcode.ai/docs).
|