Urgent.News

What's breaking now, across thousands of outlets.

AI

TouchGrass AI: Building a Local AI Companion That Gets You Outside ๐ŸŒฟ

TouchGrass AI: Building a Local AI Companion That Gets You Outside ๐ŸŒฟ An AI companion designed to help you spend less time on screens and more time in the real world. 1. The Problem: We're Spending Too Much Time on Screens As developers, we spend hours staring at terminals, code editors, documentation, and pull requests. Even when our eyes feel tired and our minds need a break, stepping away fromโ€ฆ

TouchGrass AI is an innovative local AI companion designed to help users spend more time in the real world and less time on their screens. The creator of the app aimed to build a tool that encourages people to step away from their devices and explore the outdoors, especially during the "Touch Grass" themed Hacktoberfest 2026 Week 1.

When you use TouchGrass AI, it takes into account your available time, mood, surroundings, and preferred activities to generate a personalized outdoor micro-adventure. You can choose the duration of your adventure between 10 to 120 minutes, your current mood (Stressed, Bored, Energetic, Curious, or Peaceful), the activity you want to engage in (Walking, Gardening, Observation, Birdwatching, or Surprise), and the environment you're in (Neighborhood, Park, Garden, Campus, or Balcony).

The generated adventure consists of a creative title, a short narrative hook, three to five clear sequential steps, a sensory observation challenge, a screen-free instruction to silence and put away your phone, and a reflection question to ponder upon returning. The app also features an active mode that displays only the necessary information before heading out.

One of the key reasons behind choosing a local AI instead of a cloud API is to prioritize privacy. By running inference locally using Google Gemma through Ollama, the app ensures that your mood, preferences, and reflections remain private. Additionally, the offline capability allows the app to function without an internet connection, making it perfect for preparing activities before leaving home or visiting locations with poor connectivity.

The app's modular Python architecture includes Streamlit for the user interface, Ollama for local model serving, Pydantic for input and output validation, and SQLite for adventure history and observation progress tracking. The application follows a specific flow, starting with the Streamlit interface, collecting user preferences, and displaying the generated missions in a nature-inspired visual design.

The biggest challenge encountered during the development of TouchGrass AI was ensuring that small local models return structured and usable mission data. To address this, the app employs three layers of protection: using Ollama's JSON mode, extracting JSON from the output, and validating the extracted object against a Pydantic model called OutdoorMission.

If the generation fails or the output cannot be validated, the application falls back to its curated offline mission library, clearly labeled as "๐Ÿ‚ Curated Offline Library" to distinguish it from locally generated AI missions.

Written by urgent.news from Dev.to's reporting โ€” not their text. Machine-written โ€” may contain errors; check the original before relying on it.

Read the original at dev.to โ†’

More in AI

A Photographerโ€™s Perspective on New Tools

** The Evolving Lens ** For over a decade, my work as a photographer has centered on observing reality. Capturing genuine human emotion requires patience, natural light, and an eye for unscriptedโ€ฆ

  • Photographer sees reality as career focus for over a decade.
  • AI tools enhance, don't replace, creative intent in photography.
  • Technology provides new lens, preserves human perspective in images.

Writing better prompts for image-to-video: camera moves, motion and start frames

Image-to-video models are surprisingly literal. Give them a vague prompt and they invent motion you didn't want; give them a clear start frame and a short, specific motion brief and they behave muchโ€ฆ

  • Provide a clear start frame to show key composition elements.
  • Limit camera moves to one per clip, using specific actions.
  • Describe motion with verbs and pace words, avoiding vague phrasing.

MCP vs A2A vs ACP: Open Protocols for Multi-Agent Systems, Compared

MCP vs A2A vs ACP: Open Protocols for Multi-Agent Systems, Compared If you're building a multi-agent system, you've hit this question: how should agents talk to tools, and how should they talk to eachโ€ฆ

  • Multi-agent systems require open protocols to streamline agent-tool and agent-agent communication.
  • MCP maintains by Anthropic, standardized open protocol; A2A maintained by Google, industry support.
  • MCP solves Agent โ†” Tool/Data layer, A2A solves Agent โ†” Agent layer.

FriendStudy AI โ€” an open-source AI study companion for students

I built FriendStudy AI โ€” an open-source AI study companion for students ๐Ÿ“š This is my submission for the Hacktoberfest Weekend Challenge: Build for a Friend ๐Ÿค ๐Ÿ’ก What I Built I built FriendStudy AIโ€ฆ

  • FriendStudy AI is an open-source AI study companion for students
  • Features include asking AI questions, generating study plans, and practicing quizzes
  • Built with React, JavaScript, Python, FastAPI, and open-weight Qwen 2.5 3B model

More from Sunday 11 October โ†’