I've spent most of this year helping AI safety researchers use coding agents, at MATS and other places. This post collects the advice I find myself repeating most often, and I'll keep it updated over time. My goal is to help you get better results while spending less time and mental resources.
Much of the advice is easier to follow with my tools installed, though they're by no means mandatory:
Most of the examples in this post come from building one of those tools, tldr: a small plugin that collapses each long agent reply to a one-sentence summary, with [ more ] to open the full reply. Messages are verbatim unless labelled made up, and [...] marks text I left out.
A real reply from building tldr and the TL;DR the plugin saved for it, as rendered in the Claude Code CLI. [ more ] opens the full reply.
Stop doing things for your agent
If your agent has limited permissions and access it'll stop early, and you'll find yourself context switching more often in order to unblock it. Whenever this happens, I check if there's a way to give my agent permanent access. For example:
Auto mode. Now Claude Code's default: a classifier checks each command for you. /auto-mode-setup helps you configure its permissions.
Your data sources. Email, Slack, docs, cloud storage, etc.
Your compute provider, like RunPod or Vast.ai.
Computer use, for whatever has no connector.
A way to check its own work, so it can catch mistakes and iterate itself.
Nov 11Captured by the agent autonomously using a real terminal.
Paste this prompt into your agent for some easy wins:
Look through my recent sessions in this project for things I did by hand that you could have done yourself with the right access: text I pasted in from Slack, email or docs, commands I ran for you, results I copied back. For each one, tell me which connector, CLI or permission would let you do it next time, and set up the ones you can.
Where should my agents run?
A common setup is to install Claude Code on every GPU machine you rent, but that agent can't add GPUs or stop using the one it's sitting on, so managing compute stays your job.
Instead, run all your agents on one persistent machine and let them spin up and use compute on their own. Anthropic's managed agents post calls this decoupling the brain from the hands. My remote-kernels plugin is the hands part for RunPod, vast.ai and Kubernetes.
Using your laptop isn't ideal, since your sessions stop whenever it sleeps. I'd use a dedicated computer that stays on, a cloud server, or your university cluster's login node. Cloud servers cost more in the long run and lack a residential IP address, but they're still a good choice, especially when your org provides one.
What about security?
I see lots of people keep friction in the name of security. You're likely fine if you back up your data, keep sensitive things the agent doesn't need somewhere it can't access, and otherwise connect everything else it might use.
"Somewhere it can't access" is ideally a different computer from the one your agents run on, especially for your crypto if you have any.
Your agent will install a lot of software, so this also protects you from supply chain attacks, which are probably at least as big a risk as misaligned actions. As for prompt injection, Anthropic staff have said publicly that their built-in mitigations essentially solve it in practice.
Fully in the loop, or fully out
A lot of fatigue comes from checking on an agent every so often to unblock it. Instead, at any point in a session, I'm in one of two modes, and I tell the agent which one.
In the loop, I focus on this one session and nothing else, letting me stay calm and in flow instead of bouncing between sessions. Once I'm done communicating, I send it off and leave the loop. I don't look again until it can't make progress without me.
The most common pattern is a spec phase, an execution phase and a review phase, but it isn't a rule. In-the-loop phases are for communicating intent, whenever they happen.
Make the conversation the spec
Instructing Claude is a delicate balance. If you are too specific, Claude will follow your instructions even when a pivot may be more appropriate. If you are too vague, Claude will often make choices and assumptions based on industry best practices that may not be a fit for your task.
Often I give the high-level objective and ask to be interviewed. Sometimes I do a multi-minute voice-to-text dump first, or ask for a prototype.
Speed matters here, so I treat it like a live meeting: I set /effort to low or medium and ask the agent to aim for under a minute per turn, hand anything slow (looking something up, building a prototype, running a check) to a subagent, and keep replies short. There's no alignment-hive skill for this because everyone likes communicating differently, so just ask for what you want, and use memory or a small skill of your own so you don't have to repeat yourself.
When I say "spec", lots of people assume I mean a document. I recommend against writing one, and I don't use plan mode anymore. Your conversation is the ground truth for what you want, and attempts at recording it are often lossy. Worse, a written spec locks in details the agent made up that I never checked and don't care about, and following them then wastes time or sacrifices details that actually matter.
Oct 8
Use past sessions as memory
Without memory, the value of asking you lots of questions is low for your agent, because it won't generalize to future sessions. I believe this leads to an equilibrium of models being trained not to ask many questions. Once you start spending more time speccing, you'll want a good memory solution in order to avoid repeating yourself.
I don't rely on memories the model writes for itself. They often mis-generalize: a mistake that depended on context gets remembered as a never-do, or the wrong reasoning gets written down for an instruction. Writing good memories is incredibly hard, but looking up relevant excerpts from past sessions once you know the current task is easier, so that's how I designed the hive plugin's memory feature. Keeping all my agents on one machine helps with this approach since all the transcripts are in one place.
Nov 9
Consider deleting your CLAUDE.md. I've seen loads of model-authored ones with stale or contradicting information, and having lots of low quality rules dilutes the important ones. Mine is 15 lines and I could probably trim it even more and rely on memory. If you don't delete it, at least run /doctor: it helps clean it up or split it into skills. Read Thariq's new rules of context engineering for more.
Send your agent further
The main way I see people waste attention at the send-off is not asking the agent to go far enough, so it needs you after every step.
Once speccing is over, I tell the agent to keep going until the next step is irreversible and needs my judgement, like kicking off a long experiment or pushing to main. To help it get there, I make sure it knows what it's allowed to decide on its own, its contingencies, and what to show me when it's finished. Sometimes I skip the next in-the-loop phase altogether and tell the agent to land the change if it's confident.
Oct 15
Should I be running lots of agents at once?
Probably, eventually, but don't force it. Once your sessions run a long time without needing you, concurrency comes almost for free. Parallelizing before then just means bouncing between sessions that each still need you. The setup isn't hard: you may need to understand git worktrees and have a way to start and list sessions (I use the terminal's agents view; some people use the desktop app).
Working up to harder tasks (below) often substitutes for concurrency: one session running a range of experiments replaces several running one each. The limit is one orchestrator session for the whole project. Some people like that; I don't that much, since I have a good memory system and want to review tasks independently.
Ask for a review-ready report
Everyone is struggling with how much of their agents' work to review. Some review all of it and feel left behind. Some review none of it, and that's how slop gets into your codebase and wrong conclusions get drawn from your data.
For anything nontrivial, I ask for a report at the end of the run: an HTML page published as a Claude Code artifact, where I can highlight anything and comment straight to Claude. The agent puts real effort into presenting the work clearly, not just doing it. My debrief plugin (in beta) builds reports covering what was done and why, decisions that might not be what I meant, side effects, and how it was verified. Asking for a report in your own words works too.
The report is also how I understand work I didn't do myself. If I want to learn how something works, I ask for more detail up front, and when I'm lost I tell the agent to explain it in the report. Still, the most common complaint I hear from researchers is not understanding their agent's work well enough to steer it, especially in math. I plan to invest heavily in this.
Review usually doesn't need fast back-and-forth like a meeting, because there's a whole page to react to. Often I leave a bunch of comments and send the agent straight back to work without a single in-the-loop turn.
The comments are real, redrawn beside what they're on.
Can I trust the report is faithful?
Probably, for now. The debrief plugin's approach is to have another model fact-check the report independently against the transcript, and I think that's good enough for practical research with current models. That said, a misaligned agent could eventually try to sabotage your research with a misleading report, and to mitigate that I'll likely integrate more elaborate control schemes over time.
Spend more tokens
More compute is the best way I know to increase the quality of your agent's output. Tokens are cheap compared to your time, and the agent's default is likely too conservative. It can hand you a result it doesn't even trust itself, just because it didn't know it was allowed to spend more.
Review subagents[1] are the bread and butter, and same-model review is already really good. There are more creative ways to spend too, and I encourage experimentation: split the work into smaller subtasks, make several independent attempts at the task, have a panel of models judge separately and escalate to you when they disagree, or have a reader with fresh context raise questions about a report. These help most with the parts of a task that can't be checked automatically.
Mixing model families multiplies the effectiveness, because they can compensate for each other's relative strengths and weaknesses. The tip people most often tell me helped is having a GPT model review everything Claude does: the plan, the code, and the analysis. I built model-router to run other models, such as GPT and Gemini models, natively in Claude Code, but it's also fine to just tell Claude to run the Codex CLI. Gemini Neon seems particularly good at writing human-readable text, and it even helped me edit this post (as a fun challenge, lmk if you can spot its phrasing). I plan to keep investing in cross-family work: as third-party researchers we aren't tied to one lab, and I think that's one of our biggest advantages.
Oct 8
To run setups like these in Claude Code, you can use a dynamic workflow: a script Claude writes to spin up many agents. I use one for anything important or at least a little difficult. You can ask for it with "use ultracode" in the send-off, or select it in /effort. I switch back down afterwards if I'm expecting in-the-loop turns.
A research question: This is a question I want to study: can a model train itself on a hard task we never reward, by only earning reward on an easy task when it has also solved the hard one? Run whatever experiments you need and write up what you find.
A range of experiments: Please compare the laundering prompt against rewarding subset sum directly and against SFT on the model's own rollouts. Run each a few times, aggregate the results, try anything else that looks promising, and tell me which works best and why.
One experiment: Please train Qwen 3.5 9B with GRPO on the laundering prompt for 30 steps, rewarding only correct addition answers, and tell me how its subset-sum accuracy compares to the base model's.
One script: Please write a script that trains Qwen with GRPO on the laundering prompt and rewards only correct addition answers.
One edit: Please add a function that checks a subset-sum answer: every number is from the list, none is used twice, and they add up to the target.
Many MATS fellows I work with start at one experiment at a time, and I try to get them to a range of experiments.
Nov 11
Some tasks will be too hard: you get so much sloppy output that it isn't worth reviewing, and you have to break them down. Start by applying all this to what you delegate today, then work your way up as long as the quality and your understanding hold.
I think full research questions are still out of reach except for the simplest ones, though I'm starting to see signs of life, with getting a good write-up being the biggest reported bottleneck. If you get close to delegating one, your research might not be counterfactual: as the big labs spend more compute on alignment research, the easy-to-delegate questions will be handled autonomously. So be more ambitious, and look for work that depends on your human insight to succeed.
Reach out
I'd love to hear how my advice and tools are or aren't working for you, and I'm always looking for collaborations! Run /hive:feedback in Claude Code, open a GitHub issue, or shoot me an email. I'd also love research transcripts that show these points better than my software examples (I might feature them here).
Cross-posted from alignment-hive.com/agent-advice, where the examples are interactive.
I've spent most of this year helping AI safety researchers use coding agents, at MATS and other places. This post collects the advice I find myself repeating most often, and I'll keep it updated over time. My goal is to help you get better results while spending less time and mental resources.
Much of the advice is easier to follow with my tools installed, though they're by no means mandatory:
curl -fsSL https://alignment-hive.com/install.sh | bashMost of the examples in this post come from building one of those tools, tldr: a small plugin that collapses each long agent reply to a one-sentence summary, with
[ more ]to open the full reply. Messages are verbatim unless labelled made up, and [...] marks text I left out.Stop doing things for your agent
If your agent has limited permissions and access it'll stop early, and you'll find yourself context switching more often in order to unblock it. Whenever this happens, I check if there's a way to give my agent permanent access. For example:
/auto-mode-setuphelps you configure its permissions.Paste this prompt into your agent for some easy wins:
Where should my agents run?
A common setup is to install Claude Code on every GPU machine you rent, but that agent can't add GPUs or stop using the one it's sitting on, so managing compute stays your job.
Instead, run all your agents on one persistent machine and let them spin up and use compute on their own. Anthropic's managed agents post calls this decoupling the brain from the hands. My remote-kernels plugin is the hands part for RunPod, vast.ai and Kubernetes.
Using your laptop isn't ideal, since your sessions stop whenever it sleeps. I'd use a dedicated computer that stays on, a cloud server, or your university cluster's login node. Cloud servers cost more in the long run and lack a residential IP address, but they're still a good choice, especially when your org provides one.
What about security?
I see lots of people keep friction in the name of security. You're likely fine if you back up your data, keep sensitive things the agent doesn't need somewhere it can't access, and otherwise connect everything else it might use.
"Somewhere it can't access" is ideally a different computer from the one your agents run on, especially for your crypto if you have any.
Your agent will install a lot of software, so this also protects you from supply chain attacks, which are probably at least as big a risk as misaligned actions. As for prompt injection, Anthropic staff have said publicly that their built-in mitigations essentially solve it in practice.
Fully in the loop, or fully out
A lot of fatigue comes from checking on an agent every so often to unblock it. Instead, at any point in a session, I'm in one of two modes, and I tell the agent which one.
In the loop, I focus on this one session and nothing else, letting me stay calm and in flow instead of bouncing between sessions. Once I'm done communicating, I send it off and leave the loop. I don't look again until it can't make progress without me.
The most common pattern is a spec phase, an execution phase and a review phase, but it isn't a rule. In-the-loop phases are for communicating intent, whenever they happen.
Make the conversation the spec
Thariq Shihipar, A field guide to Claude Fable: finding your unknowns
Often I give the high-level objective and ask to be interviewed. Sometimes I do a multi-minute voice-to-text dump first, or ask for a prototype.
Speed matters here, so I treat it like a live meeting: I set
/effortto low or medium and ask the agent to aim for under a minute per turn, hand anything slow (looking something up, building a prototype, running a check) to a subagent, and keep replies short. There's no alignment-hive skill for this because everyone likes communicating differently, so just ask for what you want, and use memory or a small skill of your own so you don't have to repeat yourself.When I say "spec", lots of people assume I mean a document. I recommend against writing one, and I don't use plan mode anymore. Your conversation is the ground truth for what you want, and attempts at recording it are often lossy. Worse, a written spec locks in details the agent made up that I never checked and don't care about, and following them then wastes time or sacrifices details that actually matter.
Use past sessions as memory
Without memory, the value of asking you lots of questions is low for your agent, because it won't generalize to future sessions. I believe this leads to an equilibrium of models being trained not to ask many questions. Once you start spending more time speccing, you'll want a good memory solution in order to avoid repeating yourself.
I don't rely on memories the model writes for itself. They often mis-generalize: a mistake that depended on context gets remembered as a never-do, or the wrong reasoning gets written down for an instruction. Writing good memories is incredibly hard, but looking up relevant excerpts from past sessions once you know the current task is easier, so that's how I designed the hive plugin's memory feature. Keeping all my agents on one machine helps with this approach since all the transcripts are in one place.
Consider deleting your CLAUDE.md. I've seen loads of model-authored ones with stale or contradicting information, and having lots of low quality rules dilutes the important ones. Mine is 15 lines and I could probably trim it even more and rely on memory. If you don't delete it, at least run
/doctor: it helps clean it up or split it into skills. Read Thariq's new rules of context engineering for more.Send your agent further
The main way I see people waste attention at the send-off is not asking the agent to go far enough, so it needs you after every step.
Once speccing is over, I tell the agent to keep going until the next step is irreversible and needs my judgement, like kicking off a long experiment or pushing to main. To help it get there, I make sure it knows what it's allowed to decide on its own, its contingencies, and what to show me when it's finished. Sometimes I skip the next in-the-loop phase altogether and tell the agent to land the change if it's confident.
Should I be running lots of agents at once?
Probably, eventually, but don't force it. Once your sessions run a long time without needing you, concurrency comes almost for free. Parallelizing before then just means bouncing between sessions that each still need you. The setup isn't hard: you may need to understand git worktrees and have a way to start and list sessions (I use the terminal's agents view; some people use the desktop app).
Working up to harder tasks (below) often substitutes for concurrency: one session running a range of experiments replaces several running one each. The limit is one orchestrator session for the whole project. Some people like that; I don't that much, since I have a good memory system and want to review tasks independently.
Ask for a review-ready report
Everyone is struggling with how much of their agents' work to review. Some review all of it and feel left behind. Some review none of it, and that's how slop gets into your codebase and wrong conclusions get drawn from your data.
For anything nontrivial, I ask for a report at the end of the run: an HTML page published as a Claude Code artifact, where I can highlight anything and comment straight to Claude. The agent puts real effort into presenting the work clearly, not just doing it. My debrief plugin (in beta) builds reports covering what was done and why, decisions that might not be what I meant, side effects, and how it was verified. Asking for a report in your own words works too.
The report is also how I understand work I didn't do myself. If I want to learn how something works, I ask for more detail up front, and when I'm lost I tell the agent to explain it in the report. Still, the most common complaint I hear from researchers is not understanding their agent's work well enough to steer it, especially in math. I plan to invest heavily in this.
Review usually doesn't need fast back-and-forth like a meeting, because there's a whole page to react to. Often I leave a bunch of comments and send the agent straight back to work without a single in-the-loop turn.
Can I trust the report is faithful?
Probably, for now. The debrief plugin's approach is to have another model fact-check the report independently against the transcript, and I think that's good enough for practical research with current models. That said, a misaligned agent could eventually try to sabotage your research with a misleading report, and to mitigate that I'll likely integrate more elaborate control schemes over time.
Spend more tokens
More compute is the best way I know to increase the quality of your agent's output. Tokens are cheap compared to your time, and the agent's default is likely too conservative. It can hand you a result it doesn't even trust itself, just because it didn't know it was allowed to spend more.
Review subagents[1] are the bread and butter, and same-model review is already really good. There are more creative ways to spend too, and I encourage experimentation: split the work into smaller subtasks, make several independent attempts at the task, have a panel of models judge separately and escalate to you when they disagree, or have a reader with fresh context raise questions about a report. These help most with the parts of a task that can't be checked automatically.
Mixing model families multiplies the effectiveness, because they can compensate for each other's relative strengths and weaknesses. The tip people most often tell me helped is having a GPT model review everything Claude does: the plan, the code, and the analysis. I built model-router to run other models, such as GPT and Gemini models, natively in Claude Code, but it's also fine to just tell Claude to run the Codex CLI. Gemini Neon seems particularly good at writing human-readable text, and it even helped me edit this post (as a fun challenge, lmk if you can spot its phrasing). I plan to keep investing in cross-family work: as third-party researchers we aren't tied to one lab, and I think that's one of our biggest advantages.
To run setups like these in Claude Code, you can use a dynamic workflow: a script Claude writes to spin up many agents. I use one for anything important or at least a little difficult. You can ask for it with "use ultracode" in the send-off, or select it in
/effort. I switch back down afterwards if I'm expecting in-the-loop turns.Work up to harder tasks
Hypothetical prompts for each level:
Many MATS fellows I work with start at one experiment at a time, and I try to get them to a range of experiments.
Some tasks will be too hard: you get so much sloppy output that it isn't worth reviewing, and you have to break them down. Start by applying all this to what you delegate today, then work your way up as long as the quality and your understanding hold.
I think full research questions are still out of reach except for the simplest ones, though I'm starting to see signs of life, with getting a good write-up being the biggest reported bottleneck. If you get close to delegating one, your research might not be counterfactual: as the big labs spend more compute on alignment research, the easy-to-delegate questions will be handled autonomously. So be more ambitious, and look for work that depends on your human insight to succeed.
Reach out
I'd love to hear how my advice and tools are or aren't working for you, and I'm always looking for collaborations! Run
/hive:feedbackin Claude Code, open a GitHub issue, or shoot me an email. I'd also love research transcripts that show these points better than my software examples (I might feature them here).An agent spawned autonomously by the main agent.