vaan-ai 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.
Files changed (106) hide show
  1. package/LICENSE +216 -0
  2. package/README.md +390 -0
  3. package/dist/src/agent.js +151 -0
  4. package/dist/src/agent.js.map +1 -0
  5. package/dist/src/cli/args.js +38 -0
  6. package/dist/src/cli/args.js.map +1 -0
  7. package/dist/src/cli/doctor.js +98 -0
  8. package/dist/src/cli/doctor.js.map +1 -0
  9. package/dist/src/cli/dotenv.js +58 -0
  10. package/dist/src/cli/dotenv.js.map +1 -0
  11. package/dist/src/cli/main.js +138 -0
  12. package/dist/src/cli/main.js.map +1 -0
  13. package/dist/src/cli/memory-cmd.js +31 -0
  14. package/dist/src/cli/memory-cmd.js.map +1 -0
  15. package/dist/src/cli/repl.js +275 -0
  16. package/dist/src/cli/repl.js.map +1 -0
  17. package/dist/src/cli/schedule.js +184 -0
  18. package/dist/src/cli/schedule.js.map +1 -0
  19. package/dist/src/cli/suggested.js +26 -0
  20. package/dist/src/cli/suggested.js.map +1 -0
  21. package/dist/src/cli/trace-cmd.js +69 -0
  22. package/dist/src/cli/trace-cmd.js.map +1 -0
  23. package/dist/src/cli/wizard.js +346 -0
  24. package/dist/src/cli/wizard.js.map +1 -0
  25. package/dist/src/config.js +130 -0
  26. package/dist/src/config.js.map +1 -0
  27. package/dist/src/eval/graders.js +145 -0
  28. package/dist/src/eval/graders.js.map +1 -0
  29. package/dist/src/eval/report.js +20 -0
  30. package/dist/src/eval/report.js.map +1 -0
  31. package/dist/src/eval/runner.js +67 -0
  32. package/dist/src/eval/runner.js.map +1 -0
  33. package/dist/src/eval/suites.js +164 -0
  34. package/dist/src/eval/suites.js.map +1 -0
  35. package/dist/src/http.js +134 -0
  36. package/dist/src/http.js.map +1 -0
  37. package/dist/src/inbox.js +51 -0
  38. package/dist/src/inbox.js.map +1 -0
  39. package/dist/src/index.js +180 -0
  40. package/dist/src/index.js.map +1 -0
  41. package/dist/src/memory/context.js +63 -0
  42. package/dist/src/memory/context.js.map +1 -0
  43. package/dist/src/memory/index.js +28 -0
  44. package/dist/src/memory/index.js.map +1 -0
  45. package/dist/src/memory/search.js +32 -0
  46. package/dist/src/memory/search.js.map +1 -0
  47. package/dist/src/memory/store.js +171 -0
  48. package/dist/src/memory/store.js.map +1 -0
  49. package/dist/src/observability/events.js +109 -0
  50. package/dist/src/observability/events.js.map +1 -0
  51. package/dist/src/observability/request.js +20 -0
  52. package/dist/src/observability/request.js.map +1 -0
  53. package/dist/src/observability/trace.js +149 -0
  54. package/dist/src/observability/trace.js.map +1 -0
  55. package/dist/src/paths.js +24 -0
  56. package/dist/src/paths.js.map +1 -0
  57. package/dist/src/permissions/approval.js +80 -0
  58. package/dist/src/permissions/approval.js.map +1 -0
  59. package/dist/src/permissions/policy.js +75 -0
  60. package/dist/src/permissions/policy.js.map +1 -0
  61. package/dist/src/permissions/rules.js +200 -0
  62. package/dist/src/permissions/rules.js.map +1 -0
  63. package/dist/src/prompt.js +114 -0
  64. package/dist/src/prompt.js.map +1 -0
  65. package/dist/src/providers/anthropic.js +233 -0
  66. package/dist/src/providers/anthropic.js.map +1 -0
  67. package/dist/src/providers/custom.js +46 -0
  68. package/dist/src/providers/custom.js.map +1 -0
  69. package/dist/src/providers/google.js +197 -0
  70. package/dist/src/providers/google.js.map +1 -0
  71. package/dist/src/providers/index.js +122 -0
  72. package/dist/src/providers/index.js.map +1 -0
  73. package/dist/src/providers/ollama.js +44 -0
  74. package/dist/src/providers/ollama.js.map +1 -0
  75. package/dist/src/providers/openai.js +193 -0
  76. package/dist/src/providers/openai.js.map +1 -0
  77. package/dist/src/providers/shared.js +32 -0
  78. package/dist/src/providers/shared.js.map +1 -0
  79. package/dist/src/sandbox/filesystem.js +193 -0
  80. package/dist/src/sandbox/filesystem.js.map +1 -0
  81. package/dist/src/sandbox/network.js +119 -0
  82. package/dist/src/sandbox/network.js.map +1 -0
  83. package/dist/src/sandbox/process.js +198 -0
  84. package/dist/src/sandbox/process.js.map +1 -0
  85. package/dist/src/skills.js +80 -0
  86. package/dist/src/skills.js.map +1 -0
  87. package/dist/src/tools/basics.js +41 -0
  88. package/dist/src/tools/basics.js.map +1 -0
  89. package/dist/src/tools/code.js +114 -0
  90. package/dist/src/tools/code.js.map +1 -0
  91. package/dist/src/tools/files.js +162 -0
  92. package/dist/src/tools/files.js.map +1 -0
  93. package/dist/src/tools/git.js +91 -0
  94. package/dist/src/tools/git.js.map +1 -0
  95. package/dist/src/tools/grep.js +92 -0
  96. package/dist/src/tools/grep.js.map +1 -0
  97. package/dist/src/tools/index.js +66 -0
  98. package/dist/src/tools/index.js.map +1 -0
  99. package/dist/src/tools/shared.js +11 -0
  100. package/dist/src/tools/shared.js.map +1 -0
  101. package/dist/src/tools/web.js +217 -0
  102. package/dist/src/tools/web.js.map +1 -0
  103. package/dist/src/types.js +14 -0
  104. package/dist/src/types.js.map +1 -0
  105. package/package.json +59 -0
  106. package/scripts/postinstall.js +47 -0
