Simulate
Run one endpoint or one function for real, with its database and cache, and see what happened at every step.
Simulate opens from the right rail of the Diagram, on the flow you are reading. It starts your service with its dependencies in Docker (for example Postgres and Redis), sends a real request, and plays the path it took over the blocks, with the data each one saw.
GET: the result opens with the status, the timing of each call and the Redis keys written.Send a request
Fill the request
The Request tab has Method, Path, Headers and Body, prefilled from the code. Authentication uses the project's sign-in, or None. Blanks the code can't fill are marked Fill in.
Generate asks AI for realistic sample data (it uses credits and asks first). After a failure, Regenerate · avoid … tries values that avoid it.
Run
Press Run or ⌘↵. The first run starts the environment, which can take a moment. Requests are saved per API on your computer (Saved …).
Read the result
The Result tab opens with the status code and time. The diagram marks each block Ran, Error, Not run or Not recorded.
Call one function
Switch the mode from API to Function to call one function directly. Give its Arguments as a JSON array (the last run's values are filled in) and see what it Returned or Threw. Java, Node and TypeScript, Python, Ruby and .NET functions run inside your running service (a Spring bean is called through its proxy, so @Transactional still applies); Go, Rust, PHP, C and C++ run in a fresh process. Jobs, consumers and other flows without an HTTP route can be run this way.
What each step did
Click a block that ran to see Data through each step: its input and output, the SQL it ran, and how long it took. Look inside opens the calls under it; Go to error jumps to the first failure; Previous call and Next call walk through repeated calls.
The result also lists what was written: new rows per table, Redis keys with their time to live, and the Service log.
Inside sub-diagrams
After a run, open a sub-diagram: it shows that call's part of the run, without running again. When a method ran several times, step through each call with Previous call and Next call. Go to error goes down level by level to where the run failed.
Execution trace
Execution Trace opens the full call tree with a timeline: each call, its duration and its share of the total, with errors marked. Calls shown switches between the calls On diagram and All. Use ↑ ↓ to move, ← → to fold and unfold, and Esc to close.
When a run fails
| Failure | What to try |
|---|---|
| Duplicate data | Regenerate uses new values for fields that must be unique. |
| Invalid data | Regenerate follows the DTO constraints. |
| Not found | Regenerate uses ids that exist in the database. |
| Not allowed | Check the login step under Authentication. |
| Service error | See the service log in the Result tab. |
| No response | Check that the environment is running. |
Change switches the offending fields to new values without AI. Fix with … sends the failure to a Claude Code, Codex or Antigravity session in the terminal, so the agent can fix the code and run again.
Project setup
Project setup holds what every request in the project shares: Data connections, Variables (mark one Secret to hide it), Common headers, and Authentication: sign in with a login request, a token, an API key or Basic. AI find reads the repo's login code and sets up a shared sign-in for you.
Services you run yourself
If a service runs in your IDE instead of Docker, peekcode still sends the request, but it can't see the steps (No step-by-step trace). Record each step of your own service gives you a JVM option, or environment variables for other languages, to add to its run configuration. Restart the service and later runs record every step like in Docker.
Without Docker
Walk through the code steps through the flow on the diagram from the code alone. Nothing actually runs. See also Play a flow.