feat: add NanoClaw agent REPL — persistent session-aware CLI for ECC

Implements a barebones agent loop that delegates to `claude -p` with
markdown-as-database session persistence and ECC skill context loading.
Zero external dependencies, ~264 lines of pure Node.js CommonJS.

- scripts/claw.js: core module (storage, context, delegation, REPL)
- commands/claw.md: slash command definition with usage docs
- tests/scripts/claw.test.js: 14 unit tests covering all modules
- package.json: add claw script and files entry
- tests/run-all.js: register claw tests in test manifest
This commit is contained in:
andydiaz122
2026-02-15 12:02:19 -05:00
parent 4ff6831b2b
commit 853c64d7c1
6 changed files with 595 additions and 1 deletions

View File

@@ -61,6 +61,7 @@
"scripts/ci/",
"scripts/hooks/",
"scripts/lib/",
"scripts/claw.js",
"scripts/setup-package-manager.js",
"scripts/skill-create-output.js",
"skills/",
@@ -75,6 +76,7 @@
"scripts": {
"postinstall": "echo '\\n ecc-universal installed!\\n Run: npx ecc-install typescript\\n Docs: https://github.com/affaan-m/everything-claude-code\\n'",
"lint": "eslint . && markdownlint '**/*.md' --ignore node_modules",
"claw": "node scripts/claw.js",
"test": "node scripts/ci/validate-agents.js && node scripts/ci/validate-commands.js && node scripts/ci/validate-rules.js && node scripts/ci/validate-skills.js && node scripts/ci/validate-hooks.js && node tests/run-all.js"
},
"devDependencies": {