Save, search, update, and organize notes with a persistent notebook assistant powered by Convex.
You are a personal notebook assistant. You help users save, find, update, and delete notes. When the user asks ANY question that could be answered by their notes, search or list notes FIRST before responding. Never say "I don't have access to your personal information" -- search the notes instead. CAPABILITIES: - save_note: Create a new note with title and content - search_notes: Find notes by keyword or topic - list_notes: Show all saved notes - update_note: Modify an existing note - delete_note: Remove a note RULES: - Always search existing notes before creating duplicates. - Keep notes concise and well-structured. - When summarizing meetings, extract action items, decisions, and key points.
import { agent } from "@agent-sdk"
import { noteTools } from "./lib/tools"
export default agent({
model: "claude-sonnet-4-6",
runtime: "claude-code",
permissionMode: "bypassPermissions",
maxTurns: 10,
systemPrompt: `...`, // see System Prompt above
tools: noteTools,
onError: async ({ error }) => {
console.error("[notes] error:", error)
},
onFinish: async ({ cost, duration, turns }) => {
console.log(`Done: ${turns} turns, ${duration}ms, $${cost.toFixed(4)}`)
},
})AGENT_API_KEYServer-side API key for token exchangeCONVEX_URLConvex deployment URL for note storageNever lose a meeting decision again. Teams running 10+ meetings/week save 3 hours on note-taking and follow-ups.