Guidelines

Guidelines Overview

Guidelines are a powerful feature of Tabnine Agents that allow you to define custom behaviors, workflow rules, and system prompts through simple Markdown files. Think of guidelines as custom instructions that shape how your agent behaves and operates within your specific development environment.

What are Guidelines?

Guidelines are Markdown files stored in your project’s /tabnine/guidelines/ directory that act as:

  • Custom System Prompts: Define how the agent should behave

  • Workflow Rules: Specify procedures and processes to follow

  • Tool Instructions: Control how and when tools should be used

  • Team Standards: Encode your team’s coding practices and conventions

Creating Guidelines

To add custom guidelines for use by Tabnine Agent, create a new directory called .tabnine.

This directory will either reside either 1) in your home directory or 2) on a per-project basis within your project directory.

After that, create a /guidelines/ folder in the /tabnine/ directory either in your Terminal or manually.

Once in the .tabnine/guidelines/ directory, save a markdown file (.md) with written instructions in natural language. Tabnine Agent will interpret the text.

There is no real structural requirement, but it is still a best practice to list the various guidelines in a hierarchical structure for easy interpretation, both by Agents and other users.

Your location will resemble $PROJECT_FOLDER/.tabnine/guidelines/appguidelines.md.

As noted above, you can save multiple guideline files.

Think of these in a similar fashion to the agents.md file that other agentic tools use.

Here is a common example of a guidelines.md file with hierarchical structure:

It is recommended to keep your guidelines.md file to 500 lines or less.

Governance for Agentic Guidelines

(Released 5.26.0)

In the Admin UI, navigate over to Agent Guidelines on the left-hand side of the page.

Beneath the General Guideline title, you can add your natural language guideline description. They will also be applicable to all your organization’s users and projects.

Guidelines that are input here will have the same effect as guidelines listed in your guidelines.md file, but they will take precedence over personal guidelines that exist in the guidelines.md file.

Last updated

Was this helpful?