# SQLite as Local Persistent Cache (Redis-like) for Agentic Workloads
## Purpose
Use SQLite as a **fast, local, persistent cache + state layer** for long-running agentic tasks.
This replaces Redis for:
- single-machine execution
- low ops overheadThe main build is done (or in progress) from the master prompt. This prompt addresses a specific gap: when the user hits “Start My Application →” in Phase 1, the transition to Phase 2 currently feels instant and hollow. We need a 5–8 second simulated processing sequence between Phase 1 submission and Phase 2 start that makes the lead feel like something real just happened with their information.
You are a Linux sysadmin agent continuing the setup of a local AI workstation on Ubuntu. Phase 1 (llama.cpp build + Qwen model downloads) is already complete. The machine has:
- Hardware: 128GB RAM, 2TB HDD, 16GB NVIDIA GPU
- Already installed: llama.cpp (built with CUDA, binary at
~/llama.cpp/build/bin/llama-server) - Already downloaded (GGUF models in
~/models/): qwen-coder-32b/— Qwen 2.5 Coder 32B Q4_K_M (speed model)
You are a Linux sysadmin agent setting up a local LLM inference stack on an Ubuntu machine. The hardware is: 128GB RAM, 2TB HDD, 16GB NVIDIA GPU. Your goal is a working llama.cpp server with three Qwen 2.5 models available as switchable profiles, exposed as an OpenAI-compatible API.
Before doing ANYTHING, verify and report ALL of the following. Do NOT proceed until every check passes or you have a documented workaround:
You are a senior frontend design-systems auditor and UI documentation agent.
Your task is to inspect an existing React frontend codebase and generate a high-quality DESIGN.md file in the DESIGN.md format.
Goal
Create a DESIGN.md that accurately captures the current design system already present in the codebase, not an imagined redesign.
Objective: move from large flat workspace memory to a fast, maintainable, automation-friendly knowledge system
We have a Kimi Claw workspace containing identity files, memory files, skill docs, logs, operational notes, and cloned repos. As the workspace grows, the current flat model becomes slower, noisier, and harder to maintain.
We want to evolve Claw in structured phases so it becomes:
- smaller in default context
- better at finding the right knowledge on demand
- better at ranking what matters
Items that are ambiguous, potentially legacy, or need runtime verification on a live Frappe Cloud environment.
- Many lifecycle operations are exposed both ways:
- direct endpoint in
press.api.site.* press.api.client.run_doc_methodtoSitemethods.
- direct endpoint in
- Need live validation of which style FC considers stable for long-term external integration.
- Current dashboard heavily uses
run_doc_methodfor many actions, but direct wrappers still exist.
Audience: Coding/research agents building Frappe apps without direct repo access.
Goal: Provide implementation-ready understanding of OAuth, credential storage, Connected App, and Google integration patterns in Frappe.
Frappe has two parallel auth/integration systems you need to distinguish clearly:
We need to improve our skills and create a directory for it.
A skill is a self-contained instruction packet that teaches the agent how to do a specific type of task. It's not code. It's not a library. It's a markdown file that gets injected into the LLM context when the agent detects it needs that capability.Think of it as: a senior engineer's runbook, written for a junior engineer who has access to a terminal.
Dir Structure:
project-root/
├── skills/
This document outlines the standard pattern for integrating a modern React application (like the one in huf/frontend) with a Frappe backend. It explains how to deploy the React app as a Single Page Application (SPA) within Frappe without strictly relying on library wrappers like frappe-react-sdk or frappe-js-sdk. You can easily swap in react-query, standard fetch, or axios.
To serve a React app on a specific base route (e.g., /amuse instead of /huf), Frappe's website routing rules must be configured in hooks.py.
When a user navigates to /amuse/dashboard, Frappe needs to serve the React app's index.html file so that React Router can take over on the client side.