FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
neverstew

neverstew

aimemory

Public
Like
aimemory
Home
Code
3
README.md
index.html
H
index.ts
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/15/2025
Viewing readonly version of main branch: v5
View latest version
README.md

AI Agent with Memory

This is an AI agent that can save information to its memory and retrieve it when answering questions. The agent uses SQLite for persistent storage and OpenAI's API for generating responses.

Features

  • Memory Storage: Save snippets of information with optional tags
  • Memory Retrieval: When asked questions, the agent searches its memory for relevant information
  • Context-Aware Responses: Incorporates found memories into its responses
  • Simple Web Interface: Easy-to-use UI for interacting with the agent

How It Works

  1. Database: Uses SQLite to store memory snippets with content, tags, and timestamps
  2. Memory Search: Performs simple text matching to find relevant memories
  3. Response Generation: Uses OpenAI to generate responses that incorporate found memories
  4. Web Interface: Provides a clean UI for asking questions and saving new memories

Usage

Asking Questions

  1. Enter your question in the "Ask a Question" section
  2. Click "Ask Question"
  3. The agent will search its memory for relevant information and incorporate it into the response
  4. If memories were used, they will be displayed below the response

Saving Memories

  1. Enter the information you want the agent to remember in the "Save New Memory" section
  2. Optionally add tags (comma-separated) to help with retrieval
  3. Click "Save Memory"

Technical Details

  • Backend: TypeScript with Deno runtime
  • Database: SQLite for persistent storage
  • AI: OpenAI API for generating responses
  • Frontend: HTML, JavaScript, and Twind (Tailwind CSS in JS)

Future Improvements

  • Implement vector embeddings for more accurate memory retrieval
  • Add memory management features (edit, delete, categorize)
  • Improve search with semantic similarity rather than just text matching
  • Add authentication to create personal memory agents for different users
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.