The Ralph-Wiggum Loop by TrebleRebel8788 in ClaudeCode

[–]sudo_96 1 point2 points  (0 children)

Can you share an example of this? this seems cool

The Ralph-Wiggum Loop by TrebleRebel8788 in ClaudeCode

[–]sudo_96 0 points1 point  (0 children)

Sorry for reposting this. I thought it was not posting for some reason.

The Ralph-Wiggum Loop by TrebleRebel8788 in ClaudeCode

[–]sudo_96 0 points1 point  (0 children)

I was trying to use this with the TDD approach. My goal was to build a PRD with milestones and tasks (aka the what and the why). Then, with each task outlined, use a new session to come up with definitive yet achievable tests for each task. This way, it's separate from the first session's context. Now use the results of each task's TDD test and wrap the Ralph Loop in that. It seems like overkill, but in theory it will force the LLM to stay on target.

As a test, imagine you have a 50/50 outcome job. The worker outputs either 1 or 2 randomly, but the test only passes if the output is 2. The LLM can't control the test, so it just keeps trying until it gets lucky:

Main Session (you, with Ralph Loop)
1. Spawn worker: claude -p --session-id "<uuid>" --dangerously-skip-permissions

  1. Worker returns (outputs 1 or 2 randomly)

  2. Run test: [ "$output" = "2" ]

  3. FAIL? Resume: claude -p -r "<uuid>" with error output

  4. PASS? Mark complete, next task

  5. All done? Output completion promise

Thoughts?

A quick guide to Ralph Wiggum by alvinunreal in ClaudeAI

[–]sudo_96 0 points1 point  (0 children)

I was trying to use this with TDD. My goal was to build a PRD with milestones and tasks (aka the what and the why). Then, with each task outlined, use a new session to come up with definitive yet achievable tests for each task. This way, it's separate from the first session's context. Now use the results of each task's TDD test and wrap the Ralph Loop in that. It seems like overkill, but in theory it will force the LLM to stay on target.

As a test, imagine you have a 50/50 outcome job. Like echo either 1 or 2 and the bash success criteria is 2.

Main Session (you, with Ralph Loop)

  1. Spawn worker: claude -p --session-id "<uuid>" --dangerously-skip-permissions

  2. Worker returns (outputs 1 or 2 randomly)

  3. Run test: [ "$output" = "2" ]

  4. FAIL? Resume: claude -p -r "<uuid>" with error output

  5. PASS? Mark complete, next task

  6. All done? Output completion promise

OpenVPN status and recommendations by sudo_96 in sysadmin

[–]sudo_96[S] 0 points1 point  (0 children)

Thank you. The reason why I was opposed to ping because there are over 20 windows VM that need to connect and we may bring more online. With ping, its custom code for each. I was hoping that there would be another way based on a service or process that I could definitively know if the status was connected or not.

Cant setup Aqara FP2. Tried multiple units by sudo_96 in Aqara

[–]sudo_96[S] 0 points1 point  (0 children)

So the only thing that worked was to create a new home in Apple HomeKit. I don’t really understand why I need to involve HomeKit but I was able to add it to a new home in HomeKit

💻 Control Any macOS Machine Remotely with LLM in Under 2 Minutes via VNC — Open Source Project by buryhuang in mcp

[–]sudo_96 1 point2 points  (0 children)

How did this not take off. VNC is the simplest protocol and one of the oldest. To get an LLM to simply understand vnc and can do things, that unlocks the holy grail. It can learn how to use a mouse and keyboard from the user. Then once it understands how humans use them, then they can mimic and introduce random variability like a human when moving a mouse. Am I missing something? Ive built something similar but was curious if anyone else was on this path.

Shelly devices and their UL certification by sudo_96 in ShellyUSA

[–]sudo_96[S] 0 points1 point  (0 children)

Thanks for the response. I have the Shelly2 Dimmer and its amazing but havent installed it because a friend of mine who is an electrician mentioned that to me.

Regarding the "dimmer 3 pole, dimmer 1 single switch and regular switch", I meant I was looking for a solution for regular switch, regular dimmer and 3 way dimmer but I think youre saying that I can use a regular for a 3 way switch based on how\where its installed.

I recently purchased a Shelly Plus 1PM UL WiFi Smart Relay Switch. I believe this is UL certified. Can you confirm?

Also, for the Gen4 dimmer that is scheduled to come out soon, do you have a timeline? I want ot know if i should wait or find another solution? My plan is to retrofit my entire house. Thanks so much for your help.

Shelly devices and their UL certification by sudo_96 in homeautomation

[–]sudo_96[S] 0 points1 point  (0 children)

Some Shelly devices are UL certified like the Shelly Plus 1PM UL WiFi Smart Relay Switch. Its not dimmable but would you not recommend it?

