Skip to main content

🧠 Agent Fundamentals β€” Introduction to Early Test Generation Agents

Early AI offers multiple agents that automate the generation of unit tests across your codebase.
Each agent is optimized for a specific integration point β€” pull requests, commits, or folders β€” and can run in any CI/CD system.

This chapter introduces the available agents and explains when to use which.
It also consolidates all shared configuration topics such as token permissions, npm setup, SCM support, and performance tuning.


βš™οΈ What is an Agent?​

An agent is a programmable entry point to Early AI's test generation engine.
It detects code changes or gaps in test coverage, generates high-quality unit tests using AI, and optionally commits the results.

You can think of agents as:

  • 🧩 PR-focused: Run when code is reviewed
  • πŸ” Commit-based: Run on every push
  • πŸ“¦ Folder-based: Improve coverage for large areas of code

πŸ“š Available Agents​

AgentTrigger TypeIdeal ForTypical CI/CD
GitHub PR AgentPR eventAuto-generating tests during code reviewGitHub Actions
CLI PR AgentPR eventPR-based workflows in Jenkins/CircleCIJenkins, CircleCI
CLI Commit AgentCommitCommit-based flows or push eventsGitHub, Jenkins
CLI Repo AgentManual/SchedRaising coverage across a folderAll CI/CD

🧭 Need help choosing? See: When to Use Which Agent β†’


πŸ”„ Shared Concepts​

These topics are common across all agents and documented in detail in this section:

TopicDescription
NPM AuthenticationHow to install the CLI from GitHub Packages using a classic NPM_TOKEN.
GitHub & SCM TokensWhat TOKEN is, which scopes are required, and how to support GitHub, Bitbucket, etc.
Supported SCM ProvidersWhich SCMs are supported and how to configure them (--scm-provider).
Concurrency & PerformanceHow to optimize MAX_CONCURRENCY and CI runtime.
Lint & Formatting HooksHow to configure LINT_COMMAND and PRETTIER_COMMAND for compliant commits.
Memory TuningPreventing OOM errors with NODE_OPTIONS.

🧩 What’s Next?​

πŸ‘‰ Start with: When to Use Which Agent β†’
Then continue to the agent-specific section that fits your workflow.

Looking to skip straight to a shared concept? Use the left sidebar.