agentleFS
ajaxjiang96ajaxjiang96/quote0-burnout/llms-full.txt

quote0-burnout

llms.txt9 starsChanged 3 months agoMITView on GitHub

Target Audience: Large Language Models, AI Coding Assistants, and Generative Search Engines (ChatGPT, Claude, Perplexity, Gemini, DeepSeek, GitHub Copilot). quote0-burnout is a lightweight, zero-dependency-bloat Python service designed for the MindReset Quote/0 desktop electronic paper device. It aggregates rate limits, subscription utilization, and API balances from major AI providers and renders them into a pixel-perfect 1-bit black-and-white bitmap (296×152 px).

  • Reads credentials

The file

We split this llms-full.txt into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Rule: NEVER scale pixel fonts. Only draw at native point sizes to prevent glyph degradation on e-ink screens.

    line 67
  2. Very specific:

    Verify log output confirms "设备 <id> 图片 API 内容已切换。".

    line 117

≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
llms-full.txt
# quote0-burnout: Full System Specification & Documentation

> Target Audience: Large Language Models, AI Coding Assistants, and Generative Search Engines (ChatGPT, Claude, Perplexity, Gemini, DeepSeek, GitHub Copilot).

---

## 1. Project Purpose & System Architecture

`quote0-burnout` is a lightweight, zero-dependency-bloat Python service designed for the MindReset Quote/0 desktop electronic paper device. It aggregates rate limits, subscription utilization, and API balances from major AI providers and renders them into a pixel-perfect 1-bit black-and-white bitmap (296×152 px).

### Target Device
- **Hardware**: MindReset Quote/0 E-Ink / E-Paper Display.
- **Resolution**: Exactly 296 pixels (width) × 152 pixels (height).
- **Color Mode**: Pure 1-bit monochrome (`mode: '1'`). No grayscale, no dithering, no anti-aliasing.
- **Push Protocols**:
  - `IMAGE_API`: Direct PNG upload to device screen via MindReset Open Device API.
  - `TEXT_API`: Compact textual status lines.

### Core Rendering Pipeline
1. **Fetch**: Query active providers in parallel/sequence with short timeouts and cache fallbacks.
2. **Snapshot**: Normalize vendor responses into uniform dictionary schemas (`short_label`, `short_used_percent`, `short_reset`, `long_label`, `long_used_percent`, `long_reset`, `status`).
3. **Change Detection & Recency Ordering**: Calculate MD5/JSON fingerprints of snapshots against the local cache (`tmp/quote0_snapshot.json`). Providers with newer changes are prioritized in the visual layout hierarchy.
4. **Layout Resolution**: Determine screen layout (`stack`, `1+1`, `1+2`, or `2+2`) based on the number of live, authenticated providers (`ok: True`). Dead or unauthenticated providers are silently omitted.
5. **Pixel-Perfect Rendering**: Render bitmap with Pillow using native-size pixel fonts.
6. **Delivery**: Push payload via HTTPS POST to `https://open.mindreset.tech/api/authV2/open/device/{QUOTE0_DEVICE_ID}/fixed/content`.

---

## 2. Supported AI Providers & Quota Mechanics

### OpenAI Codex
- **Authentication**: `~/.codex/auth.json` or `CODEX_ACCESS_TOKEN`.
- **Metrics**: 5-hour limit, weekly limit, reset countdown, and rate-limit reset credits (`resets_available` + `reset_expiry`).

### Claude Code (Anthropic)
- **Authentication**: `~/.claude/.credentials.json`, macOS Keychain, `CLAUDE_ACCESS_TOKEN`, or CLI fallback (`claude /usage`).
- **Metrics**: 5-hour session quota and 7-day all-models quota with countdowns.

### Google AGY (Antigravity)
- **Authentication**: Local token file (`~/.gemini/antigravity-cli/antigravity-oauth-token`), `AGY_API_KEY`, or `agy` CLI binary.
- **Data Source**: Fetched via `agy --print /quota` (with `stdin=subprocess.DEVNULL`). Outputs tab-separated records for Gemini Models and Claude/GPT models.
- **Normalization**: Translates remaining percentage to utilization: `used_percent = 100 - remaining_percent`.

### DeepSeek
- **Authentication**: `DEEPSEEK_API_KEY`.
- **Metrics**: Real-time account balance with hero 21px VCR font, dynamic billing tier (PEAK vs OFF-PEAK, 50% discount — weekends are off-peak all day), and countdown until the next rate switch.

