feature: support unattended agent workloads — headless agent runs with no human present

Open
#955 1 comment 0 reactions 1 assignee View on GitHub

@esnible is already working on this.

Since Sep 10, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement high priority
Feature Description

Cortex assumes a human today: abctl claude-code enable asks before editing settings, and you
only see anything if abctl observe is open in a terminal. Agents increasingly run with nobody
watching — claude -p inside a script, CI jobs, cron, server-side and sandboxed agents. Those
are precisely the runs where a mistake goes unnoticed, so they are the ones that most need recording.

Proposed Solution
  • Non-interactive enable / disable / status: no prompts, explicit --yes, exit codes a
    script can branch on (exitDeclined = 3 already exists — keep the contract documented)
  • Configuration and credentials from the environment; no interactive login, no keychain prompt
  • Events from an unattended run are captured and attributable after the fact, with no
    abctl observe running at the time
  • A headless run gets its own session identity so its tokens and cost are separable from
    interactive work
  • That run's totals readable once it has finished
  • Works with no TTY and no TERM
  • Failures land in a log the caller can find, not only on a screen nobody is watching
  • Documented for CI and sandbox use
Additional Context

Part of the Cortex v0.9.0 release. Depends on session differentiation. The release smoke tests
assert events through this capture path.

Dominant language
Go
Stars
13
Forks
40
Avg merge
12h 17m
Merged PRs (30d)
156

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rossoctl/cortex

All issues in rossoctl/cortex

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.