Skip to main content

ankra chat

AI-powered chat for troubleshooting and assistance. If a message is provided, sends a one-shot question and prints the conversation id so a follow-up can continue it with --conversation. If no message is provided, enters interactive chat mode. Use --cluster to provide cluster context for better answers; without it the persisted ‘ankra cluster select’ applies, and with neither the chat reads across the whole organisation. A one-shot question takes -o json (or -o yaml) for scripts and CI jobs: the answer is printed once, when the turn ends, as one document carrying the answer text, the conversation id, the safety mode the turn ran in, the cluster it was scoped to, the tools the model ran and any write left awaiting confirmation. A turn that starts and then fails still prints the document, with its “error” member set, and exits non-zero; a question the platform refuses to start (a rejected token, an unknown cluster) prints nothing on stdout and exits with that error’s code. Interactive mode has no structured output.
Examples
Flags

ankra chat actions

Agent-mode chat halts before every write and proposes it as a pending action. Confirm the action to run it, or reject it to discard it. Pending actions expire, so confirm promptly. If the cluster changed since the action was proposed, confirming answers a drift conflict; re-run with --force to apply it against the changed state anyway.

ankra chat actions confirm

Confirm a pending action proposed by agent-mode chat. The platform re-checks the action against live cluster state before running it. If the state drifted since the proposal, the command reports the drift and exits without running anything; pass --force to run it anyway.
Examples
Flags

ankra chat actions list

List the actions awaiting confirmation in a conversation
Flags

ankra chat actions reject

Reject a pending AI action so it never runs
Flags

ankra chat delete

Delete a chat conversation
Flags

ankra chat health

Get AI-analyzed cluster health
Flags

ankra chat history

List chat conversation history
Flags

ankra chat show

Show a specific chat conversation
Flags