codechart 0.3.0 → 0.4.0

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 CHANGED
@@ -1,20 +1,24 @@
1
- <h1 align="center">codechart</h1>
1
+ <h1 align="center"><img src="docs/images/logo.svg" alt="" width="40" height="40" align="top"> codechart</h1>
2
2
 
3
3
  <p align="center">
4
4
  <b>See the shape of a change before you read it.</b><br>
5
- A skill for AI coding agents that turns their plans and change summaries into maps and flowcharts.
5
+ A skill for AI coding agents that turns their plans and change summaries into maps and flowcharts — checked against your code.
6
6
  </p>
7
7
 
8
8
  <p align="center">
9
9
  <a href="https://www.npmjs.com/package/codechart"><img alt="npm" src="https://img.shields.io/npm/v/codechart"></a>
10
10
  <a href="https://github.com/freeleex/codechart/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/freeleex/codechart/actions/workflows/ci.yml/badge.svg"></a>
11
- <a href="https://skills.sh/freeleex/codechart"><img alt="skills.sh" src="https://skills.sh/b/freeleex/codechart"></a>
11
+ <a href="https://skills.sh/freeleex/codechart"><img alt="skills.sh" src="https://img.shields.io/badge/skills.sh-codechart-black"></a>
12
12
  <img alt="Node 22.12+" src="https://img.shields.io/badge/node-%3E%3D22.12-339933">
13
13
  <a href="LICENSE"><img alt="MIT" src="https://img.shields.io/badge/license-MIT-blue"></a>
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <a href="#install">Install</a> · <a href="#what-you-get">What you get</a> · <a href="#why-you-can-trust-the-diagram">Trust</a> · <a href="#cost">Cost</a> · <a href="#configure">Configure</a> · <a href="#faq">FAQ</a>
17
+ <a href="#install">Install</a> · <a href="#what-you-get">What you get</a> · <a href="#why-you-can-trust-the-diagram">Trust</a> · <a href="#cost">Cost</a> · <a href="docs/configuration.md">Configure</a> · <a href="docs/README.md">Docs</a>
18
+ </p>
19
+
20
+ <p align="center">
21
+ <img src="docs/images/demo.gif" alt="An agent finishes a change and its reply starts with a map of it; the full page shows each node's diff" width="960">
18
22
  </p>
19
23
 
20
24
  ---
@@ -31,44 +35,66 @@ Every word is correct, and you still don't *see* it. Which of those are new, and
31
35
 
32
36
  With codechart, the same reply starts with this:
33
37
 
34
- ```text
35
- Map (key: + new - removed ~ changed · context ◆ config)
36
-
38
+ **Map** _(key: + new ~ changed - removed ◆ config · unmarked = unchanged)_
39
+ ```diff
37
40
  database
38
- ~orders ─customer_id─▶ ·customers
39
- ─status──────▶ ~enum order_status
40
- +invoices ─order_id─▶ ~orders
41
- ─method───▶ ~enum payment_method
41
+ ~ orders ─customer_id─▶ customers
42
+ ─status──────▶ enum order_status
43
+ + invoices ─order_id─▶ orders
44
+ ─method───▶ enum payment_method
45
+ ~ enum order_status
46
+ ~ enum payment_method
42
47
 
43
48
  backend
