Skip to content

Conversation

@parkerhendo
Copy link
Contributor

@parkerhendo parkerhendo commented Feb 8, 2026

Summary

  • Add prompts command with list, view, and delete subcommands
  • Use comfy_table for consistent table formatting
  • Add pager support for long output
  • Make base arguments (api-url, org-name) globally available

Test plan

  • braintrust prompts list shows prompts in a table
  • braintrust prompts view <name> opens prompt in web
  • braintrust prompts delete <name> deletes after confirmation
  • Table truncation handles emoji/unicode correctly

@parkerhendo parkerhendo changed the title feat(prompts): add prompts command with list, view, and delete subcommands Add prompts command with list, view, and delete subcommands Feb 8, 2026
@parkerhendo parkerhendo requested a review from ankrgyl February 8, 2026 02:39
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

Latest install commands for this PR (updated for commit 2b5741fdd828):

  • Unix: curl -fsSL https://github.com/braintrustdata/bt/releases/download/canary-parker-prompts-cmd/bt-installer.sh | sh
  • Windows: powershell -ExecutionPolicy Bypass -c "irm https://github.com/braintrustdata/bt/releases/download/canary-parker-prompts-cmd/bt-installer.ps1 | iex"

Copy link
Contributor

@ankrgyl ankrgyl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts from playing with it

  • can we use resolve_project(...) so that there's a project selector instead of having to include one?
  • I opened a prompt and it took me to

Ankurs-MacBook-Pro:~/projects/braintrust-cli-2 ankur$ bt prompts view --project prompt-test
✔ Select prompt · Testing 1234
✓ Opened https://staging-www.braintrust.dev/app/braintrustdata.com/p/prompt-test/prompts/ee6462eb-a0a6-445f-8dfc-08d215996c16 in browser

where does staging-www.braintrust.dev come from? i can't find it in the code.

  • Also why does it instantly open a link in the UI? I'd rathe rsee the prompt definition in my CLI. I also think it's quite unintuitive for a coding agent that might try to run this
-n, --name <NAME_FLAG>   Prompt name (flag)

name is ambiguous. we should have slug here IMO

Comment on lines +8 to +15
pub struct Prompt {
pub id: String,
pub name: String,
pub slug: String,
pub project_id: String,
#[serde(default)]
pub description: Option<String>,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not for this PR but it would be nice if we could derive these from our openapi spec

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.

2 participants