Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

63% Positive

Analyzed from 3198 words in the discussion.

Trending Topics

#claude#using#run#mac#running#code#usage#agent#don#set

Discussion (107 Comments)Read Original on HackerNews

esaym•about 4 hours ago
Outside of the article's mentioned graphics development, there is no reason to isolate an agent using actual hardware. I threw together this script[0] using libvirt to give claude its own graphical desktop env to be able to do user acceptance testing with Chrome. It has full root and can do what ever. If it makes a mess, I can dump and reinstall in seconds.

0: https://gist.github.com/smith153/04b4068b5a2d7b234f1c3d5992d...

andai•about 3 hours ago
Nice. I just have

  sudo useradd agent

  sudo su agent
So it can blow up its own files, but not mine.

It was also doing some kind of headless Chrome stuff in there. I don't know how that works, but it was taking screenshots iirc.

I did also set up VNC at some point but didn't find it worth using.

>If it makes a mess, I can dump and reinstall in seconds.

This is also true of a $3 VPS, where I found it very amusing to give my agent root. What's the worst that could happen ;)

jfb•about 4 hours ago
You can run macOS in a VM guest on a Mac host; Apple explicitly allows this.
gitowiec•35 minutes ago
Lol :D
mmh0000•about 4 hours ago
This is neat, and thank you for sharing!

I've been wanting to set up something exactly like this for my own use, but... You know, time is limited.

This is just enough scaffolding to have a little project for Monday morning!

esaym•about 3 hours ago
There are many ways and tools on linux to get a "VM" up and running. But with libvirt you can easy script out what the initial environment and network stack is. The heart of it is just running the 'virt-install' command, but as you can see I've got a bunch of other opinionated stuff going on before that.
hangrybear666•42 minutes ago
You mean you had claude throw together a script because this is heavily generated. Lost interest after about 250 lines, it's just tiresome reading through this incoherent amalgamation
esaym•29 minutes ago
Yeah bro, you can just use AI!
catoc•about 5 hours ago
I just cannot come up with a good AI-is-actually-24/7-helping-me-out use case.

Please help: I wánt to need this!

ianm218•about 4 hours ago
Many Claude Code power users don’t really use IDEs anymore, so the only purpose of them working from their laptop instead of a phone is because that is the normal way to do it.

Here is a real use case: you are are responsible for some alerting channel. You have datadog/ cloud logging/ github all connected. You see a bunch of alerts come through while you are out and about and you prompt CC to investigate - Claude triages and says “all of the sudden you are getting time outs from this bank API your company partners with, this started an hour ago. It’s happening on ~15% of requests”. So you ping the guy at your company who does vendor relationships and go back to your weekend.

This is a non hypothetical example. Obviously it would be better if your job had a real on call rotation and more robust alerting and you wouldn’t be getting slack alerts on the weekend… but I take the approach this job affords me a lot of nice flexibility so it’s ok

thwarted•about 4 hours ago
You don't have an on-call rotation but do have people dedicated to vendor relationships, and that guy works on the weekend? I'm not sure how you completely avoid getting alerts on the weekend for third-party payment processor issues, which can happen anytime, if you actually want to transact business on the weekend.
hangrybear666•37 minutes ago
Yeah good luck being employed in 3 years once this bubble popped when all you do is type some natural language into a phone screen. People being proud of not using an IDE anymore is such a foreign concept to me, who enjoys coding and got into the profession because of the love of that.
voidingw•about 4 hours ago
I've used it for the following when I've had tokens to burn:

  - Fuzzing with the goal for it to apply domain-specific and source-informed knowledge to choose specific fuzzing approaches.
  - More generally, any optimization problem that benefits from domain-specific or source informed knowledge.
  - Running Microsoft's SkillOpt [0].
[0]: https://github.com/microsoft/SkillOpt
dandaka•33 minutes ago
Few cases I have found very useful myself

1/ Using GUI software. My agents are using headful Google Chrome and Figma. It helps a lot to have separate environment, which is not interfering my main machine.

2/ Running long processes (1h+), so I can leave main machine closed.

3/ Running intensive processes. I use Gemma, Whisper and Qwen, which could burn main machine CPU and resources.

amelius•about 1 hour ago
Letting it control a browser and searching for a pair of pants of a given size and length and color and style.

Yes, surprisingly, this is something Google cannot do yet.

