# How Candidly Built State-Aware Agent Harnesses in LangSmith

DevFeed: [How Candidly Built State-Aware Agent Harnesses in LangSmith](<https://devfeed.tech/articles/how-candidly-built-state-aware-agent-harnesses-in-langsmith-78300.md>)

Original publisher: [Read original article](<https://www.langchain.com/blog/how-candidly-built-state-aware-agent-harnesses-with-langsmith>)

Author: LangChain Accounts

Published: 2026-08-26T15:02:51Z

Content type: article

Language: en

Sources: [LangChain Blog](<https://devfeed.tech/sources/langchain-blog.md>)

Topics: [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>), [agent observability](<https://devfeed.tech/topics/agent-observability.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Dynamic AI user experience](<https://devfeed.tech/topics/dynamic-ai-user-experience.md>), [observability](<https://devfeed.tech/topics/observability.md>)

Tags: [agent-harness](<https://devfeed.tech/tags/agent-harness.md>), [agent-harnesses](<https://devfeed.tech/tags/agent-harnesses.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-engineering](<https://devfeed.tech/tags/ai-engineering.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [traces](<https://devfeed.tech/tags/traces.md>)

## AI overview

Candidly built a state-aware harness for its financial-planning agent, Cait. It analyzes conversation traces to infer user engagement during an interaction, then uses state-specific prompt policies and randomized experiments to steer responses. The article describes labeling and prediction methods, an interpretable hidden Markov model, and how LangSmith supports tracing, evaluation, policy versioning, and monitoring.

## Source excerpt

Candidly's agent Cait reads partial traces to infer user state mid-conversation and steer replies, using a LangSmith labeling pipeline at 92.3% human agreement.