Can an AI SRE read my Claude Code sessions as context?
Yes, Tares ingests your Claude Code session transcripts through the Tares plugin, so an AI SRE can query them and correlate what your agent did with what your systems did. Each message is stored as one event in the claude_code source, keyed by session. Redaction of obvious secrets and tokens is on by default and runs on the server before anything is stored.
How it works
The Tares plugin for Claude Code ships each session’s transcript to the Tares daemon over HTTP as the session progresses. It works the same against a local or a remote daemon. The Claude Code connector turns the transcript into events in a single push source named claude_code.
- One event per message. Each event is keyed by
session. Sub-agents roll up into the same source. - Labels you can filter on.
session(the key),project,branch,model,type(the message type) andsidechain(sub-agent messages). Token-usage fields come with the events. - Capture hooks. Hooks send new transcript lines to
/ingest/claude_codeon each prompt, tool use and session end. The plugin creates the push source on the daemon the first time it runs, so you add no source by hand. - Redaction. The
redactfield istrueby default and removes obvious secrets and tokens. It runs server-side in the connector, so it applies before anything is stored. Set it tofalseto turn it off. - Thinking blocks.
include_thinkingisfalseby default. Set it totrueto include assistant thinking blocks in the rendered text. - Read-back. The same install connects the session to the Tares MCP endpoint over HTTP, so the agent can read the data plane too, including its own history.
The claude_code source is one source among the others you connect. An AI SRE works from that shared data, so session events can be read next to your metrics, logs and alerts.
Set it up
- Install the plugin in Claude Code. The console also has a one-click page under Sources, Add source, claude_code, which shows the install command wired to your instance’s URL.
/plugin marketplace add glassflow/tares
/plugin install tares@tares- Answer the install prompts:
- Tares URL: the daemon’s base URL. The default
http://127.0.0.1:8787matchestares up. - MCP endpoint: where the session reads Tares over MCP. Locally, keep the default
http://127.0.0.1:8788/mcpand runtares mcpwith the streamable-http transport next totares up. On Tares Cloud there is nothing to start. - Access token (optional): only on a secured instance. Use a read + ingest API key so the plugin can both stream sessions and read back over MCP. It is stored in the OS keychain.
- Stream this session into Tares: the capture toggle, on by default.
- Tares URL: the daemon’s base URL. The default
- On Tares Cloud, you can skip copying a URL or key. With the
taresCLI installed (1.45.0 or later, plugin 0.5.0 or later), sign in and pick your workspace in the browser:
tares loginThis machine gets its own key on that workspace, and the plugin picks it up. The one setting left is the MCP endpoint. Set it to the address tares login prints, which ends in /mcp on your workspace host. In Claude Code, run /plugin, pick tares, then Configure. A Tares URL or Access token you set by hand wins over the login.
4. Verify. Start a Claude Code session and do some work. In the console, Explore lists sessions under the session key, and the source’s Recent events shows messages as they ship. With the plugin installed you can also ask:
Use tares to show me my current session’s timeline.
Capture is forward-only. Sessions stream from the moment the plugin is installed, and transcripts already on disk are not backfilled.
What you get
- Your Claude Code work is queryable data. Every message is an event with its project, branch, model and token usage.
- You can line up what an agent did with what your systems did, because the session events sit in the same data plane as your other sources.
- Obvious secrets and tokens are redacted on the server before storage by default. Treat this as a filter for obvious credentials, not a guarantee that nothing sensitive is ever stored, and keep thinking blocks off unless you need them.
- The agent can read back its own history through the same install, with no extra MCP process started by the plugin.
- Sessions marked as challenger sessions carry a
flowlabel from the mark onward, plus events such aschallenge_plan,challenge_commitandsession_end, with labels likeverdictandround.
When something else fits
- If you need history from before the plugin was installed, this connector does not help, because capture is forward-only and existing transcripts are not backfilled.
- If you want a different kind of context, such as metrics or logs, use the connector built for that data and keep claude_code for agent activity.
Related
Still stuck? Get help