@bike4mind/cli 0.2.8-feat-cli-context-file-loading.17148 → 0.2.8-feat-cli-context-file-loading.17149
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 +47 -0
- package/dist/index.js +6 -6
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@ Interactive command-line interface for Bike4Mind with ReAct agents.
|
|
|
10
10
|
- 🛠️ B4M tools + MCP integration
|
|
11
11
|
- 🎨 Rich terminal UI with Ink
|
|
12
12
|
- 🐛 Debug logging with `--verbose` flag
|
|
13
|
+
- 📄 Context file loading (CLAUDE.md, AGENTS.md, AI.md)
|
|
13
14
|
|
|
14
15
|
## Installation
|
|
15
16
|
|
|
@@ -241,6 +242,51 @@ You can also run any MCP server via npx or custom executables:
|
|
|
241
242
|
|
|
242
243
|
**Note:** Internal MCP servers must be built and available in the `b4m-core/packages/mcp/dist/src/` directory. The CLI will automatically find them if you're running from the monorepo. For Docker-based servers, ensure Docker is installed and the image is accessible.
|
|
243
244
|
|
|
245
|
+
## Context Files
|
|
246
|
+
|
|
247
|
+
The CLI supports loading project-specific instructions from context files, similar to CLAUDE.md in Claude Code. These files provide persistent instructions that are automatically included in the agent's system prompt.
|
|
248
|
+
|
|
249
|
+
### Supported Files
|
|
250
|
+
|
|
251
|
+
**Project-level** (in your project directory, checked in priority order):
|
|
252
|
+
1. `CLAUDE.local.md` - Personal/gitignored instructions (highest priority)
|
|
253
|
+
2. `CLAUDE.md` - Project instructions
|
|
254
|
+
3. `AGENTS.md` - Cross-tool standard
|
|
255
|
+
4. `AI.local.md` - Personal/gitignored instructions
|
|
256
|
+
5. `AI.md` - Project instructions
|
|
257
|
+
6. `INSTRUCTIONS.md` - Project instructions (lowest priority)
|
|
258
|
+
|
|
259
|
+
**Global** (in `~/.bike4mind/`):
|
|
260
|
+
1. `AI.local.md` - Personal global instructions
|
|
261
|
+
2. `AI.md` - Global instructions
|
|
262
|
+
|
|
263
|
+
### How It Works
|
|
264
|
+
|
|
265
|
+
- The CLI loads the **first matching file** from each layer (global and project)
|
|
266
|
+
- Project files take precedence over global files
|
|
267
|
+
- `.local.md` variants are intended to be gitignored for personal preferences
|
|
268
|
+
- Files must be under 100KB
|
|
269
|
+
- Symlinks are rejected for security
|
|
270
|
+
|
|
271
|
+
### Example
|
|
272
|
+
|
|
273
|
+
Create a `CLAUDE.md` in your project:
|
|
274
|
+
|
|
275
|
+
```markdown
|
|
276
|
+
# Project Instructions
|
|
277
|
+
|
|
278
|
+
- Always use TypeScript strict mode
|
|
279
|
+
- Prefer functional components with hooks
|
|
280
|
+
- Run tests before committing
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
On startup, you'll see:
|
|
284
|
+
```
|
|
285
|
+
📄 Project context: CLAUDE.md
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
The agent will follow these instructions for all interactions in that project.
|
|
289
|
+
|
|
244
290
|
## Session Storage
|
|
245
291
|
|
|
246
292
|
Sessions are saved to `~/.bike4mind/sessions/`
|
|
@@ -338,6 +384,7 @@ Current implementation includes:
|
|
|
338
384
|
✅ B4M tools integration
|
|
339
385
|
✅ MCP tools support
|
|
340
386
|
✅ Debug logging with --verbose flag
|
|
387
|
+
✅ Context file loading (CLAUDE.md, AGENTS.md, AI.md)
|
|
341
388
|
|
|
342
389
|
Coming soon:
|
|
343
390
|
|
package/dist/index.js
CHANGED
|
@@ -10637,7 +10637,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
|
|
|
10637
10637
|
// package.json
|
|
10638
10638
|
var package_default = {
|
|
10639
10639
|
name: "@bike4mind/cli",
|
|
10640
|
-
version: "0.2.8-feat-cli-context-file-loading.
|
|
10640
|
+
version: "0.2.8-feat-cli-context-file-loading.17149+1a918591e",
|
|
10641
10641
|
type: "module",
|
|
10642
10642
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
10643
10643
|
license: "UNLICENSED",
|
|
@@ -10740,10 +10740,10 @@ var package_default = {
|
|
|
10740
10740
|
},
|
|
10741
10741
|
devDependencies: {
|
|
10742
10742
|
"@bike4mind/agents": "0.1.0",
|
|
10743
|
-
"@bike4mind/common": "2.38.2-feat-cli-context-file-loading.
|
|
10744
|
-
"@bike4mind/mcp": "1.20.2-feat-cli-context-file-loading.
|
|
10745
|
-
"@bike4mind/services": "2.33.2-feat-cli-context-file-loading.
|
|
10746
|
-
"@bike4mind/utils": "2.1.3-feat-cli-context-file-loading.
|
|
10743
|
+
"@bike4mind/common": "2.38.2-feat-cli-context-file-loading.17149+1a918591e",
|
|
10744
|
+
"@bike4mind/mcp": "1.20.2-feat-cli-context-file-loading.17149+1a918591e",
|
|
10745
|
+
"@bike4mind/services": "2.33.2-feat-cli-context-file-loading.17149+1a918591e",
|
|
10746
|
+
"@bike4mind/utils": "2.1.3-feat-cli-context-file-loading.17149+1a918591e",
|
|
10747
10747
|
"@types/better-sqlite3": "^7.6.12",
|
|
10748
10748
|
"@types/diff": "^5.0.9",
|
|
10749
10749
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -10756,7 +10756,7 @@ var package_default = {
|
|
|
10756
10756
|
typescript: "^5.9.3",
|
|
10757
10757
|
vitest: "^3.2.4"
|
|
10758
10758
|
},
|
|
10759
|
-
gitHead: "
|
|
10759
|
+
gitHead: "1a918591e2031dfd0197eab12dccf8e5a2db737e"
|
|
10760
10760
|
};
|
|
10761
10761
|
|
|
10762
10762
|
// src/config/constants.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.8-feat-cli-context-file-loading.
|
|
3
|
+
"version": "0.2.8-feat-cli-context-file-loading.17149+1a918591e",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@bike4mind/agents": "0.1.0",
|
|
106
|
-
"@bike4mind/common": "2.38.2-feat-cli-context-file-loading.
|
|
107
|
-
"@bike4mind/mcp": "1.20.2-feat-cli-context-file-loading.
|
|
108
|
-
"@bike4mind/services": "2.33.2-feat-cli-context-file-loading.
|
|
109
|
-
"@bike4mind/utils": "2.1.3-feat-cli-context-file-loading.
|
|
106
|
+
"@bike4mind/common": "2.38.2-feat-cli-context-file-loading.17149+1a918591e",
|
|
107
|
+
"@bike4mind/mcp": "1.20.2-feat-cli-context-file-loading.17149+1a918591e",
|
|
108
|
+
"@bike4mind/services": "2.33.2-feat-cli-context-file-loading.17149+1a918591e",
|
|
109
|
+
"@bike4mind/utils": "2.1.3-feat-cli-context-file-loading.17149+1a918591e",
|
|
110
110
|
"@types/better-sqlite3": "^7.6.12",
|
|
111
111
|
"@types/diff": "^5.0.9",
|
|
112
112
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"typescript": "^5.9.3",
|
|
120
120
|
"vitest": "^3.2.4"
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "1a918591e2031dfd0197eab12dccf8e5a2db737e"
|
|
123
123
|
}
|