vcf•about 4 hours ago
I run a lot of data science-type analyses that can take up to hours at a time to run, so Claude is « monitoring » tasks most of the time. I have it on remote-control so I get notified when a task is done or need clarification, but most importantly whenever I have a new idea, I can just ask Claude to queue it up. Most of the time my hardware is the bottleneck, not the subscription quotas.
troupo•about 1 hour ago
> take up to hours at a time to run, so Claude is « monitoring » tasks most of the tim

How is Claude monitoring them for hours? Claude runs out of context and extremely long sessions are prohibitively expensive even according to Anthropic (after they dispense with the marketing bullshit of long running tasks)?

catoc•about 4 hours ago
That makes sense - thanks. Do you use hooks for this?
vcf•about 1 hour ago
I used to have some hooks for local notification, but lately I find that claude is pretty good at notifying through the app with remote control (but definitely not perfect)
trentor•about 1 hour ago
I changed all smart speakers to retrofitted old radios with an amp and a pi. The hot word detection runs on the pi itself but whisper and LLM/task orchestrations goes over my local server with a 4080.
hamdingers•about 4 hours ago
They help folks on fixed rate plans consistently hit their usage limits which provides them the feeling of getting their money's worth.
kushie•about 5 hours ago
i like using /remote-control to keep vibe dev running smoothly against my usage limits and deadlines
catoc•about 4 hours ago
Running Claude code 24/7 on a code base on that “second Mac” so you can always continue after a usage limit reset, from your main device or from your phone?
j45•about 3 hours ago
It's less about 24/7. It's more about it can't work when your laptop is in your bag and in transit and there is something that you have set up and want to run.
hangrybear666•34 minutes ago
Oh yeah sounds great working in your free time and while traveling to buy groceries to feed yourself so you can continue working.
bagels•about 2 hours ago
Do you do software development? Is there any work left at the end of the day? Have it do that stuff.
troupo•about 1 hour ago
I always have to correct its hallucinations during the day. Why would I ever let it run unsupervised overnight?
amelius•17 minutes ago
Running tests and optimize?
popalchemist•about 2 hours ago
Generating leads for new work, if you are a freelance. Automatically answering customer support emails, if you own a SaaS. Monitoring competitors' socials, websites, etc for new features you have to compete with. Monitoring updates on software you depend on for breaking change / deprecation announcements.
overgard•about 2 hours ago
I think the main use case for AI bros is to setup a goofy looking dashboard, name it Jarvis to cosplay being Tony stark, and display stats for all the generated videos they're posting to social media.

(I wish I was joking)

ProofHouse•about 4 hours ago
ask AI to help
msh•about 5 hours ago
Same here
arxari•about 5 hours ago
> setting up your spare Mac

as one has

ProofHouse•about 4 hours ago
i once thought the same
j45•about 3 hours ago
They seem to hang around.
brandnewideas•about 5 hours ago
You people are too far gone
hangrybear666•31 minutes ago
Yeah these guys will set up claude on their third pc after they realize their second pc keeps hallucinating out code nobody cares about or needs in hopes of staying relevant. I'll just keep coding by hand because I ACTUALLY ENJOY it. What a novel concept these days.
bagels•about 2 hours ago
You're being left behind.
somewhatrandom9•about 4 hours ago
Though it doesn't get by all the hurdles mentioned, it is alternatively possible to run Mac OS in a VM on your Mac using UTM and install Claude Code within the UTM VM. UTM can be run under a non-admin Mac account. This can allow you to use most Mac-native tooling, at least. The interactive performance of using the Claude Code ui on the VM isn't great, however. I'm not sure if you can log into the VM via terminal on the host from the non-root admin account to avoid the ui performance issues.
booi•about 4 hours ago
An argument against this method is UTM doesn't support graphics acceleration so browser support will be hobbled. Even if you don't need the acceleration, I've found browsers in UTM virtualized OS's can't get past some modern captchas and other browser fingerprinting checkpoints :\. It's terrible but that's the way it is.
fsflover•about 4 hours ago
> browsers in UTM virtualized OS's can't get past some modern captchas and other browser fingerprinting checkpoints :\

I'm using Qubes OS, where everything runs in VMs without GPU acceleration, and never experienced this.

addajones•about 6 hours ago
I currently have Claude Desktop installed on a separate Mac mini M4 and control it with Dispatch. Is there a reason to do this method, it still seems the way I have it setup it has full control over the local account I gave it on the Mac mini.
tyre•about 5 hours ago
Why would you need an M4 for this? If most of the "thinking" is happening on Anthropic's side, are you running particularly resource-intensive apps?
theptip•about 5 hours ago
I found Dispatch to be less capable than RC. The latter is more like the direct Code experience (though there are some gaps in RC mode vs in a Claude-owned sandbox).

