simonw / simonw/llm

add --name TEXT option to 'llm prompt' command to set conversation_name

Open
#735 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
12.5k
Forks
998
Avg merge
3d 13h
Merged PRs (30d)
10

Description

Very often with bigger/longer prompts (or if using prompt for data), conversation name is meaningless, leaving user hard time searching db.

Very often setting name of the conversation by the user at prompt time would solve the problem.

Easy solution:
--name TEXT -> sets conversation_name to TEXT

Better:
--name TEXT -> sets conversation name to TEXT + prompt or system_prompt (meaning this is prefix for name)

Best:
allow --name TEXT be used in 'llm prompt' but also in 'llm logs list --name TEXT' returning all conversations having TEXT in conversation_name

p.s. this would be ultra helpful for use cases like this: https://til.simonwillison.net/llms/claude-hacker-news-themes where I would like to put HN url at the begining of conversation_name :)

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.

Research direction

Start by reading the implementations of the llm prompt and llm logs list commands, then trace how conversation_name is stored and searched. Resolve which of the proposed --name behaviors is intended; done means the selected behavior works for the command and conversation names can be found as specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.