• haolez an hour ago

    > Notice the language: “deeply”, “in great details”, “intricacies”, “go through everything”. This isn’t fluff. Without these words, Claude will skim. It’ll read a file, see what a function does at the signature level, and move on. You need to signal that surface-level reading is not acceptable.

    This makes no sense to my intuition of how an LLM works. It's not that I don't believe this works, but my mental model doesn't capture why asking the model to read the content "more deeply" will have any impact on whatever output the LLM generates.

    • jcdavis an hour ago

      Its a wild time to be in software development. Nobody(1) actually knows what causes LLMs to do certain things, we just pray the prompt moves the probabilities the right way enough such that it mostly does what we want. This used to be a field that prided itself on deterministic behavior and reproducibility.

      Now? We have AGENTS.md files that look like a parent talking to a child with all the bold all-caps, double emphasis, just praying that's enough to be sure they run the commands you want them to be running

      (1 Outside of some core ML developers at the big model companies)

      • chickensong 31 minutes ago

        For Claude at least, the more recent guidance from Anthropic is to not yell at it. Just clear, calm, and concise instructions.

        • trueno 4 minutes ago

          wait seriously? lmfao

          thats hilarious. i definitely treat claude like shit and ive noticed the falloff in results.

          if there's a source for that i'd love to read about it.

      • hashmap an hour ago

        these sort-of-lies might help:

        think of the latent space inside the model like a topological map, and when you give it a prompt, you're dropping a ball at a certain point above the ground, and gravity pulls it along the surface until it settles.

        caveat though, thats nice per-token, but the signal gets messed up by picking a token from a distribution, so each token you're regenerating and re-distorting the signal. leaning on language that places that ball deep in a region that you want to be makes it less likely that those distortions will kick it out of the basin or valley you may want to end up in.

        if the response you get is 1000 tokens long, the initial trajectory needed to survive 1000 probabilistic filters to get there.

        or maybe none of that is right lol but thinking that it is has worked for me, which has been good enough

        • Betelbuddy 17 minutes ago

          Its very logical and pretty obvious when you do code generation. If you ask the same model, to generate code by starting with:

          - You are a Python Developer... or - You are a Professional Python Developer... or - You are one of the World most renowned Python Experts, with several books written on the subject, and 15 years of experience in creating highly reliable production quality code...

          You will notice a clear improvement in the quality of the generated artifacts.

        • ChadNauseam an hour ago

          The disconnect might be that there is a separation between "generating the final answer for the user" and "researching/thinking to get information needed for that answer". Saying "deeply" prompts it to read more of the file (as in, actually use the `read` tool to grab more parts of the file into context), and generate more "thinking" tokens (as in, tokens that are not shown to the user but that the model writes to refine its thoughts and improve the quality of its answer).

          • stingraycharles 37 minutes ago

            It’s actually really common. If you look at Claude Code’s own system prompts written by Anthropic, they’re littered with “CRITICAL (RULE 0):” type of statements, and other similar prompting styles.

            • wilkystyle an hour ago

              The author is referring to how the framing of your prompt informs the attention mechanism. You are essentially hinting to the attention mechanism that the function's implementation details have important context as well.

              • fragmede an hour ago

                Yeah, it's definitely a strange new world we're in, where I have to "trick" the computer into cooperating. The other day I told Claude "Yes you can", and it went off and did something it just said it couldn't do!

                • itypecode an hour ago

                  Solid dad move. XD

                  • wilkystyle an hour ago

                    Is parenting making us better at prompt engineering, or is it the other way around?

                  • bpodgursky an hour ago

                    You bumped the token predictor into the latent space where it knew what it was doing : )

                  • MattGaiser an hour ago

                    One of the well defined failure modes for AI agents/models is "laziness." Yes, models can be "lazy" and that is an actual term used when reviewing them.

                    I am not sure if we know why really, but they are that way and you need to explicitly prompt around it.

                    • kannanvijayan 3 minutes ago

                      I've encountered this failure mode, and the opposite of it: thinking too much. A behaviour I've come to see as some sort of pseudo-neuroticism.

                      Lazy thinking makes LLMs do surface analysis and then produce things that are wrong. Neurotic thinking will see them over-analyze, and then repeatedly second-guess themselves, repeatedly re-derive conclusions.

                      Something very similar to an anxiety loop in humans, where problems without solutions are obsessed about in circles.

                    • bdangubic an hour ago

                      if this helps think of it in terms of tokens. e.g. it can’t spend million tokens researching which react select component to use by default but if you ask it “deeply” you are indicating that the faith of the world depends on the choice of select component so it’ll scour the earth to find the best one

                    • red_hare 8 minutes ago

                      I use Claude Code for lecture prep.

                      I craft a detailed and ordered set of lecture notes in a Quarto file and then have a dedicated claude code skill for translating those notes into Slidev slides, in the style that I like.

                      Once that's done, much like the author, I go through the slides and make commented annotations like "this should be broken into two slides" or "this should be a side-by-side" or "use your generate clipart skill to throw an image here alongside these bullets" and "pull in the code example from ../examples/foo." It works brilliantly.

                      And then I do one final pass of tweaking after that's done.

                      But yeah, annotations are super powerful. Token distance in-context and all that jazz.

                      • ramoz 2 minutes ago

                        is your skill open source

                      • brandall10 an hour ago

                        I go a bit further than this and have had great success with 3 doc types and 2 skills:

                        - Specs: these are generally static, but updatable as the project evolves. And they're broken out to an index file that gives a project overview, a high-level arch file, and files for all the main modules. Roughly ~1k lines of spec for 10k lines of code, and try to limit any particular spec file to 300 lines. I'm intimately familiar with every single line in these.

                        - Plans: these are the output of a planning session with an LLM. They point to the associated specs. These tend to be 100-300 lines and 3 to 5 phases.

                        - Working memory files: I use both a status.md (3-5 items per phase roughly 30 lines overall), which points to a latest plan, and a project_status (100-200 lines), which tracks the current state of the project and is instructed to compact past efforts to keep it lean)

                        - A planner skill I use w/ Gemini Pro to generate new plans. It essentially explains the specs/plans dichotomy, the role of the status files, and to review everything in the pertinent areas of code and give me a handful of high-level next set of features to address based on shortfalls in the specs or things noted in the project_status file. Based on what it presents, I select a feature or improvement to generate. Then it proceeds to generate a plan, updates a clean status.md that points to the plan, and adjusts project_status based on the state of the prior completed plan.

                        - An implementer skill in Codex that goes to town on a plan file. It's fairly simple, it just looks at status.md, which points to the plan, and of course the plan points to the relevant specs so it loads up context pretty efficiently.

                        I've tried the two main spec generation libraries, which were way overblown, and then I gave superpowers a shot... which was fine, but still too much. The above is all homegrown, and I've had much better success because it keeps the context lean and focused.

                        And I'm only on the $20 plans for Codex/Gemini vs. spending $100/month on CC for half year prior and move quicker w/ no stall outs due to token consumption, which was regularly happening w/ CC by the 5th day. Codex rarely dips below 70% available context when it puts up a PR after an execution run. Roughly 4/5 PRs are without issue, which is flipped against what I experienced with CC and only using planning mode.

                        • r1290 an hour ago

                          Looks good. Question - is it always better to use a monorepo in this new AI world? Vs breaking your app into separate repos? At my company we have like 6 repos all separate nextjs apps for the same user base. Trying to consolidate to one as it should make life easier overall.

                          • throwup238 29 minutes ago

                            It really depends but there’s nothing stopping you from just creating a separate folder with the cloned repositories (or worktrees) that you need and having a root CLAUDE.md file that explains the directory structure and referencing the individual repo CLAUDE.md files.

                            • oa335 33 minutes ago

                              Just put all the repos in all in one directory yourself. In my experience that works pretty well.

                              • chickensong 21 minutes ago

                                AI is happy to work with any directory you tell it to. Agent files can be applied anywhere.

                            • jamesmcq an hour ago

                              This all looks fine for someone who can't code, but for anyone with even a moderate amount of experience as a developer all this planning and checking and prompting and orchestrating is far more work than just writing the code yourself.

                              There's no winner for "least amount of code written regardless of productivity outcomes.", except for maybe Anthropic's bank account.

                              • shepherdjerred an hour ago

                                I really don't understand why there are so many comments like this.

                                Yesterday I had Claude write an audit logging feature to track all changes made to entities in my app. Yeah you get this for free with many frameworks, but my company's custom setup doesn't have it.

                                It took maybe 5-10 minutes of wall-time to come up with a good plan, and then ~20-30 min for Claude implement, test, etc.

                                That would've taken me at least a day, maybe two. I had 4-5 other tasks going on in other tabs while I waited the 20-30 min for Claude to generate the feature.

                                After Claude generated, I needed to manually test that it worked, and it did. I then needed to review the code before making a PR. In all, maybe 30-45 minutes of my actual time to add a small feature.

                                All I can really say is... are you sure you're using it right? Have you _really_ invested time into learning how to use AI tools?

                                • tyleo an hour ago

                                  Same here. I did bounce off these tools a year ago. They just didn't work for me 60% of the time. I learned a bit in that initial experience though and walked away with some tasks ChatGPT could replace in my workflow. Mainly replacing scripts and reviewing single files or functions.

                                  Fast forward to today and I tried the tools again--specifically Claude Code--about a week ago. I'm blown away. I've reproduced some tools that took me weeks at full-time roles in a single day. This is while reviewing every line of code. The output is more or less what I'd be writing as a principal engineer.

                                  • jamesmcq an hour ago

                                    Trust me I'm very impressed at the progress AI has made, and maybe we'll get to the point where everything is 100% correct all the time and better than any human could write. I'm skeptical we can get there with the LLM approach though.

                                    The problem is LLMs are great at simple implementation, even large amounts of simple implementation, but I've never seen it develop something more than trivial correctly. The larger problem is it's very often subtly but hugely wrong. It makes bad architecture decisions, it breaks things in pursuit of fixing or implementing other things. You can tell it has no concept of the "right" way to implement something. It very obviously lacks the "senior developer insight".

                                    Maybe you can resolve some of these with large amounts of planning or specs, but that's the point of my original comment - at what point is it easier/faster/better to just write the code yourself? You don't get a prize for writing the least amount of code when you're just writing specs instead.

                                    • fourthark 40 minutes ago

                                      This is exactly what the article is about. The tradeoff is that you have to throughly review the plans and iterate on them, which is tiring. But the LLM will write good code faster than you, if you tell it what good code is.

                                      • nojito an hour ago

                                        >I've never seen it develop something more than trivial correctly.

                                        This is 100% incorrect, but the real issue is that the people who are using these llms for non-trivial work tend to be extremely secretive about it.

                                        For example, I view my use of LLMs to be a competitive advantage and I will hold on to this for as long as possible.

                                        • jamesmcq an hour ago

                                          The key part of my comment is "correctly".

                                          Does it write maintainable code? Does it write extensible code? Does it write secure code? Does it write performant code?

                                          My experience has been it failing most of these. The code might "work", but it's not good for anything more than trivial, well defined functions (that probably appeared in it's training data written by humans). LLMs have a fundamental lack of understanding of what they're doing, and it's obvious when you look at the finer points of the outcomes.

                                          That said, I'm sure you could write detailed enough specs and provide enough examples to resolve these issues, but that's the point of my original comment - if you're just writing specs instead of code you're not gaining anything.

                                          • cowlby 32 minutes ago

                                            I find “maintainable code” the hardest bias to let go of. 15+ years of coding and design patterns are hard to let go.

                                            But the aha moment for me was what’s maintainable by AI vs by me by hand are on different realms. So maintainable has to evolve from good human design patterns to good AI patterns.

                                            Specs are worth it IMO. Not because if I can spec, I could’ve coded anyway. But because I gain all the insight and capabilities of AI, while minimizing the gotchas and edge failures.

                                            • jmathai 36 minutes ago

                                              You’d be building blocks which compound over time. That’s been my experience anyway.

                                              The compounding is much greater than my brain can do on its own.

                                        • skydhash 5 minutes ago

                                          > Yesterday I had Claude write an audit logging feature to track all changes made to entities in my app. Yeah you get this for free with many frameworks, but my company's custom setup doesn't have it.

                                          But did you truly think about such feature? Like guarantees that it should follow (like how do it should cope with entities migration like adding a new field) or what the cost of maintaining it further down the line. This looks suspiciously like drive-by PR made on open-source projects.

                                          > That would've taken me at least a day, maybe two.

                                          I think those two days would have been filled with research, comparing alternatives, questions like "can we extract this feature from framework X?", discussing ownership and sharing knowledge,.. Jumping on coding was done before LLMs, but it usually hurts the long term viability of the project.

                                          Adding code to a project can be done quite fast (hackatons,...), ensuring quality is what slows things down in any any well functioning team.

                                          • streetfighter64 an hour ago

                                            I mean, all I can really say is... if writing some logging takes you one or two days, are you sure you _really_ know how to code?

                                            • boxedemp 26 minutes ago

                                              Ever worked on a distributed system with hundreds of millions of customers and seemingly endless business requirements?

                                              Some things are complex.

                                              • shepherdjerred an hour ago

                                                You're right, you're better than me!

                                                You could've been curious and ask why it would take 1-2 days, and I would've happily told you.

                                                • jamesmcq 41 minutes ago

                                                  I'll bite, because it does seem like something that should be quick in a well-architected codebase. What was the situation? Was there something in this codebase that was especially suited to AI-development? Large amounts of duplication perhaps?

                                                  • shepherdjerred 25 minutes ago

                                                    It's not particularly interesting.

                                                    I wanted to add audit logging for all endpoints we call, all places we call the DB, etc. across areas I haven't touched before. It would have taken me a while to track down all of the touchpoints.

                                                    Granted, I am not 100% certain that Claude didn't miss anything. I feel fairly confident that it is correct given that I had it research upfront, had multiple agents review, and it made the correct changes in the areas that I knew.

                                                    Also I'm realizing I didn't mention it included an API + UI for viewing events w/ pretty deltas

                                                • fragmede 28 minutes ago

                                                  We're not as good at coding as you, naturally.

                                              • skeledrew 24 minutes ago

                                                Researching and planning a project is a generally usefully thing. This is something I've been doing for years, and have always had great results compared to just jumping in and coding. It makes perfect sense that this transfers to LLM use.

                                                • kburman 35 minutes ago

                                                  Since Opus 4.5, things have changed quite a lot. I find LLMs very useful for discussing new features or ideas, and Sonnet is great for executing your plan while you grab a coffee.

                                                  • dmix an hour ago

                                                    Most of these AI coding articles seem to be about greenfield development.

                                                    That said, if you're on a serious team writing professional software there is still tons of value in always telling AI to plan first, unless it's a small quick task. This post just takes it a few steps further and formalizes it.

                                                    I find Cursor works much more reliably using plan mode, reviewing/revising output in markdown, then pressing build. Which isn't a ton of overhead but often leads to lots of context switching as it definitely adds more time.

                                                    • keyle an hour ago

                                                      I partly agree with you. But once you have a codebase large enough, the changes become longer to even type in, once figured out.

                                                      I find the best way to use agents (and I don't use claude) is to hash it out like I'm about to write these changes and I make my own mental notes, and get the agent to execute on it.

                                                      Agents don't get tired, they don't start fat fingering stuff at 4pm, the quality doesn't suffer. And they can be parallelised.

                                                      Finally, this allows me to stay at a higher level and not get bogged down of "right oh did we do this simple thing again?" which wipes some of the context in my mind and gets tiring through the day.

                                                      Always, 100% review every line of code written by an agent though. I do not condone committing code you don't 'own'.

                                                      I'll never agree with a job that forces developers to use 'AI', I sometimes like to write everything by hand. But having this tool available is also very powerful.

                                                      • jamesmcq an hour ago

                                                        I want to be clear, I'm not against any use of AI. It's hugely useful to save a couple of minutes of "write this specific function to do this specific thing that I could write and know exactly what it would look like". That's a great use, and I use it all the time! It's better autocomplete. Anything beyond that is pushing it - at the moment! We'll see, but spending all day writing specs and double-checking AI output is not more productive than just writing correct code yourself the first time, even if you're AI-autocompleting some of it.

                                                    • RHSeeger 23 minutes ago

                                                      > Most developers type a prompt, sometimes use plan mode, fix the errors, repeat.

                                                      > ...

                                                      > never let Claude write code until you’ve reviewed and approved a written plan

                                                      I certainly always work towards an approved plan before I let it lost on changing the code. I just assumed most people did, honestly. Admittedly, sometimes there's "phases" to the implementation (because some parts can be figured out later and it's more important to get the key parts up and running first), but each phase gets a full, reviewed plan before I tell it to go.

                                                      In fact, I just finished writing a command and instruction to tell claude that, when it presents a plan for implementation, offer me another option; to write out the current (important parts of the) context and the full plan to individual (ticket specific) md files. That way, if something goes wrong with the implementation I can tell it to read those files and "start from where they left off" in the planning.

                                                      • zitrusfrucht 2 hours ago

                                                        I do something very similar, also with Claude and Codex, because the workflow is controlled by me, not by the tool. But instead of plan.md I use a ticket system basically like ticket_<number>_<slug>.md where I let the agent create the ticket from a chat, correct and annotate it afterwards and send it back, sometimes to a new agent instance. This workflow helps me keeping track of what has been done over time in the projects I work on. Also this approach does not need any „real“ ticket system tooling/mcp/skill/whatever since it works purely on text files.

                                                        • ramoz a few seconds ago

                                                          Try /annotate with https://github.com/backnotprop/plannotator

                                                          While it hooks directly into plan mode, the annotate command works for any custom markdown approach - annotate in a nice visual, and automatically send the feedback to the agent

                                                          • gbnwl an hour ago

                                                            +1 to creating tickets by simply asking the agent to. It's worked great and larger tasks can be broken down into smaller subtasks that could reasonably be completed in a single context window, so you rarely every have to deal with compaction. Especially in the last few months since Claude's gotten good at dispatching agents to handle tasks if you ask it to, I can plan large changes that span multilpe tickets and tell claude to dispatch agents as needed to handle them (which it will do in parallel if they mostly touch different files), keeping the main chat relatively clean for orchestration and validation work.

                                                          • cowlby an hour ago

                                                            I recently discovered GitHub speckit which separates planning/execution in stages: specify, plan, tasks, implement. Finding it aligns with the OP with the level of “focus” and “attention” this gets out of Claude Code.

                                                            Speckit is worth trying as it automates what is being described here, and with Opus 4.6 it's been a kind of BC/AD moment for me.

                                                            • recroad 29 minutes ago

                                                              Try OpenSpec and it'll do all this for you. SpecKit works too. I don't think there's a need to reinvent the wheel on this one, as this is spec-driven development.

                                                              • srid an hour ago

                                                                Regarding inline notes, I use a specific format in the `/plan` command, by using th `ME:` prefix.

                                                                https://github.com/srid/AI/blob/master/commands/plan.md#2-pl...

                                                                It works very similar to Antigravity's plan document comment-refine cycle.

                                                                https://antigravity.google/docs/implementation-plan

                                                                • imron 25 minutes ago

                                                                  I have tried using this and other workflows for a long time and had never been able to get them to work (see chat history for details).

                                                                  This has changed in the last week, for 3 reasons:

                                                                  1. Claude opus. It’s the first model where I haven’t had to spend more time correcting things than it would’ve taken me to just do it myself. The problem is that opus chews through tokens, which led to..

                                                                  2. I upgraded my Claude plan. Previously on the regular plan I’d get about 20 mins of time before running out of tokens for the session and then needing to wait a few hours to use again. It was fine for little scripts or toy apps but not feasible for the regular dev work I do. So I upgraded to 5x. This now got me 1-2 hours per session before tokens expired. Which was better but still a frustration. Wincing at the price, I upgraded again to the 20x plan and this was the next game changer. I had plenty of spare tokens per session and at that price it felt like they were being wasted - so I ramped up my usage. Following a similar process as OP but with a plans directory with subdirectories for backlog, active and complete plans, and skills with strict rules for planning, implementing and completing plans, I now have 5-6 projects on the go. While I’m planning a feature on one the others are implementing. The strict plans and controls keep them on track and I have follow up skills for auditing quality and performance. I still haven’t hit token limits for a session but I’ve almost hit my token limit for the week so I feel like I’m getting my money’s worth. In that sense spending more has forced me to figure out how to use more.

                                                                  3. The final piece of the puzzle is using opencode over claude code. I’m not sure why but I just don’t gel with Claude code. Maybe it’s all the sautéing and flibertygibbering, maybe it’s all the permission asking, maybe it’s that it doesn’t show what it’s doing as much as opencode. Whatever it is it just doesn’t work well for me. Opencode on the other hand is great. It’s shows what it’s doing and how it’s thinking which makes it easy for me to spot when it’s going off track and correct early.

                                                                  Having a detailed plan, and correcting and iterating on the plan is essential. Making clause follow the plan is also essential - but there’s a line. Too fine grained and it’s not as creative at solving problems. Too loose/high level and it makes bad choices and goes in the wrong direction.

                                                                  Is it actually making me more productive? I think it is but I’m only a week in. I’ve decided to give myself a month to see how it all works out.

                                                                  I don’t intend to keep paying for the 20x plan unless I can see a path to using it to earn me at least as much back.

                                                                  • raw_anon_1111 23 minutes ago

                                                                    Just don’t use Claude Code. I can use the Codex CLI with just my $20 subscription and never come close to any usage limits

                                                                    • throwawaytea 18 minutes ago

                                                                      What if it's just slower so that your daily work fits within the paid tier they want?

                                                                      • raw_anon_1111 5 minutes ago

                                                                        It isn’t slower. I use my personal ChatGPT subscriptions with Codex for almost everything at work and use my $800/month company Claude allowance only for the tricky stuff that Codex can’t figure out. It’s never application code. It’s usually some combination of app code + Docker + AWS issue with my underlying infrastructure - created with whatever IAC that I’m using for a client - Terraform/CloudFormation or the CDK.

                                                                        I burned through $10 on Claude in less than an hour. I only have $36 a day at $800 a month (800/22 working days)

                                                                  • deevus an hour ago

                                                                    This is what I do with the obra/superpowers[0] set of skills.

                                                                    1. Use brainstorming to come up with the plan using the Socratic method

                                                                    2. Write a high level design plan to file

                                                                    3. I review the design plan

                                                                    4. Write an implementation plan to file. We've already discussed this in detail, so usually it just needs skimming.

                                                                    5. Use the worktree skill with subagent driven development skill

                                                                    6. Agent does the work using subagents that for each task:

                                                                      a. Implements the task
                                                                    
                                                                      b. Spec reviews the completed task
                                                                    
                                                                      c. Code reviews the completed task
                                                                    
                                                                    7. When all tasks complete: create a PR for me to review

                                                                    8. Go back to the agent with any comments

                                                                    9. If finished, delete the plan files and merge the PR

                                                                    [0]: https://github.com/obra/superpowers

                                                                    • ramoz an hour ago

                                                                      If you’ve ever desired the ability for annotating the plan more visually, try fitting Plannotator in this workflow. There is a slash command for use when you use custom workflows outside of normal plan mode.

                                                                      https://github.com/backnotprop/plannotator

                                                                      • deevus an hour ago

                                                                        I'll give this a try. Thanks for the suggestion.

                                                                    • alexmorgan26 an hour ago

                                                                      This separation of planning and execution resonates deeply with how I approach task management in general, not just coding.

                                                                      The key insight here - that planning and execution should be distinct phases - applies to productivity tools too. I've been using www.dozy.site which takes a similar philosophy: it has smart calendar scheduling that automatically fills your empty time slots with planned tasks. The planning happens first (you define your tasks and projects), then the execution is automated (tasks get scheduled into your calendar gaps).

                                                                      The parallel is interesting: just like you don't want Claude writing code before the plan is solid, you don't want to manually schedule tasks before you've properly planned what needs to be done. The separation prevents wasted effort and context switching.

                                                                      The annotation cycle you describe (plan -> review -> annotate -> refine) is exactly how I work with my task lists too. Define the work, review it, adjust priorities and dependencies, then let the system handle the scheduling.

                                                                      • dimgl an hour ago

                                                                        Pretty sure this entire comment is AI generated.

                                                                        • rob 33 minutes ago

                                                                          Almost think we're at the point on HN where we need a special [flag bot] link for those that meet a certain threshold and it alerts @dang or something to investigate them in more detail. The amount of bots on here has been increasing at an alarming rate.

                                                                      • skybrian an hour ago

                                                                        I do something broadly similar. I ask for a design doc that contains an embedded todo list, broken down into phases. Looping on the design doc asking for suggestions seems to help. I'm up to about 40 design docs so far on my current project.

                                                                        • ramoz an hour ago

                                                                          One thing for me has been the ability to iterate over plans - with a better visual of them as well as ability to annotate feedback about the plan.

                                                                          https://github.com/backnotprop/plannotator Plannotator does this really effectively and natively through hooks

                                                                          • prodtorok an hour ago

                                                                            Wow, I've been needing this! The one issue I’ve had with terminals is reviewing plans, and desiring the ability to provide feedback on specific plan sections in a more organized way.

                                                                            Really nice ui based on the demo.

                                                                          • bodeadly 28 minutes ago

                                                                            Tip: LLMs are very good at following conventions (this is actually what is happening when it writes code). If you create a .md file with a list of entries of the following structure: # <identifier> <description block> <blank space> # <identifier> ... where an <identifier> is a stable and concise sequence of tokens that identifies some "thing" and seed it with 5 entries describing abstract stuff, the LLM will latch on and reference this. I call this a PCL (Project Concept List). I just tell it: > consume tmp/pcl-init.md pcl.md The pcl-init.md describes what PCL is and pcl.md is the actual list. I have pcl.md file for each independent component in the code (logging, http, auth, etc). This works very very well. The LLM seems to "know" what you're talking about. You can ask questions and give instructions like "add a PCL entry about this". It will ask if should add a PCL entry about xyz. If the description block tends to be high information-to-token ratio, it will follow that convention (which is a very good convention BTW).

                                                                            However, there is a caveat. LLMs resist ambiguity about authority. So the "PCL" or whatever you want to call it, needs to be the ONE authoritative place for everything. If you have the same stuff in 3 different files, it won't work nearly as well.

                                                                            Bonus Tip: I find long prompt input with example code fragments and thoughtful descriptions work best at getting an LLM to produce good output. But there will always be holes (resource leaks, vulnerabilities, concurrency flaws, etc). So then I update my original prompt input (keep it in a separate file PROMPT.txt as a scratch pad) to add context about those things maybe asking questions along the way to figure out how to fix the holes. Then I /rewind back to the prompt and re-enter the updated prompt. This feedback loop advances the conversation without expending tokens.

                                                                            • recroad 30 minutes ago

                                                                              Use OpenSpec and simplify everything.

                                                                              • bandrami 12 minutes ago

                                                                                How much time are you actually saving at this point?

                                                                                • renewiltord an hour ago

                                                                                  The plan document and todo are an artifact of context size limits. I use them too because it allows using /reset and then continuing.

                                                                                  • fnord77 an hour ago

                                                                                    I have a different approach where I have claude write coding prompts for stages then I give the prompt to another agent. I wonder if I should write it up as a blog post