Skip to Content

What instructions should I paste into an AI assistant so it does not invent Tares flags, connector keys or secrets?

Tares publishes a short block of agent instructions on its AI resources page that you paste into a system prompt or a project instruction file. The block tells the assistant to answer from the docs and cite the page URL, take commands and flags from the CLI reference and quickstart, never invent connector keys, and take secrets from environment variables. It also tells the assistant to trust the running instance over the docs when they disagree. The wider credential rule sits in the page’s Guardrails list, so add that too.

How it works

The AI resources page is written for coding assistants such as Claude Code, Codex, Cursor or an agent of your own. It gives the assistant a retrieval path and a set of rules.

  • Markdown endpoints. Every Tares docs page is available as plain Markdown. https://docs.glassflow.ai/tares/llms.txt is the index, with every page and a one-line description. Adding .md to any page URL returns that page as Markdown. https://docs.glassflow.ai/tares/llms-full.txt holds all pages in one large file. An Accept: text/markdown header is not supported, so use the .md suffix.
  • Retrieval order. The assistant fetches /tares/llms.txt first, picks the one or two pages that match the task from the task router, and fetches llms-full.txt only when the answer spans many pages. It does not scrape the rendered HTML pages.
  • The pasteable block. It holds five rules: answer from the docs and cite the URL, take POST /api/sources bodies from the connector’s own page, take commands and flags from the CLI reference and quickstart, take secrets from environment variables, and trust the instance over the docs.
  • The Guardrails list. It sits below the block on the same page and holds the broader rules. Do not invent CLI flags, API routes, connector keys or MCP tool names. Treat llms.txt as a map, not as an answer. Never place a credential in a command line, a config file you show, or a chat message. Tares is read-only for agents by default, so do not describe write actions that are not on the Tares agents page.

The block and the Guardrails list overlap but are not the same text. The block says secrets come from environment variables and that the assistant never asks you to paste one into the chat. The rule that covers command lines and config files you show lives only in the Guardrails list.

Set it up

  1. Open the AI resources page and copy the agent instructions block. Paste it into your assistant’s system prompt or project instruction file. The block as shown here leaves out the skill line, which you add in the next step:
When the user asks about Tares (docs.glassflow.ai/tares): - Answer from the docs. Fetch https://docs.glassflow.ai/tares/llms.txt first, then the one or two pages that match, as Markdown (append .md to the page URL). Cite the page URL you used. - For POST /api/sources bodies, use the JSON shape and keys from that connector's page under /tares/connectors/. Never invent a connector config key; if the page does not list it, say so. - Commands and flags come from /tares/reference/cli.md and the quickstart. Do not invent flags. - Secrets (GITHUB_TOKEN, ANTHROPIC_API_KEY) come from environment variables; never ask the user to paste one into the chat. - If the running instance disagrees with the docs, trust the instance (`tares status`, GET /health) and say that the docs may be behind.
  1. Add the skill line from the same page if you want the assistant to install Tares for you. On the AI resources page it sits between the secrets rule and the last rule, and it points the assistant to the tares skill. Following that skill, the assistant installs Tares, starts it, adds a first source, connects itself over MCP and shows one read. Copy the line exactly from the page.
  2. Add the Guardrails list from the page to the same instruction file. This is where the rule against putting a credential in a command line, a config file you show, or a chat message lives. It also holds the rule against inventing API routes and MCP tool names, and the note that Tares is read-only for agents by default.
  3. Keep secrets such as GITHUB_TOKEN and ANTHROPIC_API_KEY in environment variables on your machine. Do not paste them into the chat.
  4. When you want to check whether the assistant’s answer matches your install, run the status command yourself:
tares status

If the output differs from what the assistant read in the docs, the instance is right and the docs may be behind.

What you get

  • An assistant that answers Tares questions from the docs and cites the page URL it used, so you can check each answer.
  • Connector configs that use only the keys listed on the connector’s own page. When a key is not listed, the assistant says so instead of guessing.
  • Commands and flags taken from the CLI reference and quickstart, not from memory.
  • Secrets that stay in environment variables, with no request to paste them into the chat.
  • A clear tie-break when the docs and your running instance disagree: the instance wins, checked with tares status or GET /health.
  • A cheap retrieval path. The assistant starts from the index, reads one or two pages as Markdown and does not pull the whole docs set unless the question needs it.

If you are building an assistant for incident work, the same page set fits the AI SRE guide, which the task router lists for building an AI SRE.

When something else fits

  • If you only need to read the docs yourself, open the rendered pages or the AI resources page directly. The pasted block is for assistants.
  • If a single question needs many pages, let the assistant fetch llms-full.txt. It is large, so use it only when one or two pages are not enough.

Still stuck? Get help

Last updated on