docs: move examples section below Why in repo-tokens README

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
gavrielc
2026-02-27 17:20:29 +02:00
parent 6d8f8335bc
commit 8f91d3be57

View File

@@ -28,6 +28,14 @@ Small codebases were always a good thing. With coding agents, there's now a huge
This badge gives some indication of how easy it will be to work with an agent on the codebase, and will hopefully be a visual reminder to avoid bloat. This badge gives some indication of how easy it will be to work with an agent on the codebase, and will hopefully be a visual reminder to avoid bloat.
## Examples
Repos using repo-tokens:
| Repo | Badge |
|------|-------|
| [NanoClaw](https://github.com/qwibitai/NanoClaw) | ![tokens](https://raw.githubusercontent.com/qwibitai/NanoClaw/main/repo-tokens/badge.svg) |
### Full workflow example ### Full workflow example
```yaml ```yaml
@@ -98,14 +106,6 @@ The action replaces everything between the markers with the token count.
| `percentage` | Percentage of context window (e.g., `17`) | | `percentage` | Percentage of context window (e.g., `17`) |
| `badge` | The formatted text that was inserted (e.g., `34.9k tokens · 17% of context window`) | | `badge` | The formatted text that was inserted (e.g., `34.9k tokens · 17% of context window`) |
## Examples
Repos using repo-tokens:
| Repo | Badge |
|------|-------|
| [NanoClaw](https://github.com/qwibitai/NanoClaw) | ![tokens](https://raw.githubusercontent.com/qwibitai/NanoClaw/main/repo-tokens/badge.svg) |
## How it works ## How it works
Composite GitHub Action. Installs tiktoken, runs ~60 lines of inline Python. Takes about 10 seconds. Composite GitHub Action. Installs tiktoken, runs ~60 lines of inline Python. Takes about 10 seconds.