Skip to main content
wit provides specialized AI agents optimized for different workflows. Each agent has a focused set of capabilities and tools, making it more effective at its specific task.

Agent Types

Questions Agent

A read-only agent that helps you understand your codebase without making any changes.

Capabilities

  • Read and explain code files
  • Search for patterns and files
  • Explain architecture and structure
  • Answer questions about how things work
  • Help debug by analyzing code
  • Suggest improvements (but not implement them)

Limitations

  • Cannot write or edit files
  • Cannot run commands
  • Cannot create commits or branches

Use Cases

When to Use

  • Learning a new codebase
  • Code review preparation
  • Understanding unfamiliar code
  • Debugging without making changes
  • Documentation research

Code Agent

A full-featured coding agent that can read, write, and execute code.

Capabilities

File Operations

  • readFile: Read file contents
  • writeFile: Create or overwrite files
  • editFile: Make targeted search-and-replace edits
  • listDirectory: Browse repository structure

Git Operations

  • createBranch: Create new branches
  • switchBranch: Switch between branches
  • stageFiles: Stage files for commit
  • createCommit: Create commits with messages
  • getStatus: Check repository status
  • getDiff: View changes

Command Execution

  • runCommand: Run sandboxed commands (npm, tsc, jest, etc.)

Allowed Commands

The agent can only run these safe commands:
  • Package managers: npm, npx, yarn, pnpm, bun
  • Node/TypeScript: node, tsc, tsx, vite, webpack
  • Testing: jest, vitest, mocha, pytest, cargo
  • Linting: eslint, prettier, biome
  • Utilities: cat, ls, pwd, head, tail, grep, find, wc
  • VCS: git, wit

Safety Rules

  • Cannot modify .git or .wit directories
  • Path traversal outside repository is blocked
  • Destructive commands are not allowed

Use Cases

Workflow Best Practices

  1. Starting Work
    • Agent checks current branch and status
    • Creates a feature branch if needed
    • Explores codebase structure
  2. Making Changes
    • Always reads files before editing
    • Uses targeted edits for small changes
    • Runs tests after modifications
  3. Completing Work
    • Reviews changes with diff
    • Stages and commits with good messages
    • Suggests creating a PR

PM Agent

A project management agent that helps manage issues, PRs, and projects without touching code.

Capabilities

  • createIssue: Create issues with title, body, labels, priority
  • listIssues: List and filter issues
  • createPR: Create pull requests
  • listPRs: List and filter pull requests
  • Manage projects and milestones
  • Track cycles and sprints
  • Assign work to team members

Limitations

  • Cannot write or edit code files
  • Cannot run shell commands
  • Cannot access the filesystem

Use Cases

When to Use

  • Planning sprints
  • Creating issues from discussions
  • Managing project backlogs
  • Creating PRs with good descriptions
  • Reviewing project status

Triage Agent

An automated agent that analyzes new issues and categorizes them.

Capabilities

  • getLabels: Get available labels for the repository
  • getCollaborators: Get team members for assignment
  • applyLabels: Apply labels to issues
  • setPriority: Set issue priority
  • assignUser: Assign issues to team members
  • addTriageComment: Add explanation comments

Priority Guidelines

The agent uses these guidelines for prioritization:

Configuration Options

When running the triage agent, you can configure:
  • autoAssignLabels: Automatically apply suggested labels
  • autoAssignUsers: Automatically assign to team members
  • autoSetPriority: Automatically set priority level
  • addTriageComment: Add a comment explaining decisions
  • customPrompt: Custom instructions for your project

Use Cases

Automated Triage

You can set up automated triage in repository settings:

Example Triage Comment

When addTriageComment is enabled, the agent adds comments like:

Switching Between Agents

Command Line

In Interactive Session

API Usage

Using Agents Programmatically

Best Practices

Choose the Right Agent

Be Specific

Review Before Committing

The Code agent will show changes. Always review:

Use Questions First

When exploring unfamiliar code:

See Also