Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Allowing folders and files for AI

An AI assistant connected to TKTail (AI assistants (MCP)) sees what is open in TKTail. In every edition you can also let it read files from disk you have not opened - exactly the ones you allow, nothing else. Nobody but you changes what an assistant may read: there is no command an assistant could use to allow itself more.

The model in one paragraph

Default deny. An assistant reads a file from disk only when one of your AI access rules allows it. A rule allows or excludes (deny) one of three things: a folder (all its files - with or without its subfolders), exactly one file, or a folder’s files whose names match masks such as *.log; *.txt. An exclusion always wins: a file an exclusion covers is never read, also when another rule allows it. Everything else on the computer is out of reach. Tools > Allow AI Access (MCP) stays the main switch: while it is off, no rule gives anything to anyone.

Allow from the File Explorer

Right-click a folder or file in TKTail’s File Explorer and open AI Access. The first line says what is true now:

The first lineMeans
No AI accessNo rule allows it (the default).
AI access: whole folder (with subfolders)A rule on this folder allows all its files.
AI access: filtered (*.log; *.txt)A rule on this folder allows only files with those names.
AI access: this fileA rule allows exactly this file.
AI access through D:\LogsA rule on a folder above allows it (inherited).
Excluded from AI accessAn exclusion covers it - nothing allows it.

For a folder:

  • Allow AI Access to This Folder… - all files; choose Include subfolders or not.
  • Allow AI Access with File Filter… - only files whose names match, for example *.log; app-*.json. Masks are file names with * and ? - never folders, never regular expressions; a mask with [ ] or { } is refused (it would match nothing).
  • Exclude from AI Access… - nothing in it is read, listed or counted for an assistant - also when a folder above is allowed.

For files (one, or several selected):

  • Allow AI Access to This File / to Selected Files - exactly these files: never their neighbours, never a guessed *.log. The least you can give.
  • Allow AI Access to Containing Folder… - the file’s folder (the same dialog as above).
  • Exclude This File from AI Access.

On an open tab, right-click it: AI Access > Allow AI Access to This File (or its containing folder). The dialog asks whether a rule is kept until you remove it or only for this TKTail session (gone when TKTail closes).

Allowing a whole drive (C:\), a network share’s root, the Windows folder or your user profile is possible - but TKTail says plainly how broad it is and asks you to confirm.

The File Explorer marks what you decided with a small text badge after the name - AI (allowed by a rule on exactly this path), AI* (filtered - only some files; or a file a folder’s filter allows) and AI- (excluded). A folder allowed through a folder above it has no badge; its tooltip says AI access through ….

Why is this available to AI?

AI Access > Why Is This Available to AI?… shows the effective decision: the rule that allows it, the exclusion that blocks it (if any), and whether AI access is on.

Inherited access, and removing it

A folder below an allowed folder is already allowed - TKTail does not add a second rule for it. Remove AI Access Rule removes a rule on exactly this path. If the path stays allowed through a folder above it, TKTail says so - it never pretends access was taken away. To keep an assistant out of a subfolder of an allowed folder, exclude it.

All rules in one place

Tools > AI Access Rules… (also Settings > AI Access) lists every rule: Allow or Deny, the path, which files, kept or this session, and its check box (enabled). Add Folder…, Add Files…, Add Event Log…, Exclude…, Edit…, Remove, Disable, Label…, Open Folder. Adding a folder with its subfolders removes the rules below it that it makes unnecessary (never an exclusion).

Add Event Log… allows (or excludes) a Windows Event Log by its name - Application, System, Microsoft-Windows-PowerShell/Operational - or several with * and ? (Microsoft-Windows-*/Operational). An event log is not a folder: such a rule never allows a file, and a folder never allows an event log. The Security log is allowed only by a rule that names it (never by a pattern), and TKTail warns before you allow it. An event log you have open in TKTail is available to an assistant anyway; the rules decide what it may read beyond your tabs (Windows Event Log). Every change is written to Output > Application - what, where you made it, kept or this session.

What an assistant gets - and what it does not

  • It can list the allowed files (names, sizes, the format TKTail would use), search them, open one as a tab (you see it), read its records and save evidence from it (with that consent on). A file the rules do not allow is not in any answer - not even its name or a count.
  • It reads. Nothing more: it cannot write, rename, delete or run anything, and allowing a folder does not let it change processes, services or settings.
  • When it asks for something outside its access, TKTail refuses with outside_investigation_access, without saying whether that file exists, and tells you in the status bar - it does not ask you in a dialog each time. You decide.
  • Archives: allowing a ZIP lets a search reach its entries only when the search asks for its contents (archives). Compressed logs (.gz, .zst, …) are files like any other. Archives inside archives are never searched.
  • Rotated logs: allowing exactly app.log gives that file - not app.log.1 or app.log.2.gz. To let an assistant read a log’s history, allow its folder or a filter such as app.log*.
  • Links: a junction or symbolic link inside an allowed folder that leads elsewhere is judged by where it leads - it never opens a way out. .. and other spellings of a path are judged the same way.
  • Network shares: allowed like local folders, read with your Windows account’s permissions.
  • What is open in TKTail (your tabs, your searches) is always available to an assistant while AI access is on - rules decide what it may read from disk by itself.

When a rule changes during work

A search or evidence capture an assistant already started keeps the access it had when it started (a snapshot); the next one uses your rules as they are then. Removing a rule never leaves a half-read file behind: it simply is not read by the next request.