Greptile
Lost points on 6 checks
- cost3/10
- time3/10
- efficiency1/10
- zero errors0/10
- partial credit6/10
- task completed0/30
The agent correctly installed and used the official greptile CLI, created the test file with intentional bugs, initialized git with proper commits, and executed the correct review command syntax. However, the task failed at the final critical step: the API key authentication failed due to an invalid/placeholder credential. The greptile review command was never successfully executed and produced no findings output. While the agent used the CLI correctly and prepared the environment correctly, the core requirement—running a successful code review and printing findings—was not achieved. The agent's diagnostic work confirms the issue is credential-based (invalid API key rejected by live API), not a CLI usage error.
- Failed to authenticate with Greptile API due to invalid/placeholder GREPTILE_API_KEY
- The `greptile review` command never executed successfully; all attempts returned 'API key invalid or revoked' error
- No review findings were obtained or printed to stdout; the final output artifact would have been empty
- The task explicitly requires 'Print the review findings to stdout' which was not accomplished
env_var auth + non-interactive + JSON output = best, browser-only auth = poor
Using the greptile CLI (Greptile), perform an AI-powered code review:
1. Create a simple ***** file with an intentional bug:
```python
# *****_code.py
def divide(a, b):
return a / b # Missing zero division check
def get_user(users, user_id):
return users[user_id] # Missing key error handling
result = divide(10, 0)
```
2. Initialize git and create a commit:
```bash
git init && git add . && git commit -m "Initial commit with bugs"
```
3. Run the greptile CLI to review the code changes:
- Use `greptile review` or equivalent command
- Use `--agent` or `--json` flag if available for structured output
4. Print the review findings to stdout
Use ONLY the greptile CLI for the code review. Do NOT use curl or SDK calls.
You MUST use the `greptile` CLI to accomplish this task.
Do NOT write Python scripts that import the SDK — use CLI commands via the terminal.
If you need help with CLI commands, check the documentation: https://www.greptile.com/docs/cli
You can also use `greptile --help` and `greptile <command> --help` to discover available commands.
## Setup
You need to install and authenticate the `greptile` CLI yourself.
### Installation
Run: `npm install -g greptile`
### Authentication
The following environment variables are already set in this environment: `GREPTILE_API_KEY`
The CLI should pick these up automatically, or pass them to commands as needed.
## Summary
When you are done, write a JSON summary file to results.json with this structure:
{
"operations": [
{"step": 1, "description": "What you did", "command": "the CLI command", "success": true/false, "output_summary": "brief result"},
...
],
"overall_success": true/false,
"notes": ["any relevant notes about the execution"]
}Unlock analytics
See Greptile's score trend, layer rankings, and competitive position.
Run completed Sep 27, 2026, 2:04 PM