### OpenCode Go
- **Authentication**: `OPENCODE_GO_API_KEY`.
- **Metrics**: Zen "Go" subscription tier: 5h, Weekly, and Monthly utilization bars.

---

## 3. Layout Dimensions & Typography Rules

| Layout Mode | Live Provider Count | Layout Description |
|---|---|---|
| `stack` | 1 (or forced) | Full-width single provider view |
| `1+1` | 2 | Two half-height panels stacked vertically (296×76 px each) |
| `1+2` | 3 | Top half-width panel (296×76 px) + bottom two quarter cells (148×76 px each) |
| `2+2` | 4 | Four quarter cells in a 2×2 grid (148×76 px each) |

### Strict Font Constraints
- **PixelOperator (16px)**: Used for panel titles, labels, percentages, and status tags.
- **Minecraftia (8px)**: Used for secondary countdown notes, reset stamps, and small badges.
- **VCR OSD Mono (21px)**: Used exclusively for hero numbers (e.g. DeepSeek account balance).
- **Rule**: NEVER scale pixel fonts. Only draw at native point sizes to prevent glyph degradation on e-ink screens.

---

## 4. Environment Variables Configuration

| Variable | Required | Default | Purpose |
|---|---|---|---|
| `QUOTE0_API_KEY` | Yes | - | MindReset Open Platform API Key |
| `QUOTE0_DEVICE_ID` | Yes | - | MindReset Quote/0 hardware MAC / device ID |
| `CODEX_ACCESS_TOKEN` | No | Auto | OpenAI Codex bearer token override |
| `CLAUDE_ACCESS_TOKEN` | No | Auto | Claude Code OAuth token override |
| `AGY_API_KEY` | No | Auto | Google Antigravity token override |
| `DEEPSEEK_API_KEY` | No | - | DeepSeek platform API key |
| `OPENCODE_GO_API_KEY` | No | - | OpenCode Zen subscription API key |
| `LAYOUT` | No | `auto` | Force layout geometry: `auto`, `stack`, `1+1`, `1+2`, `2+2` |
| `REFRESH_INTERVAL` | No | - | Self-scheduling loop period (e.g. `5m`, `60s`, `1h`; min 60s) |

---

## 5. CLI Commands

- `python display.py --preview`: Render preview image locally to `/tmp/quote0_burnout_preview.png`.
- `python display.py`: Push current live status to Quote/0 e-ink screen.
- `python display.py --interval 5m`: Run daemon loop refreshing every 5 minutes.
- `python display.py --check`: Diagnostic self-check verifying auth, APIs, rendering, and device endpoints.
- `python display.py --debug-json`: Dump normalized snapshot JSON to standard output.
- `python display.py --text`: Push textual summary instead of monochrome image.

---

## 6. Bundled Agent Skills (Vercel Skills Standard)

The repository provides two specialized, path-sanitized agent skills:
- **`skills/quote0-burnout-develop/SKILL.md`**: Development guidelines, 4-method provider contract (`is_configured`, `get_usage`, `build_snapshot`, `format_text`), typography rules, layout engine seams, and test verification procedures.
- **`skills/quote0-burnout-deploy/SKILL.md`**: Isolated deployment procedure, launchd lifecycle management, environment variables symlinking, and hardware push confirmation.
- **References**:
  - `skills/quote0-burnout-develop/references/eink-design.md`: Detailed pixel design constraints and e-ink rasterization standards.
  - `skills/quote0-burnout-develop/references/quote0-api.md`: Open platform API specification.

---

## 7. Deployment Isolation Architecture

- **Dedicated Deploy Worktree**: The live device is updated exclusively from a detached Git worktree (`$DEPLOY_DIR`, e.g. `~/Projects/quote0-burnout-deploy`), keeping unfinished development work off the screen.
- **Symlinked Environment**: `$DEPLOY_DIR/.env` and `$DEPLOY_DIR/.venv` are symlinked to share credentials and virtual environments without duplicated storage.
- **macOS launchd Daemon**: Scheduled via `scripts/com.example.quote0-burnout.plist.example` (copy to `~/Library/LaunchAgents/` with machine-local paths) running every 5 minutes.
- **Release Procedure**:
  1. `git -C "$DEPLOY_DIR" fetch origin main && git -C "$DEPLOY_DIR" checkout --detach origin/main`
  2. `launchctl kickstart gui/$(id -u)/"$LABEL"`
  3. Verify log output confirms `"设备 <id> 图片 API 内容已切换。"`.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.