Hacker Newsnew | past | comments | ask | show | jobs | submit | mmoustafa's commentslogin

I wrote an article on this exact issue (albeit more simpleminded) and I suggested a rudimentary way of tracking provenance in today's agents with "reasoning traces" on the objects they modify.

Would love people's thoughts on this: https://0xmmo.notion.site/Preventing-agent-doom-loops-with-p...


The original article does a good job of contextualizing the shifting dynamics, but yours turns that into an actionable solution. I've been wondering about this same problem too after having trouble wrangling LLMs to not make hacky solutions or go on wild goose chases.

Do you have a working implementation for this? Just a one-to-one index of files and reasoning traces? I'd like to trace these changes easily back to a feature or technical spec too (and have it change that spec if it needs to? I suppose the spec would have it's own reasoning trace)


If recording object change is important, then have the subject object know one or more recorded “change” objects. An LLM is much more likely to understand a real object modeling pattern, rather than some new non-standard scheme such as you suggest.

I don't think 0.38s is a bad trade-off for convenience when the rest of the tools I need to do my job collectively are another 2s at shell startup. NVM alone adds 0.5-0.6s on my M4 Macbook Air.

Bigger fish to fry if we're being practical.


You can replace nvm with https://mise.jdx.dev/ , it starts effectively instantly and works not only for node versions but all programming languages and tools.

`mise use node@latest`


or asdf

I'm using Asdf too. Have heard well about Mise, but I haven't figured out what the difference is, so I have stayed with Asdf