I’d love to just have Claude use my machine as a sandbox host instead of having to run RC on each host session. (In case you are listening Boris ;) ).

In the meantime I have a janky master RC session that creates new tmux windows and Claude RC sessions for each new code trajectory that I want to run.

The other benefit here is you can drop down and use termux to use Code directly if you hit a RC bug, I found permissions UX to be a bit flaky in the iOS UI.

hahajk•about 6 hours ago
Dispatch/Cowork is basically claude code in a container. The section "Why not run it in a container?" would address your question in the post. One example I run into is that Cowork won't download and fill out or read pdfs or other files due to container permissions. Vanilla claude code has no problem using curl and wget.
_puk•about 4 hours ago
Cowork gets tangled with git as well. Fails, and then can't delete lock files.

Running a helper from the terminal, making Claude work in a working directory, and then create a .commit file has been my workaround for this for a while now.

Imagine there's a better solution nowadays, but this allows me to use dispatch building on Vercel, so I can check it out from wherever, without too much pain.

j45•about 3 hours ago
Claude dispatch does things differently than this. Dispatch is very convenient for somethings (including connectors).

But increasingly it seems like dispatch was slapped on top of cowork incrementally, when there was not an integrated and cohesive strategy across cowork between mobile/desktop/laptop. This is kind of what many of us get/got to learn in our 20's.

dchuk•about 5 hours ago
I just redid my homelab/media server (switched from an old NUC I couldn’t figure out how to stop overheating even with some decent modification work, now using an hp elitedesk with an i5 processor that is handling my stack nicely). Thinking about setting up a vm on the base ubuntu install for isolation to run Claude in. May play with dispatch, may just put raw Claude code then use Moshi app on my iPhone and iPad.
mead5432•about 2 hours ago
I have a similar setup with Claude on an Ubuntu VM. It handles scheduled things that might otherwise be in a routine.

I haven’t set up dispatch yet. I wonder what a Mac gets me over this set up if I don’t need iMessage

spikk•about 4 hours ago
If I had one I would definitely try creating a separate VLAN for it to control, otherwise it's isolated from your files but still has access to your network and devices in it.
Gareth321•about 3 hours ago
Put it in a faraday cage with some kind of explosive device set to trip if it escapes containment. It's the only way to be sure.
rootsudo•about 5 hours ago
I’ve been doing something similar with an old m2. It isn’t powerful enough for local models, well sufficient local models but for openclaw and Claude it’s been perfect.

MacBook m1/m2 also are cheap enough now vs an Mac mini which I was surprised about, not too surprised but yeah..

lizardking•about 5 hours ago
My setup is sort of reversed. The powerful machine (framework desktop) is my headless AI machine and M1 mbp is my daily driver. Works well!
trollbridge•about 5 hours ago
I am sorry to report that 16GB+ MacBook Airs/MacBooks have become unreasonably expensive - probably from use cases like this.
drnick1•about 4 hours ago
Giving sudo permissions to an agent seems reckless. Claude gets his own unprivileged UNIX account, no more. I don't bother with containers or VMs however.
majorbugger•about 4 hours ago
I mean, what's the worst that can happen? A complete takeover of the box by a hacker via prompt injection or something similar?
schainks•about 6 hours ago
Dispatch works great, and I have reversed the setup so Claude can ssh-spawn sessions on my homelab for non-Mac dependent work
Advertisement
TekMol•about 4 hours ago
Why a laptop at all?

Why not just use a VM in the cloud and just a CLI interface?

j45•about 3 hours ago
This can work, but increasingly there is benefit from local, including places that want data to be secure and not in the cloud. This is a thing. It's normal. It's just new to people who haven't realized how common it is.
hangrybear666•27 minutes ago
Agents running as root and data to be secure do not fit well in the same sentence
weard_beard•about 5 hours ago
I've been putting off learning Claude and this article had me strongly considering jumping in. Then I looked up Anthropic pricing and its 100x more convoluted than cloud services management. Its a goddamn full time job and independent skill set figuring out how to prevent going bankrupt from AI usage!

I think I'm gonna be a late adopter on this one until the industry figures out a less cumbersome pricing model.

iambenm•about 4 hours ago
Look at the subscriptions. That's how anyone using the stuff as an individual should be approaching it today if they are dealing directly with Anthropic or OpenAI.

