GitAuto Logo
  1. Home
  2. Pricing
  3. Docs
  4. Dashboard
  5. Blog
  6. Contact
  1. Home
  2. How It Works
  3. Use Cases
  4. Pricing
  5. Docs
  6. Dashboard
  7. FAQ
  8. Blog
  9. Contact

GITAUTO.md

What is GITAUTO.md?

GITAUTO.md is a file at the root of your repository where GitAuto persists reusable learnings. Think of it like CLAUDE.md for Claude Code - a place where project-specific rules accumulate over time.

GitAuto reads this file at the start of every task and updates it when it learns something reusable from reviewer feedback, CI failures, or other signals.

How It Works

Reading

Every time GitAuto starts working on a task (from any trigger - review comments, test failures, schedule, or dashboard), it reads GITAUTO.md from your repo root and loads it as high-priority context. These rules override other settings when there is a conflict.

Writing

GitAuto automatically creates or updates GITAUTO.md when it encounters reusable patterns. For example:

  • A reviewer says "use test helpers from our shared utilities" - GitAuto fixes the PR and adds the rule to GITAUTO.md so it never makes that mistake again
  • A CI failure reveals that a column is integer, not string - GitAuto fixes the test and records the type convention
  • While working on any task, GitAuto discovers a repo-specific pattern (e.g., the repo always uses a specific test helper, or a particular naming convention) and records it for future tasks

Manual Editing

You can also manually create or edit GITAUTO.md to add rules. Since it lives in your repo, it is version-controlled and visible to your entire team.

Example

Here is what a GITAUTO.md might look like after a few feedback cycles:

GITAUTO.md (at repo root)
# GITAUTO.md

## Testing
- Use shared test helpers in tests/helpers/ for creating test data
- status column is integer (0=draft, 1=published), not string
- Always test both success and error paths for API calls

## Code Style
- Always use early returns in controller methods
- Use Path objects instead of string concatenation for file paths

## Build
- Run `npm run build` before `npm test` - tests depend on compiled output
- MONGO_URI env var is required for integration tests

How It Complements Repository Rules

Repository Rules (Web UI)GITAUTO.md
Who editsUsers only - GitAuto never modifies theseBoth users and GitAuto
How configuredManually via settings pageAutomatically by GitAuto + manual edits
Where storedGitAuto databaseIn your repo (git-managed, version-controlled)
VisibilityGitAuto settings pageVisible to your entire team in the repo
Best forRules you define upfront (structured options + free-form)Rules learned from feedback over time
PriorityApplied firstHighest priority (overrides when conflicting)

Format Guidelines

  • Use markdown headers (##) to group rules by topic (Testing, Code Style, Architecture, Build, etc.)
  • Keep each rule to one line when possible
  • Focus on reusable patterns, not one-off fixes for specific files
  • GitAuto will not duplicate rules that already exist in the file

How It Works

For a deeper look at the guardrails that keep GITAUTO.md manageable, see GITAUTO.md Restrictions - rules that prevent the file from growing out of control.

Getting Started

You do not need to create GITAUTO.md manually. GitAuto will create it automatically the first time it learns a reusable rule from feedback. However, you can create one upfront if you already know your repo-specific conventions.

Over time, as your team reviews GitAuto's PRs and provides feedback, the file will grow into a comprehensive set of repo-specific rules - making each subsequent task more accurate.

Questions?

Want to know more about how GITAUTO.md works or need help setting it up? We're happy to help.

Contact us with your questions.

Output LanguageCircleCI Integration

Getting Started

  • Installation
  • Setup

Triggers

  • Overview
  • Schedule Trigger
  • Test Failure Trigger
  • Review Comment Trigger
  • Dashboard Trigger

Coverage Dashboard

  • Overview
  • Python Testing
  • JavaScript Testing
  • Java Testing
  • Go Testing
  • PHP Testing
  • Ruby Testing
  • Flutter Testing
  • Multi-Language
  • Coverage Charts

Customization

  • Repository Rules
  • Output Language
  • GITAUTO.md

Integrations

  • CircleCI Integration
  • npm Integration

How It Works

Context Enrichment

  • Line Numbers
  • Full File Reads
  • Test File Preloading
  • Test Naming Detection
  • Error Baselines
  • CI Log Cleaning
  • Trigger-Specific Prompts
  • Coding Standards

Output Auto-Correction

  • Diff Hunk Repair
  • Diff Prefix Repair
  • Tool Name Correction
  • Tool Argument Correction
  • Import Sorting
  • Trailing Space Removal
  • Final Newline
  • Line Ending Preservation
  • Sanitize Tool Arguments
  • Lint Disable Headers

Quality Verification

  • Formatting
  • Linting
  • Type Checking
  • Test Execution
  • Coverage Enforcement
  • phpcs / phpstan Support
  • PHPUnit Support
  • pytest Support
  • Snapshot Auto-Update
  • Untestable Detection
  • Should-Skip Detection
  • Dead Code Removal
  • Quality Check Scoring
  • Quality Checklist

Safety Guardrails

  • File Edit Restrictions
  • Temperature Zero
  • PR/Branch Checks
  • Race Condition Prevention
  • Bot Loop Prevention
  • Webhook Deduplication
  • Duplicate Error Hashing
  • Infrastructure Failure Detection
  • Strict Tool Schemas
  • No-Change Detection

Token/Cost Management

  • Token Trimming
  • Outdated Diff Removal
  • Stale File Replacement
  • Skip CI Intermediate
  • CI Log Deduplication
  • Web Fetch Summarization
  • Context Forgetting
  • File Query Routing
  • On-Demand Diff

Resilience & Recovery

  • Model Fallback
  • Overload Retry
  • Forced Verification
  • Error Files Editable

Hallucination Prevention

  • Web Search
  • URL Fetching
  • Anti-Hallucination Prompts
  • GITAUTO.md Restrictions
  • Review Response Guardrails

Ready to improve your test coverage?

Go from 0% to 90% test coverage with GitAuto. Start for free, no credit card required.

Install FreeContact Sales

Product

  • Home
  • Why GitAuto
  • What GitAuto Does
  • How It Works
  • Use Cases
  • How to Get Started
  • Solution
  • Pricing
  • Pricing Details
  • ROI Calculator
  • ROI Methodology
  • FAQ
  • Blog
  • Contact

Dashboard

  • Dashboard
  • Coverage Charts
  • File Coverage
  • Credits
  • Open PRs
  • Usage
  • Triggers
  • Actions
  • References
  • Rules
  • CircleCI Integration
  • npm Integration

Documentation

  • Docs
  • Getting Started
  • Setup
  • Triggers
  • Coverage Setup
  • Customization
  • How It Works
  • Auto Merge
  • CircleCI
  • npm

Legal

  • Privacy Policy
  • Terms of Service

Connect

  • GitHub
  • LinkedIn
  • Twitter
  • YouTube
GitAuto Logo© 2026 GitAuto, Inc. All Rights Reserved