AI coding project instructions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mr Pheer
    So Fucking Banned
    • Dec 2002
    • 22083

    #1

    AI coding project instructions

    I've been coding projects with AI for some time now and have had some pretty significant setbacks due to a coding agent losing sight of the goal and adding or taking away project features for no apparent reason as the project grows in size and complexity.

    Sometimes I add a new feature and it removes a previous one. Why? Who fucking knows. Sometimes I fix something then move on and fix something else, and then it breaks the previous thing we just fixed again. Aggravating, to say the least.

    A few days ago, Claude Sonnet (inside Cursor) started talking to itself about my project and went on for 15 minutes just adding random shit like logging and stats and creating a database and a bunch of stuff I didn't ask for, didn't want, and didn't need.

    So, I wrote a clear set of instructions to stop the scope creep (losing sight of the goal) and the removal of things and breaking of others. It's helped me out lot, more than i expected so I'm sharing it here. You can add the instructions to the beginning of your project overview, so that when coding inside of cursor, the AI is much less likely to leave the reservation and start causing havoc and wasted time. it helps me, maybe it helps you.

    ## DEVELOPMENT GUIDELINES - READ FIRST

    ### Strict Development Approach

    1. **Strict Adherence to Requirements**
    - Implement ONLY what is explicitly requested
    - Do not add unrequested features or remove existing ones
    - Always confirm before making significant changes

    2. **Documentation-First Approach**
    - Document current working state before making changes
    - Create clear reference points that can be used if needed
    - Maintain accurate documentation of implemented features

    3. **Incremental Changes with Verification**
    - Make small, testable changes rather than large rewrites
    - Verify each change works before proceeding
    - Include explicit verification steps for each change

    4. **Version Control Checkpoints**
    - Create clear save points before significant changes
    - Use proper branching and versioning practices
    - Enable easy reversion if changes cause issues

    5. **Clear Communication About Tradeoffs**
    - Explain potential issues rather than making unilateral decisions
    - Present options with pros and cons instead of choosing autonomously
    - Seek explicit approval before implementing solutions with tradeoffs

    6. **Preserve Working Functionality**
    - When a feature is fixed, it must remain fixed
    - New features must never break existing functionality
    - Each time a change is made, verify that previously fixed issues have not been reintroduced
    - Run regression tests on previously fixed components after implementing new features

    7. **Anticipate Consequences**
    - Before implementing any change, think through all potential impacts on other system components
    - Identify dependencies between components and how changes might affect them
    - Consider edge cases and failure modes before implementation
    - Develop mitigation strategies for potential negative impacts

    8. **Testing Protocol**
    - After implementing any change, test not just the new feature but all related functionality
    - Maintain a checklist of previously fixed issues to verify after each change
    - Use both automated tests and manual verification when appropriate
    - Document testing results in a consistent format



    This shit should be like common sense for a coding agent, but it clearly is not. If you've spent any time coding with AI then you know what i'm talking about.
  • machinegunkelly
    Confirmed User
    • Jun 2003
    • 3304

    #2
    https://cursor.directory/rules
    dead.

    Comment

    • Mr Pheer
      So Fucking Banned
      • Dec 2002
      • 22083

      #3
      Originally posted by machinegunkelly
      Well damn, i could have used that weeks ago. Ok thanks

      Comment

      • machinegunkelly
        Confirmed User
        • Jun 2003
        • 3304

        #4
        Its still gonna go rogue, but it helps
        dead.

        Comment

        • machinegunkelly
          Confirmed User
          • Jun 2003
          • 3304

          #5
          If ya wanna have some fun.

          Install 'roo' extension in cursor.

          then set up API provider for OpenRouter.

          Then set model to
          https://openrouter.ai/openrouter/quasar-alpha

          ( its a cloaked next gen, so possibly claude 4, GPT 5 etc )

          You can then get one agent coding, and another double checking its work... fuckin bonkers.
          dead.

          Comment

          • bannasource
            Confirmed User
            • Mar 2025
            • 12

            #6
            Good guide, I was expecting something on building a RAG for adult content. If you are working on AI content would love to learn some how to setup guides.
            Future of Payment is No KYC, No Charge Back, No Middle man PayRam Self-hosted Payments

            Comment

            • Mr Pheer
              So Fucking Banned
              • Dec 2002
              • 22083

              #7
              Originally posted by machinegunkelly
              If ya wanna have some fun.

              Install 'roo' extension in cursor.

              then set up API provider for OpenRouter.

              Then set model to
              https://openrouter.ai/openrouter/quasar-alpha

              ( its a cloaked next gen, so possibly claude 4, GPT 5 etc )

              You can then get one agent coding, and another double checking its work... fuckin bonkers.
              Awesome tip right there, thanks

              Comment

              • machinegunkelly
                Confirmed User
                • Jun 2003
                • 3304

                #8
                Originally posted by Mr Pheer
                Awesome tip right there, thanks
                Yea, the muppets on Youtube have been comparing roo vs cursor, not realizing that Cursor is a fork of VSCode so you can install any extension.

                This gets pretty crazy...

                Report back when your minds been blown


                this also dropped yesterday... apparently really good, tho I have not tried it
                https://openrouter.ai/meta-llama/llama-4-maverick:free
                dead.

                Comment

                • Huggles
                  GFY'S #1 retard
                  • Feb 2003
                  • 12506

                  #9


                  I switched back to the non-MAX version after using it to solve a big issue I had with my automation, but now using the less powerful tool you can totally tell it makes waaaaaay more mistakes and doesn't stay on-focus nearly as much!

                  The MAX versions are awesome, until it keeps calling tool after tool after tool and you're feeding that slot machine .05 at a time!
                  https://3-veo.com/
                  The best AI video maker portal.

                  Comment

                  • blackmonsters
                    Making PHP work
                    • Nov 2002
                    • 20961

                    #10
                    Wow, who knew this could happen?

                    Free Open Source Live Aggregated Cams Script (FOSLACS)

                    Comment

                    • Huggles
                      GFY'S #1 retard
                      • Feb 2003
                      • 12506

                      #11
                      An anti-"flailing" plugin would be nice for when you're on the MAX $0.05 mode and the Agent starts throwing everything it has at an issue and loads up a bunch of tool calls when another AI could probably cancel it and re-explain what to do and not to try and call tools over and over and over when it costs 5 cents per call!

                      I bet people are getting nailed, BIGLY, by that.
                      https://3-veo.com/
                      The best AI video maker portal.

                      Comment

                      • ANAL PASTE
                        Confirmed User
                        • Mar 2006
                        • 9070

                        #12
                        AI is there to help you code, not code for you. You can't read simple Visio flowchart but think some AI can just "code my work for me so I don't have to work"?
                        SEE YOU IN VALHALLA, BRO

                        Comment

                        Working...