44
- ~OrderStatus ─mirrors─▶ ~enum order_status
45
- +Invoice ─maps─▶ +invoices
46
- +POST /orders/{id}/refund ─sets refunded─▶ ~model OrderStatus
47
- ~PaymentMethod ─mirrors─▶ ~enum payment_method
49
+ ~ model OrderStatus ─mirrors─▶ enum order_status
50
+ + model Invoice ─maps─▶ invoices
51
+ + endpoint POST /orders/{id… ─sets refunded─▶ model OrderStatus
52
+ ~ model PaymentMethod ─mirrors─▶ enum payment_method
48
53
 
49
54
  config
50
- +migration: backfill invoices for p… ─backfills─▶ +invoices
51
- ◆INVOICE_PREFIX ─read by─▶ +migration: backfill invoices for paid orders
52
- ◆feature flag refundsEnabled ─gates─▶ +endpoint POST /orders/{id}/refund
55
+ + migration: backfill invoi… ─backfills─▶ invoices
56
+ ◆ INVOICE_PREFIX ─read by─▶ migration: backfill invoices for paid orders
57
+ ◆ feature flag refundsEnabl… ─gates─▶ endpoint POST /orders/{id}/refund
53
58
 
54
- 12 nodes · 4 new · 5 changed · 2 config
59
+ 12 nodes · 4 new · 5 changed · 2 config · ✓ 10 checked
55
60
  gaps: customers: columns besides id not read
56
61
  not on map: tests: test_invoice_backfill.py · docs: CHANGELOG.md, .env.example
62
+ ```
57
63
 
58
64
  Open full map
59
- ```
60
65
 
61
- New things are `+`, changed ones `~`, existing ones `·`, config `◆`. Layers are grouped and every relation is drawn. It takes ten seconds to read, and it tells you what the agent *didn't* look at.
66
+ New things are `+`, changed ones `~`, removed ones `-`, config `◆`; anything unmarked already existed. The block is a `diff` fence, so Claude Code, OpenCode, Codex, Gemini CLI, Cursor and GitHub colour the new and removed lines on their own. Layers are grouped, every relation is drawn, and `✓ 10 checked` means each claim on the map was verified against your files and the git diff. It takes ten seconds to read, and `gaps` tells you what the agent *didn't* look at.
67
+
68
+ **Open full map** opens an interactive page. Click any node for its summary, file, fields — and in a change summary, its diff, read straight from git:
62
69
 
63
- **Open full map** opens an interactive page with the whole picture. Click any node for its summary, file and fields, with changes marked:
70
+ ![Full map page: the clicked orders table shows its diff and changed fields in a side panel](docs/images/map.png)
64
71
 
65
- ![Full map: clicking the orders table shows its file and changed fields](docs/images/map.png)
72
+ You don't need to ask for any of this. The skill fires when the agent summarizes changes, writes a plan, or explains how code behaves, and stays quiet for typo fixes.
66
73
 
67
- Ask how something works and you get a **flow** instead. Every step points at the code that implements it:
74
+ ## Install
75
+
76
+ ```bash
77
+ npm i -g codechart && codechart install-skill
78
+ ```
79
+
80
+ That's it. Open your coding agent in any repo and try:
68
81
 
69
82
  ```text
70
- Flow (key: + new ~ changed ? planned ◇ decision ⤷ shared step)
83
+ > summarize the uncommitted changes
84
+ > plan adding refunds to orders
85
+ > show me the flow of accepting an invite
86
+ ```
71
87
 
88
+ Works with Claude Code, Codex, Gemini CLI, GitHub Copilot, Cursor, OpenCode and any other agent that supports [Agent Skills](https://agentskills.io). `install-skill` asks which agents get the skill, and adds a reminder line and a Claude Code hook so agents don't forget it in long sessions. `codechart update` brings everything up to date, and codechart tells you once a day when there's a new version. Details, other agents, updating and uninstalling: [Install and agents](docs/install.md).
89
+
90
+ ## What you get
91
+
92
+ ### Flows: what the code actually does
93
+
94
+ Ask "how does this work?", "what are the edge cases?" or "walk me through the logic" and you get a **flow**: decisions, edge cases and outcomes, drawn only if the agent saw them in the code. Branches it didn't verify go under `gaps` instead of being drawn.
95
+
96
+ **Flow** _(key: + new ~ changed ? planned ◇ decision ⤷ shared step)_
97
+ ```text
72
98
  Accept a team invite
73
99
  ────────────────────
74
100
  +look up invite by token
@@ -80,73 +106,77 @@ Accept a team invite
80
106
  ├─ yes → +return already a member
81
107
  └─ no → +save membership → +return joined
82
108
 
83
- 9 steps · 9 new · 0 changed · 0 planned
109
+ 9 steps · 9 new · 0 changed · 0 planned · ✓ 15 anchors checked
84
110
  gaps: did not check what happens when two requests accept the same invite at
85
111
  once
86
-
87
- Open full map
88
112
  ```
89
113
 
90
- Its full page shows the exact code behind each step. Click any step:
91
-
92
- ![Full flow: clicking a decision shows its source lines](docs/images/flow.png)
114
+ Every step and branch is anchored to a `file:line` or a quoted line, and the render fails if the line doesn't exist. On the full page, clicking a step shows the exact code behind it and each branch:
93
115
 
94
- You don't need to ask for it. The skill fires when the agent summarizes changes, writes a plan, or explains how code behaves, and stays quiet for typo fixes.
116
+ ![Full flow page: the clicked decision shows its source line and the code behind each branch](docs/images/flow.png)
95
117
 
96
- ## Install
118
+ ### Plans: Now and After, side by side
97
119
 
98
- ```bash
99
- npm i -g codechart && codechart install-skill
100
- ```
120
+ Maps and flows work for **plans** too, so you can catch a wrong design before any code exists. A plan that touches existing code opens as **Now** and **After plan**: same positions in both panes, panning together (the header's *Panes: linked* toggle sets them free). What the plan removes is red in Now; what it adds is green (maps) or dashed (flows).
101
121
 
102
- That's it. Open your coding agent in any repo and try:
122
+ ![Plan map: Now pane with the removed env var in red, After pane with the new table and migration in green](docs/images/plan-map.png)
103
123
 
104
- ```text
105
- > summarize the uncommitted changes
106
- > plan adding refunds to orders
107
- > show me the flow of accepting an invite
108
- ```
124
+ A plan that changes existing behaviour gets the same treatment as a flow — the dropped branch red on the left, the planned one dashed on the right:
109
125
 
110
- Needs Node 22.12+. `install-skill` finds the agents you use and asks which ones get the skill. Existing installs are skipped (`--force` updates them). Skip the question with `--agent codex,gemini`, or use `--dir <skills folder>` for anything else.
126
+ ![Plan flow: Now pane with the branch the plan removes in red, After pane with the planned revoked? decision dashed](docs/images/plan-flow.png)
111
127
 
112
- Already use the [skills CLI](https://skills.sh)? `npx skills add freeleex/codechart` installs the skill, but not the CLI it runs: add `npm i -g codechart` too. Pick one way to install the skill, so your agent doesn't load it twice.
128
+ ### Infrastructure maps
113
129
 
114
- ### Optional: help agents remember it
130
+ Terraform, OpenTofu, Helm, Kustomize and Kubernetes changes get a map of resources, modules and what they reference — built in, no rule to write:
115
131
 
116
- Agents load a skill only when they think of it, and in long sessions they sometimes don't. `install-skill` then offers two opt-ins (both off by default; flags skip the question):
132
+ **Map** _(key: + new ~ changed - removed ◆ config · unmarked = unchanged)_
133
+ ```diff
134
+ storage
135
+ + aws_s3_bucket.logs
136
+ + aws_s3_bucket_lifecycle_c… ─bucket──────────▶ aws_s3_bucket.logs
137
+ ─expiration.days─▶ var.log_retention_days
117
138
 
118
- - **Reminder line** (`--reminder`): one line in your agents' global instructions file (`~/.claude/CLAUDE.md`, `~/.config/opencode/AGENTS.md`, `~/.codex/AGENTS.md`, `~/.gemini/GEMINI.md`) asking them to use codechart for changes that touch 3+ files or add branching behaviour. It sits between `<!-- codechart -->` markers.
119
- - **Claude Code hook** (`--hook`): adds `codechart hook prompt` (UserPromptSubmit) and `codechart hook stop` (Stop) to `~/.claude/settings.json`. When a turn changed 3+ files and the reply has no diagram, Claude is asked once to follow the skill. Files you had already changed before the turn don't count.
139
+ network
140
+ ~ aws_lb.api ─access_logs.bucket─▶ aws_s3_bucket.logs
141
+ ─subnets────────────▶ module.vpc
120
142
 
121
- ### Uninstall
143
+ config
144
+ ◆ var.log_retention_days
122
145
 
123
- ```bash
124
- codechart uninstall && npm uninstall -g codechart
146
+ 5 nodes · 2 new · 1 changed · 1 config · ✓ 5 checked
147
+ gaps: terraform plan not run · module.vpc internals not read
125
148
  ```
126
149
 
127
- `codechart uninstall` removes the skill, the reminder lines and the hooks (`--skill`, `--reminder`, `--hook` to pick some). npm can't run it for you: it has no uninstall scripts since v7. Skill folders holding other files keep them.
150
+ On the full page, a changed resource shows its HCL diff and changed attributes (light theme here; every page has light, dark and auto):
128
151
 
129
- **Works with** any agent that supports [Agent Skills](https://agentskills.io): Codex, Gemini CLI, GitHub Copilot, Cursor, OpenCode, Goose, Amp, Windsurf, Cline, Roo Code, Kiro, Junie, Factory Droid and Claude Code.
152
+ ![Infrastructure map in light theme: the changed load balancer shows its Terraform diff and new access_logs attributes](docs/images/infra.png)
130
153
 
131
- ## What you get
154
+ ### Terminal first, page when it helps
132
155
 
133
- ### Maps: what changed and how it connects
156
+ Small diagrams stay in the reply. Big ones also get a self-contained HTML page: zoom, pan, light and dark themes, a node panel with back/forward through the nodes you opened, nothing loaded from the internet. In a change summary, a node's diff is read from git when the page is built, so the agent spends no tokens on it.
134
157
 
135
- Tables, columns, enums, models, endpoints, components, config and env vars, grouped by layer and marked as new, changed, context or config. Infrastructure too: Terraform, OpenTofu, Helm, Kustomize and Kubernetes changes get a map of resources, modules and what they reference, with no rule to write. They work for **plans** too, so you can catch a wrong design before any code exists. A plan that changes existing code opens as **Now** and **After plan** side by side: same positions, panning together (or apart: header toggle), with what the plan removes in red and what it adds in green.
158
+ ### Maps in pull requests
136
159
 
137
- ### Flows: what the code actually does
160
+ Reviewers get the map too. Turn it on once per repo (`codechart setup-pr-maps`, or ask your agent): it shows the CI file and asks before writing anything. From then on, PR and MR descriptions the agent writes end with a collapsed map, and CI redraws it on every push, so new ✗ flags appear when the code moves on. No AI or tokens in CI. [How it works and setup for GitHub and GitLab](docs/pr-maps.md).
138
161
 
139
- Decisions, edge cases and outcomes, each pointing at the source lines that implement it. Branches the agent didn't verify go under `gaps` instead of being drawn. A plan that changes existing behaviour also opens as **Now** and **After plan** side by side.
162
+ ![PR description with the Map section open: check line, the map image, what was left out or not read, collapsed node details and the key](docs/images/pr-map.png)
140
163
 
141
- ### Terminal first, page when it helps
164
+ ### When it fires, and when it stays quiet
142
165
 
143
- Small diagrams stay in the reply. Big ones, or rules you mark `output: both`, also get the self-contained HTML page: zoom, pan, light and dark themes, nothing loaded from the internet. In a change summary, clicking a node shows what changed in its file, read from git, so the agent spends no tokens on it.
166
+ The skill fires when the agent summarizes a change, writes a plan or explains how code behaves. Built-in rules decide: migrations and models, infrastructure files, 3+ related files (map), 2+ decisions or edge cases (flow). One-file text, comment, formatting or version-bump changes are skipped. Your own rules in `.codechart.yaml` run first: [Configuration](docs/configuration.md).
144
167
 
145
168
  ## Why you can trust the diagram
146
169
 
147
- - **The agent writes data, codechart draws.** LLMs misalign hand-drawn ASCII, so the agent only describes nodes and links. Layout is code.
148
- - **Flows are anchored to real code.** Every step that exists in code names its `file:line` or quotes the line. If the line doesn't exist, the render fails and the agent has to fix it.
149
- - **Map claims are checked.** Each node's file must exist, a quoted line must be in it, and in a change summary every new, changed or removed node must be in the git diff. A mismatch opens the output with a `✗` line; when everything matches, the footer just says `✓ 10 checked`.
170
+ - **The agent writes data, codechart draws.** LLMs misalign hand-drawn ASCII, so the agent only describes nodes and links as JSON. Layout is code.
171
+ - **Map claims are checked.** Each node's file must exist, a quoted line must be in it, and in a change summary every new, changed or removed node must be in the git diff (`--git`, `--since <base>`, `--commit <sha>`). When everything matches, the footer says `✓ 10 checked`. When it doesn't, the output opens with the mismatch — straight from a render where the agent claimed an untouched table changed:
172
+
173
+ ```text
174
+ ✗ 1 claim doesn't match the code: ~customers not in diff
175
+ ```
176
+
177
+ The agent is told to fix its spec, or to keep the `✗` and own up when the change really differs from its summary. `--strict` turns mismatches into a non-zero exit.
178
+ - **Nothing left off quietly.** With a diff, every changed file must sit under a node's path or be named in *Not on map* (lockfiles and generated files excepted), else `✗ 1 changed file not on map: src/x.ts`. A summary rendered without a diff says `diff not checked` instead of looking verified.
179
+ - **Flows are anchored to real code.** Every step that exists in code names its `file:line` or quotes the line. If the line doesn't exist, the render fails and the agent has to fix it. For a commit that isn't checked out, `--at <rev>` reads anchors from that revision.
150
180
  - **Gaps are explicit.** Whatever the agent didn't read is listed under `gaps`, not guessed.
151
181
  - **Validated input.** Specs are checked against a schema, with clear errors the agent can act on.
152
182
 
@@ -154,93 +184,30 @@ Small diagrams stay in the reply. Big ones, or rules you mark `output: both`, al
154
184
 
155
185
  A diagram is about **2–3 extra API calls**. In a long session that's roughly 2–3% of your usage per diagram, and nothing for trivial changes. That's an estimate from Claude Code sessions with Sonnet; other agents and models will differ, and shorter sessions pay proportionally more. Measured runs are in [docs/efficiency.md](docs/efficiency.md).
156
186
 
157
- The CLI is small: a 68.8 kB package, 5 runtime dependencies, and a cold start around 150 ms.
187
+ The CLI is small: a 90.1 kB package, 5 runtime dependencies, and a cold start around 150 ms.
158
188
 
159
189
  ## Safe to run
160
190
 
161
- - No network calls, no telemetry.
162
- - No shell: only read-only `git` and your OS opener, called with argument arrays.
163
- - HTML pages load nothing external, and all text is escaped. They're saved to `~/.cache/codechart`, never to your repo.
164
- - A summary page rendered with `--git`, `--since` or `--commit` holds your code: each changed node's panel shows the start of its diff. Share such a page only where you'd share the diff.
165
- - The optional hook keeps, per session, the names and content hashes of your changed files in `~/.cache/codechart/turns` (removed after 7 days), never their contents.
166
- - Audited before release across 8 areas, including untrusted repos and prompt-injected specs. See [docs/security-review.md](docs/security-review.md) and [SECURITY.md](SECURITY.md).
191
+ - No telemetry, no shell: only read-only `git` and your OS opener. The only network calls are a once-a-day version check to npm ([off with one setting](docs/install.md#updating)) and opt-in [PR maps](docs/pr-maps.md), whose CI job edits the PR description and publishes the map image.
192
+ - HTML pages load nothing external, all text is escaped, and they're saved to `~/.cache/codechart`, never to your repo. A summary page holds your diff: share it only where you'd share the diff.
193
+ - Audited before release across 8 areas, including untrusted repos and prompt-injected specs: [SECURITY.md](SECURITY.md) and [docs/security-review.md](docs/security-review.md).
167
194
 
168
195
  ## Configure
169
196
 
170
- Works with zero config. To tune it, run `codechart init` to write a commented `.codechart.yaml`, then add rules for your repo:
171
-
172
- ```yaml
173
- rules:
174
- - name: models
175
- paths: ["app/models/**"] # always map model changes
176
- output: both # terminal + HTML page
177
- context: full # may read referenced definitions
178
- - name: frontend-models
179
- when: "a frontend data model, store, or shared API type changed"
180
- - name: api-flows
181
- diagram: flow
182
- paths: ["app/api/**"]
183
- ```
184
-
185
- `codechart config` shows the config in effect and where each value comes from.
186
-
187
- <details>
188
- <summary><b>All config keys</b></summary>
189
-
190
- Repo `.codechart.yaml` and global `~/.config/codechart/config.yaml`. Editor schema: `codechart schema --config` or `config.schema.json`.
191
-
192
- | Key | Values | Default |
193
- |---|---|---|
194
- | `defaults.output` | `auto`, `cli`, `web`, `both`, `none` | `auto` (terminal map; HTML only when the map is too big) |
195
- | `defaults.context` | `short` (map what the agent already read), `full` (may read referenced definitions) | `short` |
196
- | `defaults.flows` | `auto` (2+ decisions or edge cases), `always`, `request` | `auto` |
197
- | `defaults.terminalMaxNodes` | number | `15` |
198
- | `web.theme` | `auto`, `light`, `dark` | `auto` |
199
- | `web.minNodes` | HTML from this many nodes on | `8` |
200
- | `useBuiltinRules` | built-in migration/model/infrastructure path rules, `related-files`, `behaviour-flow` | `true` |
201
- | `rules` | your own, run before the built-ins | none |
202
-
203
- Global only: `web.outDir` (`~/.cache/codechart`), `web.keep` (`20`), `web.maxAgeDays` (`7`), `web.open` (`auto`: new pages open in your browser when running inside a VS Code-based editor; `always`, `never`).
204
-
205
- Rules have a `name` plus exactly one of `paths` (globs: `*`, `**`, `?`, `[..]`; no braces) or `when` (a sentence the agent judges). Optional: `output`, `context` (map rules), `diagram: map|flow`. Per diagram type and file, the first matching path rule wins. `output: none` excludes files.
206
-
207
- </details>
208
-
209
- <details>
210
- <summary><b>CLI commands</b> (the skill calls these; you rarely need to)</summary>
211
-
212
- | Command | Purpose |
213
- |---|---|
214
- | `codechart check` | Which rules apply to changed files. `--files <csv>`, `--git`, `--commit <sha>`, `--since <base>` (+ `--head <ref>`), `--matched <csv>` |
215
- | `codechart render <spec>` | Render a spec (JSON file or `-` for stdin). `--output auto\|cli\|web\|both`, `--theme auto\|light\|dark`, `--open`, `--md`, `--at <rev>`; `--git`, `--commit <sha>`, `--since <base>` (+ `--head <ref>`) to check claims against the diff; `--strict` to exit 1 on a mismatch |
216
- | `codechart schema` | Spec JSON schema; `--flow` for flow specs, `--config` for the config file |
217
- | `codechart config` | Config in effect and where each value comes from (`--json`) |
218
- | `codechart init` | Write a commented starter `.codechart.yaml` at the git root (`--force` to overwrite) |
219
- | `codechart install-skill` | Install the skill for the agents found in your home folder. `--agent <names>`, `--dir <path>`, `--force` to overwrite, `--reminder`, `--hook` |
220
- | `codechart uninstall` | Remove the skill, reminder lines and hooks; `--skill`, `--reminder`, `--hook` to pick some |
221
- | `codechart hook prompt\|stop` | Run by the Claude Code hook; reads the hook's JSON on stdin |
222
-
223
- </details>
197
+ Works with zero config. `codechart init` writes a commented `.codechart.yaml` for your own rules ("always map `app/models/**`", "draw a flow for API changes"), and `codechart config` shows what's in effect. Every key: [Configuration](docs/configuration.md). Every command: [CLI](docs/cli.md).
224
198
 
225
199
  ## FAQ
226
200
 
227
- **My agent isn't on the list.**
228
- If it loads `SKILL.md` skills, run `codechart install-skill --dir <its skills folder>`. If not, the CLI still works for any agent that can run a command and write JSON: point it at `codechart schema` and `codechart render`.
229
-
230
- **My agent asks permission for every render, even though I allowed `codechart`.**
231
- The skill pipes the spec in with a heredoc (`codechart render --md - <<'EOF'`). In Claude Code, an allow rule like `Bash(codechart:*)` didn't cover that in our tests, so Claude Code asks before each render: approve it.
232
-
233
201
  **Will it draw a diagram for every tiny change?**
234
202
  No. One-file text, comment, formatting or version-bump changes are skipped. Flows only appear for logic with 2+ decisions or edge cases, or when you ask for one.
235
203
 
236
204
  **Does my code leave my machine?**
237
- Not because of codechart. It makes no network calls. The diagram is built from what your agent already read.
205
+ Not because of codechart. The diagram is built from what your agent already read, and the daily version check sends nothing but the request for the newest version number. Only with [PR maps](docs/pr-maps.md) on does CI send the map image and description to your own GitHub or GitLab, where the PR already lives.
238
206
 
239
207
  **Where do the HTML pages go?**
240
208
  `~/.cache/codechart`. It keeps the newest 20 per repo, plus anything under 7 days old.
241
209
 
242
- **I use VS Code, Cursor, Windsurf or Antigravity, and "Open full map" shows HTML source.**
243
- Those editors open file links as text. codechart detects them and opens new pages in your browser instead. Where the editor doesn't allow that (Antigravity sandboxes agent commands), the reply includes the page's address to paste into your browser. Turn auto-open off with `web.open: never` in `~/.config/codechart/config.yaml`.
210
+ More questions (permissions prompts, editors that open HTML as text, agents not on the list): [Install and agents](docs/install.md). All docs: [docs/](docs/README.md).
244
211
 
245
212
  ## License
246
213
 
@@ -81,6 +81,10 @@
81
81
  "useBuiltinRules": {
82
82
  "type": "boolean"
83
83
  },
84
+ "updateCheck": {
85
+ "description": "Global only: look up the newest codechart on npm at most once a day and say when there is one (default true)",
86
+ "type": "boolean"
87
+ },
84
88
  "rules": {
85
89
  "type": "array",
86
90
  "items": {