jmerelnyc
Photo-agents
Python

Autonomous self-evolving agents. Vision-grounded layered memory and self-written skills for LLM agents that operate your computer.

Last updated Aug 9, 2026
752
Stars
23
Forks
1
Issues
0
Stars/day
Attention Score
61
Language breakdown
Python 96.8%
JavaScript 3.1%
HTML 0.1%
โ–ธ Files click to expand
README

Photo Agents

License Python Status

Autonomous self-evolving Photo Agents. A perceive / reason / act framework for photo-aware agents that operate your computer the way you do.

"100% autonomous, self-evolving agents."

Jump to: About ยท Install ยท Run ยท GUI clients ยท Troubleshooting ยท FAQ

About

Photo Agents is building the next generation of LLM-driven agents that ground in what they actually see on screen. Instead of dumping longer chat transcripts into a model and hoping for the best we treat memory the way biology does. Vision in. Bound observations stored in layers. Skills written by the agent itself from real success.

The package in this repo is the runtime that ships that idea. It runs locally so you keep ownership of your screen, your data, and your keys.

What it is

Photo Agents is a single Python package that bundles:

  • A streaming agent loop that drives any tool-calling LLM through a perceive โ†’ reason โ†’ act cycle.
  • A multi-provider LLM router with first-class support for Anthropic Claude (native) OpenAI GPT (native) and a mixin failover session.
  • A physical-execution toolset: file I/O, sandboxed code execution (Python / PowerShell / bash), browser automation via a Chrome DevTools Protocol bridge and a layered memory system (working / global / SOP / session archive).
  • Pluggable clients: a polished Streamlit web app, a PyQt desktop app, a desktop companion and ready-to-run bots for Telegram, QQ, Feishu, WeCom and DingTalk.
  • Optional observability via Langfuse and a cron-style scheduler.
The whole thing is gated by a remote-validated Photo Agents API key so usage stays accountable.

Install

pip install photoagents

or, with every optional client and integration

pip install "photoagents[all]"

Photo Agents needs Python 3.10 or newer. Tested on Windows, macOS, and Linux.

Then make it available to the runtime in any of these ways (checked in order):

  • Environment variable: PHOTOAGENTSAPIKEY=pklive...
  • Saved config: ~/.photoagents/config.json field api_key
  • Interactive prompt on first run (offered to be saved automatically)
A successful validation is cached for 24 hours so the gate stays fast.

LLM credentials

Copy the credentials template and fill in your provider key:

# from the repo root
cp photoagents/config/keys_template.py credentials.py

then edit credentials.py and uncomment one of the provider configs

The runtime also accepts a JSON form (credentials.json) with the same shape.

Run

# Interactive REPL on your terminal
python -m photoagents

One-shot file-IO mode

python -m photoagents --task my_task --input "List the largest files in this directory."

Reflect / watchdog mode (your check() function fires the next task)

python -m photoagents --reflect photoagents/evolution/scheduler.py

GUI clients

Photo Agents ships several optional frontends. Pick whichever fits your workflow:

| Client | Launch command | | ------------------------------ | --------------------------------------------------- | | Streamlit web app + webview | pythonw -m photoagents.cli.launcher | | Service hub (start/stop) | pythonw -m photoagents.cli.hub | | Desktop app (PyQt) | python -m photoagents.clients.desktop_app | | Desktop companion | pythonw -m photoagents.clients.companion_v2 | | Telegram bot | python -m photoagents.clients.telegram_client | | Feishu / WeCom / DingTalk / QQ | python -m photoagents.clients.<feishu|wecom|...>_client |

The launcher and hub both call the same API key gate before starting any service, so they will refuse to launch anything if your key is missing or revoked.

On-disk state

| Path | What lives there | | --------------------------------- | -------------------------------------------------- | | ~/.photoagents/config.json | API key + license validation cache | | ~/.photoagents/global_mem.txt | Long-term L2 facts | | ~/.photoagents/sessions/ | L4 raw session archives | | ~/.photoagents/skill_index/ | Vector index for skill / SOP search | | ~/.photoagents/temp/ | Per-task scratch (logs, intermediate output) |

Project layout

photoagents/
โ”œโ”€โ”€ auth/        License gate (remote-validated API key)
โ”œโ”€โ”€ cli/         python -m photoagents, GUI launcher, service hub
โ”œโ”€โ”€ clients/     Web / desktop / chat-platform frontends
โ”œโ”€โ”€ config/      credentials.py template
โ”œโ”€โ”€ core/        Agent loop and tool dispatcher
โ”œโ”€โ”€ evolution/   Reflection / scheduler scripts (the "self-evolving" loop)
โ”œโ”€โ”€ integrations/ Optional third-party hooks (Langfuse, etc.)
โ”œโ”€โ”€ llm/         Multi-provider session router
โ”œโ”€โ”€ resources/   System prompt, tool schema, CDP bridge, demo media
โ”œโ”€โ”€ skills/      L3 SOPs and helper modules (browser, vision, OCR, ...)
โ””โ”€โ”€ web/         DOM simplifier and Chrome DevTools Protocol driver

Troubleshooting

  • "API key required to start the agent" โ€” set PHOTOAGENTSAPIKEY or run once interactively so it can be saved to ~/.photoagents/config.json.
  • Browser tools not working โ€” make sure beautifulsoup4 is installed and the CDP bridge config exists under resources/tmwdcdpbridge/.
  • Wrong LLM picked up โ€” double check the keyword rules in credentials.py (native + claude/oai, or mixin).

FAQ

Does this send my screen data anywhere besides my chosen LLM provider? No. The runtime talks to your configured LLM provider and the Photo Agents license endpoint only.

Can I run this fully offline? The agent loop itself needs a network-reachable LLM provider, but memory and skills are stored locally.

Support

  • Issues: use the templates under .github/ISSUE_TEMPLATE/.

Credits

Built and maintained by the Photo Agents team, with thanks to everyone filing issues and sending fixes.

License

MIT. See LICENSE.

Status

Status: beta. APIs may change before 1.0.

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท jmerelnyc/Photo-agents ยท Updated daily from GitHub