Dev.to AI πŸ€– Ai πŸ‘ 2 πŸ“– 8 min read

From drawing tool to garden designer: building Hallowed Grounds with Kiro

Not everyone can design a garden. I certainly can't. When I wanted to redesign my own backyard (a new bedroom beside the pool, palms I wanted to keep, and a patio I could actually sit on in winter), the AI drawing tools

From drawing tool to garden designer: building Hallowed Grounds with Kiro

Not everyone can design a garden. I certainly can't. When I wanted to redesign my own backyard (a new bedroom beside the pool, palms I wanted to keep, and a patio I could actually sit on in winter), the AI drawing tools I tried could drag shapes around, but none of them knew where the sun falls on my block in July. Asked for "backyard landscaping", one of them gave me an indoor floor plan with dining tables.

So for Kiroween 2026 I built Hallowed Grounds: an AI groundskeeper that designs yards that survive. You describe your block and what you want in plain words. It reads the sun across your lot for summer and winter, offers styles that suit each area, and builds a whole-yard draft. And it refuses to plant something that will die there, explaining why in sun hours. Because it's Kiroween, there's a haunted Night mode: plants toxic to pets get skulls, plants in too little sun turn ghostly, and plants in too much sun wilt before you buy them.

A whole-yard draft, in 2D and 3D

It was also my first project with Kiro. I entered the Frankenstein category, because the app stitches together parts that don't usually meet: a sun-and-shadow engine, a plant catalogue with pet-safety data, an MCP tool server, a Claude agent loop and a 2D/3D garden planner. This post is about how those parts came together, what Kiro was good at, and the bugs that taught me the most.

How it fits together

The app has three parts, and one rule ties them together: the model chooses what to do, but code decides what is allowed.

Browser, backend, Claude and the MCP server, with AWS underneath

  • MCP server. A Model Context Protocol server with 25 garden tools: sun maps for the whole lot, find_spot (a spot of the right size with the sun you asked for), suggest_plants, apply_layout, check_design and more. Sun hours, plant fit, spot sizes and the pool fence clear zone are all calculated here.
  • Backend. A small Node server (Hono) that holds the API key and runs the agent loop: send the conversation to Claude, run the tool it asks for, send back the result, repeat. It also enforces an access code, rate limits, and a guard so the designer can only touch the design you're looking at.
  • Frontend. React with an SVG 2D plan and a Three.js 3D view, so you can see the summer and winter shadows and the view from a bedroom window.

The whole thing runs on one EC2 instance behind CloudFront, which I'll come back to.

Working with Kiro: specs, steering and "stop and ask"

Brief, requirements, design, tasks, then tests first, with a stop-and-ask loop

Every feature started as a Kiro spec: I wrote a short brief, Kiro turned it into requirements, then a design, then a task list, and I reviewed each one before any code existed. Those reviews caught real bugs on paper:

  • a guard that would have stopped the designer from editing its own new draft (each rule was right on its own; together they broke the main flow),
  • a sign error in the compass formula that would have put every shadow on the wrong side of the house,
  • pool fences treated as solid walls, which would have rejected every garden bed inside a pool area.

Steering files gave Kiro standing rules for every task: use the theme's colour tokens, never read .env files, no git, no npm install, and use the terminal only for tests, typecheck and build. The most valuable rules were about tests: write tests first, never regenerate a golden file, never weaken, skip or delete a test, and stop after three honest attempts and write the problem down.

That last rule changed how the project felt. Kiro stopped and asked me many times instead of quietly loosening a check: when two requirements conflicted, when my yard couldn't meet the pool clear zone, and when a ranking change would have altered a golden file. Its specs also turned requirements into property-based tests with fast-check, and one of those found a long-standing bug: every HTTP 409 showed "the plants do not fit in rows", whatever had gone wrong. It looked like a flaky test; it was a real failure that random inputs only hit about one run in four.

One workflow lesson: send Kiro one request per message. Once, it read only my short follow-up line and ignored the long prompt above it. After that, long prompts lived in a docs/ file, and my message was one line pointing at it.

Prompts are suggestions, code is a guarantee

Rules in the prompt were broken; the same rules in tools were kept

The single most useful idea from this project: anything the model keeps getting wrong should move out of the prompt and into a tool.

The first whole-yard designs looked plausible and were wrong in ways the prompt already forbade. The designer put the patio in winter shade, squeezed it into a 1 m gap between the bedroom and the pool fence, and planted lilly pillies (full-sun shrubs) in a bed with 3.6 hours of winter sun. Its own check_design tool flagged every one of these, so the information was there; the rules just weren't enforced.

