Skip to content

armgit / cogit

Public Imported from GitHub
0

Git for the intent behind agent-written code. Records what your coding agent decided and why, and links every commit to it.

docs: a current map screenshot in dark and light, no painting caption

Eren7085ffea13c2
diff --git a/CHANGELOG.md b/CHANGELOG.md
index deed4f7..40f18c2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
+### Changed
+- The README and the guide show a current screenshot of the map, in dark or light to match the reader's theme (the map itself follows the system theme). The repository no longer carries the internal spec and test plan.
## [0.17.2] - 2026-10-28
### Changed
diff --git a/README.md b/README.md
index e1c6180..594a3c9 100644
--- a/README.md
+++ b/README.md
@@ -6,9 +6,12 @@
Git remembers what changed. cogit remembers why.
-<p align="center"><img src="docs/images/cogit-descartes.jpg" width="360" alt="René Descartes with git branches running through his hair"><br><sub>After Frans Hals, <i>Portrait of René Descartes</i> (c. 1649).</sub></p>
+<p align="center"><img src="docs/images/cogit-descartes.jpg" width="360" alt="René Descartes with git branches running through his hair"></p>
-![The map: sessions, branches and the thoughts behind them](docs/images/map.png)
+<picture>
+ <source media="(prefers-color-scheme: dark)" srcset="docs/images/map-dark.png">
+ <img src="docs/images/map-light.png" alt="The map: sessions, branches and the decision behind a message">
+</picture>
cogit records every message you send to an AI coding agent as a *thought commit*: what you
asked, what came of it, and the message it answered. Your code commits point back to the
diff --git a/docs/guide/map.md b/docs/guide/map.md
index 74f8e63..be4fe47 100644
--- a/docs/guide/map.md
+++ b/docs/guide/map.md
@@ -10,7 +10,10 @@ the server in the background if it is not running. The page refreshes itself whe
record changes and keeps your place: the selected message, the unfolded branches, the scroll
and the zoom. Nothing is sent anywhere; the server answers only this machine.
-![The map](../images/map.png)
+<picture>
+ <source media="(prefers-color-scheme: dark)" srcset="../images/map-dark.png">
+ <img src="../images/map-light.png" alt="The map: sessions, branches and the decision behind a message">
+</picture>
## Sessions and branches
diff --git a/docs/images/map-dark.png b/docs/images/map-dark.png
new file mode 100644
index 0000000..b901357
Binary files /dev/null and b/docs/images/map-dark.png differ
diff --git a/docs/images/map-light.png b/docs/images/map-light.png
new file mode 100644
index 0000000..c8554ee
Binary files /dev/null and b/docs/images/map-light.png differ
diff --git a/packages/cli/test/plugin-manifest.test.ts b/packages/cli/test/plugin-manifest.test.ts
index 8c7140b..8d2235b 100644
--- a/packages/cli/test/plugin-manifest.test.ts
+++ b/packages/cli/test/plugin-manifest.test.ts
@@ -59,14 +59,17 @@ describe("plugin packaging", () => {
it("keeps a README that shows the map and points at the guide and licence", async () => {
const readme = await readFile(new URL("../../../README.md", import.meta.url), "utf8");
- expect(readme).toContain("![The map");
- expect(readme).toContain("(docs/images/map.png)");
+ // One screenshot per theme; GitHub shows the one that matches the reader's.
+ expect(readme).toContain('srcset="docs/images/map-dark.png"');
+ expect(readme).toContain('src="docs/images/map-light.png"');
expect(readme).toContain("(docs/guide/getting-started.md)");
expect(readme).toContain("(LICENSE)");
// A relative image only renders when the file it names is in the repository.
- await expect(
- access(new URL("../../../docs/images/map.png", import.meta.url)),
- ).resolves.toBeUndefined();
+ for (const image of ["map-dark.png", "map-light.png"]) {
+ await expect(
+ access(new URL(`../../../docs/images/${image}`, import.meta.url)),
+ ).resolves.toBeUndefined();
+ }
});
it("points every relative link of the README and the guide at a file that exists", async () => {