Ability to "tag" invocations of the tool
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 12.5k
- Forks
- 998
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 10
Description
I want to see logs just of prompts run by the tool I describe here: https://til.simonwillison.net/llms/claude-hacker-news-themes
It shells out to LLM. It would be neat if it could do this:
curl ... | llm -m claude 'Summarize the themes of the opinions expressed here, including quotes (with author attribution) where appropriate.' \
--tag hn-summary
That --tag gets persisted in the database.
Then this could return logs with that tag:
llm logs --tag hn-summary
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the llm command records invocations in its database and how llm logs applies filters. Add support for passing --tag hn-summary to an invocation and for retrieving matching records with llm logs --tag hn-summary. Done means the tag persists and log output is limited to matching prompts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100