Xpersona
A

AgentZero

CLAWHUB · Unverified

Interact with the AgentZero real estate listing tracker (local Rust/Axum backend at http://localhost:8000). Use when asked to add a property listing by URL,... Skill: AgentZero Owner: yzhong52 Summary: Interact with the AgentZero real estate listing tracker (local Rust/Axum backend at http://localhost:8000). Use when asked to add a property listing by URL,... Tags: home-search:1.0.0, latest:1.0.7, real-estate:1.0.0, redfin:1.0.0, rew:1.0.0 Version history: v1.0.7 | 2026-03-27T20:07:42.029Z | auto - Added requirement for ANTHROPIC_API_KEY environment variable, needed for bac

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17fyz8dd5jej8dw01yfc0q4rn83qpgh:agent-zero
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-yzhong52-agent-zero/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

160,000 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: agent-zero
description: Interact with the AgentZero real estate listing tracker (local Rust/Axum backend at http://localhost:8000). Use when asked to add a property listing by URL, refresh an existing listing, or list search profiles/scenarios. AgentZero parses Redfin and REW.ca URLs; Zillow and Realtor.ca are blocked (saves stub only). When a listing is added via agent-suggest, the backend automatically triages it with Claude (assigns a search profile or skips it) — no manual profile selection needed. The Daily Email Scan workflow reads Redfin alert emails via himalaya (IMAP) and opens Gmail in the openclaw browser to extract listing URLs — explicit user consent and himalaya configuration are required before use. After any action, log a summary to agent_zero_logs/YYYY-MM-DD.md in the workspace.
metadata:
  openclaw:
    requires:
      bins:
        - himalaya
        - openclaw
        - cargo
        - node
        - npm
        - sqlite3
      localServices:
        - name: AgentZero backend
          url: "http://localhost:8000"
          note: "Rust/Axum server — must be running before invoking any listing API workflows"
        - name: AgentZero frontend (optional)
          url: "http://localhost:5173"
          note: "Vite/TypeScript UI — optional, used for reviewing listings"
    credentials:
      - name: ANTHROPIC_API_KEY
        description: >
          Required for the backend's automatic listing triage. When a listing is added via agent-suggest,
          the backend calls the Anthropic Claude API (claude-haiku-4-5) to match it against search profiles.
          Set this environment variable before starting the backend — it will fail to start without it.
          Obtain your key at https://console.anthropic.com.
        envVar: ANTHROPIC_API_KEY
        keychain: false
      - name: himalaya Gmail config
        description: >
          himalaya must be configured with an IMAP/SMTP account pointing to the user's Gmail inbox.
          The app password or OAuth token must be stored in the system keychain or himalaya config file.
          Without this, the Daily Email Scan workflow will fail.
        configPath: "~/.config/himalaya/config.toml"
        keychain: true
    privacy:
      emailAccess: true
      browserAutomation: true
      note: >
        The Daily Email Scan workflow is explicitly opt-in (user-triggered via cron or manual invocation)
        and is scoped to Redfin sender emails only (from:redfin.com).

        Email access: himalaya reads envelope metadata only (sender, subject, ID) via IMAP — no email
        body text is read or stored. The only data logged is the listing URLs extracted from Redfin
        emails and the processed email IDs (to avoid re-processing).

        Browser automation: the openclaw browser is used exclusively to open Redfin listing URLs
        (redfin.ca / redfin.com) — it does NOT browse Gmail or any other site. Gmail is only opened
        briefly to search for and click th

frontend/README.md

# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

```js
export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])
```

You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:

```js
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])
```

README.md

# AgentZero 🏠

> **Your personal AI real estate agent.**

Searching for a home is exciting. Scrolling through hundreds of listings every day is not.

Built to run with **[OpenClaw](https://openclaw.ai)**, AgentZero watches the market for you. Tell it what you're looking for, and it quietly surfaces only the homes worth your attention — no phone calls, no pressure, no awkward "I'll pass on this one" conversations.

## What It Does

- 📋 **Set your search profile** — location, price range, must-haves, described in plain language
- 🤖 **Let the agent do the watching** — AgentZero checks listings automatically on a schedule
- 📬 **Inbox new matches** — only the properties that fit, surfaced when they appear
- ✅ **Triage at your pace** — one-click Interested / Pass, no follow-up required
- 📸 **Full listing details** — photos, price history, notes, all in one place

No sign-ups. No subscriptions. Runs locally on your machine.

## Screenshots

Home screen shows you the properties that you are watching.

![Home](./screenshots/home.png)

Daily agent curated listings in the inbox:

![Agent Suggestions](./screenshots/agent_suggestions.png)

Details for listings you're interested in:

![Listing Detail](./screenshots/listing_detail.png)

---

## Getting Started

1. Install [OpenClaw](https://openclaw.ai) — your local AI orchestrator
2. Ask your AI to **install AgentZero** and **set up a daily cron job**
3. On your favourite listing site (Redfin, Realtor.ca, or REW.ca), **set up a search and subscribe to new listing email alerts** — AgentZero will pick these up automatically
4. Open `http://localhost:5173` — your AI agent curates new listings daily for you to review

## Supported Sites

- ✅ Redfin
- ✅ REW.ca
- ✅ Realtor.ca
- 🚧 Zillow *(coming soon)*

---

## How It Works

### Listing lifecycle

Every listing moves through a fixed set of states:

```
           POST /api/listings/agent-suggest         
           AgentZero OpenClaw skill as daily cron job to find new listings
                   │
                   ▼
             [ AgentPending ]
                   │
                   │ POST /:id/agent-review
                   │ Agent review
                   │
                   ├──────────────────► AgentSkip  
                   │                    Terminal — no profile match
                   │
                   │ Move to inbox for users
                   │
                   ▼
  ┌──────────[ HumanReview ]
  │                │
  │                │
  ▼                ▼
[ Pass ]◄─────[ Interested ]─────►[ Candidate ]
                   ▲
                   │
          POST /api/listings
          Manually added by user
```

| Status | Set by | Meaning |
|---|---|---|
| `AgentPending` | Claw | Just added via email scan; agent review is running in the background |
| `AgentSkip` | Agent (Claude) | No search profile matched this listing |
| `HumanReview` | Agent (Claude) | Matched a profile; ready for you to review in the Inbox |
| `Interested` | You | Y

_meta.json

{
  "ownerId": "kn70ba16qvrfe1brpqvkfk4j6d82fjxr",
  "slug": "agent-zero",
  "version": "1.0.7",
  "publishedAt": 1774642062029
}

CLAUDE.md

# AgentZero

Property listing parser — Rust (Axum) backend + React/TypeScript (Vite) frontend.

## Running locally

### Backend
```bash
cd backend
cargo run --release
```
Starts at `http://127.0.0.1:8000`. Creates `backend/listings.db` on first run.

### Frontend (dev server)
```bash
npm --prefix frontend run dev
```
Starts at `http://localhost:5173/`. Proxies `/api/*` to the backend.

### One-command restart scripts
Use these scripts to kill currently running processes, rebuild latest code, and restart fresh instances.

```bash
./scripts/run_backend.sh
./scripts/run_frontend.sh
```

Defaults:
- Backend log: `/tmp/agent_zero_backend.log`
- Frontend log: `/tmp/agent_zero_frontend.log`

## Logs

**Backend log**: `/tmp/agent_zero_backend.log`

Key log patterns to look for when debugging:

| Pattern | Meaning |
|---|---|
| `add_listing: id=N registering 0 image URL(s)` | Parser found no images — likely a sold/off-market listing |
| `redfin::parse: no images in JSON-LD for …` | Redfin sold listing — photos stripped from JSON-LD |
| `Image URL returned error status …` | Image server returned 4xx/5xx — URL probably expired |
| `Failed to download image …` | Network error fetching an image |
| `cache_images: listing_id=N pending=0` | No new images to download (all already cached or none registered) |

## HTML Snapshots

Every time a listing is saved or refreshed, the raw fetched HTML is written to `backend/html_snapshots/` as:

```
{listing_id}_{source}.html   e.g.  42_redfin.html,  42_rew.html
```

Refreshing a listing overwrites the file with the latest fetch. Use these files to:
- Inspect exactly what the parser received
- Re-run or fix the parser locally without re-fetching the URL
- Copy to `backend/src/parsers/fixtures/` (and run the strip tool) to create a test fixture

Optional overrides:
```bash
BACKEND_PORT=8000 LOG_FILE=/tmp/backend.log ./scripts/run_backend.sh
FRONTEND_PORT=5173 LOG_FILE=/tmp/frontend.log ./scripts/run_frontend.sh
SKIP_SAFARI=1 ./scripts/run_backend.sh   # skip Safari, go straight to Chrome CDP
```

## API

Route definitions and handler signatures are the source of truth. See:
- `backend/src/main.rs` — all routes wired up
- `backend/src/api/` — one file per handler group (`add.rs`, `refresh.rs`, `listings.rs`, `details.rs`, `images.rs`, `parse.rs`)

## Tests

```bash
cd backend
cargo test
```

Snapshots live in `backend/src/parsers/snapshots/`. To update them after intentional changes:
```bash
cargo insta review
```

### Stripping HTML fixtures

Parser test fixtures live in `backend/src/parsers/fixtures/`. Raw saved pages can be large (700 KB–1.8 MB). Use the strip tool to remove styles, SVGs, tracking scripts, and other bloat while preserving the elements parsers rely on (JSON-LD, `__NEXT_DATA__`, meta tags, property data scripts, DOM elements used by CSS selectors):

```bash
cd backend
cargo run --bin strip                            # strip all fixtures in-place
cargo run --bin strip -- path/to/file.html       # strip a si

Sponsored

Ads related to AgentZero and adjacent AI workflows.