@ccode-si/cli 0.0.0-stage → 1.0.3
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/LICENSE +54 -0
- package/README.md +101 -2
- package/THIRD_PARTY_NOTICES.txt +2409 -0
- package/bin/ccode.js +24 -0
- package/package.json +23 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
CCode — Proprietary License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CCode (ccode.si). All rights reserved.
|
|
4
|
+
|
|
5
|
+
This license covers CCode: the `ccode` program, the @ccode-si/cli npm
|
|
6
|
+
package and its platform packages, and their documentation (the
|
|
7
|
+
"Software"). Components made by others are covered by their own licenses
|
|
8
|
+
instead; see THIRD_PARTY_NOTICES.txt.
|
|
9
|
+
|
|
10
|
+
1. Use. You may install the Software and run it on devices you own or
|
|
11
|
+
control, for personal or commercial work, free of charge.
|
|
12
|
+
|
|
13
|
+
2. Restrictions. Except as allowed in section 3 or by applicable law, you
|
|
14
|
+
may not:
|
|
15
|
+
(a) copy, redistribute, sell, rent, lease, sublicense or otherwise make
|
|
16
|
+
the Software available to others (pointing them to the official npm
|
|
17
|
+
package is fine);
|
|
18
|
+
(b) modify, translate or create derivative works of the Software;
|
|
19
|
+
(c) reverse engineer, decompile, disassemble or deobfuscate the
|
|
20
|
+
Software, or try to derive its source code;
|
|
21
|
+
(d) remove or change this license, copyright notices or the third-party
|
|
22
|
+
notices.
|
|
23
|
+
|
|
24
|
+
3. Third-party components. The Software includes components licensed by
|
|
25
|
+
others, listed in THIRD_PARTY_NOTICES.txt, among them the Bun runtime
|
|
26
|
+
with JavaScriptCore/WebKit (GNU LGPL version 2) and TinyCC (GNU LGPL
|
|
27
|
+
version 2.1). Nothing in this license limits the rights those licenses
|
|
28
|
+
give you. In particular, for the LGPL-licensed libraries you may modify
|
|
29
|
+
them and relink them with the Software for your own use, and reverse
|
|
30
|
+
engineer the Software to the extent needed to debug such modifications.
|
|
31
|
+
Where to get their source code is set out in THIRD_PARTY_NOTICES.txt.
|
|
32
|
+
|
|
33
|
+
4. Your data. The Software runs on your device. It sends your prompts and
|
|
34
|
+
the content you work on to the AI model providers you configure, under
|
|
35
|
+
their terms, and keeps your settings, API keys and sessions on your
|
|
36
|
+
device.
|
|
37
|
+
|
|
38
|
+
5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
39
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
40
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
|
41
|
+
You are responsible for reviewing the changes the Software makes and
|
|
42
|
+
the commands it runs on your behalf.
|
|
43
|
+
|
|
44
|
+
6. Limitation of liability. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO
|
|
45
|
+
EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
46
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
47
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE,
|
|
48
|
+
INCLUDING LOSS OF DATA, CODE OR PROFITS.
|
|
49
|
+
|
|
50
|
+
7. Termination. This license ends automatically if you break its terms.
|
|
51
|
+
You must then stop using the Software and delete your copies.
|
|
52
|
+
|
|
53
|
+
8. New versions. A new version of the Software may come with a different
|
|
54
|
+
license; the license included with a version applies to that version.
|
package/README.md
CHANGED
|
@@ -1,3 +1,102 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CCode
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A coding agent for your terminal. Describe what you want in plain language; CCode reads your project, edits files, runs commands and checks its work, with any model you choose.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install -g @ccode-si/cli
|
|
7
|
+
ccode
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Runs on macOS (Apple silicon and Intel), Linux (x64 and arm64) and Windows (x64 and arm64). Needs Node 18 or newer to install.
|
|
11
|
+
|
|
12
|
+
## Getting started
|
|
13
|
+
|
|
14
|
+
1. Open a terminal in your project and run `ccode`.
|
|
15
|
+
2. Press `ctrl+p`, choose **Connect provider**, paste an API key and pick a model.
|
|
16
|
+
3. Type what you want done and press enter.
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
ccode # start in the current folder
|
|
20
|
+
ccode -c # continue the latest session here
|
|
21
|
+
ccode -r <id> # resume a session by id
|
|
22
|
+
ccode -p "<prompt>" # one answer on stdout, for scripts
|
|
23
|
+
ccode update # install the newest version
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Features
|
|
27
|
+
|
|
28
|
+
**Any model**
|
|
29
|
+
- Anthropic, OpenAI, Google Gemini, DeepSeek, OpenRouter, CoreWeave and the Z.ai coding plan, connected from inside the app.
|
|
30
|
+
- Local models through Ollama, LM Studio, llama.cpp, vLLM or any OpenAI-compatible server.
|
|
31
|
+
- Switch model mid-session with `/model`; set the thinking effort per model with `/effort`.
|
|
32
|
+
|
|
33
|
+
**Works in your project**
|
|
34
|
+
- Reads, searches, writes and edits files, and runs shell commands, including long ones in the background.
|
|
35
|
+
- Reads images and PDFs, searches the web and fetches pages.
|
|
36
|
+
- Plans multi-step work as a task list you can follow as it goes.
|
|
37
|
+
- `@` attaches files to a message, `ctrl+v` pastes an image from the clipboard; messages typed while it works are queued.
|
|
38
|
+
|
|
39
|
+
**You stay in control**
|
|
40
|
+
- Four permission modes, cycled with `shift+tab`: **Auto**, **Accept edits**, **Manual** and **Plan** (read-only: it explores and proposes a plan for you to approve).
|
|
41
|
+
- Allow or deny rules for commands, paths, tools and websites, kept in your own settings.
|
|
42
|
+
- A repository you open can't grant itself permissions, change your model or start servers without your approval.
|
|
43
|
+
|
|
44
|
+
**Nothing is lost**
|
|
45
|
+
- Every session is saved. `/session` browses, searches and resumes them; `/fork` copies one to try something else.
|
|
46
|
+
- `/undo` and `/redo` step through the conversation; `/rewind` puts files and conversation back to before any turn.
|
|
47
|
+
- Long conversations are summarized automatically, so a task can keep going.
|
|
48
|
+
- Memory: CCode remembers your corrections and standing preferences across sessions (`/memory`).
|
|
49
|
+
|
|
50
|
+
**Extend it**
|
|
51
|
+
- **Subagents** take on searches and side tasks in their own context, also in the background. Add your own.
|
|
52
|
+
- **Skills**: packaged instructions the agent loads when they fit, or that you run as `/<name>`.
|
|
53
|
+
- **MCP servers**: `ccode mcp add …`, with the same syntax as other agents' install lines.
|
|
54
|
+
- **Hooks**: your own commands before and after tool calls, on each message, and when a task ends.
|
|
55
|
+
- **Instruction files**: `CCODE.md`, `AGENTS.md` and `CLAUDE.md` in a project are followed.
|
|
56
|
+
|
|
57
|
+
**A terminal UI that stays out of the way**
|
|
58
|
+
- Streaming answers, coloured diffs for edits, and quiet steps folded into one line.
|
|
59
|
+
- A sidebar with context used, cost, tasks and modified files.
|
|
60
|
+
- Tabs for several sessions at once (turn on "Tabs" in settings), reopened next time.
|
|
61
|
+
- Syntax highlighting with a choice of themes; a transparent or black background.
|
|
62
|
+
- Desktop notifications when a task finishes or needs you.
|
|
63
|
+
- `/usage` shows your tokens, active days and streaks.
|
|
64
|
+
|
|
65
|
+
## Keys
|
|
66
|
+
|
|
67
|
+
| Key | Action |
|
|
68
|
+
|---|---|
|
|
69
|
+
| `ctrl+p` | every setting and command, searchable |
|
|
70
|
+
| `shift+tab` | cycle the permission mode |
|
|
71
|
+
| `shift+enter` | new line |
|
|
72
|
+
| `ctrl+v` | paste an image from the clipboard (`alt+v` also works) |
|
|
73
|
+
| `esc esc` | stop the response |
|
|
74
|
+
| `ctrl+b` | move the running command to the background |
|
|
75
|
+
| `ctrl+t` / `ctrl+n` | with tabs on: new tab / next tab |
|
|
76
|
+
| `ctrl+c` twice | quit |
|
|
77
|
+
|
|
78
|
+
## Commands
|
|
79
|
+
|
|
80
|
+
`/help` lists every command. The ones you'll use most:
|
|
81
|
+
|
|
82
|
+
| Command | What it does |
|
|
83
|
+
|---|---|
|
|
84
|
+
| `/model` | change the model |
|
|
85
|
+
| `/session` | browse and resume sessions |
|
|
86
|
+
| `/new` | start a fresh session |
|
|
87
|
+
| `/cd <path>` | move to another folder |
|
|
88
|
+
| `/compact` | summarize the conversation to free up context |
|
|
89
|
+
| `/btw <question>` | ask a side question without adding it to the conversation |
|
|
90
|
+
| `/undo` `/redo` `/rewind` | step back and forward |
|
|
91
|
+
| `/mcp` `/skills` `/hooks` `/memory` | what's installed and remembered |
|
|
92
|
+
| `/settings` | preferences |
|
|
93
|
+
|
|
94
|
+
## Settings
|
|
95
|
+
|
|
96
|
+
Preferences live in `~/.ccode/settings.json`; `ccode config` shows what is in effect and where it came from. API keys are kept apart from settings, in a file only you can read, or taken from environment variables such as `ANTHROPIC_API_KEY` and `OPENAI_API_KEY`.
|
|
97
|
+
|
|
98
|
+
CCode checks for a newer version once a day and tells you when there is one. Turn that off with `"updateCheck": false`.
|
|
99
|
+
|
|
100
|
+
## License
|
|
101
|
+
|
|
102
|
+
CCode is proprietary software: free to install and use, all other rights reserved. See `LICENSE`. Third-party notices ship in `THIRD_PARTY_NOTICES.txt`.
|