dcdpr / dcdpr/jp

Stream output to text editor

Open
#92 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
16
Forks
3
Avg merge
1d 1h
Merged PRs (30d)
121

Description

While jp is a CLI, it should support ergonomic workflows when chatting with the assistant.

One ideal case would be:

  • jp query --new
  • Open text editor for initial message
  • On save, send message to LLM and wait for response
  • Stream response back to editor, line-by-line, in same buffer
  • Have some kind of "marker" to indicate end of response
  • Wait for new data and for file to be saved again
  • Parse file to get newest query and send together with history of conversation to LLM
  • Wait for response, and stream back to editor again

This would also allow for more advanced use-cases (as a potential follow-up):

  • In an ongoing conversation, removing part of the history rewrites that conversation, essentially allowing you to manipulate the entire state of the conversation.

Contributor guide

No contributing guide indexed for this repository

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 locating the CLI entry point for jp query --new and the existing assistant request and response flow. Define the editor interaction, response-end marker, save-and-resume behavior, and conversation-history parsing described here; the work is done when a saved query can receive a streamed response in the same buffer and be followed by another query.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
ai, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.