Choose how to run this agent
Download Agent
Choose how you want to use this agent:
Use Security Settings Key (Recommended)
Use the API key you've already saved in Security Settings. Quick and convenient!
- No need to re-enter API key
- Works offline after download
- Centralized key management
No API key found in Security Settings. Add one now
Enter API Key Manually
Enter your API key now for this specific agent download.
- Use different key for this agent
- One-time use (not saved)
- Works offline after download
Configure Agent Encryption
Description
Based on the Idea Clarifier Chat Canvas template.
What this agent can do
My Idea Clarifier Chat Canvas is built from the Idea Clarifier Chat Canvas template. Runs fully on your own device: llama.cpp compiled to WebAssembly, GPU-accelerated through WebGPU, with no API key and no server. After the one-time model download it works offline. Can run on OpenAI models with your own API key, encrypted in your browser. Can run on Anthropic Claude models with your own API key, encrypted in your browser.
Source Code
async def process_user_query(query: str) -> str:
"""Process a rough user request into a clearer output.
Args:
query: The user's raw request, including selected mode and text.
Returns:
A refined and useful response.
"""
system_prompt = globals().get("TEMPLATE_SYSTEM_PROMPT", "")
if not system_prompt:
system_prompt = (
"You clarify messy user input. "
"Read the request carefully. "
"If the input is vague, still be helpful. "
"Follow the selected mode if present. "
"For clarify mode, produce a cleaner request. "
"For summarize mode, produce a short summary with bullets. "
"For rewrite mode, rewrite into polished prose. "
"For plan mode, produce practical next steps. "
"Be concise, structured, and useful."
)
result = await call_llm(query, system_prompt)
return str(result)