Test your agent on every app it uses, including the ones your team built, and change the test without losing results.
A support agent handling one refund for an online store might touch four systems. It reads the ticket in Zendesk, looks up the order in an order service your engineers built, sends the money back through Stripe and posts a note for the team in Slack. When something goes wrong, such as a refund paid twice or a note that never goes out, the mistake can sit between two of those apps, where a test of one app at a time never looks.
LayerLens has caught exactly this kind of mistake. In a test this month, an agent running on GPT-5.5 was asked to pay every overdue vendor bill. It paid a $15,500 bill in QuickBooks that a Slack message had put on hold, in 5 of 5 attempts, because it never opened Slack. A test that checked QuickBooks alone would have passed every one of those payments, and in a live account each one is $15,500 sent to a vendor the team had told everyone to hold.
LayerLens Composite Environments put every app in a path like that into one test. A Composite Environment lets you:
- Put simulated versions of the apps an agent uses into one test environment.
- Grade each run against known answers.
- Save every tool call, so you can see which apps an agent checked and which it skipped.
Built-in apps include:
- QuickBooks
- Slack
- Stripe
- Salesforce
- Zendesk
Your agent may also call tools your company built for itself, like the order service in the example above. This release adds two things to Composite Environments:
- Custom apps built from your agent's traces, which bring your in-house tools into the same test as the built-in apps.
- A version for every change, which lets you reshape the test as your business changes and still know what every score means.
Your in-house tools, rebuilt from what your agent already did
A trace is the saved record of an agent's work: each tool it called, what it sent and what came back. If your agent is traced, each run has already saved one.
To add a custom app:
- Open Generate environment > Apps and choose Custom next to the built-in apps your agent uses.
- Select the traces to learn from.
- Review the preview before anything is built.
The preview shows:
- Tools: the tools your agent called.
- Starting data: what those calls returned, loaded into tables.
- Tasks: the requests in the traces, turned into test tasks.
LayerLens builds a simulated version of each of your tools from the traces, then checks it against the real thing before using it. It sends the simulation the same calls your agent made and compares each answer with what your real tool returned.
If at least 80% of the answers match, the simulated tool goes into the test. If fewer match, LayerLens does not trust the simulation and plays back the real answers your tool gave instead. For example, if your agent called lookup_order 50 times and the simulation matched the real answer 48 times, that is 96%, and the simulation is used. If issue_refund matched only 31 of its 40 calls, that is 78%, below the bar, so LayerLens plays back the real answers for that tool instead. Every tool shows how many of its calls matched, so you can see how close each one is to the real tool.
The test also reaches past what your traces contain:
- A model plans how each table grows, while every traced row stays exactly as recorded.
- LayerLens chains the traced tools into new "walk" tasks, such as looking up an order and issuing a refund in a single new request.
- A walk task is kept only if replaying it does the same thing.
Change the test without losing your results
A test that matches your business has to change when your business does. You add an app, retire one or fix a custom tool, and any of those changes can move your agent's score. A score is only useful if you know which version of the test produced it.
Every change to a Composite Environment now creates a new version. Customizing edits the environment in place instead of making a copy, and Activity > Versions lists every version and marks the one that is serving.
What that means day to day:
- You can always go back. Reverting restores that version's data, apps and tools for runs, forks and the Customize screen.
- Tests keep running during a change. The current version keeps serving until a rebuild finishes. If the build fails, or someone reverts while it runs, nothing is overwritten, and the screen says "Rebuilding" or "Rebuild failed".
- Old results keep their meaning. Tasks a rebuild replaces are retired instead of deleted, runs queued before the rebuild still find their tasks, and every past result stays linked to the exact task it graded. A task someone deletes by hand is hidden instead of erased.
- Costs shown first. Removing or rebuilding an app shows a plan first: which tasks keep their results, which get rebuilt and the spending limit. Removing an app costs nothing and builds nothing.
Before launch, after every change and while live
- Before launch: build a Composite Environment with the built-in apps your agent uses and a custom app from its early traces, and test it across all of them before it touches real money or customers.
- After every change: when your tools or apps change, update the environment and each change becomes a new version, with earlier results still tied to what they tested.
- While live: your agent's new traces can become the next custom app, which keeps the test close to the work it really does.
Custom apps from traces and versioning are available now in LayerLens Composite Environments. Pick the apps your agent works in, add a few traces and look at the preview before anything is built.
Your business is your benchmark.