With the $200 Claude subscription I was able to get around $13-15k of API equivalent usage in one month (note: this was during the "+50% usage" promotion that they have kept extending since May). When you hit your usage limit for a given time period you get cut off until the time period resets; don't bother paying for additional usage credits, you will be disappointed.

weard_beard•about 3 hours ago
What I’m reading is this use case is for 3-5 days a week full time dev if you stick to off hours US time. That you can save significantly if you have spiky usage 1-2 days a week by going the ad hoc API route if you’re new and you need to install a bunch of monitoring tools to tell you how best to save week to eeek as your usage patterns change and you risk surprise bills in the 10s of thousands if you get it wrong.
iambenm•about 3 hours ago
The approach I took was to start with the $20 plan, then when it became clear it wasn't sufficient I upgraded to the $100 plan. The $20 plan didn't cover one night of coding. With the $100 plan I started bumping into the 5 hour usage limits after ramping up over a week or two.

My average API equivalent use is around $30-40/hr. I would just bite the bullet on a plan for one month, then use that to calibrate your expectations around usage and cost optimization. The plans are heavily subsidized.

guluarte•about 5 hours ago
i just use terminus + wireguard + tmux and works great, i can control claude/codex from my phone while working out
hangrybear666•25 minutes ago
Too bad you can't let your agent accumulate your gains yet and still have to work out
dionian•about 3 hours ago
same, blink iOS app + tailscale + mosh
deadbabe•about 5 hours ago
I still don't understand what these freaks are doing running these agents 24/7 on machines. What are they doing? Managing a todo list? You mean crossing items off as you complete them? Research tasks? To do what?

Never really get good answers. There is no killer app. Just bikeshedding.

artisinal•about 5 hours ago
Swiping Tinder. It takes about 5000 matches to get a date. It’s easier to just automate it. It automatically adds dates to my calendar, all I have to do is show up. I get a summary of our chat history (well, what the agent wrote to her) in the notes section of the calendar entry and some pointers and talking points for the date.

Maybe I should have the agent also do a background check.

PS: This is a joke, but feel free to steal this idea.

kurthr•about 5 hours ago
Any sufficiently advanced satire...
deadbabe•about 4 hours ago
Good news about hell: it doesn't exist. Bad news: Humans can pretty much create whatever they can imagine.
20k•about 4 hours ago
The future is agents chatting to each other on tinder and automating the initial getting to know you part. I can imagine that while that's going on, we could add like a little text chat box for the humans to chit chat with each other a bit and pass the time, before they can go on a date
rootsudo•about 5 hours ago
It works well enough for bumble web, just make sure you have rate limiting..

Then the openclaw WhatsApp module…

Kidding of course.

mystifyingpoi•about 5 hours ago
Crap, I totally believed this. We live in a dystopia already.
artisinal•about 4 hours ago
Someone apparently made this

https://github.com/Grigorij-Dudnik/TinderGPT

> TinderGPT automates the process of writing and arranging dates with girls on Tinder, enabling you to generate romantic meetings with almost zero effort. Your only role is to like the profiles that catch your eye. After that, TinderGPT comes into the play. It initiates a conversation with the girl, using details from her profile, continues by building an emotional bond and highlighting your attractive traits, and finishes by arranging a meeting and giving you a push-up on your phone with her number.

kdheiwns•about 5 hours ago
It seems the main use case is having Claude automatically write blogposts about how great using Claude is, then submit them wherever necessary.

There's lots of news about the billions AI companies spend on data center construction, but it feels like it's not even a fraction of the money they're spending on endless nonstop blogs about how great their app is at doing... things. Things that will never be defined.

deadbabe•about 4 hours ago
It really feels to me like this OpenClaw type stuff is the new "I built a static site generator!" type blogs that just post a few articles about how they built their generator.
leokennis•about 5 hours ago
Exact same question as you. When the new ChatGPT app dropped it suggested to me to set up a task something like (paraphrased) “every Monday read my Gmail and Slack an make a summary and task list for the week”.

Why would I need an LLM to do this for me? That’s 5 minutes of work max, and doing it gets me in the flow of work again, to see what’s going on and needs to be done.

phil21•about 5 hours ago
For a lot of folks summarizing a few days of work email and especially slack chats is way more than 5 minutes. Some work environments do not have great communication hygiene so it can be overwhelming to try to keep up with 500 emails a day and 38 Slack channels.

For the folks I talk to who use a LLM for this that seems to be the case. Takes a huge cognitive load off every morning and saves them an hour or two.

More or less a very expensive band aid over a bad work environment.

