@unerr-ai/unerr 0.1.7 → 0.1.9
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 +9 -2
- package/dist/cli.js +1467 -296
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ Run `unerr` and open the dashboard. Four panes, all live:
|
|
|
48
48
|
|
|
49
49
|
| Pane | Answers the question | Powered by |
|
|
50
50
|
|---|---|---|
|
|
51
|
-
| **Token Optimization** | *How much context did unerr save my agent this session?* — saved vs. delivered, compounding multiplier, breakdown by mechanism (compression, graph hits, skipped re-reads). | Per-turn ledger of every tool call |
|
|
51
|
+
| **Token Optimization** | *How much context did unerr save my agent this session?* — saved vs. delivered, compounding multiplier, breakdown by mechanism (compression, graph hits, skipped re-reads, web fetches). | Per-turn ledger of every tool call |
|
|
52
52
|
| **Reasoning Quality** | *Did the agent actually use what it remembered?* — 4-pillar score across exploration, planning, execution, persistent memory. | 5-turn outcome window per fact/convention |
|
|
53
53
|
| **Codebase Map + Code Intelligence** | *What's the call graph and where are the blast-radius landmines?* — entities, edges, fan-in/out chokepoints, cross-module surprise links. | CozoDB graph (in-process, <5ms) |
|
|
54
54
|
| **Project Memory + Activity** | *What did we already learn, and what was I doing last time?* — facts the agent recorded, sessions stitched into intents, open blockers. | Append-only fact store + timeline.db |
|
|
@@ -69,7 +69,7 @@ The agent reads from the same store through MCP — every claim on the dashboard
|
|
|
69
69
|
</td>
|
|
70
70
|
<td align="center" width="240">
|
|
71
71
|
<img src="https://unerr.dev/open-cli/screenshots/token-trace-main.png" alt="unerr token trace — global" width="240" height="150" />
|
|
72
|
-
<br/><sub><strong>Token Trace · global</strong><br/>Aggregate savings across every session, broken down by mechanism (graph, file_read, shell, dedup, format).</sub>
|
|
72
|
+
<br/><sub><strong>Token Trace · global</strong><br/>Aggregate savings across every session, broken down by mechanism (graph, file_read, fetch_url, shell, dedup, format).</sub>
|
|
73
73
|
</td>
|
|
74
74
|
<td align="center" width="240">
|
|
75
75
|
<img src="https://unerr.dev/open-cli/screenshots/token-session.png" alt="unerr token trace — session" width="240" height="150" />
|
|
@@ -197,6 +197,7 @@ Idempotent — re-running updates if content changed, skips if identical. Remove
|
|
|
197
197
|
- **Blast radius before edits** — `get_references` returns every caller. No more confident wrong changes that ripple across services.
|
|
198
198
|
- **Targeted file reads** — `file_read({entity: "fnName"})` returns just that function + relevant conventions/facts, not 2000 lines.
|
|
199
199
|
- **Shell compression** — 11 strategies, 645+ command classifiers. Diffs, errors, logs, test runs, YAML — each compressed differently. **93% average compression** across real-world benchmarks (2 MB → 138 KB). Raw output is kept on disk; the agent can recover it on demand.
|
|
200
|
+
- **Web fetches** — `fetch_url` strips page chrome via Defuddle/Readability, converts to markdown, splits into heading-bounded passages, optionally re-ranks with BM25 when a `prompt` is supplied, and caches by content hash. Replaces built-in WebFetch — **5–10× fewer tokens** per page.
|
|
200
201
|
- **Convention awareness** — naming, structure, import patterns auto-detected and injected into the agent's context.
|
|
201
202
|
- **Tool adoption nudging** — five reinforcement layers (exec nudges, hook interception, instruction injection, skill reminders, default-deny of built-ins on Claude Code) push the agent to use the graph instead of grep.
|
|
202
203
|
|
|
@@ -354,6 +355,12 @@ Inline markers the agent emits as it works. Persisted to the shadow ledger and `
|
|
|
354
355
|
| `mark_blocker` | Flags an unresolved obstacle. Carries into the next session's resume strip |
|
|
355
356
|
| `mark_resolution` | Resolves a prior blocker by `marker_id` |
|
|
356
357
|
|
|
358
|
+
### Web Fetch (1)
|
|
359
|
+
|
|
360
|
+
| Tool | What the agent gets |
|
|
361
|
+
|------|-----|
|
|
362
|
+
| `fetch_url` | DOM-extracted markdown of a web page (Defuddle/Readability), split into heading-bounded passages, optionally re-ranked by BM25 against a `prompt`, cached by content hash. Replaces built-in WebFetch — 5–10× fewer tokens. Optional Playwright SPA fallback. |
|
|
363
|
+
|
|
357
364
|
Every response includes `_meta` (latency, risk level, drift status) and inline `ur|<tag>` signals for high-priority guidance (drift, blast-radius warnings, circuit-breaker halts).
|
|
358
365
|
|
|
359
366
|
---
|