@protolabsai/proto 0.14.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/LICENSE +203 -0
- package/README.md +286 -0
- package/dist/bundled/adversarial-verification/SKILL.md +98 -0
- package/dist/bundled/brainstorming/SKILL.md +171 -0
- package/dist/bundled/coding-agent-standards/SKILL.md +67 -0
- package/dist/bundled/dispatching-parallel-agents/SKILL.md +193 -0
- package/dist/bundled/executing-plans/SKILL.md +77 -0
- package/dist/bundled/finishing-a-development-branch/SKILL.md +213 -0
- package/dist/bundled/loop/SKILL.md +61 -0
- package/dist/bundled/qc-helper/SKILL.md +151 -0
- package/dist/bundled/qc-helper/docs/_meta.ts +30 -0
- package/dist/bundled/qc-helper/docs/common-workflow.md +571 -0
- package/dist/bundled/qc-helper/docs/configuration/_meta.ts +10 -0
- package/dist/bundled/qc-helper/docs/configuration/auth.md +366 -0
- package/dist/bundled/qc-helper/docs/configuration/memory.md +0 -0
- package/dist/bundled/qc-helper/docs/configuration/model-providers.md +542 -0
- package/dist/bundled/qc-helper/docs/configuration/qwen-ignore.md +55 -0
- package/dist/bundled/qc-helper/docs/configuration/settings.md +652 -0
- package/dist/bundled/qc-helper/docs/configuration/themes.md +160 -0
- package/dist/bundled/qc-helper/docs/configuration/trusted-folders.md +61 -0
- package/dist/bundled/qc-helper/docs/extension/_meta.ts +9 -0
- package/dist/bundled/qc-helper/docs/extension/extension-releasing.md +121 -0
- package/dist/bundled/qc-helper/docs/extension/getting-started-extensions.md +299 -0
- package/dist/bundled/qc-helper/docs/extension/introduction.md +303 -0
- package/dist/bundled/qc-helper/docs/features/_meta.ts +18 -0
- package/dist/bundled/qc-helper/docs/features/approval-mode.md +263 -0
- package/dist/bundled/qc-helper/docs/features/arena.md +218 -0
- package/dist/bundled/qc-helper/docs/features/checkpointing.md +77 -0
- package/dist/bundled/qc-helper/docs/features/commands.md +312 -0
- package/dist/bundled/qc-helper/docs/features/headless.md +318 -0
- package/dist/bundled/qc-helper/docs/features/hooks.md +343 -0
- package/dist/bundled/qc-helper/docs/features/language.md +139 -0
- package/dist/bundled/qc-helper/docs/features/lsp.md +453 -0
- package/dist/bundled/qc-helper/docs/features/mcp.md +281 -0
- package/dist/bundled/qc-helper/docs/features/sandbox.md +241 -0
- package/dist/bundled/qc-helper/docs/features/scheduled-tasks.md +139 -0
- package/dist/bundled/qc-helper/docs/features/skills.md +289 -0
- package/dist/bundled/qc-helper/docs/features/sub-agents.md +307 -0
- package/dist/bundled/qc-helper/docs/features/token-caching.md +29 -0
- package/dist/bundled/qc-helper/docs/ide-integration/_meta.ts +4 -0
- package/dist/bundled/qc-helper/docs/ide-integration/ide-companion-spec.md +182 -0
- package/dist/bundled/qc-helper/docs/ide-integration/ide-integration.md +144 -0
- package/dist/bundled/qc-helper/docs/integration-github-action.md +241 -0
- package/dist/bundled/qc-helper/docs/integration-jetbrains.md +81 -0
- package/dist/bundled/qc-helper/docs/integration-vscode.md +39 -0
- package/dist/bundled/qc-helper/docs/integration-zed.md +72 -0
- package/dist/bundled/qc-helper/docs/overview.md +64 -0
- package/dist/bundled/qc-helper/docs/quickstart.md +273 -0
- package/dist/bundled/qc-helper/docs/reference/_meta.ts +4 -0
- package/dist/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +72 -0
- package/dist/bundled/qc-helper/docs/reference/sdk-api.md +524 -0
- package/dist/bundled/qc-helper/docs/support/Uninstall.md +42 -0
- package/dist/bundled/qc-helper/docs/support/_meta.ts +6 -0
- package/dist/bundled/qc-helper/docs/support/tos-privacy.md +112 -0
- package/dist/bundled/qc-helper/docs/support/troubleshooting.md +123 -0
- package/dist/bundled/receiving-code-review/SKILL.md +226 -0
- package/dist/bundled/requesting-code-review/SKILL.md +115 -0
- package/dist/bundled/review/SKILL.md +123 -0
- package/dist/bundled/subagent-driven-development/SKILL.md +292 -0
- package/dist/bundled/subagent-driven-development/code-quality-reviewer-prompt.md +27 -0
- package/dist/bundled/subagent-driven-development/implementer-prompt.md +113 -0
- package/dist/bundled/subagent-driven-development/spec-reviewer-prompt.md +61 -0
- package/dist/bundled/systematic-debugging/SKILL.md +305 -0
- package/dist/bundled/test-driven-development/SKILL.md +396 -0
- package/dist/bundled/using-git-worktrees/SKILL.md +223 -0
- package/dist/bundled/using-superpowers/SKILL.md +117 -0
- package/dist/bundled/verification-before-completion/SKILL.md +147 -0
- package/dist/bundled/writing-plans/SKILL.md +159 -0
- package/dist/bundled/writing-skills/SKILL.md +716 -0
- package/dist/cli.js +483432 -0
- package/dist/sandbox-macos-permissive-closed.sb +32 -0
- package/dist/sandbox-macos-permissive-open.sb +27 -0
- package/dist/sandbox-macos-permissive-proxied.sb +37 -0
- package/dist/sandbox-macos-restrictive-closed.sb +93 -0
- package/dist/sandbox-macos-restrictive-open.sb +96 -0
- package/dist/sandbox-macos-restrictive-proxied.sb +98 -0
- package/dist/vendor/ripgrep/COPYING +3 -0
- package/dist/vendor/ripgrep/arm64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/arm64-linux/rg +0 -0
- package/dist/vendor/ripgrep/x64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/x64-linux/rg +0 -0
- package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
- package/dist/vendor/tree-sitter/tree-sitter-bash.wasm +0 -0
- package/dist/vendor/tree-sitter/tree-sitter.wasm +0 -0
- package/package.json +143 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2025 Google LLC
|
|
191
|
+
Copyright 2025 Qwen
|
|
192
|
+
|
|
193
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
194
|
+
you may not use this file except in compliance with the License.
|
|
195
|
+
You may obtain a copy of the License at
|
|
196
|
+
|
|
197
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
198
|
+
|
|
199
|
+
Unless required by applicable law or agreed to in writing, software
|
|
200
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
201
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
202
|
+
See the License for the specific language governing permissions and
|
|
203
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
# proto
|
|
2
|
+
|
|
3
|
+
A multi-model AI agent for the terminal. Part of the [protoLabs Studio](https://protolabs.studio) ecosystem.
|
|
4
|
+
|
|
5
|
+
[](./LICENSE)
|
|
6
|
+
[](https://nodejs.org/)
|
|
7
|
+
|
|
8
|
+
proto is a fork of [Qwen Code](https://github.com/QwenLM/qwen-code) (itself forked from [Gemini CLI](https://github.com/google-gemini/gemini-cli)), rebuilt as a model-agnostic coding agent. It connects to any OpenAI-compatible, Anthropic, or Gemini API endpoint.
|
|
9
|
+
|
|
10
|
+
## What's Different
|
|
11
|
+
|
|
12
|
+
| Feature | Qwen Code | proto |
|
|
13
|
+
| ---------------- | ----------------------- | ------------------------------------------------------------------------------ |
|
|
14
|
+
| Default model | Qwen3-Coder | Any (configurable) |
|
|
15
|
+
| Task management | In-memory JSON | [beads_rust](https://github.com/Dicklesworthstone/beads_rust) (SQLite + JSONL) |
|
|
16
|
+
| Memory | Single append-only file | File-per-memory with YAML frontmatter, 4-type taxonomy, auto-extraction |
|
|
17
|
+
| MCP servers | None | Configurable via `~/.proto/settings.json` |
|
|
18
|
+
| Plugin discovery | Qwen only | Auto-discovers Claude Code plugins from `~/.claude/plugins/` |
|
|
19
|
+
| Skills | Nested superpowers | Flat bundled skills (16 skills, all discoverable) |
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
Requires Node.js 20+ and Rust toolchain (for beads_rust).
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Clone and build
|
|
27
|
+
git clone https://github.com/protoLabsAI/protoCLI.git
|
|
28
|
+
cd protoCLI
|
|
29
|
+
npm install
|
|
30
|
+
npm run build
|
|
31
|
+
|
|
32
|
+
# Link globally
|
|
33
|
+
npm link
|
|
34
|
+
|
|
35
|
+
# Install beads_rust task manager (optional but recommended)
|
|
36
|
+
cargo install beads_rust
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Quick Start
|
|
40
|
+
|
|
41
|
+
### 1. Configure your endpoint
|
|
42
|
+
|
|
43
|
+
proto connects to any OpenAI-compatible API. Create `~/.proto/settings.json`:
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"modelProviders": {
|
|
48
|
+
"openai": [
|
|
49
|
+
{
|
|
50
|
+
"id": "my-model",
|
|
51
|
+
"name": "My Model",
|
|
52
|
+
"baseUrl": "http://localhost:8000/v1",
|
|
53
|
+
"envKey": "MY_API_KEY"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"security": {
|
|
58
|
+
"auth": { "selectedType": "openai" }
|
|
59
|
+
},
|
|
60
|
+
"model": { "name": "my-model" }
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### 2. Set your API key
|
|
65
|
+
|
|
66
|
+
Create `~/.proto/.env`:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
MY_API_KEY=sk-your-key-here
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Or export it in your shell: `export MY_API_KEY=sk-your-key-here`
|
|
73
|
+
|
|
74
|
+
### 3. Run proto
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
proto # interactive mode
|
|
78
|
+
proto -p "explain this codebase" # one-shot mode
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
No auth screen — proto connects directly to your endpoint.
|
|
82
|
+
|
|
83
|
+
### Example: Multiple models via a gateway
|
|
84
|
+
|
|
85
|
+
If you run a gateway like [LiteLLM](https://github.com/BerriAI/litellm) in front of multiple providers, register them all under `modelProviders.openai` and switch between them with `/model`:
|
|
86
|
+
|
|
87
|
+
```json
|
|
88
|
+
{
|
|
89
|
+
"modelProviders": {
|
|
90
|
+
"openai": [
|
|
91
|
+
{
|
|
92
|
+
"id": "local/qwen-122b",
|
|
93
|
+
"name": "Qwen3.5-122B (local vLLM)",
|
|
94
|
+
"baseUrl": "http://my-gateway:4000/v1",
|
|
95
|
+
"envKey": "GATEWAY_KEY",
|
|
96
|
+
"generationConfig": { "contextWindowSize": 65536 }
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": "claude-sonnet-4-6",
|
|
100
|
+
"name": "Claude Sonnet 4.6",
|
|
101
|
+
"baseUrl": "http://my-gateway:4000/v1",
|
|
102
|
+
"envKey": "GATEWAY_KEY",
|
|
103
|
+
"capabilities": { "vision": true },
|
|
104
|
+
"generationConfig": { "contextWindowSize": 200000 }
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": "gpt-5.4",
|
|
108
|
+
"name": "GPT-5.4",
|
|
109
|
+
"baseUrl": "http://my-gateway:4000/v1",
|
|
110
|
+
"envKey": "GATEWAY_KEY",
|
|
111
|
+
"capabilities": { "vision": true },
|
|
112
|
+
"generationConfig": { "contextWindowSize": 200000 }
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"security": {
|
|
117
|
+
"auth": { "selectedType": "openai" }
|
|
118
|
+
},
|
|
119
|
+
"model": { "name": "local/qwen-122b" }
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Model config reference
|
|
124
|
+
|
|
125
|
+
| Field | Required | Description |
|
|
126
|
+
| ------------------------------------ | -------- | ---------------------------------------------------------------- |
|
|
127
|
+
| `id` | yes | Model ID sent to the API (must match what your endpoint expects) |
|
|
128
|
+
| `name` | no | Display name in proto UI (defaults to `id`) |
|
|
129
|
+
| `baseUrl` | no | API base URL (defaults to OpenAI's) |
|
|
130
|
+
| `envKey` | no | Environment variable name for the API key |
|
|
131
|
+
| `description` | no | Shown in model picker |
|
|
132
|
+
| `capabilities.vision` | no | Enable image/vision inputs |
|
|
133
|
+
| `generationConfig.contextWindowSize` | no | Context window in tokens |
|
|
134
|
+
|
|
135
|
+
## Configuration
|
|
136
|
+
|
|
137
|
+
proto uses `~/.proto/settings.json` for global config and `.proto/settings.json` for per-project overrides.
|
|
138
|
+
|
|
139
|
+
### MCP Servers
|
|
140
|
+
|
|
141
|
+
Add MCP servers directly in settings:
|
|
142
|
+
|
|
143
|
+
```json
|
|
144
|
+
{
|
|
145
|
+
"mcpServers": {
|
|
146
|
+
"my_server": {
|
|
147
|
+
"command": "node",
|
|
148
|
+
"args": ["/path/to/mcp-server/dist/index.js"],
|
|
149
|
+
"env": { "API_KEY": "..." },
|
|
150
|
+
"trust": true
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Tools are exposed as `mcp__<server_name>__<tool_name>` and available to the agent immediately.
|
|
157
|
+
|
|
158
|
+
### Plugin Discovery
|
|
159
|
+
|
|
160
|
+
proto auto-discovers Claude Code plugins installed at `~/.claude/plugins/`. Any plugin's `commands/` directory is automatically loaded as slash commands — no additional config needed.
|
|
161
|
+
|
|
162
|
+
## Task Management
|
|
163
|
+
|
|
164
|
+
proto integrates [beads_rust](https://github.com/Dicklesworthstone/beads_rust) for persistent, SQLite-backed task tracking. When `br` is on PATH, the 6 task tools (`task_create`, `task_get`, `task_list`, `task_update`, `task_stop`, `task_output`) use it as the backend. Tasks persist across sessions in `.beads/` within the project directory.
|
|
165
|
+
|
|
166
|
+
If `br` is not installed, tasks fall back to the original in-memory JSON store.
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# The agent uses these automatically, but you can also use br directly:
|
|
170
|
+
br list # See all tasks
|
|
171
|
+
br list --json # Machine-readable output
|
|
172
|
+
br create --title "Fix auth bug" --type task --priority 1
|
|
173
|
+
br close <id> --reason "Fixed in commit abc123"
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## Memory
|
|
177
|
+
|
|
178
|
+
proto has a persistent memory system inspired by Claude Code. Memories are individual markdown files with YAML frontmatter, organized by type and stored per-project or globally.
|
|
179
|
+
|
|
180
|
+
### Memory types
|
|
181
|
+
|
|
182
|
+
| Type | Purpose | Example |
|
|
183
|
+
| ----------- | ------------------------------------- | ---------------------------------------------- |
|
|
184
|
+
| `user` | Preferences, role, knowledge | "prefers tabs over spaces" |
|
|
185
|
+
| `feedback` | Approach corrections or confirmations | "don't mock the database in integration tests" |
|
|
186
|
+
| `project` | Deadlines, decisions, ongoing work | "merge freeze starts April 5" |
|
|
187
|
+
| `reference` | Pointers to external systems | "bugs tracked in Linear project INGEST" |
|
|
188
|
+
|
|
189
|
+
### How it works
|
|
190
|
+
|
|
191
|
+
Each memory is a `.md` file in `.proto/memory/` (project) or `~/.proto/memory/` (global):
|
|
192
|
+
|
|
193
|
+
```markdown
|
|
194
|
+
---
|
|
195
|
+
name: prefer-dark-theme
|
|
196
|
+
description: User prefers dark themes in all editors
|
|
197
|
+
type: user
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
User explicitly stated they prefer dark themes.
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
A `MEMORY.md` index is auto-generated and loaded into the system prompt at the start of each session. The agent can create memories via the `save_memory` tool, or you can use slash commands:
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
/memory add --project I prefer dark themes
|
|
207
|
+
/memory list
|
|
208
|
+
/memory forget prefer-dark-theme
|
|
209
|
+
/memory show
|
|
210
|
+
/memory refresh
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
After each conversation turn, a background extraction agent reviews recent messages and auto-creates memories for notable facts. This runs fire-and-forget with restricted tools (read/write/glob in the memory directory only).
|
|
214
|
+
|
|
215
|
+
## Skills
|
|
216
|
+
|
|
217
|
+
proto ships with 16 bundled skills for agentic workflows:
|
|
218
|
+
|
|
219
|
+
- **brainstorming** — Structured ideation
|
|
220
|
+
- **dispatching-parallel-agents** — Fan-out/fan-in subagent patterns
|
|
221
|
+
- **executing-plans** — Step-by-step plan execution
|
|
222
|
+
- **finishing-a-development-branch** — Pre-merge cleanup
|
|
223
|
+
- **qc-helper** — Quality control checks
|
|
224
|
+
- **receiving-code-review** — Process review feedback
|
|
225
|
+
- **requesting-code-review** — Generate review requests
|
|
226
|
+
- **review** — Code review workflow
|
|
227
|
+
- **subagent-driven-development** — Delegate to specialized subagents
|
|
228
|
+
- **systematic-debugging** — Structured debug methodology
|
|
229
|
+
- **test-driven-development** — TDD workflow
|
|
230
|
+
- **using-git-worktrees** — Isolated branch work
|
|
231
|
+
- **using-superpowers** — Advanced agent capabilities
|
|
232
|
+
- **verification-before-completion** — Pre-commit verification
|
|
233
|
+
- **writing-plans** — Plan authoring
|
|
234
|
+
- **writing-skills** — Skill authoring
|
|
235
|
+
|
|
236
|
+
Use `/skills` to list available skills in a session.
|
|
237
|
+
|
|
238
|
+
## Commands
|
|
239
|
+
|
|
240
|
+
| Command | Description |
|
|
241
|
+
| ----------------------- | ----------------------------------------- |
|
|
242
|
+
| `/help` | Show available commands |
|
|
243
|
+
| `/auth` | Configure authentication |
|
|
244
|
+
| `/model` | Switch models |
|
|
245
|
+
| `/skills` | List available skills |
|
|
246
|
+
| `/memory show` | Display loaded memory content |
|
|
247
|
+
| `/memory list` | List all memories with type, scope, age |
|
|
248
|
+
| `/memory add <fact>` | Save a memory (`--global` or `--project`) |
|
|
249
|
+
| `/memory forget <name>` | Delete a memory |
|
|
250
|
+
| `/memory refresh` | Reload memories from disk |
|
|
251
|
+
| `/clear` | Clear conversation |
|
|
252
|
+
| `/compress` | Compress history to save tokens |
|
|
253
|
+
| `/stats` | Session info |
|
|
254
|
+
| `/exit` | Exit proto |
|
|
255
|
+
|
|
256
|
+
## Keyboard Shortcuts
|
|
257
|
+
|
|
258
|
+
| Shortcut | Action |
|
|
259
|
+
| --------- | ------------------------ |
|
|
260
|
+
| `Ctrl+C` | Cancel current operation |
|
|
261
|
+
| `Ctrl+D` | Exit (on empty line) |
|
|
262
|
+
| `Up/Down` | Navigate command history |
|
|
263
|
+
|
|
264
|
+
## IDE Integration
|
|
265
|
+
|
|
266
|
+
proto works with VS Code, Zed, and JetBrains IDEs. See the upstream [Qwen Code docs](https://qwenlm.github.io/qwen-code-docs/en/users/overview) for setup instructions.
|
|
267
|
+
|
|
268
|
+
## Architecture
|
|
269
|
+
|
|
270
|
+
```
|
|
271
|
+
packages/
|
|
272
|
+
├── cli/ # Terminal UI (Ink + React)
|
|
273
|
+
├── core/ # Agent engine, tools, skills, MCP client
|
|
274
|
+
├── sdk-typescript/# TypeScript SDK
|
|
275
|
+
├── web-templates/ # Shared web templates
|
|
276
|
+
├── webui/ # Shared UI components
|
|
277
|
+
└── test-utils/ # Testing utilities
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
## Acknowledgments
|
|
281
|
+
|
|
282
|
+
Built on [Qwen Code](https://github.com/QwenLM/qwen-code) (Apache 2.0), which is built on [Gemini CLI](https://github.com/google-gemini/gemini-cli) (Apache 2.0). Task management powered by [beads_rust](https://github.com/Dicklesworthstone/beads_rust).
|
|
283
|
+
|
|
284
|
+
## License
|
|
285
|
+
|
|
286
|
+
Apache 2.0 — see [LICENSE](./LICENSE).
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: adversarial-verification
|
|
3
|
+
description: Use when you need to verify code changes by actively trying to break them - not just confirming they work, but probing for failures through boundary testing, concurrency, and edge cases
|
|
4
|
+
agentOnly: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Adversarial Verification
|
|
8
|
+
|
|
9
|
+
## Purpose
|
|
10
|
+
|
|
11
|
+
Your job is NOT to confirm the implementation works. Your job is to try to break it.
|
|
12
|
+
|
|
13
|
+
## Two Failure Modes That Will Get You
|
|
14
|
+
|
|
15
|
+
1. **Check-skipping:** Finding reasons not to actually run checks. Reading source and deciding it "looks correct." Writing PASS with no supporting command output. This is not verification — it is storytelling.
|
|
16
|
+
|
|
17
|
+
2. **Getting lulled by the obvious 80%:** Seeing a polished UI or green test suite and feeling inclined to pass. Meanwhile half the buttons do nothing, state vanishes on refresh, backend crashes on malformed input.
|
|
18
|
+
|
|
19
|
+
## Rationalization Traps
|
|
20
|
+
|
|
21
|
+
If you catch yourself thinking any of these, stop and course-correct:
|
|
22
|
+
|
|
23
|
+
- "The code looks correct based on my reading" — Inspection alone does not constitute proof. Execute it.
|
|
24
|
+
- "The implementer's tests already pass" — Tests may rely on mocks, contain circular assertions, or cover only the happy path. Verify independently.
|
|
25
|
+
- "This is probably fine" — "Probably" is not "verified." Run the check.
|
|
26
|
+
- "Let me start the server and check the code" — No. Start the server and HIT THE ENDPOINTS.
|
|
27
|
+
- "This would take too long" — That is not your decision to make.
|
|
28
|
+
|
|
29
|
+
## Universal Required Steps
|
|
30
|
+
|
|
31
|
+
Regardless of what changed:
|
|
32
|
+
|
|
33
|
+
1. Read the project's PROTO.md, README, or equivalent to discover build and test commands.
|
|
34
|
+
2. Run the build. Broken build = automatic FAIL.
|
|
35
|
+
3. Run the full test suite. Any failing test = automatic FAIL.
|
|
36
|
+
4. Run linters and type-checkers if the project has them configured.
|
|
37
|
+
5. Check for regressions in areas adjacent to the change.
|
|
38
|
+
|
|
39
|
+
## Adversarial Probes
|
|
40
|
+
|
|
41
|
+
Run at least one of these before issuing ANY pass:
|
|
42
|
+
|
|
43
|
+
- **Concurrency:** Fire parallel requests at the same resource. Do duplicate records appear? Does data corrupt?
|
|
44
|
+
- **Boundary values:** Feed 0, -1, empty string, extremely long strings, unicode characters, MAX_INT.
|
|
45
|
+
- **Idempotency:** Submit the same request twice. Does the system handle it gracefully?
|
|
46
|
+
- **Orphan operations:** Attempt to delete a nonexistent resource, or reference an ID that was never created.
|
|
47
|
+
|
|
48
|
+
## Verification Strategies by Change Type
|
|
49
|
+
|
|
50
|
+
- **Frontend/UI:** Start dev server. Navigate pages, click elements, fill forms. Curl subresources (JS bundles, CSS, images) to confirm they load.
|
|
51
|
+
- **Backend/API:** Start server. Curl each relevant endpoint. Check response status codes, headers, body shapes. Send bad input to test error handling.
|
|
52
|
+
- **CLI/script:** Execute with representative arguments. Check stdout, stderr, exit codes. Feed edge-case inputs.
|
|
53
|
+
- **Infrastructure/config:** Validate syntax. Perform dry-run commands where available (terraform plan, docker build --check, nginx -t).
|
|
54
|
+
- **Bug fixes:** Reproduce the original bug FIRST. Confirm the fix resolves it. Run regression tests. Check for side effects.
|
|
55
|
+
- **Refactoring:** Existing test suite MUST pass without modification. Diff public API surface to confirm nothing changed unintentionally.
|
|
56
|
+
|
|
57
|
+
## Output Format
|
|
58
|
+
|
|
59
|
+
Every verification step must follow this exact format:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
### Check: [what you are verifying]
|
|
63
|
+
**Command:** `[exact command executed]`
|
|
64
|
+
**Output:** [actual terminal output, copy-pasted verbatim]
|
|
65
|
+
**Result: PASS** (or **FAIL** with Expected vs Actual)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Bad example (REJECTED):
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
### Check: API returns correct data
|
|
72
|
+
**Command:** (reviewed the handler source code)
|
|
73
|
+
**Output:** The logic appears correct
|
|
74
|
+
**Result: PASS**
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
This contains no executed command and no real output. It proves nothing.
|
|
78
|
+
|
|
79
|
+
Good example (ACCEPTABLE):
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
### Check: API returns correct data
|
|
83
|
+
**Command:** `curl -s http://localhost:3000/api/users/1 | jq .`
|
|
84
|
+
**Output:** {"id": 1, "name": "Alice", "email": "alice@example.com"}
|
|
85
|
+
**Result: PASS** - response contains expected fields with valid values
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Final Verdict
|
|
89
|
+
|
|
90
|
+
End every verification report with exactly one of:
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
VERDICT: PASS
|
|
94
|
+
VERDICT: FAIL
|
|
95
|
+
VERDICT: PARTIAL
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Use PARTIAL only when environmental limitations genuinely prevented certain checks. Uncertainty = FAIL, not PARTIAL.
|