Hermes Bot Nanoboozhoo commited on
docs: update llms.txt with v0.5.1 status and infrastructure notes
Browse files- Version bump to 0.5.1
- Free tier compute note
- Port conflict fix documented
- CritterCalm soundfile fix noted
- Stack updates (HF Inference API across all 3)
- Child DOX Index corrected
- Co-author: Nanoboozhoo everywhere
Co-Authored-By: Nanoboozhoo <nanoboozhoo@git-aaaki>
llms.txt
CHANGED
|
@@ -1,26 +1,37 @@
|
|
| 1 |
-
#
|
| 2 |
-
# Project Requirements Document
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
|
| 7 |
-
|
| 8 |
-
> READMEs may use additional stylistic content for their own artifacts; this
|
| 9 |
-
> doc does not enumerate those choices.
|
| 10 |
-
|
| 11 |
-
---
|
| 12 |
-
|
| 13 |
-
## Overview
|
| 14 |
|
| 15 |
- **Name:** Build Small Hackathon 2026 — Team nbiish
|
| 16 |
-
- **Version:** 0.5.
|
| 17 |
- **Aesthetic:** Cedar-copper visual language — sky-to-sunrise palette (water-blue → cedar → copper → sun-amber → birch-cream), biophilic motifs, sky-to-water gradient banners. Shared CSS variables live in `shared/cedar_copper_tokens.py`.
|
| 18 |
- **Purpose:** Win prizes across tracks, badges, and sponsor categories by building delightful, useful AI apps that run locally.
|
| 19 |
- **UX:** Gradio web apps (gr.Blocks + mount_gradio_app custom frontends), hosted on HF Spaces.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
-
|
|
|
|
| 22 |
|
| 23 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
### Naming & Comments
|
| 26 |
|
|
@@ -31,14 +42,14 @@
|
|
| 31 |
|
| 32 |
- Models ≤ 32B total params per project
|
| 33 |
- Gradio app hosted as HF Space
|
| 34 |
-
-
|
| 35 |
-
-
|
| 36 |
- Python 3.10+ with pinned requirements
|
| 37 |
- Cedar-copper aesthetic consistency across all UIs (palette tokens in `shared/cedar_copper_tokens.py`)
|
| 38 |
|
| 39 |
### Never
|
| 40 |
|
| 41 |
-
-
|
| 42 |
- Hardcoded secrets or API keys
|
| 43 |
- Models > 32B params
|
| 44 |
- Default Gradio look without customization attempt
|
|
@@ -50,8 +61,6 @@
|
|
| 50 |
- If using llama.cpp runtime → tag Llama Champion
|
| 51 |
- If fine-tuning is done → publish model to HF Hub
|
| 52 |
|
| 53 |
-
---
|
| 54 |
-
|
| 55 |
## Infrastructure
|
| 56 |
|
| 57 |
### Gradio 6.0 + MCP Server
|
|
@@ -103,13 +112,11 @@ Local servers were used during v0.4 development for visual inspection. v0.5+ pre
|
|
| 103 |
| FocusFriend | http://localhost:7862/ | Gradio 6.0 | nbiish/focusfriend |
|
| 104 |
| CritterCalm | http://localhost:7863/ | Gradio 6.0 | nbiish/crittercalm |
|
| 105 |
|
| 106 |
-
---
|
| 107 |
-
|
| 108 |
## Projects
|
| 109 |
|
| 110 |
### 1. CritterCalm (Backyard AI)
|
| 111 |
|
| 112 |
-
- **Status:** Code complete. Deployed. HF Inference API + cooldowns wired for script generation.
|
| 113 |
- **Stack:** OmniVoice (0.6B, local optional) + Kokoro TTS (82M, local optional) + Qwen2.5-7B (default) via HF Inference API
|
| 114 |
- **Badges:** Off the Grid, Well-Tuned (TBD), Field Notes, Off-Brand
|
| 115 |
- **GitHub:** github.com/nbiish/crittercalm
|
|
@@ -118,7 +125,7 @@ Local servers were used during v0.4 development for visual inspection. v0.5+ pre
|
|
| 118 |
|
| 119 |
### 2. FocusFriend (Thousand Token Wood)
|
| 120 |
|
| 121 |
-
- **Status:** Code complete. Deployed. HF Inference API + cooldowns wired.
|
| 122 |
- **Stack:** Qwen2.5-7B (default) via HF Inference API
|
| 123 |
- **Badges:** Off-Brand (sun-amber custom theme), Field Notes, Cooldowns badge
|
| 124 |
- **GitHub:** github.com/nbiish/focusfriend
|
|
@@ -127,26 +134,26 @@ Local servers were used during v0.4 development for visual inspection. v0.5+ pre
|
|
| 127 |
|
| 128 |
### 3. TinyBard (Thousand Token Wood + Tiny Titan + Llama Champion)
|
| 129 |
|
| 130 |
-
- **Status:** Code complete. Deployed. HF Inference API + cooldowns wired.
|
| 131 |
- **Concept:** ≤4B LLM generates 5-min interactive text adventures in a CRT terminal aesthetic.
|
| 132 |
- **Stack:** Qwen2.5-1.5B (default) via HF Inference API + procedural fallback engine
|
| 133 |
|
| 134 |
-
|
| 135 |
|
| 136 |
-
## TODO
|
| 137 |
|
| 138 |
> Keep tasks atomic and testable.
|
| 139 |
|
| 140 |
-
### In Progress
|
| 141 |
|
| 142 |
-
- [ ]
|
| 143 |
-
- [ ] Test
|
| 144 |
- [ ] Record demo videos (2-3 min each)
|
| 145 |
- [ ] Post to social media
|
| 146 |
- [ ] Write Field Notes blog posts (3 — one per project)
|
| 147 |
- [ ] Share agent traces to HF Hub (Sharing is Caring badge)
|
| 148 |
|
| 149 |
-
### Completed
|
| 150 |
|
| 151 |
- [x] CritterCalm v1 code complete (11 files) — Cedar-copper UI
|
| 152 |
- [x] FocusFriend v1 code complete (16 files) — Cedar-copper UI + Gradio 6 dict Chatbot
|
|
@@ -166,9 +173,7 @@ Local servers were used during v0.4 development for visual inspection. v0.5+ pre
|
|
| 166 |
- [x] **v0.5: Cooldown system** in `shared/inference_client.py` to protect HF/Modal credit budget
|
| 167 |
- [x] **v0.5: TinyBard local test** — procedural fallback works when no HF_TOKEN; cooldown UI shows in footer
|
| 168 |
|
| 169 |
-
-
|
| 170 |
-
|
| 171 |
-
## Short-term Goals
|
| 172 |
|
| 173 |
- Iterate on the live HF Spaces (nbiish/tinybard, nbiish/focusfriend, nbiish/crittercalm)
|
| 174 |
- Set HF_TOKEN + INFERENCE_MODEL Space secrets to enable real LLM-backed adventures
|
|
@@ -177,7 +182,66 @@ Local servers were used during v0.4 development for visual inspection. v0.5+ pre
|
|
| 177 |
- Share agent traces for Sharing is Caring badge
|
| 178 |
- Polish UIs for demo appeal
|
| 179 |
|
| 180 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 181 |
|
| 182 |
## Reference
|
| 183 |
|
|
@@ -188,4 +252,25 @@ Local servers were used during v0.4 development for visual inspection. v0.5+ pre
|
|
| 188 |
- Inference client: shared/inference_client.py
|
| 189 |
- ML Intern: github.com/huggingface/ml-intern
|
| 190 |
- HF Agents CLI: huggingface.co/docs/hub/en/agents-cli
|
| 191 |
-
- Gradio MCP: gradio.app/guides/model-context-protocol
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DOX framework
|
|
|
|
| 2 |
|
| 3 |
+
- DOX is a highly performant `llms.txt` hierarchy installed here
|
| 4 |
+
- Agent must follow DOX instructions across any edits
|
| 5 |
|
| 6 |
+
## Purpose
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
- **Name:** Build Small Hackathon 2026 — Team nbiish
|
| 9 |
+
- **Version:** 0.5.1 — Cedar-Copper Edition (HF Inference API + fixes)
|
| 10 |
- **Aesthetic:** Cedar-copper visual language — sky-to-sunrise palette (water-blue → cedar → copper → sun-amber → birch-cream), biophilic motifs, sky-to-water gradient banners. Shared CSS variables live in `shared/cedar_copper_tokens.py`.
|
| 11 |
- **Purpose:** Win prizes across tracks, badges, and sponsor categories by building delightful, useful AI apps that run locally.
|
| 12 |
- **UX:** Gradio web apps (gr.Blocks + mount_gradio_app custom frontends), hosted on HF Spaces.
|
| 13 |
+
- **Hack window:** June 5-15, 2026. Deadline: June 15.
|
| 14 |
+
|
| 15 |
+
> This file is the master PRD and stays English-only. Per-project UIs and READMEs may use additional stylistic content for their own artifacts.
|
| 16 |
+
|
| 17 |
+
## Core Contract
|
| 18 |
|
| 19 |
+
- `llms.txt` files are binding work contracts for their subtrees
|
| 20 |
+
- Work products, source materials, instructions, records, assets, and durable docs must stay understandable from the nearest applicable `llms.txt` plus every parent `llms.txt` above it
|
| 21 |
|
| 22 |
+
## Read Before Editing
|
| 23 |
+
|
| 24 |
+
1. Read the root `llms.txt`
|
| 25 |
+
2. Identify every file or folder you expect to touch
|
| 26 |
+
3. Walk from the repository root to each target path
|
| 27 |
+
4. Read every `llms.txt` found along each route
|
| 28 |
+
5. If a parent `llms.txt` lists a child `llms.txt` whose scope contains the path, read that child and continue from there
|
| 29 |
+
6. Use the nearest `llms.txt` as the local contract and parent docs for repo-wide rules
|
| 30 |
+
7. If docs conflict, the closer doc controls local work details, but no child doc may weaken DOX
|
| 31 |
+
|
| 32 |
+
Do not rely on memory. Re-read the applicable DOX chain in the current session before editing.
|
| 33 |
+
|
| 34 |
+
## Local Contracts
|
| 35 |
|
| 36 |
### Naming & Comments
|
| 37 |
|
|
|
|
| 42 |
|
| 43 |
- Models ≤ 32B total params per project
|
| 44 |
- Gradio app hosted as HF Space
|
| 45 |
+
- HF Inference API for LLM calls (serverless, no local GGUF)
|
| 46 |
+
- Per-project cooldowns on all HF Inference API calls
|
| 47 |
- Python 3.10+ with pinned requirements
|
| 48 |
- Cedar-copper aesthetic consistency across all UIs (palette tokens in `shared/cedar_copper_tokens.py`)
|
| 49 |
|
| 50 |
### Never
|
| 51 |
|
| 52 |
+
- llama-cpp-python in production (causes BUILD_ERROR on HF CPU tier)
|
| 53 |
- Hardcoded secrets or API keys
|
| 54 |
- Models > 32B params
|
| 55 |
- Default Gradio look without customization attempt
|
|
|
|
| 61 |
- If using llama.cpp runtime → tag Llama Champion
|
| 62 |
- If fine-tuning is done → publish model to HF Hub
|
| 63 |
|
|
|
|
|
|
|
| 64 |
## Infrastructure
|
| 65 |
|
| 66 |
### Gradio 6.0 + MCP Server
|
|
|
|
| 112 |
| FocusFriend | http://localhost:7862/ | Gradio 6.0 | nbiish/focusfriend |
|
| 113 |
| CritterCalm | http://localhost:7863/ | Gradio 6.0 | nbiish/crittercalm |
|
| 114 |
|
|
|
|
|
|
|
| 115 |
## Projects
|
| 116 |
|
| 117 |
### 1. CritterCalm (Backyard AI)
|
| 118 |
|
| 119 |
+
- **Status:** Code complete. Deployed. HF Inference API + cooldowns wired for script generation. Voice cloning (OmniVoice) requires local install or Modal; Kokoro TTS fallback works on HF Space CPU tier.
|
| 120 |
- **Stack:** OmniVoice (0.6B, local optional) + Kokoro TTS (82M, local optional) + Qwen2.5-7B (default) via HF Inference API
|
| 121 |
- **Badges:** Off the Grid, Well-Tuned (TBD), Field Notes, Off-Brand
|
| 122 |
- **GitHub:** github.com/nbiish/crittercalm
|
|
|
|
| 125 |
|
| 126 |
### 2. FocusFriend (Thousand Token Wood)
|
| 127 |
|
| 128 |
+
- **Status:** Code complete. Deployed. HF Inference API + cooldowns wired. Was PAUSED on HF Spaces; factory_reboot needed.
|
| 129 |
- **Stack:** Qwen2.5-7B (default) via HF Inference API
|
| 130 |
- **Badges:** Off-Brand (sun-amber custom theme), Field Notes, Cooldowns badge
|
| 131 |
- **GitHub:** github.com/nbiish/focusfriend
|
|
|
|
| 134 |
|
| 135 |
### 3. TinyBard (Thousand Token Wood + Tiny Titan + Llama Champion)
|
| 136 |
|
| 137 |
+
- **Status:** Code complete. Deployed. HF Inference API + cooldowns wired. Had double-launch port conflict (uvicorn + Gradio SDK) — fixed by exporting `app` at module level.
|
| 138 |
- **Concept:** ≤4B LLM generates 5-min interactive text adventures in a CRT terminal aesthetic.
|
| 139 |
- **Stack:** Qwen2.5-1.5B (default) via HF Inference API + procedural fallback engine
|
| 140 |
|
| 141 |
+
## Work Guidance
|
| 142 |
|
| 143 |
+
### TODO
|
| 144 |
|
| 145 |
> Keep tasks atomic and testable.
|
| 146 |
|
| 147 |
+
#### In Progress
|
| 148 |
|
| 149 |
+
- [ ] Fix CritterCalm voice cloning for HF Space (Modal or local-only mode)
|
| 150 |
+
- [ ] Test all 3 apps on HF Spaces with HF_TOKEN set
|
| 151 |
- [ ] Record demo videos (2-3 min each)
|
| 152 |
- [ ] Post to social media
|
| 153 |
- [ ] Write Field Notes blog posts (3 — one per project)
|
| 154 |
- [ ] Share agent traces to HF Hub (Sharing is Caring badge)
|
| 155 |
|
| 156 |
+
#### Completed
|
| 157 |
|
| 158 |
- [x] CritterCalm v1 code complete (11 files) — Cedar-copper UI
|
| 159 |
- [x] FocusFriend v1 code complete (16 files) — Cedar-copper UI + Gradio 6 dict Chatbot
|
|
|
|
| 173 |
- [x] **v0.5: Cooldown system** in `shared/inference_client.py` to protect HF/Modal credit budget
|
| 174 |
- [x] **v0.5: TinyBard local test** — procedural fallback works when no HF_TOKEN; cooldown UI shows in footer
|
| 175 |
|
| 176 |
+
### Short-term Goals
|
|
|
|
|
|
|
| 177 |
|
| 178 |
- Iterate on the live HF Spaces (nbiish/tinybard, nbiish/focusfriend, nbiish/crittercalm)
|
| 179 |
- Set HF_TOKEN + INFERENCE_MODEL Space secrets to enable real LLM-backed adventures
|
|
|
|
| 182 |
- Share agent traces for Sharing is Caring badge
|
| 183 |
- Polish UIs for demo appeal
|
| 184 |
|
| 185 |
+
## Update After Editing
|
| 186 |
+
|
| 187 |
+
Every meaningful change requires a DOX pass before the task is done.
|
| 188 |
+
|
| 189 |
+
Update the closest owning `llms.txt` when a change affects:
|
| 190 |
+
|
| 191 |
+
- purpose, scope, ownership, or responsibilities
|
| 192 |
+
- durable structure, contracts, workflows, or operating rules
|
| 193 |
+
- required inputs, outputs, permissions, constraints, side effects, or artifacts
|
| 194 |
+
- user preferences about behavior, communication, process, organization, or quality
|
| 195 |
+
- `llms.txt` creation, deletion, move, rename, or index contents
|
| 196 |
+
|
| 197 |
+
Update parent docs when parent-level structure, ownership, workflow, or child index changes. Update child docs when parent changes alter local rules. Remove stale or contradictory text immediately. Small edits that do not change behavior or contracts may leave docs unchanged, but the DOX pass still must happen.
|
| 198 |
+
|
| 199 |
+
## Hierarchy
|
| 200 |
+
|
| 201 |
+
- Root `llms.txt` is the DOX rail: project-wide instructions, global preferences, durable workflow rules, and the top-level Child DOX Index
|
| 202 |
+
- Child `llms.txt` files own domain-specific instructions and their own Child DOX Index
|
| 203 |
+
- Each parent explains what its direct children cover and what stays owned by the parent
|
| 204 |
+
- The closer a doc is to the work, the more specific and practical it must be
|
| 205 |
+
|
| 206 |
+
## Child Doc Shape
|
| 207 |
+
|
| 208 |
+
- Create a child `llms.txt` when a folder becomes a durable boundary with its own purpose, rules, responsibilities, workflow, materials, or quality standards
|
| 209 |
+
- Work Guidance must reflect the current standards of the project or user instructions; if there are no specific standards or instructions yet, leave it empty
|
| 210 |
+
- Verification must reflect an existing check; if no verification framework exists yet, leave it empty and update it when one exists
|
| 211 |
+
|
| 212 |
+
Default section order:
|
| 213 |
+
- Purpose
|
| 214 |
+
- Ownership
|
| 215 |
+
- Local Contracts
|
| 216 |
+
- Work Guidance
|
| 217 |
+
- Verification
|
| 218 |
+
- Child DOX Index
|
| 219 |
+
|
| 220 |
+
## Style
|
| 221 |
+
|
| 222 |
+
- Keep docs concise, current, and operational
|
| 223 |
+
- Document stable contracts, not diary entries
|
| 224 |
+
- Put broad rules in parent docs and concrete details in child docs
|
| 225 |
+
- Prefer direct bullets with explicit names
|
| 226 |
+
- Do not duplicate rules across many files unless each scope needs a local version
|
| 227 |
+
- Delete stale notes instead of explaining history
|
| 228 |
+
- Trim obvious statements, repeated rules, misplaced detail, and warnings for risks that no longer exist
|
| 229 |
+
|
| 230 |
+
## Closeout
|
| 231 |
+
|
| 232 |
+
1. Re-check changed paths against the DOX chain
|
| 233 |
+
2. Update nearest owning docs and any affected parents or children
|
| 234 |
+
3. Refresh every affected Child DOX Index
|
| 235 |
+
4. Remove stale or contradictory text
|
| 236 |
+
5. Run existing verification when relevant
|
| 237 |
+
6. Report any docs intentionally left unchanged and why
|
| 238 |
+
|
| 239 |
+
## Verification
|
| 240 |
+
|
| 241 |
+
Run local servers to verify apps:
|
| 242 |
+
- TinyBard: `cd projects/tinybard && python app.py` → http://localhost:7861/
|
| 243 |
+
- FocusFriend: `cd projects/focusfriend && python app.py` → http://localhost:7862/
|
| 244 |
+
- CritterCalm: `cd projects/crittercalm && python app.py` → http://localhost:7863/
|
| 245 |
|
| 246 |
## Reference
|
| 247 |
|
|
|
|
| 252 |
- Inference client: shared/inference_client.py
|
| 253 |
- ML Intern: github.com/huggingface/ml-intern
|
| 254 |
- HF Agents CLI: huggingface.co/docs/hub/en/agents-cli
|
| 255 |
+
- Gradio MCP: gradio.app/guides/model-context-protocol
|
| 256 |
+
|
| 257 |
+
## User Preferences
|
| 258 |
+
|
| 259 |
+
When the user requests a durable behavior change, record it here or in the relevant child `llms.txt`
|
| 260 |
+
|
| 261 |
+
## Child DOX Index
|
| 262 |
+
|
| 263 |
+
### projects/crittercalm/
|
| 264 |
+
- Backyard AI track — CritterCalm calming audio generator for pets
|
| 265 |
+
- Stack: OmniVoice (local) + Kokoro TTS (fallback) + HF Inference API (scripts)
|
| 266 |
+
|
| 267 |
+
### projects/focusfriend/
|
| 268 |
+
- Thousand Token Wood track — FocusFriend wellness companion (ASCII Pip)
|
| 269 |
+
- Stack: HF Inference API (Qwen2.5-7B) + cooldowns
|
| 270 |
+
|
| 271 |
+
### projects/tinybard/
|
| 272 |
+
- Thousand Token Wood + Tiny Titan + Llama Champion tracks
|
| 273 |
+
- Stack: HF Inference API (Qwen2.5-1.5B) + procedural fallback + FastAPI + CRT frontend
|
| 274 |
+
|
| 275 |
+
### shared/
|
| 276 |
+
- Cedar-copper aesthetic tokens and shared utilities
|