Develop and debug with an AI coding agent
For developers who work with Claude Code or another AI coding agent: you changed code, built it and started the application. Did it behave? This page shows how your coding agent uses TKTail to look at what the code actually did - its logs, the Windows events and the machine’s counters - and uses that to make the next change.
TKTail is not the editor. Your coding agent works with the source, the repository, the build and the tests. TKTail is the runtime side: the application’s logs and traces, the Windows Event Log, Metrics, alerts and saved evidence - read through structured questions instead of whole files. The overview for developers: AI-assisted investigation - For Developers; the measured difference between reading records and asking TKTail for a summary: what an AI assistant receives.
edit the code (with the agent)
|
build, start, run the scenario or the tests
|
TKTail follows the logs, events and counters as they are written
|
the agent asks TKTail: errors? slow operations? what changed since the last run?
|
the next code change - and run again
Set it up once
- Open the application’s log in TKTail (File > Open, or
tktail open <log>). TKTail follows it while it grows - also a new file each day (Rotating dated log files). - Optional: open the Application event log, and a Metrics View of the machine (Trial / Pro).
- Settings > AI Access (MCP) > Allow AI access (MCP), then Copy Client Configuration - with Claude Code, save
it as
.mcp.jsonin your project folder (details: AI integration (MCP)). - Ask your agent: “Check the application after my last run.”
The agent now has TKTail beside its file and shell tools. It reads only what is open in TKTail (or below folders you approved); it changes nothing in TKTail unless you allowed that kind of change.
Case study: a slow endpoint
A synthetic example (the data is generated; names and numbers are invented).
Run A. You start build 1.4.0-dev.17 of an orders API and exercise it for five minutes. You ask the agent:
“I just started dev.17 - check whether this run produced errors or obvious performance problems.”
Through TKTail the agent finds, without reading the log into the conversation:
| Question it asks TKTail | Answer |
|---|---|
| what happened at startup? | Application started (build 1.4.0-dev.17); one warning: a missing setting Cache:SlidingExpiration, default used |
| errors since the start? | 3 × System.InvalidOperationException: Sequence contains no elements on /api/customers - with the record and its stack trace, not every copy |
the slowest endpoints? (average and maximum of elapsed: per endpoint) | /api/orders/search 1,535 ms on average, up to 2,199 ms; every other endpoint under 0.2 s |
| which warnings, how often? | query plan fallback: search without the index hint - 517 times, once for every search request |
Its summary: the search endpoint is slow and logs a query-plan fallback on every call - the index hint is missing; a
separate, older defect throws on /api/customers. It changes the query and you build 1.4.0-dev.18.
Run B. You start dev.18, run the same scenario and ask: “I ran it again with the fix - did it help?” The agent
compares the two runs by their start times in the same log: /api/orders/search now 119 ms on average instead of
1,535 ms, no fallback warnings, every other endpoint unchanged - and the InvalidOperationException is still there
(5 of 332 calls). It also says what the log cannot tell: whether the faster search returns the same results. It goes
on with the exception.
Both runs were done with Claude Code (2.1.302) against TKTail 1.2.0 on the generated data, each time as a new session: 16 and 14 TKTail calls; most answers a few KB, the largest 48 KB - 100 records with a summary the agent asked for; every figure equal to the generator’s ground truth.
The loop - change, run, ask, change - happens without you opening the log, Event Viewer or Task Manager, and without the agent pasting thousands of lines into its context.
Questions to ask your coding agent
- “Check whether my latest run produced any new errors.”
- “What are the slowest endpoints since the last application start?”
- “Show the exceptions that appeared after 14:20 - grouped, one example each.”
- “Which operation is generating the most warnings?”
- “Check startup - any warnings or errors before the first request?”
- “Compare application errors with Windows events around the crash.” (with the Application log open)
- “Did memory use increase during this test?” (Trial / Pro, with a Metrics View open while the test ran)
- “Summarize everything with correlation ID 7f3c.”
- “Save the records around this failure as evidence.”
Structured logs answer better
When your log has fields - a timestamp, a level, an endpoint, an elapsed time, an account, a correlation ID - TKTail
reads them: from a built-in format (IIS, JSON lines, CSV, …), from a format you or the agent defined (Your own log
formats), or as a value taken from the text (elapsed: 1534ms). Then the agent asks for “the top
10 endpoints by average elapsed time” or “errors grouped by account” and gets the summary, not the records.
One time window, several sources
A warning in the application log at 12:02:17, a CPU spike in Metrics, an entry in the Application event log and an IIS 502 at the same second: TKTail puts them on one time scale, so the agent can tell a defect in the code from a problem in the environment.
When a test fails
When an integration or end-to-end test fails, tell the agent when it ran: “The checkout test failed at 10:41 - what did the service log then?” It reads the records of that time window and the events around them and summarizes the likely cause. TKTail does not run your tests; it reads what they left in the logs.
Keep the evidence
A trace that rotates every few minutes, a failure you want to show a colleague, the exact runtime proof of a regression: “Save the records around this failure as evidence, 20 records each side.” The package is redacted (tokens and passwords removed), verifiable, and stays after the log is gone - attach its shareable copy to the bug report (Saving evidence). Saving needs Allow AI to save evidence and pin searches.
Light enough for the machine you debug on
TKTail reads files in bounded blocks, keeps memory bounded by its caches rather than by the size of the log, and does its searching on background workers - it is meant to run beside the application it observes (Huge files and network shares).
Which coding agents
| Agent | Status |
|---|---|
| Claude Code | tested - TKTail’s acceptance runs use it (setup) |
| Codex and other MCP clients | protocol-compatible (MCP over stdio or HTTP), not tested by TKTail (Connect any MCP client) |