Ollie is useful even without code access — it can analyze traces, search your workspace, and help you understand failures. But when you pair it with opik connect, it becomes something more: an AI that can read your source files, propose changes, rerun your agent, and verify fixes with test suites. All from the Opik UI.
From the root of your agent project, run:
That’s it. opik connect pairs your local project with your Opik workspace. Ollie discovers your source files and gains the ability to read and propose changes to them.
opik connect is opt-in and scoped to the session. Ollie can only access
files in the project you connect, and every write operation requires your
explicit approval.
Once connected, Ollie can read any file in your project when investigating an issue. When a trace shows a failure in your retrieval step, Ollie doesn’t just tell you “the retrieval returned empty results” — it reads the actual retrieval function, understands the logic, and identifies why it failed for that specific input.
This bridges the gap between what went wrong (the trace) and why it went wrong (the code).
After identifying a root cause, Ollie proposes a fix as a diff. You see exactly what will change before anything happens. Click approve, and the file is updated on your machine. Click reject, and nothing changes.
Common fixes Ollie proposes:
With the fix applied locally, Ollie can rerun your agent through opik connect using the same inputs from the original failing trace. The new trace streams back into Opik in real time, so you can see immediately whether the fix worked.
This eliminates the manual cycle of:
Instead, it’s one click — and the comparison is side-by-side in the Opik UI.
The final step: ask Ollie to run your test suite against the updated agent. This checks not just the trace you fixed, but every test case in the suite. You get a pass/fail summary and confidence that nothing regressed.
Here’s what the complete loop looks like with opik connect active:
You see a trace in the dashboard where the agent hallucinated a step in a how-to response. The trace shows the LLM ignored the retrieved context.
Open Ollie from the trace view:
“Why did the agent make up step 3 instead of using the context from the knowledge base?”
Ollie reads the span tree, identifies that the retrieval step returned the right document but the prompt template doesn’t instruct the model to stay grounded in the context.
Ollie asks to read your prompt template file. With opik connect running, it reads the file and confirms the issue — the system prompt says “answer the user’s question” but doesn’t include an instruction to only use provided context.
opik connect only exposes files in the project directory you connect. It cannot access files outside that directory.opik connect running, Ollie has no access to your source files. It can still analyze traces and search your workspace.opik connect and opik endpoint