whoami

Read CLAUDE_CODE_SESSION_ID to identify Stoa seat session and role.

Updated May 2, 2026
One-click install
npx skills add https://github.com/denson/the-stoa --skill whoami-denson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: whoami
Source: https://github.com/denson/the-stoa/tree/main/substrate/skills/whoami
Command: npx skills add https://github.com/denson/the-stoa --skill whoami-denson

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows Stoa seats to determine their session identity, crucial for proper functioning and communication within the Stoa architecture.

Core Features & Use Cases

  • Session Identity Detection: Reads the $CLAUDE_CODE_SESSION_ID environment variable to identify a seat's session identity.
  • Role Identification: Determines whether the seat is a terminal or a sub-agent.
  • Error Handling: Reports an error and exits if the $CLAUDE_CODE_SESSION_ID is empty or unset, ensuring robust operation.

Quick Start

Run the 'whoami' command to discover your session identity.

Frequently Asked Questions about whoami

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify my session identity for Stoa seats?

Session identity for Stoa seats is identified by reading the CLAUDE_CODE_SESSION_ID environment variable and determining whether the seat operates as a terminal or a sub-agent.

What happens when the CLAUDE_CODE_SESSION_ID environment variable is unset?

When the CLAUDE_CODE_SESSION_ID environment variable is empty or unset, the Skill reports an error and exits immediately to ensure robust operation and prevent invalid session execution.

How do I check if a Stoa seat is a terminal or a sub-agent?

To check whether a Stoa seat is a terminal or a sub-agent, run the whoami command, which inspects the session identity environment variable and returns the specific role.

Do I need a specific Claude Code version to detect session identity?

Yes, detecting session identity requires Claude Code version 2.1.132 or higher, as the Skill depends on the CLAUDE_CODE_SESSION_ID environment variable introduced in that version.

Why does session identity detection fail in my Stoa architecture workflow?

Session identity detection fails if the CLAUDE_CODE_SESSION_ID environment variable is not properly configured or if the Claude Code version is older than 2.1.132, causing the Skill to exit with an error.

Can I use environment variables to determine terminal and sub-agent roles in Stoa?

Yes, you can use the CLAUDE_CODE_SESSION_ID environment variable to determine terminal and sub-agent roles within the Stoa architecture, as it provides the necessary session identity context.