clew-code 0.4.6 → 0.4.7

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 (3) hide show
  1. package/README.md +3 -1
  2. package/dist/main.js +1995 -1956
  3. package/package.json +162 -162
package/README.md CHANGED
@@ -107,7 +107,7 @@ Provider adapters map query payloads to their corresponding external APIs. The m
107
107
 
108
108
  Clew Code uses several advanced subsystems to enable autonomous, safe, and context-optimized agent operations:
109
109
 
110
- * **Durable SQLite-backed Memory:** Memory is stored in a local SQLite database with tables for `memories` (tracking importance, confidence, access counts, and type rankings) and `memory_timeline` (event tracking). Context is injected dynamically into system prompts using an `importance * recency * confidence` score. Durable facts are automatically extracted during context compaction and synced across peers. Global project guidance is maintained under `.clew/memory/` in `MEMORY.md` (project overview), `DECISIONS.md` (architectural decisions), and `TASTE.md` (style/formatting preferences).
110
+ * **Durable SQLite-backed Memory:** Memory is stored in a local SQLite database with tables for `memories` (tracking importance, confidence, access counts, and type rankings) and `memory_timeline` (event tracking). Context is injected dynamically into system prompts using an `importance * recency * confidence` score. Durable facts are automatically extracted during context compaction and synced across peers. Global project guidance is maintained under `.clew/memory/` in `MEMORY.md` (project overview), `DECISIONS.md` (architectural decisions), and `TASTE.md` (style/formatting preferences).
111
111
  * **Context Compaction and Checkpoints:** When the prompt token window fills up, Clew Code runs a multi-pass context compaction loop that recursively compresses history into factual summaries. To prevent loss of active work during compaction, the supervisor captures progress snapshots as checkpoints at 20%, 45%, and 70% milestones, along with a `notes.md` scratchpad for recovery.
112
112
  * **Autonomous Task Queue and Daemon Mode:** Features a persistent task queue that operates with lease-based concurrency limits (allowing a maximum of 3 concurrent active tasks), exponential backoff retries, and a dead-letter queue (DLQ). The CLI can run in a background Daemon Mode to consume the task queue, run scheduled natural-language cron jobs, and perform memory distillation while the terminal is closed.
113
113
  * **Model Context Protocol (MCP):** A unified client interface supporting stdio, Server-Sent Events (SSE), and direct in-process WebSocket connection adapters. It dynamically fetches tool declarations and resources, extending the agent's capabilities with external server tools.
@@ -239,6 +239,7 @@ Type these slash commands directly inside the interactive REPL:
239
239
  * `/memory init` - Initialize a clean SQLite memory database for the project.
240
240
  * `/memory scan` - Scan the active codebase to build code hierarchy memory.
241
241
  * `/memory dashboard` - View memory statistics, confidence scores, and facts.
242
+ * `/rule` - Show project-specific behavioral rules auto-observed by the model. `/rule off` to disable, `/rule on` to re-enable.
242
243
  * `/skills` - List and manage active custom skills defined in `.clew/skills/`.
243
244
 
244
245
  ### Swarm & LAN Peers
@@ -273,6 +274,7 @@ The agent has access to the following built-in tools based on active permission
273
274
  * `LSPTool` - Query local Language Server Protocol diagnostics.
274
275
  * `ProcessDelegateTool` - Delegate prompts to external CLI models or Codex.
275
276
  * `MemoryFeedbackTool` - Update project memories, decisions, and preferences.
277
+ * `ProjectRuleTool` - Save, list, or remove project-specific behavioral rules auto-observed from user patterns (stored in `.clew/rules.json`).
276
278
 
277
279
  ---
278
280