> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uselim.com/llms.txt
> Use this file to discover all available pages before exploring further.

# lim stats & dashboard

> View learning engine metrics and a real-time financial dashboard.

# lim stats

Monitor how the learning engine is performing and view a real-time financial dashboard.

## stats

Show learning engine metrics for the active company.

```bash theme={null}
lim stats
```

```
Learning Engine Metrics
──────────────────────────────────────────────────────────────
Total rules:              47
  Active:                 42
  Deactivated:             5

Judgment breakdown (last 30 days):
  Rule match:             312  (89.1%)
  History match:           23  ( 6.6%)
  AI inference:             8  ( 2.3%)
  Escalated:                7  ( 2.0%)
──────────────────────────────────────────────────────────────
Total entries:            350
Auto-posted:              287  (82.0%)

Average confidence:       0.93
AI cost (last 30 days):   $0.42
──────────────────────────────────────────────────────────────
```

### What the Numbers Mean

* **Rule match %** -- Transactions resolved by deterministic rules. Zero AI cost. This percentage grows over time as the system learns.
* **History match %** -- Resolved by finding similar past transactions. Zero AI cost.
* **AI inference %** -- Required an LLM call. This percentage should decrease over time.
* **Escalated %** -- Could not be resolved automatically; sent to a human for review.
* **Auto-posted %** -- Entries that were posted without human confirmation (rule confidence >= 0.95).
* **AI cost** -- Total LLM API cost for the period.

<Tip>
  A well-trained company should see 90%+ rule match rate within 3 months. If your AI inference rate
  is still high, check that you're confirming (not editing) suggested entries when they're correct
  \-- this is how rules are learned.
</Tip>

### Flags

| Flag       | Description                           |
| ---------- | ------------------------------------- |
| `--days`   | Lookback period in days (default: 30) |
| `--format` | Output format: `table`, `json`        |

```bash theme={null}
# Last 90 days
lim stats --days 90

# JSON output for monitoring
lim stats --format json
```

## dashboard show

Show a real-time financial dashboard combining key financial metrics.

```bash theme={null}
lim dashboard show
```

```
lim Dashboard — My Startup Inc.
══════════════════════════════════════════════════════════════

Cash Position                      Runway
  Cash:          ¥2,450,000          Monthly burn:  ¥710,000
  AR:            ¥1,650,000          Runway:        3.5 months
  AP:           -¥1,320,000

P&L (2026-01 ~ 2026-03)           Judgment Engine
  Revenue:       ¥3,300,000          Rules: 47 active
  Expenses:       ¥710,000           Auto-post: 82%
  Net income:    ¥2,590,000          AI cost: ¥63/month

Alerts (0 active)
  ✅ No active alerts

Pending Items
  Draft entries:     3
  Unmatched bank:    2
  Needs approval:    0
══════════════════════════════════════════════════════════════
```

The dashboard shows:

* **Cash Position** -- Current cash, receivables, and payables
* **Runway** -- Months of cash remaining based on average monthly burn (last 3 months)
* **P\&L Summary** -- Current fiscal year revenue, expenses, and net income
* **Judgment Engine** -- Active rules, auto-post rate, and AI cost
* **Alerts** -- Any triggered alert rules
* **Pending Items** -- Draft entries, unmatched bank transactions, and pending approvals

### Flags

| Flag       | Description                    |
| ---------- | ------------------------------ |
| `--format` | Output format: `table`, `json` |

## dashboard flywheel

Show learning flywheel stats -- manual vs automated transaction breakdown over time.

```bash theme={null}
lim dashboard flywheel
```

```
Learning Flywheel (last 6 months)
──────────────────────────────────────────────────────────────
Month     Manual   Automated   Auto %
2025-10   18       82          82.0%
2025-11   12       88          88.0%
2025-12    9       91          91.0%
2026-01    7       93          93.0%
2026-02    6       94          94.0%
2026-03    5       95          95.0%
──────────────────────────────────────────────────────────────
```

## dashboard runway

Show cash runway calculation based on average monthly burn rate.

```bash theme={null}
lim dashboard runway
```

```
Cash Runway
──────────────────────────────────────────────────────────────
Current cash:       ¥2,450,000
Monthly burn (avg): ¥710,000
Runway:             3.5 months
──────────────────────────────────────────────────────────────
```

## dashboard pnl

Show a summary P\&L for the current month.

```bash theme={null}
lim dashboard pnl
```

```
P&L Summary — March 2026
──────────────────────────────────────────────────────────────
Revenue:       ¥1,100,000
Expenses:        ¥710,000
──────────────────────────────────────────────────────────────
Net income:      ¥390,000
──────────────────────────────────────────────────────────────
```

<Tip>
  Use `lim dashboard show --format json` to pipe dashboard data into monitoring tools, Slack bots,
  or custom dashboards.
</Tip>
