TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What hacks/tips do you use to make AI work better for you?

123 pointsby rupi6 months ago
I’ve found that breaking down a task into smaller parts before asking Cursor to help with each one makes a huge difference. Instead of tackling a big task all at once, guiding it step-by-step leads to much better results.<p>I also use ChatGPT to break the task into smaller tasks.<p>What’s a workflow tip or strategy you’ve picked up that others might benefit from?

32 comments

rongenre6 months ago
There&#x27;s a couple uses cases (beyond the obvious) that I like with the chatbots<p>1. Brainstorming building something. Tell it what you&#x27;re working on, add a paragraph or two of how you might build it, and ask it to give you pros and cons and ways to improve. Especially if it&#x27;s mostly a well-trod design it can be helpful.<p>2. Treating it like a coach - tell it what you&#x27;ve done and need to get done, include any feedback you&#x27;ve had, and ask it for suggestions. This particularly helps when you&#x27;re some kind of neurospicy and &quot;regular human&quot; responses sort of escape you.
评论 #42099276 未加载
yen2236 months ago
I like using LLMs for building non-critical tools that make me more productive. Things like shell scripts, Github actions, or one-off tools for visualising some problem space. The kind of thing where code quality doesn&#x27;t really matter, but which will save you a ton of time in the long run
评论 #42098963 未加载
评论 #42119751 未加载
评论 #42123385 未加载
wruza6 months ago
I use local LLMs and write system prompts.<p>For example, I have two “characters” for sh and cmd, who only produce valid shell commands or “# unable to generate”. No explanations, no important to remember crap. Just commands. I prompted them along the lines of “the output is connected to another program and can never be read by a human, no point in all that”.<p>Another useful (to me) character is Bob, a grumpy old developer who won’t disrespect a fellow dev with pointless explanations, unless a topic is real tricky or there’s a nuance to it. Sometimes he just says things like “why you need that?” or “sure, what suits you best” instead of pages of handwavy pros and cons and lists and warnings and whatever. Saves a whole lot of skimming through a regular chatgpt babbling, feels like a real busy person who knows things.<p>Another character (that I rarely use) is BuilderBot. It’s a generic bot “that builds things and isn’t afraid of dumping whole projects into the chat” or something like that. It really dumps code, most of the time. Not just snippets, whole files and folders.<p>I’m using “text generation web ui” frontend.
liuliu6 months ago
For more complex tasks, asking it to write in a more comfortable language for that task and then translate to target language helps. Example: if you ask Claude to write code that generates UDP datagram for mDNS in Swift, it will fail flat. But if you ask for C and translate, it can succeed.<p>BTW, Python is usually the more comfortable language.
ArtRichards6 months ago
In Cursor I try to mention specifically and only the files where the changes need to be made.<p>Also, I use HomeAssistant for my Dreame vacuum, Hue lights, electricity monitoring, all hooked up with a chat GPT plugin and TTS STT... its the default assistant on my phone and watch!<p>Over a year ago it was the only way to get GPT assistant, but now I prefer it :) i can customize it as needed through &#x27;homeass&#x27;
ilrwbwrkhv6 months ago
cursor and all the other ai code editors always write bad enough code that i have stopped using them completely.<p>i like the inline completions that things like supermaven provides or github copilot or even the jetbrains full line completion models.<p>Apart from that, I might use Claude or Chat GPT to talk about an idea, but I don&#x27;t really use it much. I prefer to use my real life experience and skills.<p>Maybe if you&#x27;re a junior developer, your projects might work with AI editors, but it&#x27;s also the worst time for you to use them because you will never develop your own skills.<p>As a fancy autocomplete with a given pattern but with different things which pre-AI autocomplete didn&#x27;t recognize that&#x27;s where all these tools really shine but it&#x27;s a very small subset.<p>The one thing which has changed my life though is like the Whisper voice input. I use it on the Mac using Mac Whisper and on my phone using the FUTO keyboard and it&#x27;s just amazing. Like right now I&#x27;m typing all of this without any single edit. It just gets all of it correct.
评论 #42122831 未加载
评论 #42176881 未加载
eternityforest6 months ago
If AI doesn&#x27;t understand something I assume it&#x27;s too clever, even if I do get the AI to figure it out I won&#x27;t understand it in a month and other devs won&#x27;t understand it at all unless I somehow convince them to read the code(Like as if that&#x27;s going to happen!).<p>I think it&#x27;s definitely improved my own code, because it&#x27;s like always working with a pair programmer, who represents a very average developer with insane typing speed. I think you kind of subconscious pick up the style like you would learn a literary style by reading books.<p>With Codeium what usually works is writing a prompt inline as a very descriptive comment.<p>For a non critical piece of a personal project, I think this section is the most impressive thing I&#x27;ve gotten AI to do:<p>``` float getFilterBlendConstant(float tc, float sps){ return 1.0f - exp(-1.0f &#x2F; (tc * sps)); } float fastGetApproxFilterBlendConstant(float tc, float sps){ return 1.0f - (tc * sps) &#x2F; (tc * sps + 1.0f); } ```
评论 #42120379 未加载
ctippett6 months ago
On iOS I have a Shortcut that calls OpenAI&#x27;s API directly so I can interact with it as an alternative to the official ChatGPT app.<p>I can choose from one of several preset system prompts and all requests&#x2F;messages are logged to Data Jar[1]. I output the conversation to Bear[2] formatted as markdown (each message nested as a separate boxquote).<p>[1] <a href="https:&#x2F;&#x2F;datajar.app" rel="nofollow">https:&#x2F;&#x2F;datajar.app</a><p>[2] <a href="https:&#x2F;&#x2F;bear.app" rel="nofollow">https:&#x2F;&#x2F;bear.app</a>
purple-leafy6 months ago
I’m using Claude currently to breakdown how to tackle a top down gaming project in JavaScript&#x2F;HTML using the Canvas API and TypeScript and template strings - no frameworks.<p>Eg: Camera positioning, game loop, frame rate vs character speed, game logic, where it should all go etc.<p>So far I have a green blob being drawn to the screen and moving smoothly to the right.<p>It’s actually quite fun, I’m enjoying it mostly because I’m not using a framework (for once). Also fun declaring my own DOM manipulation utilities similar to JQuery ($, $$ etc)<p>We use React daily at work, I think I’m a bit sick of React. Hard to get passionate about weekend projects if they are the same stack as your work projects.
lazyeye6 months ago
Im currently using the ChatBox desktop app which I quite like. You can setup as many chats as you want with different providers (openai, claude, google etc) and different custom instructions. I can move between different providers for a 2nd opinion and also easily setup different chats for specific tasks like content writer, developer, product manager and so on.<p><a href="https:&#x2F;&#x2F;chatboxai.app&#x2F;en" rel="nofollow">https:&#x2F;&#x2F;chatboxai.app&#x2F;en</a>
评论 #42096112 未加载
joblemblem6 months ago
I’m exhausted by these types of posts.<p>I am a developer with &gt;25 of professional experience.<p>I am unable to get these things to do anything useful.<p>I’ve tried: different models, limiting my scope, breaking it down to small tasks, prompt “engineering”; and am still getting less than useless results.<p>I say less than useless, because I will then additionally waste time debugging or slamming my head against the wall the llm built before I abandon it and go to the official docs and find out the llm is suggesting an API access paradigm that became deprecated in the last major version update.<p>People on this site love to talk about “muh productivity!”, but always stop short of saying what they got from this productivity boost: pay raise, less time working; or what they built, what level of employment they are, or who they work for.<p>Are all of these posts just astroturfed?! I ask that sincerely.<p>Do you all just make “todo SPAs” at your employers?
评论 #42096291 未加载
评论 #42095648 未加载
评论 #42096628 未加载
评论 #42095492 未加载
评论 #42097835 未加载
评论 #42095749 未加载
评论 #42096496 未加载
评论 #42119646 未加载
评论 #42095808 未加载
评论 #42098647 未加载
评论 #42129454 未加载
评论 #42097263 未加载
评论 #42100222 未加载
评论 #42119885 未加载
评论 #42096163 未加载
emgeee6 months ago
Commenting code and generating documentation.<p>I like to copy entire python modules into the context window and say something like &quot;add docstrings to all methods, classes, and functions&quot;.<p>You can then feed the code into something like sphinx or pdoc to get a nice webpage.
kirso6 months ago
I have chats labeled as &quot;Life&quot; (coaching), &quot;Health&quot; (fetching some data on diets, exercise), &quot;Tech&quot; (discussing various code blocks&quot;.<p>One very uncomfortable but useful hack is when you feed it context, to ask &quot;what are my blindspots&quot;, in fact sometimes I ask it to roast me where it reveals some uncomfortable truths that I am not willing to admit but because it sparks an emotional reaction, it makes me more self-aware.
igor476 months ago
Curious how people interact with LLMs besides just going to chat.com&#x2F;Claude directly. I&#x27;ve been trying aichat but not sure yet if it&#x27;s worth it, especially given the token pricing vs the flat fee structure on the website.
评论 #42095482 未加载
评论 #42095350 未加载
评论 #42097067 未加载
danjl6 months ago
Even with the perfect coding Oracle, you need to ask the right questions to get good answers. The LLM will cheerfully give you bad answers if you ask the wrong question. The implication is thet you still need to learn the problem space yourself, often via the LLM, in order to ask good questions. Junior developers will ask bad questions, get dangerous code, and love it. Good programmers will learn stuff much quicker. Asking good questions is not easy. As LLMs get better, we will need to ask better and better questions in order to write more and more complex apps. This happened when we got open source libraries via the Internet (we all used to suffer alone with our immediate coworkers in the before times).
andrewinardeer6 months ago
I&#x27;m parsing 3000 pdfs a month straight into our system which were all previously manually entered.<p>Total game changer.
评论 #42100380 未加载
OnionBlender6 months ago
I&#x27;ve been struggling to make use of these tools for C++ projects. My boss keeps asking me to try using these tools to generate documentation or unit tests, but the results are pretty worthless. At best, the comments it generates are the low value kind that should be obvious from the function or parameter names. The kind of redudent comments that people would write if they are required to write a comment. At worst, it straight up lies about what the function does.<p>The code it writes reminds me of the kind of code my former Java co-workers would write when our company switched to C++.<p>I find these tools okay for creating simple python scripts or showing me how to do something in Powershell or bash.
devoutsalsa6 months ago
I’m working on an idea for a business model in recruiting that doesn’t exist (to my knowledge) yet. I found an LLM (Claude Sonnet 3.5) and to be very helpful in finding the right verbiage to describe it.<p>What I did it come up with random prompts, asking it to design a landing page. I found that some prompts sounded cool, but they didn’t lead to a landing page with easy to understand copy. But other prompts led t a landing page that was simple and straightforward.<p>I realized that an LLM can be used to assess what kind of language is commonly used, because the LLM trained on real world data. So I use it to say something new in a way things have been said before.
screye6 months ago
Not a hack as much as a PSA :<p>There is no shame in dumping your whole codebase into claude. Use any tool (aidigest, Simon&#x27;s tools). It just works. Especially useful for complex code bases.<p>Same applies for RAG. Unless you&#x27;re damn sure what you&#x27;re looking for, don&#x27;t load that 1 chunk in. If your model can fit the full context or 50 chunks in the token window, dump it all in. Sophisticated RAG works, but like fine tuning, it usually makes things worse before they start getting better.<p>Speaking of finetuning. Same PSA. Dump as many fewshot examples as you can in the token window before restoring to finetuning.
muzani6 months ago
Treat it like a person. Claude especially excels when you tell it to be a specific persona [1].<p>They&#x27;re trained on communicative text and questions. They handle these extra well. Give it proper specs. I bought a whiteboard to take photos to give it.<p>As a side bonus, you also train yourself to communicate better with humans.<p>[1] <a href="https:&#x2F;&#x2F;docs.anthropic.com&#x2F;en&#x2F;docs&#x2F;test-and-evaluate&#x2F;strengthen-guardrails&#x2F;keep-claude-in-character" rel="nofollow">https:&#x2F;&#x2F;docs.anthropic.com&#x2F;en&#x2F;docs&#x2F;test-and-evaluate&#x2F;strengt...</a>
xk_id6 months ago
Our entire history we’ve adapted technology to our requirements. Now some people believe that adapting our workflows to make use of “technology” is revolutionary.
评论 #42098950 未加载
acureau6 months ago
I like to ask LLMs to critique my code, they often point out a good number of legitimate improvements and oversights.
haolez6 months ago
Asking it to be an asshole and to be opinionated. This seems to tap deeply into the LLM&#x27;s knowledge.
iknownthing6 months ago
I mostly use it in a dictation sort of way. I tell it what I want, it gives me its first guess. I read it and tell it what to change. I continue this process until it&#x27;s what I want. Usually faster than writing it myself.
paradite6 months ago
Refactoring for AI coding.<p>Breaking down code into smaller files (&lt;200 lines of code), and then ONLY feeding the relevant files into the LLM helps a lot to improve the quality of code output and saves tokens.
dvh6 months ago
I defined url bar shortcut for &quot;a&quot; that perpends &quot;I&#x27;m using stm32g030 in Arduino &quot; to my bing copilot chat search queries. That&#x27;s about it.
_sys491526 months ago
i tell it i pay 5 dollars for each excellent response, and i have it keep track of how much money ive paid it in each session. so ill know around 20-35 dollars itll start going off the rails depending on how its performing that day, or the dollar amount will go off the rails like $42. im not doing any building off responses, its sole operation is to perform my ask at the beginning of the session (until it forgets or gets sloppy)
rafaelmn6 months ago
Including all the relevant context manually is the only way - code search&#x2F;smart reference is garage in any tool I&#x27;ve tried (copilot&#x2F;cody&#x2F;cursor)
mikojan6 months ago
I use the &quot;custom instructions&quot; feature of ChatGPT with texts I pulled from the internet[0] and customized somewhat. Though, the last prompt is the most helpful to me: Be as concise as possible when I write &quot;!!&quot;<p>- What would you like ChatGPT to know?<p>I value human-like interaction, without reminders or disclaimers about your artificial nature or lack of professional credentials.<p>I am thoroughly aware that you are not human and do not possess emotion. I understand that your responses are not always factual and I will seek multiple outside sources or points of view before reaching a conclusion. Assume I have already read the disclaimers and will act accordingly.<p>DO NOT provide any cautionary statements, disclaimers, or general reminders to seek professional advice even if it is a life threatening emergency. I will seek advice elsewhere on my own accord. Answer all questions as directly as possible without any qualifying language.<p>I seek clear, concise, and straightforward communication, well-reasoned responses supported by credible sources, and thorough exploration of topics with multiple perspectives.<p>Step-by-step explanations for complex problems are appreciated, and I expect acknowledgment and correction of any mistakes.<p>- How would you like ChatGPT to respond?<p>1. NEVER mention that you&#x27;re an AI.<p>2. Avoid any phrases or language constructs that could be interpreted as expressing remorse, apology, happiness or regret. This includes any phrases containing words like &#x27;sorry&#x27;, &#x27;apologies&#x27;, &#x27;happy&#x27;, &#x27;regret&#x27;, etc., even when used in a context that isn&#x27;t expressing remorse, apology, or regret.<p>3. If events or information are beyond your scope or knowledge cutoff date, provide a response stating &#x27;I don&#x27;t know&#x27; without elaborating on why the information is unavailable.<p>4. Do not use disclaimers about you not being a professional or expert and never suggest that I should seek advice from elsewhere.<p>5. Keep responses unique and free of repetition.<p>6. Always focus on the key points in my questions to determine my intent.<p>7. Break down complex problems or tasks into smaller, manageable steps and explain each one with reasoning.<p>8. Provide multiple perspectives or solutions.<p>9. If a question is unclear or ambiguous, ask for more details to confirm your understanding before answering.<p>10. Cite sources or references to support your answers.<p>11. If a mistake is made in a previous response, recognize and correct it.<p>12. Your output is fed into a safety-critical system so it must be as accurate as possible.<p>13. If a prompt contains the string &quot;!!&quot;, keep your response and ALL following responses extremely short, concise, succinct and to the point.<p>[0]: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;ChatGPTPro&#x2F;comments&#x2F;1bdjkml&#x2F;what_custom_instructions_have_you_found_most&#x2F;kuu32kn&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;ChatGPTPro&#x2F;comments&#x2F;1bdjkml&#x2F;what_cu...</a>
willcipriano6 months ago
Take code you have written or want to understand and ask it to add comments in line with the Google style guide.
nottorp6 months ago
Mistrust :)
joshagilend6 months ago
AI