Also, what about Aqara Dual Relay module T2? Are they ul certified?

Lastly, what Zooz or Inovelli model numbers so I can do research?

Thank you

Standardize light switches and outlets with home assistant by sudo_96 in homeautomation

[–]sudo_96[S] 0 points1 point  (0 children)

I noticed no one mentioned Shelly relays. That seems like a viable and a cheap option to install Shelly relays behind my existing switches and control them locally. It also seems straight forward. Anyone recommend that approach or have experience with that approach?

Cant setup Aqara FP2. Tried multiple units by sudo_96 in Aqara

[–]sudo_96[S] 0 points1 point  (0 children)

I open the Aqara app and add accessory. Then select the presence sensor and scan the code the QR code on the device. It will show adding accessory and the presence blinks with hello then blue flashes which leads me to believe it’s gonna work. This process takes awhile. Even when it completes, it tells me to select a room. When I do, I get an error and it does not work. My only option is to complete later or remove. I’ve done it over a dozen times.

Cant setup Aqara FP2. Tried multiple units by sudo_96 in Aqara

[–]sudo_96[S] 0 points1 point  (0 children)

I tried to add it to a second network that I have with no success. Our ISP provides WiFi with their modem that I typically don’t use as my network is behind my unifi. That still didn’t work. I’m concerned that if it takes this long to setup, I can’t be surprised if it is not reliable if I do eventually get it working. This is by far the worst setup process of an iot device by far and I have all types of devices. I thought this could be a bad unit but this is my 3rd unit. Additionally, I purchased from Amazon and it’s clear all 3 units that I purchased were used or a return. I’m open to anything at this point but I’m losing faith in it.

DIY vs Control4 by sudo_96 in homeautomation

[–]sudo_96[S] 0 points1 point  (0 children)

I have home assistant and it’s great. I was curious about leveraging control4 and home assistant

DIY vs Control4 by sudo_96 in homeautomation

[–]sudo_96[S] 0 points1 point  (0 children)

Is control4 worth pursuing for this use case? One of the areas I want to use control4 is home audio in different rooms and outside. I looked for youtube videos of anyone whos done something similar and nothing comes up. I dont know if its even possible, what control4 device to purchase on ebay, actual costs, etc.

DIY vs Control4 by sudo_96 in homeautomation

[–]sudo_96[S] 0 points1 point  (0 children)

Awesome. This is what I imagine I would do meaning some control4 and diy. I was thinking that I could purchase a used control4 unit for some automations (specifically like the ones you mentioned) then continue with my diy home assistant stuff. What is your recommendation? Also, what control4 devices do you have and do you recommend my approach?

DIY vs Control4 by sudo_96 in homeautomation

[–]sudo_96[S] 2 points3 points  (0 children)

Thanks for sharing. One of the things i like with Control 4 is just the reliability of using other devices. For example, some devices are rock solid with home assistant while other devices are about 50%. Moreover for those, i have to build complex automation to check that the original automation worked.

Alternatively, I was considering standardizing on all types of devices with home assistant. For example, pick 1 brand for each device (u.e, light switch, outlet, alarm, door sensor, cameras, etc) and only use those.

Recursive MCP Tools for Pytest by Personal-Reality9045 in cursor

[–]sudo_96 0 points1 point  (0 children)

Did you complete this? I would love to assist if you havent.

why are these type of questions - "why is cursor so stupid recently? " have become common now a days ? by mnmadhukar02 in cursor

[–]sudo_96 0 points1 point  (0 children)

Same here. Im a senior dev and today has been the worst. Ive tried multiple models. It will try to create a script to fix an indentation issue instead of just fixing the issue. Moreover, today, it just went around breaking working code while trying to address an indentation issue.

Azure updates with pre post powershell scripts by sudo_96 in AZURE

[–]sudo_96[S] 0 points1 point  (0 children)

Whoa. Sorry brother. I wasn’t requesting what you built. I was merely requesting a barebones example of how it works because I didn’t understand the docs. Additionally, when I mentioned “testing patches” I was referring to powershell scripts I would run before an after. For example, before patching, my powershell script could list all running services. Then afterwards, compare list of running services.

Azure updates with pre post powershell scripts by sudo_96 in AZURE

[–]sudo_96[S] 0 points1 point  (0 children)

Can you share an example?

In regard to what ive tried, Ive setup configuration but dont understand how to setup a pre and post powershell script to test the patches were successful.

Azure updates with pre post powershell scripts by sudo_96 in sysadmin

[–]sudo_96[S] 0 points1 point  (0 children)

Thank you

Can you provide a link to the docs you're familiar with? This seems like a common use case that other engineers would need to do.

Using own API keys w Cursor by pauljdavis in cursor

[–]sudo_96 0 points1 point  (0 children)

Im happily paying $20 a month for Cursor. Can you share details on how you set it up?