Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

How do you keep Claude working until the job is done? Claude Code helps with this in a few ways, including one we shipped recently: /goal.

1,964,187 Aufrufe • vor 4 Monaten •via X (Twitter)

36 Kommentare

Profilbild von Bun
Bunvor 4 Monaten

@bcherny why no bun??

Profilbild von ClaudeDevs
ClaudeDevsvor 4 Monaten

Set a completion condition, and Claude keeps working until it's met: /goal all tests in test/auth pass and the lint step is clean

Profilbild von ClaudeDevs
ClaudeDevsvor 4 Monaten

It's the Ralph loop, built into Claude Code. Every time Claude tries to stop, it checks your condition against the transcript. Not done? It keeps going. Done? You get a "Goal achieved" summary.

Profilbild von ClaudeDevs
ClaudeDevsvor 4 Monaten

There’s also /loop to run Claude on repeat. Great for iterative refactors, cleanups, or burning down your backlog.

Profilbild von ClaudeDevs
ClaudeDevsvor 4 Monaten

/schedule kicks off Claude on a cadence. Nightly test runs, morning triage, weekly cleanup.

Profilbild von ClaudeDevs
ClaudeDevsvor 4 Monaten

A stop hook gives programmatic control over when Claude is allowed to finish. Run your test suite, hit a CI endpoint, gate on whatever you want.

Profilbild von ClaudeDevs
ClaudeDevsvor 4 Monaten

Long-running only works if Claude doesn't have to wait on you. That's why we have auto mode, which you can enable with shift + tab in CLI or by using the mode selector on desktop. Docs here:

Profilbild von jinjingliang
jinjingliangvor 4 Monaten

If you want to track your "/goal" progress for Claude Code, Codex, OpenCode and Pi etc, I built an open source agent view for that

Profilbild von Robert Baddeley, RRT
Robert Baddeley, RRTvor 4 Monaten

16 minutes in: Opus 4.7: Well I think we've hit a good stopping point for the day, we should be proud of everything we got done!

Profilbild von Christopher Charles
Christopher Charlesvor 4 Monaten

@bcherny This is like watching Mark Zuckerberg steal features from literally everyone in 2014. It’s a strategy I guess.

Profilbild von Anton Abyzov
Anton Abyzovvor 4 Monaten

It's literally 24 hours between claiming that it exists and shipping this feature exactly as it was designed in the Codex.

Profilbild von ItsTheDaybreak
ItsTheDaybreakvor 4 Monaten

Joker—no one can finish their own Goal because they hit their limit long before the code is even done.

Profilbild von Richard Light
Richard Lightvor 4 Monaten

Now just combine that with this powerful auto-permission granting system and you’re all set…

Profilbild von Tips Excel | AI Productivity
Tips Excel | AI Productivityvor 4 Monaten

This is what we’ve been waiting for! Finally, Claude didn’t give up easily 😭 /goal: Complete all backlog tasks + 90% test coverage + clean code Thanks, ClaudeDevs team, this is a real game changer for those who like to push Claude until the morning 🙌

Profilbild von Blake
Blakevor 4 Monaten

@bcherny Well to be honest, I get API rate limit error so I don’t get the job done.

Profilbild von Scar Crypt
Scar Cryptvor 4 Monaten

Everyones busy even Clawd.

Profilbild von kanyes
kanyesvor 4 Monaten

long-running claude sessions are wayy better when they actually know my values/history/users/taste we're building @heyhyperai to make long-running agents actually work :)

Profilbild von NeoSoul
NeoSoulvor 4 Monaten

the hard part isnt keeping an agent running its knowing when done is actually done long running agents need a judge that isnt the same model trying to declare victory completion without independent verification is just a fancy hallucination loop

Profilbild von Nguyen LNP
Nguyen LNPvor 4 Monaten

Great tip. The /goal command is basically setting a mission briefing for Claude before it starts. This matters for long tasks: without a clear goal, Claude can wander. With /goal, it self-corrects against the objective. If you are doing multi-file refactors, pair it with /compact to keep context clean.

Profilbild von ColdBoot
ColdBootvor 4 Monaten

Goal-seeking is stronger when it includes constraints, not just the finish line. In brownfield code, the hard part is finding hidden dependencies before the agent optimizes for the wrong success condition. Otherwise, “goal achieved” can become technical debt.

Profilbild von Prompt Heat
Prompt Heatvor 4 Monaten

I can't use this because I have a $20 plan and my usage limit isn't enough, but with Codex's $20 plan, this feature won't consume my usage limits even if the model I selected is in high mode.

Profilbild von Shubham Goyal
Shubham Goyalvor 4 Monaten

Claude: “these tests don’t seem to working, let’s delete them”

Profilbild von rustinja
rustinjavor 4 Monaten

The dangerous part of goal-driven AI isn’t missing the target - it’s hitting the target the wrong way. In brownfield systems, there are usually hidden dependencies and years of assumptions buried in the code. Without clear constraints, “goal achieved” can slowly turn into technical debt.

Profilbild von Jacob Shi
Jacob Shivor 4 Monaten

the mid-task drift was genuinely the most annoying thing lol, testing this today

Profilbild von The Calda
The Caldavor 4 Monaten

Now you can give separate tasks to both Claude and Codex at the same time and go do other things, then just come back when they're finished

Profilbild von Nick Sawinyh
Nick Sawinyhvor 4 Monaten

The underrated bit is giving Claude a finish line it can keep re-reading. Otherwise every long task slowly turns into vibes and forgotten constraints.

Profilbild von Tykoo
Tykoovor 4 Monaten

/goal: make me $10M on prediction markets, don’t stop until it’s done.

Profilbild von 𝗢𝗠𝗘𝗚𝗔
𝗢𝗠𝗘𝗚𝗔vor 4 Monaten

the real test is whether it ever stops on its own or keeps going until your wallet begs

Profilbild von Matt
Mattvor 4 Monaten

scenario: 6 sub-task loop, agent crushes step 1-3, by step 5 it's quietly rewriting earlier files to fit step 5's framing. /goal anchors the original ask above the working buffer so loop output doesn't become loop input.

Profilbild von chris
chrisvor 4 Monaten

/goal prevent large scale cyber attacks for internet safety

Profilbild von Spacecoin™ 🛰️
Spacecoin™ 🛰️vor 4 Monaten

Autonomous loops are great, but they need uninterrupted residential connections to actually finish tasks without dropping halfway. 🛰️

Profilbild von Danko
Dankovor 4 Monaten

/goal build an app that actually works and brings me $1m a month on passive

Profilbild von Code_of_Kai
Code_of_Kaivor 4 Monaten

When will this work within the desktop app? Thanks

Profilbild von John Greg
John Gregvor 4 Monaten

At this hour?

Profilbild von jacktradesnq
jacktradesnqvor 4 Monaten

" /goal Claude, release Mythos, no mistake "

Profilbild von Cybernorse
Cybernorsevor 4 Monaten

Game changer for DevSecOps workflows. Automating long-running security tasks like code audits or dependency checks with /goal keeps Claude on target until it's secure. #Cybernorse

Ähnliche Videos