docs(readme): add Gateway screenshot gallery (hero + 2-column grid)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
mksgluandClaude Sonnet 5.5 committed 2026-11-01 14:01:04 +03:00
1 parent 7c726850c9
commit d876d6c239
15 files changed
+51

No files matched your search

+35
View File
@@ -273,6 +273,41 @@ Code from `ctx_execute` runs on your host as your user, with your environment (m
The plugin keeps tool output out of the context window. In a long session the rest of the request still grows: the agent re-sends the whole history on every request, compacts at the window limit, and keeps what it learned inside one session and one agent.
Context Mode Gateway works on that part. It runs between your agent and the model API, on every request and the whole account: Recall for sessions longer than the window, Memory shared by all your agents, Skills, Search over everything that passed through, and Protect.
<a href="docs/assets/readme/gateway/overview.webp"><img src="docs/assets/readme/gateway/overview-1200.webp" alt="Gateway Overview: money saved, AI spend, prompt-cache discount and cost per request over 30 days" width="100%"></a>
**Overview.** A long session bills you late and in pieces. This screen shows what you paid and what the Gateway saved, per day.
<table>
<tr>
<td width="50%" valign="top">
<a href="docs/assets/readme/gateway/analytics.webp"><img src="docs/assets/readme/gateway/analytics-1200.webp" alt="Gateway Analytics: saved money over time, split by source" width="100%"></a><br>
<b>Analytics.</b> You want to know where a saving comes from. This screen splits it into hidden tools, archived old results, kept-out large outputs and trimmed context.
</td>
<td width="50%" valign="top">
<a href="docs/assets/readme/gateway/spend.webp"><img src="docs/assets/readme/gateway/spend-1200.webp" alt="Gateway Spend: spend per day by model, cost per request and cache hit rate" width="100%"></a><br>
<b>Spend.</b> The bill grows by day and by model. This screen shows spend per day, cost per request and the cache hit rate.
</td>
</tr>
<tr>
<td width="50%" valign="top">
<a href="docs/assets/readme/gateway/memory.webp"><img src="docs/assets/readme/gateway/memory-top-1200.webp" alt="Gateway Memory: money saved by Recall and searches per day" width="100%"></a><br>
<b>Memory.</b> Facts and decisions carry across sessions and agents. This screen shows what Recall saved and how many searches found an answer.
</td>
<td width="50%" valign="top">
<a href="docs/assets/readme/gateway/skills.webp"><img src="docs/assets/readme/gateway/skills-1200.webp" alt="Gateway Skills: import from GitHub and the list of installed skills" width="100%"></a><br>
<b>Skills.</b> You add a skill once and all your clients use it when it helps. This screen imports skills from GitHub and lists the installed ones.
</td>
</tr>
<tr>
<td colspan="2" align="center">
<a href="docs/assets/readme/gateway/protect.webp"><img src="docs/assets/readme/gateway/protect-1200.webp" alt="Gateway Protect: a new command rule that blocks terraform destroy" width="50%"></a><br>
<b>Protect.</b> One wrong shell command can wipe a disk. This screen writes a rule that blocks such a command before it runs.
</td>
</tr>
</table>
Numbers in these screenshots come from the author's own account over 30 days (Oct 3 - Nov 1, 2026), so read them as one account's usage. Click an image for the full size.
**Table 4.** Context Mode Gateway features, from [contextmode.ai/docs](https://contextmode.ai/docs/how-saving-works).
| Feature | What it does | What you get | Details |
+1
View File
@@ -127,3 +127,4 @@ Split: this file holds the deviation rows without a date (format: id, files, dec
| D-PATH-LABEL-1 | src/core/store/fts.ts (pathLabel, storedLabel, resolveSourceLabel), src/core/store/schema.ts (DDL_V6), src/core/contracts/constants.ts (SCHEMA_VERSION 6), src/core/tools/index.ts (pathItems, itemsOf), src/core/tools/purge.ts, bench/suite/lib.mjs (qualityMisses, savedCell, indexedLabel), bench/run.mjs, bench/b-retrieval/index.mjs, tests/prd8-index-search.test.mjs (3 tests, one Windows only), tests/prd12-stats-purge.test.mjs, tests/0002-store.test.mjs (v6 migration), tests/0012-m2-bench.test.mjs, tests/0018-contracts.test.mjs | Windows retest 2026-11-01 (Codex 0.166, Claude Desktop, next.23): ctx_index({path:"data/sqlite-fts5-docs.html"}) stored and returned the label "data\\sqlite-fts5-docs.html" (node:path join and relative use the OS separator); ctx_search with source:"data/sqlite-fts5-docs.html" gave "No hits ... across 0 source(s)" because the filter is `label = :source` (3/3 questions fail in 3 fresh runs; nested/notes.md gave 0 hits, nested\\notes.md gave 1). Root cause: the label is a name the agent types back, but it was built with the OS separator and compared by exact text. Now a path label has one form on every OS: forward slashes, relative to the project (`pathLabel`). The `source` argument of ctx_search and ctx_purge takes either slash form: the argument as typed if a row has it, else its forward-slash form (`storedLabel`). Schema version 6 renames existing backslash path labels in place (`UPDATE sources SET label = replace(label, char(92), '/') WHERE kind = 'path'`): no source or chunk row is deleted or rewritten, content and url labels are not touched, so data stored on Windows before the fix stays findable. The harness (bench/b-retrieval) now searches with the label ctx_index returned. A scenario whose own check fails (WARN, answers < expected) is a quality miss: bench/run.mjs prints `MISS`, a QUALITY MISS list and a count in the last line, writes `quality_misses` into the results JSON, and the table row shows `miss` where a saving would stand (before, the row printed WARN, exited 0 and showed a saving). Loss: a non-Windows path with a literal backslash in a file name is now labelled with a slash (rare; the file is still found by path). | New behaviour on all OSes for path labels; macOS and Linux labels are unchanged (no backslash). Windows-only test runs on the windows-latest CI job. |
| D-REPO-NO-METRICS-1 | `metrics/` (deleted), `e2e/live/skip-streak.json` (moved from `metrics/live-skip-streak.json`), `.github/workflows/traffic.yml` and `scripts/release/merge-traffic.mjs` (deleted), `build/check-removed.mjs`, `.claude/skills/release/SKILL.md`, `tests/0011-v1-transition.test.mjs`, `tests/0014-repo-hygiene.test.mjs`, ADR-0011, ADR-0013, ADR-0015, ADR-0019, `docs/architecture/modules/13-build-release.md` | Owner, 2026-11-01: "https://github.com/mksglu/context-mode/tree/v2-design/metrics - bu dizinin amaci nedir anlamadim sil gerek yoksa tek basina kalmis burda boyle". The directory held one file, the live-skip streak counter, next to a traffic workflow that wrote `metrics/traffic.json`. The README badges now read `stats.json` from `readme-stats.yml` (D-README-STATS-1), so the traffic workflow, its merge script and its 8 tests are removed. The streak counter is next to the live harness in `e2e/live/skip-streak.json`. The repo-hygiene test fails if `metrics/` exists. |
| D-README-GW-PROBLEM-1 | README.md (top blockquote, section 8 Context Mode Gateway), tests/0014-repo-hygiene.test.mjs (Gateway README test) | Owner, 2026-11-01, on the top Gateway blurb ("Context Mode Gateway is the paid layer ... Free: 1,000 requests a month, every feature, card-free. Start at contextmode.ai. Plans: ..."): "bunu daha business value ve sorun cozen taraftan yaklasalim, bu sekilde cok reklam olmus, OSS'ta user i kacirir bu text". The top blockquote now opens with the problem (a long session grows, compacts and forgets) and the 200K-window result with zero compactions. Section 8 opens problem-first. The README drops the quota, price, plan, Enterprise and sign-up lines, and drops the 1M-window row ($7.24 to $2.97): that run missed its own pre-registered accuracy rule, so the README quotes only runs that passed theirs. The test fails if the README has "1,000 requests", "card-free", "Start at", "Every plan has every feature", "contextmode.ai/pricing", "$7.24" or "-59.0%". |
| D-README-GW-SHOTS-1 | README.md (section 8: Overview hero and a 2-column gallery), docs/assets/readme/gateway/ (12 WebP files), tests/0014-repo-hygiene.test.mjs (Gateway screenshots test) | Owner, 2026-11-01: "bunlari da ekleyebilir misin ... galeri seklinde mi eklemek gerek hepsi yuksek cozunurlukte OSS'lar best-practice nasil yapiyorsa o sekilde yapmak gerek". The README shows six Gateway console screenshots (Overview, Analytics, Spend, Memory, Skills, Protect) in the way supabase, posthog, langfuse and cal.com show theirs: one wide hero, then a table grid with a thumbnail that links to the full-size file. The README names the sources of the numbers once (the author's own account, 30 days). The images are WebP, so they stay out of the PNG byte cap in build/readme-links.mjs; the cap is unchanged. Email addresses in the source shots are blurred; a test keeps email addresses out of the README. |
Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

+15
View File
@@ -1230,6 +1230,21 @@ describe("ADR-0015 repo: README thesis, links and figures (D-README-THESIS-1)",
for (const bad of ["$7.24", "-59.0%"]) assert.ok(!readme.includes(bad), `README quotes ${bad}`);
for (const l of readme.split("\n").filter((x) => x.includes("43.8%"))) assert.ok(l.includes("15 of 20"), "-43.8% without its task-check loss");
});
test("README: Gateway screenshots gallery names six existing images and the README holds no email address (D-README-GW-SHOTS-1)", () => {
const readme = readRepo("README.md");
const dir = "docs/assets/readme/gateway/";
const named = [];
for (let i = readme.indexOf(dir); i >= 0; i = readme.indexOf(dir, i + 1)) {
const end = readme.slice(i).search(/["')\s]/);
named.push(readme.slice(i, i + end));
}
const files = [...new Set(named)];
for (const f of files) assert.ok(existsSync(path.join(REPO, f)), `README names ${f}, the file is missing`);
for (const shot of ["overview", "analytics", "spend", "memory", "skills", "protect"]) assert.ok(files.some((f) => f.includes("/" + shot)), `README has no ${shot} screenshot`);
assert.ok(readme.includes("author's own account over 30 days"), "README says where the screenshot numbers come from");
assert.ok(!/[\w.+-]+@[\w-]+\.[\w.-]*[a-z]/i.test(readme), "README names an email address");
});
});
describe("ADR-0015 repo: README stats job and brand (D-README-STATS-1)", () => {