From 54f2bace2db027eeccfc4977ac2e7a59c147aa49 Mon Sep 17 00:00:00 2001 From: dawn <90008@gaze.systems> Date: Tue, 19 May 2026 11:01:37 +0300 Subject: [PATCH] show latest commit in subpaths, dont show empty README --- AGENTS.md | 44 ++++++++++++++++++++++ src/pages/repo/code.tsx | 81 ++++++++++++++++++++++++++++++++++------- 2 files changed, 111 insertions(+), 14 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index e289da4..9e43db8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -188,3 +188,47 @@ Approximate current file roles: - `src/pages/repo/pulls.tsx`: pull routes and patch/diff UI. - `src/pages/repo/issues.tsx`: issue routes. - `src/lib/api/core.ts`: compatibility implementation backend; prefer new domain modules for new API surfaces. + + + +# RTK (Rust Token Killer) - Token-Optimized Commands + +When running shell commands, **always prefix with `rtk`**. This reduces context +usage by 60-90% with zero behavior change. If rtk has no filter for a command, +it passes through unchanged — so it is always safe to use. + +## Key Commands +```bash +# Git (59-80% savings) +rtk git status rtk git diff rtk git log + +# Files & Search (60-75% savings) +rtk ls rtk read rtk grep +rtk find rtk diff + +# Test (90-99% savings) — shows failures only +rtk pytest tests/ rtk cargo test rtk test + +# Build & Lint (80-90% savings) — shows errors only +rtk tsc rtk lint rtk cargo build +rtk prettier --check rtk mypy rtk ruff check + +# Analysis (70-90% savings) +rtk err rtk log rtk json +rtk summary rtk deps rtk env + +# GitHub (26-87% savings) +rtk gh pr view rtk gh run list rtk gh issue list + +# Infrastructure (85% savings) +rtk docker ps rtk kubectl get rtk docker logs + +# Package managers (70-90% savings) +rtk pip list rtk pnpm install rtk npm run