I kinda use it the same way in a sense. I have a little skill I run against our (horrible) task management system to summarize things and give me a punchlist to work through sorted by priority. This saves me thousands of clicks to do the same thing in the horrible web UI. A proper system in the first place would be a lot better!

At some point I’ll probably just take that to the next logical step and have the LLM write my own web interface to abstract and replace the horrible one entirely for me.

croes•about 5 hours ago
And how can they be sure the summary correct and doesn’t miss anything important?
moron4hire•about 5 hours ago
Because then OpenAI can read your emails and project communications and eventually build a model they will sell as an automated consultant. The CEOs will uncritically eat it up just long enough to cut the footing out from the industry. Once everyone is used to the sorry state of software, nobody will be able to imagine putting people to the task anymore and we'll have the new world order that Altman and Theil have been talking about creating.
vessenes•about 2 hours ago
Let me guess -- in your day job you don't manage people. I have agents parsing messages, building out document sets, evaluating existing document sets, one is currently fixing a giant backlog of bugs and feature requests for a multi year personal coding project, one is exploring some ideas on speeding up inference at the edge..

If you put yourself in a position where you need more leverage (technical or operating) I think you might find you get some value.

greggsy•about 5 hours ago
I set it up out of curiosity a few months ago and realised I had no requirement for it whatsoever.

I’m actually very time-poor, so figured it could help be clawed back time doing… what exactly?

fooster•about 5 hours ago
I think you need to open your mind to the possibilities? For example:

- scanning logs for errors and

- opening issues which are then auto-triaged and

- PRs are opened for them and auto-reviewed and

- merged (and deployed).

This workflow alone is immensely powerful, and takes alot of burden off the team.

closeparen•about 1 hour ago
A company at the scale to benefit from this almost certainly has some kind of development sandbox environment and/or periodic job runner that's integrated into its environment and maintained by a team, not random Mac Minis.
airstrike•about 5 hours ago
> This workflow alone is immensely powerful, and takes alot of burden off the team.

ITSM those unsupervised workflows are essentially an attempt at purported productivity in the near term at the expense of meaningful incremental long term burden for teams.

The only ostensible benefit is in the eyes of the AI-psychotic tinkerer, who knows no better, or in those of the clout-chasing developer farming likes on their LinkedIn posts.

fooster•about 2 hours ago
Really they're not. But it seems you have decided that you, above all, know best.
lionkor•about 4 hours ago
None of these are things I want or need in the product I maintain with a team, there's really no point to any of this unless you run a vibe coded SaaS (?)
fooster•about 2 hours ago
You want your team spending their time fixing these simple errors? The secret sauce is in the triage. We've adopted solutions alot like this, and now our team spends its time on much more meaningful work.
troupo•about 1 hour ago
> scanning logs for errors

famously a good job for a tool that takes 10-50k logs to run out of context and forget what it's doing.

mystifyingpoi•about 5 hours ago
None of this requires running it 24/7.
theptip•about 4 hours ago
If you can’t think up enough coding projects to keep an agent busy in the background that’s a skill issue on your side.
lionkor•about 4 hours ago
I am aware this is likely sarcasm, but in case it isn't, what do you gain from doing side projects this way?
theptip•about 3 hours ago
No sarcasm, I am completely serious.

I don’t have time for much leisure coding these days. I do have time to kick off a few tasks in the morning to progress my many side projects. Nothing public / oss, just code that I find useful/interesting like home automation, content pipelines, games, etc.

There are a bunch of cases where remote control from iOS onto a Mac Mini is simply nicer than using iOS Claude Code sandboxes.

It’s the same pattern as you (hopefully) apply at $dayjob. If you are not defining a /goal and letting your agent crank you are not making full use of the models’ capabilities.

ronbenton•about 5 hours ago
Have it work down my jira tickets while I’m sitting on the porcelain throne
threethirtytwo•about 5 hours ago
What's a good way to give a limited amount of money to the LLM, say like 2k or 5k or something. But keep it completely separate from my identity.

Like I want the LLM to have a bank account and he can do ANYTHING with that bank account that he wants. But he can't fuck anything up that has to so with me. He only has 2 - 5k

chasd00•about 4 hours ago
Idk how you could at least in the US. Closest thing off the top of my head would be one of those checking accounts you can setup for kids. It would still be tied to you.
mmh0000•about 4 hours ago
If you want Anthropic (or others) but anonymously, what you do is use https://openrouter.ai/pricing and fund your account from any of your preferred cryptos.
vessenes•about 2 hours ago
Solana/Ethereum