Townie

Townie is an AI-powered development assistant that lets you edit Val Town projects using Claude 4 Sonnet.

Features

Townie uses agentic tool-calling, taking many read, write, testing steps autonomously when carrying out your instructions.

  • AI-Assisted Editing: Chat with Claude 4 Sonnet about your code and let it make changes directly to your project files
  • Fetch tool: Townie is able to make HTTP calls to your HTTP services to test them and continue iterating
  • Branch Management: View, select, and create branches without leaving the app
  • Sound Notifications: Get alerted when Claude finishes responding
  • Mobile-Friendly: Works on both desktop and mobile devices

Developing

Townie is fully open-source and itself runs on Val Town. Pull requests welcome!

To get Townie running in your Val Town account, click the Remix button and then add your ANTHROPIC_API_KEY. You can leave all the other environment variables blank.

Authentication in Townie is handled via Val Town Oauth. However, we have not yet opened up our OAuth to anyone else, which currently makes it very awkward to use your own Townie. Here is a temporary workaround:

  1. Login to the official Townie
  2. Copy your _session cookie (via the Application tab in the Developer Tools)
  3. Add in that _session cookie in your personal Townie

If you have any questions, please reach out on Discord or at townie@val.town.