Overview
Run Claude Code on a schedule against a listings export you may use, have it filter properties by your rules and compute first-pass deal figures from your own assumptions, and read a dated shortlist each morning.
Problem or Objective
- Which agents clean, chart and explain a dataset you provide?
- Which agents help research stocks and markets?
More in Finance and Admin
AI Agents and Models
Tools and Integrations
- Tools
- Claude Code
- Prerequisites
- Claude Code with a Claude subscription or API key, and a listings export or feed you are allowed to use.
How It Works
In a project folder, write your rules in a file: target areas, price range, minimum yield, and your assumptions for rent, vacancy, repairs, financing and running costs. Each evening, add the new listings as a CSV from a source whose terms allow it; this side was not verified, so check what your listings provider permits. Run Claude Code non-interactively with claude -p and a prompt that filters the listings by your rules, computes cash flow, cap rate and cash-on-cash return for each match with a small script kept in the folder, and saves a dated shortlist showing every assumption. Approve only file reading, editing and that script with --allowedTools. Schedule the run with the desktop app's recurring tasks or your system scheduler, and check the shortlist by hand each morning before contacting anyone.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude Code.
- Connect the toolsConnect the tools this workflow relies on: Claude Code.
- Check the prerequisitesClaude Code with a Claude subscription or API key, and a listings export or feed you are allowed to use.
- Gather your detailsCollect what the prompt asks for: Tonight's listings export, File with your rules and assumptions, Folder for shortlists.
- Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.
Practical Starter Prompt: Screen tonight's listings against my rules
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Read [Tonight's listings export] and [File with your rules and assumptions]. Keep only listings that match my rules. For each match, compute monthly cash flow, cap rate and cash-on-cash return with the script in this folder, using the assumptions in [File with your rules and assumptions] and showing every input. Save a dated shortlist to [Folder for shortlists], sorted by cash-on-cash return, with a note on any listing whose data is missing or doubtful. Do not contact anyone, send email or change the rules file; I will review the shortlist myself before acting.Check the script's formulas once by hand on a known property. Treat the shortlist as a starting point and review it before you contact anyone.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Anthropic's docs say Claude Code runs non-interactively with claude -p for scripts and CI, with tools approved through --allowedTools, and that its desktop app can schedule recurring tasks. Nothing on the cited pages covers property data or underwriting, so the formulas and the data source are yours to check.
Limitations and Considerations
A -p session shows no workspace trust dialog and no per-server approval prompt, so set tool permissions explicitly and keep the run inside one folder. The figures are only as good as your assumptions and the listing data, which can be stale or wrong; verify rents, taxes and condition before any offer, and take professional advice on financing and legal checks. This is a screening aid, not financial advice. Many listing sites forbid automated collection, so use an export or feed you are permitted to use. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Visit Website (opens in a new tab)code.claude.com
Related Videos
About anthropics/claude-code
The SECRET Claude Code Upgrade That Has Everyone Going Nuts (Full Guide) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)About anthropics/claude-code
The only Claude Code guide you'll ever need (Opus 4.5) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Run Claude Code programmatically - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Runs non-interactively with claude -p, or from Python and TypeScript through the Agent SDK, for scripts and automation.
- Options often combined with -p include --allowedTools for auto-approving tools and --output-format for structured output.
- A -p session shows no workspace trust dialog and no per-server approval prompt.
- Overview - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC
What this source supports
- The desktop app lets you review diffs visually, run multiple sessions side by side, schedule recurring tasks and start cloud sessions.

