alantheprice/Ledit Agent
Automatically solve GitHub issues using AI-powered code generation with ledit
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 4, 2026
- License
- MIT
Pinned Snippet
uses: alantheprice/ledit-agent@e9429de089760dd75df368a334c65084413931f4 # v1.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| mode | Operation mode: solve (default) or review | no | solve |
| github-token | GitHub token for API access | yes | — |
| ai-provider | Primary AI provider to use for the main agent step (openai, openrouter, zai, deepinfra, chutes, mistral, or a custom provider name set via custom-provider-name) | yes | — |
| ai-model | Model to use with the primary provider (e.g., deepseek-ai/DeepSeek-V3, GLM-4.6, openai/gpt-4o) | yes | — |
| openai-api-key | OpenAI API key (OPENAI_API_KEY) | no | — |
| openrouter-api-key | OpenRouter API key (OPENROUTER_API_KEY) | no | — |
| deepinfra-api-key | DeepInfra API key (DEEPINFRA_API_KEY) | no | — |
| zai-api-key | Z.AI API key (ZAI_API_KEY) | no | — |
| chutes-api-key | Chutes API key (CHUTES_API_KEY) | no | — |
| mistral-api-key | Mistral API key (MISTRAL_API_KEY) | no | — |
| jina-api-key | Jina AI API key for web search and URL fetching — free at jina.ai (JINA_API_KEY). Enables the orchestrator and code_reviewer personas to validate libraries and docs. | no | — |
| custom-provider-name | Identifier for the custom provider. Set ai-provider to this value to use it. | no | custom |
| custom-provider-url | Base endpoint URL for the custom provider (e.g. https://api.example.com/v1) | no | — |
| custom-provider-model | Default model name for the custom provider (defaults to ai-model if not set) | no | — |
| custom-provider-api-key | API key for the custom provider | no | — |
| subagent-coder-provider | Provider to use for the coder subagent (e.g. a custom provider name). Defaults to ai-provider. | no | — |
| subagent-coder-model | Model to use for the coder subagent. Defaults to ai-model. | no | — |
| review-type | Type of review: comprehensive, security, performance, style | no | comprehensive |
| comment-threshold | When to post inline comments: low, medium, high | no | medium |
| summary-only | Only post summary without inline comments | no | false |
| ledit-version | Ledit version to install (e.g., v1.0.0, latest) | no | latest |
| timeout-minutes | Timeout for the ledit agent in minutes. Both solve and review run a 2-step workflow (implement/review + verify/audit), so values of 20+ are recommended. | no | 20 |
| enable-mcp | Enable MCP GitHub integration for PR interactions | no | true |
| mcp-github-token | GitHub token for MCP (defaults to github-token if not specified) | no | — |
| max-iterations | Maximum iterations for the ledit agent | no | 180 |
| debug | Enable debug logging | no | false |
| workspace-dir | Working directory for ledit | no | . |
| auto-review | Automatically add /ledit-review comment to PR after solving issue | no | false |
Outputs
| name | description |
|---|---|
| success | Whether the issue was successfully processed |
| pr-number | Pull request number if created |
| pr-url | Pull request URL if created |
| branch-name | Branch name created/updated |
| commit-sha | Latest commit SHA |