Skip to content

Case-study agent: use Claude subscription token; skipped shows idle - #3

Merged
forsythfamous merged 1 commit into
mainfrom
case-study-agent-subscription
Nov 6, 2026
Merged

forsythfamous merged 1 commit into
mainfrom
case-study-agent-subscription

Conversation

@forsythfamous

Copy link
Copy Markdown
Owner

What

  • case-study-agent.yml: authenticate with claude_code_oauth_token (secret CLAUDE_CODE_OAUTH_TOKEN, from claude setup-token) instead of a billed ANTHROPIC_API_KEY. Usage counts against the Claude subscription limits.
  • site-diagram.ts: a skipped run (agent switched off) now renders as idle instead of error. Before this, the hero diagram showed the agent node red even though nothing failed.
  • README secrets table updated.

To enable after merge

  1. claude setup-token → add the output as repo secret CLAUDE_CODE_OAUTH_TOKEN.
  2. Set repo variable CASE_STUDY_AGENT_ENABLED = true.

Checked

  • npm run build passes; built page shows the agent node data-status="idle".

… idle

The agent now authenticates with CLAUDE_CODE_OAUTH_TOKEN (from
claude setup-token) instead of a billed API key. A skipped run means the
agent is switched off, so the site diagram shows it as idle, not error.
@forsythfamous
forsythfamous merged commit 891adb5 into main Nov 6, 2026
1 check passed
@forsythfamous
forsythfamous deleted the case-study-agent-subscription branch November 6, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant