Hacker News new | ask | show | jobs
by fhd2 379 days ago
Ha, same. How do you use it? I tried all the fancy context management stuff multiple times, but I mostly just have a chat buffer open and copy paste stuff manually. Text wrangling is so damn efficient in Emacs. I pay around 10$ to Anthropic per month in API tokens for pretty heavy usage. With deliberate context management (I found keeping it small and focused vastly improves responses), cost is really not an issue.

Didn't try anything agentic within Emacs yet, don't find that helpful enough so far.

2 comments

> tried all the fancy context management stuff multiple times, but I mostly just have a chat buffer open and copy paste stuff manually.

As of last week you can insert a link to a plain-text file in a chat buffer to include its contents in the prompt. It must be on a line by itself. In Markdown it looks

[like this](/path/to/file)

with Org links in Org chat buffers.

This feature is disabled by default to minimize confusion. To enable it you can flip the header line button that says "ignoring media" to "sending media". This works for sending images and other media too, if the model supports it.

Nice! I love how practical gptel is :D
> How do you use it?

I have a global bind for gptel-send (C-c g).

Then, in any buffer, I typically type C-u C-c g.

This lets me customize the prompt and lots of parameters, such as the context, before gptel-send is actually called.