• OBSERVE
  • AUDIT
  • REPAIR
  • MANUAL

How to debug agent thread states with your agent

Connect your agent to LangGraph Cloud to look inside active threads. You can see exactly where a process stalled and fix it without starting over.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I debug my agent's thread state?

Your agent uses LangGraph Cloud tools to pull the current state of any thread or list all active threads. Once you find the error, you can push a new state to the thread to bypass the bug or correct the logic. You'll get a clear path to fixing stuck agents.

Where your debugging efforts land.

Fixing agent logic.

Your agent handles the data retrieval and state injection so you can focus on the logic.

OBSERVE

Identify the bottleneck

Your agent pulls the current state of a specific thread. You get a clear view of the variables and history causing the stall.

AUDIT

Find the right thread

Your agent scans your active sessions. You can quickly locate the specific thread ID that needs attention.

REPAIR

Inject corrected state

Your agent pushes a manual update to the thread. This lets you overwrite bad data and keep your agent moving.

MANUAL

Human intervention

Your agent identifies the error, but you decide if the state change is safe. You remain the final judge of your agent's logic.

The workflow

What your agent does when <the thing arrives>.

Your agent acts as a bridge between your chat interface and the LangGraph Cloud runtime.

  1. Locate the thread

    Your agent finds the specific conversation or process you are worried about by looking through all existing threads.

    list_threads
  2. Inspect the data

    Your agent reads the exact values, checkpoint history, and current variables stored in that thread.

    get_thread_state
  3. Analyze the error

    Your agent compares the current state against your expected logic to find where the loop or error occurred.

    get_thread_state
  4. Fix the state

    Your agent writes new data into the thread to correct a mistake or skip a broken node.

    update_thread_state

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute LangGraph Cloud tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to begin debugging immediately.

Starting points

Swap out the thread IDs and variable names for your actual LangGraph data.

LangGraph Cloud Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_W9eYJ3x7BufqP9zavlkhkY5HUux0v9z8z0xZYWei/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, LangGraph Cloud capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "langgraph-cloud-stateful-ai-agents-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_W9eYJ3x7BufqP9zavlkhkY5HUux0v9z8z0xZYWei/mcp"
    }
  }
}
Copy into chat04
  • 01

    List all my active LangGraph threads so I can find the one that's stuck.

  • 02

    Show me the current state of thread id 'abc-123' so I can see why your agent stopped.

  • 03

    Update the state of thread 'xyz-789' by setting the 'user_input' variable to 'retry'.

  • 04

    Check the state of thread 'debug-456' and tell me what the last successful node was.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect LangGraph Cloud once, then ask.

Link your account. Your credentials stay encrypted, and you can start debugging threads through your preferred AI client immediately.

Connect LangGraph Cloud to your agent

FAQ

How this task behaves.

  • 01

    Can your agent delete a thread?

    No. Your agent can only list, read, or update thread states. Deleting threads must be done manually in LangGraph Cloud.

  • 02

    Will updating a state trigger a new node immediately?

    Your agent updates the state, but the actual execution of the next node depends on your LangGraph configuration and how you trigger the graph.

  • 03

    Can your agent see my entire database?

    No. Your agent only sees the specific thread states and metadata provided by the LangGraph Cloud tools.

  • 04

    Can your agent change the graph's code?

    No. Your agent can only modify the data within a running thread, not the underlying Python logic or graph structure.

  • 05

    How do I find a specific thread ID?

    You can ask your agent to list all threads, which will return the available IDs for you to choose from.

  • More questions about LangGraph Cloud? The Connector page answers them. See everything the LangGraph Cloud Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from LangGraph Cloud to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    LangGraph Cloud plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect LangGraph Cloud to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.