Agent Tracks is now integrated with Haijun Code. See the documentation for details.
✨ Ask Assistant ⌘ I
takebox

Agent Tracks Specification

The complete format specification for Agent Tracks.

TRACK.md Format

Every track must contain a TRACK.md file at its root. This file uses YAML frontmatter for metadata followed by Markdown instructions.

---
name: code-review
description: Review code changes for quality, security, and best practices
---

# Code Review Track

## Instructions

When reviewing code, follow these steps:

1. Check for security vulnerabilities
2. Verify error handling
3. Assess code readability
4. Look for performance issues
...

Required Frontmatter

FieldTypeDescription
namestringUnique identifier for the track (kebab-case recommended)
descriptionstringBrief description of what the track does (used for discovery)

Optional Frontmatter

FieldTypeDescription
versionstringSemantic version for the track
authorstringTrack author name or organization
toolsarrayList of tools the track requires
envobjectRequired environment variables

Directory Structure

my-track/
├── TRACK.md              # Required: metadata + instructions
├── scripts/              # Optional: executable code
│   └── validate.sh
├── references/           # Optional: documentation
│   └── style-guide.md
├── assets/               # Optional: templates, resources
│   └── template.md
└── tests/                # Optional: track tests
    └── test-track.md

Instructions

The body of TRACK.md (after the frontmatter) contains the instructions that agents will read when the track is activated. Write clear, step-by-step instructions that an AI agent can follow.

Best practices for instructions:

  • Use numbered lists for sequential steps
  • Be specific about expected outputs
  • Include examples where helpful
  • Reference bundled files using relative paths

Track Metadata

Track names should be:

  • Unique within a project
  • Written in kebab-case (e.g., code-review, data-pipeline)
  • Descriptive but concise

Descriptions should:

  • Clearly state what the track does
  • Mention when it should be used
  • Be between 10-200 characters