So each rule became code:

  • Where things go. find_spot takes a width, a depth and the sun you want, and only returns spots that fit, are inside the lot, avoid other structures and stay out of the pool fence clear zone.
  • What gets planted. apply_layout rejects any plant that would scorch or sulk in its bed, names the plant, the bed and the sun hours, and suggests plants that do fit.
  • What you asked for anyway. If you name a plant yourself, the designer now explains why it won't thrive and offers alternatives first. Only after you confirm does it pass a userRequested flag that lets the plant through, with a warning. If the model ever forgets that rule, the layout tool still says no.

Asked for a gardenia right outside the bedroom's south window, it now explains what's wrong with the spot in numbers (no free space next to the window, and 14 hours of summer sun at the nearest spot that has room), offers a way to make room or to plant it anyway, and plants nothing until I choose. That one exchange is the whole idea of the app.

The designer explains why a gardenia won't thrive and offers alternatives

Four bugs that taught me the most

Green tests, broken app. Every test passed, but the running app crashed with "SunCalc.getPosition is not a function". The tests ran the source files one way and the built app loaded an old CommonJS library another way. A week later the same lesson came back: a tool only failed after a real client listed the tools first, which my tests never did. Tests only prove what they actually run, so I added smoke tests that start the built server and talk to it like a real client.

Two tools, two rules. In one test run the designer got stuck on a shady south bed and had to stop and ask me. Kiro traced it to suggest_plants keeping a plant if one season suited it, while apply_layout rejected it if either season didn't. For that bed, 46 of 51 plants were offered and 0 were allowed. Each tool was right by its own rule; together they trapped the model. One shared rule fixed it, and the designer went from 14 tool calls (and stopping to ask) to as few as 8.

46 of 51 plants offered, 0 allowed

Tests that were never type-checked. Adding a typecheck script to the backend found 25 type errors in tests that had always passed, because the test runner doesn't check types. One of them would have broken the production build on the server. "Tests pass" and "it builds" are different claims.

The mystery 400. One evening every chat failed with "Claude request failed: 400". It wasn't the code or the design. I had reached the monthly spend limit I'd set myself in the Anthropic Console. The backend had thrown away the API's explanation, so the fix was to log the error type and message (with any key redacted), and to show visitors a friendly "the demo has reached its usage budget" message instead of a generic failure.

Deploying on AWS without a scary API bill

The live demo runs on one small EC2 instance in Sydney behind CloudFront. The backend serves both the API and the built frontend, so there is only one server to run, kept alive by pm2. Four details mattered:

  • CloudFront's timeout. By default CloudFront gives up on the origin after 30 seconds. A whole-yard design often takes more than a minute, so I raised the origin response timeout to 120 seconds, the most the console allows.
  • Only CloudFront can reach the server. The security group allows the app port only from AWS's managed CloudFront prefix list, and SSH only from my own IP.
  • The access code reaches the backend. An origin request policy forwards all viewer headers, so the X-Access-Code header survives the trip, and caching is disabled so a redeploy is never hidden.
  • Each visitor gets their own limit. The backend trusts exactly one proxy hop of X-Forwarded-For, and logs only a hash of the address. My laptop and phone showed two different hashes, so rate limits are per person.

Every chat spends my API credit, so the demo also has an access code for chatting and editing, hourly and daily chat caps, demo designs that reset on restart, and the Console spend limit as a hard backstop.

The biggest saving was prompt caching. A design takes several rounds, and each round resends the system prompt, the 82 designer rules, the design and the tool definitions. Caching the fixed part helped a little. Caching the growing conversation as well made the big difference:

Full-price input tokens per design fell from 349k to about 1k

Now most of the cost is the model writing the layout and explaining it, which is the part I actually want to pay for.

What I learned, and what's next

  • The magic is a capable model, good context, tools and a loop. Building my own agent showed me how Kiro works: both are a Claude model, standing instructions (my system prompt, Kiro's specs and steering), context, tools and a loop. Understanding one made me better at using the other.
  • Calculate in code what models get wrong: compass directions, sun hours, whether a 3 m patio fits in a 1 m gap.
  • Review before code exists. Reading requirements and designs is where most of my bugs died, and it's the part of spec-driven development I'd keep for any project.
  • I'm the eyes. An agent that can't see the screen finds convincing but wrong causes. Screenshots settled most arguments, including one where the "bug" was my own misread: the 3D view I was sure was rotated 90 degrees was simply looking out of the other window.
  • Use the bigger model for judgement. For placing one bed, a small model matched a large one. For designing a whole yard, only the larger model read the sun per area, offered styles and respected the pool clear zone.

Next I'd like to add accounts and a database so people can keep their designs, a "save as my design" button, a wider plant catalogue with finer sun classes for Queensland's harsh summer sun, and water features and play areas.

Built for Kiroween 2026 with Kiro.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.