package/LICENSE ADDED
@@ -0,0 +1,216 @@
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 [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
203
+
204
+ Copyright 2026 Vaan AI contributors
205
+
206
+ Licensed under the Apache License, Version 2.0 (the "License");
207
+ you may not use this file except in compliance with the License.
208
+ You may obtain a copy of the License at
209
+
210
+ http://www.apache.org/licenses/LICENSE-2.0
211
+
212
+ Unless required by applicable law or agreed to in writing, software
213
+ distributed under the License is distributed on an "AS IS" BASIS,
214
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
215
+ See the License for the specific language governing permissions and
216
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,390 @@
1
+ # โ˜๏ธ Vaan AI
2
+
3
+ **Your terminal, with an AI that can actually do the work.**
4
+
5
+ Vaan is a local-first AI agent for your terminal โ€” built to think, act, remember, and explain what
6
+ it did.
7
+
8
+ Give Vaan a task. It can inspect your project, use tools, modify code, run tests, remember context,
9
+ and show you exactly what happened.
10
+
11
+ ```text
12
+ You
13
+ โ†“
14
+ โ˜๏ธ Vaan
15
+ โ†“
16
+ ๐Ÿง  Think โ†’ ๐Ÿ”ง Act โ†’ ๐Ÿ” Permission โ†’ ๐Ÿ“ฆ Sandbox
17
+ โ†“
18
+ ๐Ÿงช Test โ†’ ๐Ÿ” Verify โ†’ ๐Ÿ“‹ Explain
19
+ โ†“
20
+ โœ“ Done
21
+ ```
22
+
23
+ ---
24
+
25
+ ## ๐Ÿš€ Get Started
26
+
27
+ ```bash
28
+ git clone https://github.com/balagurunilacandane/vaan-ai.git
29
+ cd vaan-ai && npm install && npm run build && npm link
30
+ ```
31
+
32
+ Then, from any project:
33
+
34
+ ```bash
35
+ cd ~/projects/my-app
36
+ vaan
37
+ ```
38
+
39
+ That's it.
40
+
41
+ > **Not on npm yet.** Once the first release is published this becomes `npx vaan`.
42
+
43
+ **What you need**
44
+
45
+ - **Node 20 or newer.**
46
+ - **One provider** โ€” an API key for Anthropic, OpenAI, Google or Groq, or
47
+ [Ollama](https://ollama.com) running locally, which needs no key at all.
48
+ - **A C++ toolchain, occasionally.** Memory is SQLite with FTS5, so there's one native dependency.
49
+ Almost every platform gets a prebuilt binary; if yours doesn't, the install says so and tells you
50
+ what to install.
51
+
52
+ Vaan starts with an interactive onboarding experience instead of making you configure everything
53
+ manually.
54
+
55
+ ---
56
+
57
+ ## ๐Ÿงญ Interactive Onboarding
58
+
59
+ When you run `vaan` for the first time, it walks you through:
60
+
61
+ ```text
62
+ โ˜๏ธ Welcome to Vaan AI
63
+
64
+ Let's get you set up.
65
+
66
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
67
+ โ”‚ 1. ๐Ÿ“ Workspace โ”‚
68
+ โ”‚ ~/projects/my-app โ”‚
69
+ โ”‚ โ”‚
70
+ โ”‚ 2. ๐Ÿค– Model โ”‚
71
+ โ”‚ anthropic/claude-opus-5 โ”‚
72
+ โ”‚ โ”‚
73
+ โ”‚ 3. ๐Ÿ”‘ Credentials โ”‚
74
+ โ”‚ โ— Configure provider โ”‚
75
+ โ”‚ โ”‚
76
+ โ”‚ 4. ๐Ÿ‘ค Agent Identity โ”‚
77
+ โ”‚ Vaan โ”‚
78
+ โ”‚ โ”‚
79
+ โ”‚ 5. ๐Ÿง  Memory โ”‚
80
+ โ”‚ โ— Enabled โ”‚
81
+ โ”‚ โ”‚
82
+ โ”‚ 6. ๐Ÿงฐ Tools โ”‚
83
+ โ”‚ โœ“ Files โœ“ Search โœ“ Git โ”‚
84
+ โ”‚ โœ“ Web โœ“ Code โœ“ Memory โ”‚
85
+ โ”‚ โ—‹ Browser (not yet) โ”‚
86
+ โ”‚ โ—‹ Integrations (not yet) โ”‚
87
+ โ”‚ โ”‚
88
+ โ”‚ 7. ๐Ÿ“ฆ Coding Sandbox โ”‚
89
+ โ”‚ โ— Restricted โ”‚
90
+ โ”‚ โ”‚
91
+ โ”‚ 8. ๐Ÿ” Permissions โ”‚
92
+ โ”‚ โ— Configure โ”‚
93
+ โ”‚ โ”‚
94
+ โ”‚ 9. โš™๏ธ Project Configuration โ”‚
95
+ โ”‚ โ— SOUL.md / GUARDRAILS.md โ”‚
96
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
97
+
98
+ โœ“ Vaan is ready.
99
+ ```
100
+
101
+ A group you switch off doesn't exist. The model isn't told about a tool it may not use and then
102
+ refused โ€” it simply doesn't have one.
103
+
104
+ ---
105
+
106
+ ## ๐Ÿค– Bring your own model
107
+
108
+ Choose the model you actually want to use:
109
+
110
+ ```text
111
+ anthropic/claude-opus-5
112
+ openai/gpt-5
113
+ google/gemini-2.5-pro
114
+ ollama/qwen3:8b
115
+ custom/your-model
116
+ ```
117
+
118
+ Cloud or local. No model lock-in, and no allowlist of model names anywhere in the codebase โ€” the
119
+ prefix picks an adapter, everything after the slash is passed through untouched. A model released
120
+ tomorrow works today.
121
+
122
+ ---
123
+
124
+ ## โšก Give it real work
125
+
126
+ ```text
127
+ > Add rate limiting to /api/auth/login.
128
+ > Use Redis if it's already available.
129
+ > Add tests and run them.
130
+ ```
131
+
132
+ Vaan:
133
+
134
+ ```text
135
+ ๐Ÿง  Thinking...
136
+ ๐Ÿ”Ž Inspecting project...
137
+ ๐Ÿ” Searching for Redis...
138
+ ๐Ÿ“‹ Planning changes...
139
+
140
+ โœ“ Redis found
141
+ โœ“ Express detected
142
+ โœ“ Test framework detected
143
+ ```
144
+
145
+ Then it asks โ€” naming the exact file, not "some files":
146
+
147
+ ```text
148
+ ๐Ÿ” Permission required
149
+
150
+ Vaan wants to modify:
151
+
152
+ src/auth/login.ts
153
+
154
+ Permission:
155
+ WRITE
156
+
157
+ changing a file in the workspace
158
+
159
+ Allow? [y/N]
160
+ ```
161
+
162
+ Say yes and you get the diff before a byte is written. Say no and it tells you what it needed and
163
+ stops, rather than looking for another way round.
164
+
165
+ After approval:
166
+
167
+ ```text
168
+ ๐Ÿ“ฆ Coding sandbox
169
+
170
+ โœ“ Updated authentication
171
+ โœ“ Added rate limiting
172
+ โœ“ Added tests
173
+ โœ“ Ran test suite
174
+
175
+ ๐Ÿงช 18 tests passed
176
+
177
+ ๐Ÿ” Verifying...
178
+
179
+ โœ“ No unrelated files changed
180
+ โœ“ Rate limiting active
181
+ โœ“ Tests passing
182
+
183
+ ๐Ÿ“‹ Done.
184
+
185
+ Request ID: 7f3e9b4a
186
+ ```
187
+
188
+ Not just "here's some code."
189
+
190
+ **Intent โ†’ Plan โ†’ Permission โ†’ Execute โ†’ Test โ†’ Verify โ†’ Explain**
191
+
192
+ ---
193
+
194
+ ## โœจ Why Vaan?
195
+
196
+ **๐Ÿง  Think** โ€” Multi-step reasoning and planning.
197
+
198
+ **๐Ÿ”ง Act** โ€” Files, search, Git, web and commands. *No shell:* commands are tokenised in-process and
199
+ spawned with `shell: false`, so the argv you approve is the argv that runs. No pipe, no redirect, no
200
+ `&&` tail that nobody read.
201
+
202
+ **๐Ÿ’พ Remember** โ€” Persistent, local, searchable project memory.
203
+
204
+ **๐Ÿ” Stay in control** โ€” Permissions are enforced by the runtime, not by the model.
205
+
206
+ **๐Ÿ“ฆ Code safely** โ€” Coding operations run inside a restricted sandbox.
207
+
208
+ **๐Ÿ‘€ See everything** โ€” Every request gets a unique Request ID and an end-to-end trace.
209
+
210
+ **๐Ÿค– Use any model** โ€” Cloud models, local models, or your own provider.
211
+
212
+ **๐Ÿ  Local-first** โ€” Your agent state, memory and traces live with your workspace, in `.vaan/`.
213
+
214
+ ---
215
+
216
+ ## ๐Ÿ” Security
217
+
218
+ Vaan's architecture separates the agent runtime from the coding sandbox.
219
+
220
+ ```text
221
+ โ˜๏ธ Vaan
222
+ โ”‚
223
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
224
+ โ”‚ โ”‚
225
+ ๐Ÿง  Agent ๐Ÿ” Policy
226
+ Runtime Engine
227
+ โ”‚ โ”‚
228
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
229
+ โ†“
230
+ ๐Ÿ“ฆ Coding Sandbox
231
+ โ”œโ”€โ”€ ๐Ÿ“ Files
232
+ โ”œโ”€โ”€ โš™๏ธ Processes
233
+ โ”œโ”€โ”€ ๐Ÿ“ฆ Dependencies
234
+ โ”œโ”€โ”€ ๐Ÿงช Tests
235
+ โ””โ”€โ”€ ๐Ÿ—๏ธ Builds
236
+ ```
237
+
238
+ **The model cannot approve its own actions.** Not as a policy in a prompt โ€” the approver is a
239
+ function closed over your terminal, held in the runtime's own scope. No tool receives it and nothing
240
+ the model emits can reach it. A tool can ask; only a person can answer.
241
+
242
+ **Some rules are not configurable.** No config file, onboarding checkbox or skill can turn these
243
+ off:
244
+
245
+ - Credential material is never read โ€” `.env`, `.ssh/`, `.aws/`, `.npmrc`, wherever they sit, even
246
+ inside your workspace
247
+ - System changes are out of reach, and so are `/etc`, `/dev` and `/proc`
248
+ - Commands that format a disk, delete the filesystem root or pipe a download into a shell are
249
+ refused outright โ€” no approval prompt, because there is no good answer to one
250
+
251
+ Credentials are isolated, stripped from the environment any sandboxed command inherits, and excluded
252
+ from traces โ€” redaction happens as events are written, not when they're read.
253
+
254
+ `SOUL.md` and `GUARDRAILS.md` define behavior. **They are not security boundaries.** The limits that
255
+ actually hold are in `src/sandbox/` and `src/permissions/`.
256
+
257
+ ---
258
+
259
+ ## ๐Ÿ‘€ Built-in Observability
260
+
261
+ Every request gets a unique ID:
262
+
263
+ ```text
264
+ Request ID: 7f3e9b4a
265
+ ```
266
+
267
+ You can inspect what happened:
268
+
269
+ ```bash
270
+ vaan trace 7f3e9b4a
271
+ ```
272
+
273
+ ```text
274
+ Request
275
+ โ†“
276
+ Model
277
+ โ†“
278
+ Memory
279
+ โ†“
280
+ Tool calls
281
+ โ†“
282
+ Permissions
283
+ โ†“
284
+ Sandbox
285
+ โ†“
286
+ Tests
287
+ โ†“
288
+ Verification
289
+ โ†“
290
+ Response
291
+ ```
292
+
293
+ Every permission decision, with the reason and who made it. No black box.
294
+
295
+ ---
296
+
297
+ ## ๐Ÿงฐ Skills
298
+
299
+ Extend Vaan with local skills:
300
+
301
+ ```text
302
+ .vaan/
303
+ โ””โ”€โ”€ skills/
304
+ โ”œโ”€โ”€ code-review/
305
+ โ”‚ โ””โ”€โ”€ SKILL.md
306
+ โ””โ”€โ”€ deploy/
307
+ โ””โ”€โ”€ SKILL.md
308
+ ```
309
+
310
+ Teach Vaan how to perform specialized workflows without changing the core runtime. Only the first
311
+ line of each skill costs tokens; the full file is read when it actually applies.
312
+
313
+ Skills are instruction, not permission โ€” nothing a `SKILL.md` says can widen what the agent may do.
314
+
315
+ ---
316
+
317
+ ## ๐Ÿ’ป CLI
318
+
319
+ ```bash
320
+ vaan # โ˜๏ธ Start Vaan
321
+ vaan init # ๐Ÿš€ Initialize
322
+ vaan memory # ๐Ÿง  Memory
323
+ vaan schedule # โฐ Scheduling
324
+ vaan trace # ๐Ÿ‘€ Traces
325
+ vaan doctor # ๐Ÿฉบ Diagnostics
326
+ vaan eval # ๐Ÿงช Evaluations
327
+ ```
328
+
329
+ Inside Vaan:
330
+
331
+ ```text
332
+ /model ๐Ÿค– Change model
333
+ /new ๐Ÿ†• New conversation
334
+ /memory ๐Ÿง  Memory
335
+ /forget ๐Ÿ—‘๏ธ Forget
336
+ /inbox ๐Ÿ“ฅ Scheduled results
337
+ /status ๐Ÿ“Š Status
338
+ /trace ๐Ÿ‘€ This request, in full
339
+ /settings โš™๏ธ Settings
340
+ /help โ“ Help
341
+ /exit ๐Ÿ‘‹ Exit
342
+ ```
343
+
344
+ ---
345
+
346
+ ## ๐Ÿ—๏ธ Architecture
347
+
348
+ ```text
349
+ โ˜๏ธ Vaan CLI
350
+ โ”‚
351
+ โ–ผ
352
+ ๐Ÿง  Agent Runtime
353
+ โ”œโ”€โ”€ ๐Ÿค– Model
354
+ โ”œโ”€โ”€ ๐Ÿง  Memory
355
+ โ”œโ”€โ”€ ๐Ÿ”ง Tools
356
+ โ”œโ”€โ”€ ๐Ÿ” Permissions
357
+ โ””โ”€โ”€ ๐Ÿ‘€ Observability
358
+ โ”‚
359
+ โ–ผ
360
+ ๐Ÿ“ฆ Coding Sandbox
361
+ โ”‚
362
+ โ–ผ
363
+ โœ“ Result
364
+ ```
365
+
366
+ ```text
367
+ src/agent.ts the loop โ€” read this first
368
+ src/index.ts the runtime, where policy, gate and trace are built
369
+ src/permissions/ capability classification; a floor no config can widen
370
+ src/sandbox/ filesystem, process and network boundaries
371
+ src/observability/ a Request ID and a full trace for every request
372
+ src/providers/ Anthropic, OpenAI, Google, Ollama, custom endpoints
373
+ src/memory/ SQLite with FTS5, two tiers
374
+ src/eval/ suites for trajectory, security, sandbox, reliability
375
+ ```
376
+
377
+ The model is replaceable. The runtime, permissions, memory, sandbox, traces and evals are not tied
378
+ to any provider.
379
+
380
+ Contributing: [CONTRIBUTING.md](CONTRIBUTING.md). Security reports: [SECURITY.md](SECURITY.md).
381
+
382
+ ---
383
+
384
+ ## ๐Ÿ“œ License
385
+
386
+ Apache License 2.0
387
+
388
+ ---
389
+
390
+ **โ˜๏ธ Vaan** โ€” *Think. Remember. Act. Observe.*