Starts Nov 20. Live now. 40% off your first invoice with code BLACKFRIDAY26, Nov 20 to Dec 1. See pricing

Use when tuning DevIntern Code run limits, the auto-review loop, logging, telemetry, the output directory, prompt overrides, tracker status settings, or checking setup with devintern doctor.

Advanced Settings

Unless noted otherwise, set these in the repository’s env file (~/.devintern/env/<repo>.env), the workspace .env, or your shell. Every one is optional.

Execution limits

Variable / flagDefaultEffect
AGENT_HARNESS_TIMEOUT_MINUTES60Maximum wall-clock time for one agent run
--max-turns500Turn limit for implementation runs (the clarity check always uses 10)
CLAUDE_MAX_TURNS500Turn limit for PR follow-up runs (address-review, resolve-conflicts, auto-merge review, webhook reviews), which don’t accept --max-turns
HOOK_RETRIES10Attempts to fix failing git hooks in address-review and webhook review jobs
AGENT_SPAWN_ENOENT_RETRIES5Retries when the agent CLI is briefly missing, for example while it updates itself
AGENT_SPAWN_ENOENT_BACKOFF_MS1000Delay before the first of those retries, doubling each time
--agent-pathAgent executable to use for this run (same as AGENT_CLI_PATH)
--skip-clarity-checkSkip the feasibility check before implementation

After fetching a task, DevIntern always runs the full workflow (clarity check, then agent, then commit/PR). There is no fetch-only mode.

Auto-review loop

With --create-pr --auto-review, DevIntern reviews its own PR, applies fixes, and reviews again. It stops when the review approves, when no important issues remain, or when it reaches the iteration cap. Auto-review doesn’t block publishing: if the review step errors out, the PR is still pushed.

SettingDefaultNotes
AUTO_REVIEW_ITERATIONS / --auto-review-iterations N2Maximum review–fix cycles, minimum 1. The flag overrides the variable

The same setting covers CLI runs, workers, and the webhook server. Workers can also pass --auto-review-iterations N in [defaults].worker_task_args. The old WEBHOOK_AUTO_REVIEW_MAX_ITERATIONS still works but prints a deprecation warning. The number of iterations each run used is saved in the run record and in auto-review-summary.json.

Logging and diagnostics

VariableDefaultEffect
DEVINTERN_VERBOSEunset1 logs every API call, response, and retry to the console
DEVINTERN_HARNESS_LOGSon0 turns off agent run transcripts
DEVINTERN_HARNESS_LOG_MAX_FILE_MB10A transcript is truncated at this size
DEVINTERN_HARNESS_LOG_RETENTION_DAYS30Transcripts older than this are deleted
DEVINTERN_HARNESS_LOG_MAX_FILES500Maximum number of transcripts kept
DEVINTERN_HARNESS_LOG_MAX_TOTAL_MB256Maximum total size of all transcripts

Harness run logs

Each agent run (implementation, clarity checks, estimation, hook fixes, auto-review, PR review addressing, conflict resolution, webhook reviews) writes a transcript to ~/.devintern/logs/harness/, or under DEVINTERN_WORKSPACE_DIR if you set it. Each file records the task, harness, command, the full output, the exit code, and whether a turn or usage limit was hit. A run that fails or times out still leaves a log.

You can open a run’s logs from its page in the dashboard, or read them as JSON from GET /api/runs/:id/harness-logs and GET /api/runs/:id/harness-logs/:name.

Transcripts are saved unredacted. The dashboard hides values that look like credentials, but that is best-effort pattern matching. Treat transcripts as sensitive, and set DEVINTERN_HARNESS_LOGS=0 where they may contain secrets.

Output directory

DEVINTERN_OUTPUT_DIR=./devintern-output   # default: /tmp/devintern-tasks

Each task gets {output-dir}/{task-key}/ containing the formatted task (task-details.md), the clarity check result, the implementation summary (implementation-summary.md, or implementation-summary-incomplete.md on failure), verify and auto-review results, and any downloaded attachments. These are debug files and safe to delete. Retry state and run history live in ~/.devintern/state/queue.db instead.

Files you want to keep and show in the dashboard are registered separately as run artifacts; see Pipeline artifacts.