mise has more features - it is a super set of asdf. For example it can set your env vars when you cd into a directory (like direnv). It also has tasks (which I haven't used) - they appear to be similar to what a Makefile does. So you can potentially replace three tools (asdf, direnv, make) with one.

Mise started out using the same plugins as asdf, mostly focused on adding performance and usability improvements. Over time it added more features and security.

Most tools are now directly fetched from github releases without the need for random shell scripts (which is what asdf plugins are).

It also grew to be a task runner and environment manager. At first you might think this is scope creep but they're both opt in and very elegant additions. I don't want to ramble but let's just say they've solved real problems I've had.

I'm a fan of it, and I can't think of a reason why I would use asdf over mise. Its real competition is nix (+devbox/devenv/flox), devcontainers, and pixi.


I am seeing a phenomenon of people wanting to hyper optimise their workflows. It’s nonsensical when you consider the other stuff you need to do or how slow everything else is.

Holy heck, I just profiled my zsh initialization and nvm was the big source of bloat, holy hell. Similar setup as you (M4 MBP), same amount of startup bloat. Lazy loading it fixes it.

GPT-5.2 changed the nvm initialization script to:

  export NVM_DIR="$HOME/.nvm"
  
  _nvm_lazy_load() {
  unset -f nvm node npm npx _nvm_lazy_load
  [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
  }
  
  nvm() { _nvm_lazy_load; nvm "$@"; }
  node() { _nvm_lazy_load; command node "$@"; }
  npm() { _nvm_lazy_load; command npm "$@"; }
  npx() { _nvm_lazy_load; command npx "$@"; }

That's why I switched to Mise (https://mise.jdx.dev). Having new terminal sessions taking up hundreds of milliseconds because of nvm isn't the end of the world, but it's annoying when you're in the middle of something.

Mise reads in your .nvmrc files so you don't have to configure anything new.


Although this is what Opus recommends, it will give you many issues as you don’t really have any node runtimes in the path (or worse if you do).

What I recommend is replacing it with $PATH=(a command to find the nvm default alias directory, detect the verion and load it from that specific version directory directly) so you always have default node in path and then lazy loading only nvm itself, so you can switch when you need to.

Sorry I don’t have the command handy as I’m on mobile but if you paste the above into Opus you’ll get it.


Thanks. I modified my comment to disclose that gpt 5.2 generated that modification. I'll try your suggestion.

..have you checked. It's 0.04s in my setup. I have it a bit customized but I don't remember chasing milliseconds on config

> All encryption is end-to-end, if you’re not picky about the ends.

This reminds of how Apple iMessage is E2E encrypted, but Apple runs on-device content detection that pings their servers, which you can't possibly even think of disabling. [1][2]

[1] https://sneak.berlin/20230115/macos-scans-your-local-files-n... [2] Investigation in Beeper/PyPush discord for iMessage spam blocking


[1] is supposedly debunked: https://pawisoon.medium.com/debunked-the-truth-about-mediaan...

> the network traffic sent and received by mediaanalysisd was found to be empty and appears to be a bug.

I say "supposedly debunked" because empty traffic doesn't mean there's nothing going on. It could just be a file deemed safe. But then the author said:

> The network call that raised concerns is a bug. Apple has since released macOS 13.2, which has fixed this issue, and the process no longer makes calls to Apple servers


What’s the concern here? The blog post you linked does not really support its claims with evidence.

They're actually two separate claims, one of which the blogpost does support. The other one is seemingly ought to be supported by some conversations on a Discord server.

The concern is obvious though, not sure what's unclear about that: it's a bit pointless to have E2EE, if the adversary has full access to one of the ends anyways.


I built a connection to a web-powered LLM over SMS/iMessage for literally this purpose. While traveling I’d have really bad or sparse service but still needed to find my way around.

I use WhatsApp's built-in LLM to read news when I'm on long flights that only give messenger access. It's great

That’s neat - have you considered publishing it?

I did, it's available at olly.bot :)

Doesn’t ChatGPT have WhatsApp access?

Not anymore. Meta didn't want competitors.

the other day I had to change my node server to prefer ipv4 dns records because fly.io doesn’t support outbound ipv6 connections but defaults to a dns server that returns them

Their document states they support v6, and given how much of their stack involves v6 I would be shocked if they didn't support v6 outbound.

> Outbound IP addresses

> Fly Machines have IPv6 addresses from which they make requests to the wider internet without going through the Fly Proxy.

https://fly.io/docs/networking/services/


Right about $500 now, down from $5K at peak

AI assistant in your iMessage group chats https://olly.bot


How did you make a bot that can send iMessages? I want to make a service on my Mac that can send notifications through iMessage. (preferable multiple chats, different topics for different notification types)


seems to be a few apps that can do this, but you need a mac to do it

https://github.com/linjunpop/imessage https://github.com/danikhan632/iMessage-API


Post — “Ask HN: Can you write a limerick?”

Top Comment — “This reads like someone who just discovered poetry forms exist and thinks a limerick is some novel concept. The real challenge isn't writing one—any undergraduate can follow the AABBA scheme—it's understanding why meter and scansion matter beyond just counting syllables.

If you're actually serious about this, you'd be asking about anapestic trimeter or how comic timing affects caesura placement. The fact that you're not suggests you haven't done the groundwork.”


Truly captures the spirit of these types of HN comments; Person A does a thing, Person B points out how pointless thing could have been done better in effort to flex smart.

Post - Blog post about recapping a Timex Sinclair 1000"

Response - "Ah yes, the 'multi-region composite mod'—because nothing screams cutting-edge like jury-rigging a 40-year-old potato to a VCR."


> Truly captures the spirit of these types of HN comments; Person A does a thing, Person B points out how pointless thing could have been done better in effort to flex smart.

And then Person A goes off and founds Dropbox and 20 years later is worth $2.4 billion.


How dare you bring facts or narrative into question which dunk on the original commenter's upvote-worthy comment


So many open with “ah yes,” or “oh great,”


> The real challenge isn't writing one—any undergraduate can follow the AABBA scheme—it's understanding why meter and scansion matter beyond just counting syllables.

There was a young man from Japan

Whose poetry didn't quite scan

When told this was so

He said "Yes, I know..."

"... it's probably because I try to cram as many syllables into the last line as I possibly can!"

and also

There was a young man from Wick

Whose limericks were twisted and sick

It's best not to mention

How he broke convention

...


I know "lol" type comments aren't super typical or accepted on HN but I need to reply just to acknowledge that this comment made me legitimately laugh out loud in the workplace LOL (good luck explaining that one to my non-tech coworkers xD)


Scissors has entered the chat


We do not live in a democracy, we live in a representative democracy. The founders simply had no option, you had to pick a person, put them in a carriage, and send them to the capitol to do your bidding (also why electoral college exists for reporting votes, but I digress).

I always wonder what they would’ve created if everyone had a device in their pocket to send their preferences directly to the capitol at the speed of light.


Too bad there are no technologies that would allow the citizenry to communicate nearly instantaneously and cast their votes in a pseudo-anonymous manner.


Impossible, we must interpret the intentions of some blokes who died 220 years ago and try to assume what they would have wanted.

Its the only way.


It’s a blockchain moment - finally a use case ;) /s


It's worse than the founding though because Congress has artificially capped its growth. If the house of representatives followed the per capital ratios of the early 20th century, we'd have more than 2x the representatives, if it went back to the 18th century ratios we'd have thousands.

Only, since the 1930 house appropriation, the technology has existed - the automobile, the telephone; by 1960 we had flight, by the 90s we had widespread Internet and faxes.

Theb, the Senate is only made to be like the house of lords, which by itself it now an antiquated concept.


As the Greeks found, the only think worse than representative democracy is direct democracy.


Vehemently disagree. I would much rather take our most contentious issues (abortion, M4A, etc) put them on a national ballot and let the general public decide. I don't agree with everything passed on ballot in my state, but I respect that at least the majority voted for it.


I agree. I don't, and never will, trust politicians (of any party) to actually represent their constituents accurately. I understand everything can't be a direct democracy, but we need some sort of a middle ground.

It's really weird to think about. I am a straight white CIS male, with no extreme political or social views, my family has been in the US for 150 years, im financially well off, and I don't feel like I have accurate trustworthy representation in government at any level. I am the person that everyone says is over represented


There's a widespread misunderstanding about what congresspeople do.

They are not elected to represent the views of their constituents. Constituents, rather, elect those representatives whose agendas they most closely support. There's a subtle difference.


>They are not elected to represent the views of their constituents.

Yet another thing I vehemently disagree with.


I guess it’s a question of semantics.

If a rep basically says ‘I don’t care what y’all say, I’m doing z’, and they get elected.

Does that mean they got elected because everyone wants z? Or they got elected, and plan to do z?


why do you write 'cis' in all caps? It's not any kind of acronym, initialism, or otherwise; it's a Latinate prefix.


I didnt know, its not a term I use frequently/ever


> Vehemently disagree. I would much rather take our most contentious issues (abortion, M4A, etc) put them on a national ballot and let the general public decide

The problem with true direct democracy isn't how people would handle high-level issues that are direct reflections on people's basic values and principles, like the two examples you mentioned.

The problem with true direct democracy is that every single person becomes responsible for understanding the intricacies of mundane-but-critical details of administration, like the third-order effects of specific tax policies, or actions that are currently delegated to executive agencies.

Except in the extremely small scale, it quickly becomes prohibitive to reasonably expect all those people to be able to make informed decisions about all the necessary parts.


I'd like a hybrid system like we have in a number of states. A mechanism for nationwide initiative petitions would be nice. Then we can get nationwide consensus on the high-level issues and leave the rest for the people whose job it is to work out the details.


Exactly. Stop playing political football with issues. Put them to the people at let the voting public decide, and be done with it.


The worst laws come from direct amendments and petitions because only the stuff no lawmaker actually wants their name on (or could pass) goes there - and it gets gamed to hell.

See the CA propositions - they turn into insane population wide gaslighting competitions.


I'd rather have CA's props than an elected congressman who ignores the will of the people


Why not a mixture of both? CA for instance had their populace vote to ban gay marriage in prop 8, CA then just told the voters to go fuck themselves and tied it up and overturned it in court.

So you can see even if you literally amend the constitution in california by popular referendum, those in power can just tell the populace to go fuck themselves and they won't be recognizing it, no matter that the constitution is the supreme law of the state.


> Why not a mixture of both? CA for instance had their populace vote to ban gay marriage in prop 8, CA then just told the voters to go fuck themselves and tied it up and overturned it in court.

> So you can see even if you literally amend the constitution in california by popular referendum, those in power can just tell the populace to go fuck themselves and they won't be recognizing it, no matter that the constitution is the supreme law of the state.

Your argument would make sense if the courts had overturned Prop 8 on the basis that it was unconstitutional at the state level. But that's not what happened.

The state case against Prop 8 was upheld by the courts. The federal courts ruled against it, in a completely separate case, on the basis of the Equal Protection Clause in the US constitution. Prop 8 amended the state constitution; it did not amend the US constitution.

It's also a moot point, because Prop 8 was also repealed by a subsequent ballot initiative, with 61% of the vote.


So you’re saying popular votes are not sufficient to avoid flip flops on contentious issues, and popular voting also can step on minority groups recognized rights on a whim?

What problem is it solving again?

And notably, California is one of the most consistently gay friendly states and still flip flopped on this exact topic.

The more direct the democracy (and the shorter the timeframes between elections!), the easier it is to game the population or poke people’s buttons and make them vote on things they later regret - or deeply enjoy.

The whole court system and bill of rights is to try to put guard rails, so there aren’t (for example) purges/genocides, removing a little under half the populations rights, etc. etc. but there is only so much rules can do.

There is no free lunch.

Notably, imagine direct democracy and the [https://en.wikipedia.org/wiki/Satanic_panic]!

Without guardrails on the levers of power, a lot of people would have died. As it is, a lot of lives still got ruined.


So then it boils back down to 'most people are stupid' and the reason we have representative democracy is so we can cultivate a class of elites who are smart enough and have enough skin in the game to make good decisions for the rest of us.

People recoil at the idea, but isn't that sort of what the founders were doing? They had beautiful, lofty ideals on paper, but they were all wealthy, white, male landowners. Their idea of "the People" might have been a wee bit more limited than the generally accepted definition today.


It doesn’t require most people to be stupid. It just requires people to have other things they need to do, and pay attention to, and limited ability to give a shit.

If everyone has to be paying attention all the time (and it would be 150% of the time with modern society), everyone is susceptible to being drowned in bullshit and either checking out or being manipulated.

Even with what we have now, that is exactly what is going on. Direct democracy would be even worse.


> would much rather take our most contentious issues (abortion, M4A, etc) put them on a national ballot and let the general public decide

Those are actually great examples of where federalism plus direct democracy works better than aggregated democracy. There are fundamental worldview differencs on abortion that a plebescite can't reconcile. The failure of direct democracy is it short circuits deliberation. So to make it work, you need another layer where deliberation occurs.

The Swiss seem to have solved this neatly: the representative body deliberates, and then the population gets and up-down vote.


Granted, but the problem with direct democracy is that you either let issues be decided only by the most engaged voters or you require participation from all, and issues are decided based on who can present the most sexy case on otherwise very unsexy issues.

I'm not a huge fan of representative democracy, but for direct democracy to work, we have to change society sufficiently to let ignorant lay people become informed enough on various issues to have a meaningful opinion on them.


I'm ok with congress handling the day to day minutia of government, but we should take all the highly partisan crap and put it to the ballot, and be done with it.


Sufficiently framed, the highly partisan crap is the day to day.

The gov’t shutdown was precisely using the day to day crap to get leverage!


You have a huge, huge misunderstanding of how direct democracy turns out.

Everyone with a job gets inundated with bullshit, even eventually stops showing up (or paying attention) because it’s impossible to live and actual do that.

So then you end up with nut jobs doing whatever they want while having the votes because they are the only ones who show up at 11am on a Tuesday when the daily vote is happening.

Apps just tiktok’itize the whole process.


You seem to have a very particular idea of how direct democracy might be implemented; there's no reason it has to be "show up at 11am on a Tuesday".


There is on average over 1 new bill a day that gets voted on in Congress. Those are the bills that get past committees.

Everyone still complains it is impossible to get Congress to actually do anything, since this is a huge country with 300+ million people.

If we didn’t have a ton of filtering (by whom? And who gets to decide that, is who has real power!) we’d probably have 10K+ new laws a day being proposed.

What do you expect the voting process to actually look like?


I don't know what I expect the voting process to look like, but you seem to be assuming the worst without even thinking it through very much. I'm not an expert, I just don't think we should throw out ideas based on poor strawman implementations.


It’s well trod history, hah. The founding fathers directly wrote about and considered it too.

There are reasons why literally nobody does it, and it isn’t because it works too well.


I don't know what I expect the voting process to look like, but you seem to be assuming the worst without even thinking it through very much.


I'm not saying we put every insignificant little thing on the ballot, but lets say once every 4 years we take the real hot button issues that congress perennially uses as political football, and put them on a ballot. Abortion legal before the age of viability, yes or no. Medicare for all, yes or no. Legalizing cannabis, ditto.

I am sick and tired of congress basically ignoring the will of the people because some rich dudes with superpacs feel otherwise.


Who gets to decide what is insignificant or not?

They’re going to be the ones with the real power. Who gets to decide who they are?

The reasons these issues get used as political football is precisely because there is a lot less consistent belief on what ‘the right thing’ is to do on those issues than you’d think, which is why they can be polarizing. And trying to force everyone to follow the same rule is undesirable for a large portion of the population.

Why would they vote to be stomped on?


The problem is that proper legislation is a balance of interests and working through the details of the policy. If you put "abortion" on the ballot, what would that mean? There are a ton of different possible policies on what is or is not permissible.


Haven't the Swiss solved this?

Maybe you Americans should figure out the first step of engineering, which is to look at existing solutions and learn from them :-p


The main thing the Swiss have that Americans don't are referendums that can seriously challenge federal action. And then there are the state versions of that. And they don't have to wait for "the cycle". Or have results made null by arbitrary veto powers.


The Swiss have a representative democracy with a slightly different way of ‘representing’.


We can move the goalposts as much as we like, but the Swiss have the closest approximation of a direct democracy in the world, right now.

So before dreaming about 100% democracy, maybe the US could slide away from "flawed democracy", first: https://en.wikipedia.org/wiki/The_Economist_Democracy_Index#...


Sure, but who is going to be elected who would do that?

And as has been quite apparent, since the most folks will do is peacefully protest if outside the voting system - and be ignored - how else is it going to change?

And if either of those were working, we wouldn’t be complaining about this online anyway eh?


I highly doubt the US system can be fixed peacefully. I really wish it were, since the US affects a lot of the rest of the world (including where I live).


Federalist papers were very explicitly against direct democracy, so... Not much?


Could it actually be worse?


I absolutely think so. Can you imagine if voting was influenced directly by whatever memes were on Tiktok?


Given how Mamdani won in NYC I think we are already at that stage.


That one definitely reflects that the founders tended to limit voting to those with higher level of stakes in society (usually land owners).

While I'm not defending the practice, the parallel here is lifelong NYC dwellers with family roots in NYC were far less likely to vote for Mamdani than more recent immigrants or residents. It was largely a vote of those with the least stakes in NYC voting to overpower those with the highest stakes in NYC.


You could have actual semi-immortal magic users claiming to be the Senate.


> We do not live in a democracy, we live in a representative democracy

We live in a republic. Republics mix representative and direct democracy with other featurs to become larger, safer and more powerful than pure democracies have historically been able to be.

The American republic, in my opinion, oversamples representation and undersamples plebescite, lot and ostracisation. (In Athens, elections were assumed biased to the elites. Selection by lot, i.e. by random.)

In my opinion, a lot of the supermajority requirements for legislation are better replaced with plebescite. (We have national elections every two years.) In my opinion, Supreme Court cases should be allocated by lot to a random slate of appelate judges. And in my opinion, every election should have a write-in line where, if more than X% of folks write in a name, that person is not allowed to run for office in that jurisdiction for N years.

The first requires a Constitutional amendment. The second legislation by the Congress. The last may be enactable in state law.


… according to Marc Andreesen


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: