Skip to content
AgentAgent framework

vision-agent

Prompt-to-code agent that builds vision apps from an image and a text prompt

vision-agent is an agent framework for developer tools. It is available on CLI, API, Linux, macOS and Windows.

Platforms
CLI, API, Linux
GitHub stars
5.3K
Last commit
Language
Python
License
Apache-2.0
Listing updated

Similar agents

About vision-agent

Give VisionAgent a text prompt and an image, and it chooses suitable vision models and writes runnable Python for the task. Under the hood it plans the steps, generates code along with a test case, and keeps revising the code until that test passes. The output is saved as a file you can run directly.

The library also exposes its vision tools for direct use in your own scripts. Functions such as object detection, segmentation and video tracking can be called from Python, with helpers for loading, overlaying and saving images and video. A local chat webapp in the examples folder lets you try prompting without writing a script first.

The agent relies on Anthropic and Google language models for planning and code generation, so you supply your own keys for those services alongside a VisionAgent API key. It suits developers and researchers who want to prototype visual AI features quickly.

What it does

Prompt to working code
Turns a text request and an image into a Python script that performs the described vision task.
Self-testing generation
Creates a test case for the generated code and iterates until the test passes.
Reusable vision tools
Exposes object detection, segmentation and tracking functions for direct use in scripts.
Video support
Extracts frames and timestamps from video and tracks objects across frames.
Swappable language models
Lets you change the planner and coder models through a configuration file.
Local chat webapp
Includes an example chat interface for trying prompts locally.

Good for

  • Count objects such as cans or people in a photo
  • Track people or items across a video and get their timestamps
  • Generate a starting script for an image analysis feature
  • Prototype a visual AI app before committing to a production pipeline

vision-agent FAQ

Which API keys do I need?

A VisionAgent API key, plus an Anthropic key and a Google API key for the language models that plan and write the code.

What Python version is required?

Python 3.9 or higher.

How do I install vision-agent?

Install the vision-agent package with uv add vision-agent or pip install vision-agent.

What are the best alternatives to vision-agent?

The closest alternatives to vision-agent are most-capable-agent-system-prompt, devika, voice-lab, smolagents and py-vectara-agentic.

Where this comes from

  • Description: written from the project's README.