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:
@@ -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) |  |
|
||||||
|
|
||||||
### 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) |  |
|
|
||||||
|
|
||||||
## 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user