Error reporting and analytics

Error reporting. By default, the CLI sends crashes and failed runs (agent, tracker, PR, commit, estimation, and webhook errors) to DevIntern’s Sentry project. Reports include identifiers such as the task key, tracker type, and stage. They never include task content, code, .env contents, or credentials, and anything that looks like a token is removed. To opt out, set SENTRY_DISABLED=1.

Anonymous usage analytics. The CLI sends anonymous events to PostHog: CLI version, OS, whether it runs in CI, tracker type, run mode, feature flags, and outcome categories for setup, doctor, login, and the worker. It never sends task content, code, repository names, file paths, or credentials. A random ID is created once and stored in ~/.devintern/telemetry.json. To opt out, use either:

Opt-outWhat is sent
DEVINTERN_TELEMETRY_DISABLED=1Nothing
{ "analytics": { "enabled": false } } in ~/.devintern/settings.jsonOne anonymous analytics_opt_out event, then nothing

See devintern.com/privacy.

Prompt overrides

The prompts DevIntern sends to the agent are Markdown files bundled with the CLI:

PromptUsed for
clarity.mdFeasibility / clarity check before implementing
estimation.mdStory-point estimation
review.mdAuto-review of the PR
fix.mdAddressing review feedback

To override clarity.md or estimation.md, put a file with the same name in ~/.devintern/prompts/. To override it for one repository only, use ~/.devintern/prompts/<repo>/, where <repo> is the name of its [[repos]] entry in workspace.toml. A directory named by DEVINTERN_PROMPTS_DIR takes precedence over both. Keep the frontmatter (name, description, placeholders, requiredSections) and the {{placeholder}} tokens from the bundled file; a placeholder with no value fails the run.

review.md and fix.md always come from the bundled copy, because their verdicts decide whether a PR is approved.

Overrides in a project’s .devintern-code/prompts/ are no longer read; DevIntern prints a warning when it finds one. Move the files to ~/.devintern/prompts/.

Tracker status settings

Status mappings and the story-points field are set per tracker project. With a workspace, put them in ~/.devintern/workspace.toml:

[trackers.jira.projects.PROJ]
pr_status = "In Review"
in_progress_status = "In Progress"
todo_status = "To Do"
story_points_field = "customfield_10016"

[trackers.linear.projects.ENG]
pr_status = "In Review"
KeyEffect
pr_statusStatus, state, or label to set after the PR is created. This also moves the ticket out of sweep queries (details)
in_progress_statusStatus to set when work starts
todo_statusStatus to restore if implementation fails
story_points_fieldCustom field for story points. Found automatically if omitted

Trackers are jira, linear, trello, azure-devops, asana, github, gitlab, and markdown. Each uses its own project key (Jira project, Linear team key, Trello board ID, owner/repo for GitHub, and so on); see that tracker’s integration guide. Quote keys that contain spaces or slashes, for example [trackers.github.projects."acme/web"]. Only the section for the active TASK_TRACKER is used.

A repository’s .devintern-code/settings.json is no longer read. Its tracker sections are copied to [trackers] automatically the first time DevIntern runs there (or when the worker starts).

To add verification or custom steps, use a workspace pipeline_file; see Customizing the Task Pipeline.

Readiness check

devintern doctor checks your setup on one screen:

  • Bun and Git
  • Agent CLI: every entry in AGENT_HARNESS, checked the same way the worker checks at startup. For each entry it shows the resolved path, the sandbox that will be used, the model, and whether it is ready. It flags mise shims under a sandbox and nono runs with no pack.
  • Tracker credentials for your TASK_TRACKER
  • DevIntern sign-in, and the license when you’re signed in (needed only for unattended automation)

Every failure comes with a suggested fix. The probes only run <cli> --version and change nothing.

Exit codeMeaning
0Ready (warnings, such as a missing fallback harness or license, are shown but don’t fail)
1Not ready: a check failed, for example no harness in the chain can run or the primary can’t start
2Only with --strict: warnings but no failures, for CI that requires a fully ready setup

devintern init runs some of these checks at the end. For the unattended worker, use devintern worker doctor. If a failure looks like a DevIntern bug, run devintern report (Reporting bugs).