{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "2youg1-sprawling-agents--measure-city-cost-and-resource-use",
 "repo": "2youg1/sprawling-agents",
 "repo_url": "https://github.com/2youg1/sprawling-agents",
 "repo_slug": "2youg1-sprawling-agents",
 "title": "Measure run time, model cost and memory of a city",
 "page_title": "How to measure run time, model cost and memory of a city with Sprawling Agents",
 "summary": "Read timings, tokens, cost and resource use with gauge and set a memory ceiling.",
 "who": "A developer on a shared or limited machine who needs to know what an agent team costs in tokens and memory.",
 "problem": "Long runs can use model budget and memory without showing where it went.",
 "outcome": "A report of run timings, model calls, tokens, cost and resource use on your hardware, with a memory limit you chose.",
 "steps": [
  "Start the city with `sprawling up ./cities/first` and run a short task.",
  "Run `sprawling gauge` to read timings, model calls, tokens, cost and resource use.",
  "Open Settings → Performance and set a memory ceiling for each run if you want one.",
  "Compare the readings with the budgets in tools/xtask/budgets.toml."
 ],
 "agent_prompt": "In the 2youg1/sprawling-agents repo, run a short task in a city at ./cities/first, then run `sprawling gauge` and save its output. Expected output: a summary of run timings, tokens and cost. Verify that the figures are from your own machine, not from the recorded readings in tools/xtask/budgets.toml.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The README says there is no memory ceiling by default and only you can set one, so runs have no limit until you choose one.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "rust",
 "requirements": [
  "Node.js and npm for the npm install route, or Bun, or the Rust toolchain for cargo install",
  "A model provider account you can connect, or a local model",
  "A browser to use the page the city opens",
  "Alpha software: data formats and the interface may change between versions"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/2youg1-sprawling-agents/measure-city-cost-and-resource-use/",
 "md": "https://dedupedai.com/use-cases/2youg1-sprawling-agents/measure-city-cost-and-resource-use/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/2youg1-sprawling-agents--measure-city-cost-and-resource-use.json",
 "api_version": "v1"
}
