---
title: "Troubleshooting"
description: "What you see, why it happens, and the exact key or command that fixes it."
url: "https://agentfield.ai/docs/codeaf/troubleshooting"
canonical: "https://agentfield.ai/docs/codeaf/troubleshooting"
markdown_url: "https://agentfield.ai/llm/docs/codeaf/troubleshooting"
contract_version: "2026-03-24-v1"
docs_revision: "a2a2b0669dab"
product: "CodeAF"
category: "general"
difficulty: "unspecified"
keywords: []
last_modified: "2026-11-02T17:24:14.000Z"
ai_summary: "What you see, why it happens, and the exact key or command that fixes it."
---

Find what you see on screen. Each entry gives the cause in one line, then the fix.

Stuck on something not listed here? Ask CodeAF in plain words, such as "what keys open the wall?". It looks the answer up in its own manual, which ships inside it. See the [FAQ](/docs/codeaf/faq).

## Try the dev build

The docs can run slightly ahead of a release. If a feature described here is not in your `codeaf`, try the dev build, which gets new features first:

It installs `devaf` beside `codeaf` and shares your keys, settings and conversations, so stable stays as it is. For the next release before it ships, use `https://agentfield.ai/get/stageaf` (`stageaf`) the same way.

## Known issues and reporting a bug

Before you dig in, check whether it is already known. Every open bug is listed at [github.com/Agent-Field/CodeAF/issues](https://github.com/Agent-Field/CodeAF/issues?q=is%3Aissue+is%3Aopen+label%3Abug). Search for a word from the screen text you see.

If it is not there, [open a new issue](https://github.com/Agent-Field/CodeAF/issues/new?template=defect.md). Fill in what happened and the steps that make it happen again; leave the sections for the fix to the maintainers. Include the output of `codeaf version` and the exact screen text, and leave out any keys or private paths. A report a stranger can reproduce gets fixed first. To ask first, or to see whether others hit it too, ask on the [AgentField Discord](https://discord.gg/aBHaXMkpqh).

## Install and version

### A feature here is missing or behaves differently

**Cause:**

the docs can run slightly ahead of the stable release.

**Fix:**

check which build you run:

`codeaf v0.4.1` is stable. A tag that starts `dev-` is dev, and `staging-` is staging. To get the newest dev build beside your stable one, run:

Then start it with `devaf` in place of `codeaf`. To switch your `codeaf` itself to dev, run `codeaf update --dev`, or type `/update dev` in a chat. To go back, run `codeaf update --stable`. Once on dev, a plain `codeaf update` keeps you on the newest dev build.

You can also build dev from source. It needs Go 1.26 or newer:

Then run `bin/codeaf` from that folder.

### `codeaf: command not found` right after installing

**Cause:**

the install folder, `~/.codeaf/bin`, is not on your PATH yet.

**Fix:**

the installer prints an `export PATH=...` line as the last thing it says. Paste it into your shell, or open a new terminal.

### `unsupported platform`

**Cause:**

there is no release build for this system. Builds exist for macOS, Linux and Windows, on x86-64 and ARM.

**Fix:**

build from source with `make build`, as above.

### `GitHub's API could not be reached or refused`

**Cause:**

GitHub limits how often one address may ask for releases, or there is no network.

**Fix:**

wait a few minutes, or set `GITHUB_TOKEN` and run the install line again. To pin one release, end the line with `| VERSION=<tag> bash`.

### `/update` says this codeaf was built from source

**Cause:**

a build you made yourself cannot update itself from a release.

**Fix:**

run `make build` again in your checkout, or install a release with `curl -fsSL https://agentfield.ai/get/codeaf | bash`.

### `there is no codeaf --model`

**Cause:**

chat options go after the word `chat`.

**Fix:**

`codeaf chat --model <slug>`. `codeaf --help` lists every verb.

## Getting started

### `codeaf needs a model to work with`

**Cause:**

CodeAF found no model service key.

**Fix:**

run `codeaf connect openrouter` to sign in with your browser, or export `OPENROUTER_API_KEY` and start again.

### `accepted the key but the account cannot pay`

**Cause:**

the account behind the key has no credit left.

**Fix:**

add credit at the link in the message, or pick another model with `/model`.

### `refused that key` or `did not answer`

**Cause:**

the service rejected the key, or its check got no answer.

**Fix:**

run `codeaf connect <service>` again with a valid key.

### `that model is not being served any more`

**Cause:**

no provider serves that model today.

**Fix:**

pick another with `/model`. In the picker, <kbd>Ctrl</kbd>+<kbd>R</kbd> refreshes today's list.

### `still waiting for an answer · /model switches`

**Cause:**

the provider is slow to reply.

**Fix:**

wait, or switch models with `/model`.

### A command I typed started a paid task

**Cause:**

choosing `/task` from the <kbd>/</kbd> list puts `/task ` in the box. Anything you type next becomes the task's brief.

**Fix:**

press <kbd>Enter</kbd> a second time to open the task page, or clear the box with <kbd>Ctrl</kbd>+<kbd>U</kbd> before you type something else. If a task started by mistake, press <kbd>X</kbd> in its room, then <kbd>1</kbd> and <kbd>Enter</kbd>.

### Work keeps running after I close the terminal

**Cause:**

this is by design. The engine keeps conversations and tasks going with no window open.

**Fix:**

see what runs with `codeaf engine --status-all`. Stop everything with `codeaf engine --stop-all`.

## Tasks and parallel work

### A task sits in Waiting and nothing happens

**Cause:**

the machine is busy. When the load is above 1.5 per core, CodeAF starts no new task. Running tasks are not touched. On a laptop this is rare; on a shared build server it is common.

**Fix:**

open `/settings`, go to Tasks, and set **busy machine** higher, or to `0` to stop watching the load (this is the `task.max_load` setting). Then run `codeaf engine --stop-all` and open CodeAF again, so the waiting task picks up the new value.

### I pressed 2 to say no, and the task started anyway

**Cause:**

while a card counts down, the first key only stops the clock. The pointer can still be on `1 start it`.

**Fix:**

look at the pointer before you press <kbd>Enter</kbd>. If it is not on your answer, press your digit again.

### `its branch was kept: your checkout is on main`

**Cause:**

your checkout is on a branch that tasks never merge into on their own, such as main or dev.

**Fix:**

merge the kept `task/...` branch yourself, or work from a feature branch.

### `conflicts with your branch`

**Cause:**

the task's branch did not merge cleanly.

**Fix:**

open the task and choose to resolve it, or drop it.

### `another window has work out in this project`

**Cause:**

another CodeAF window has work in the same repository.

**Fix:**

let that work land first, or continue from that window.

### `could not start the task`, but it is running

**Cause:**

the engine answered slowly, and the task did start.

**Fix:**

check the task list with <kbd>Ctrl</kbd>+<kbd>.</kbd> before you start it again.

### A note in a task room does not send

**Cause:**

the task list still holds the keyboard, so <kbd>Enter</kbd> opens a task instead of sending.

**Fix:**

press <kbd>Alt</kbd>+<kbd>T</kbd> to give the keyboard back to the box, then press <kbd>Enter</kbd>.

## Teams and managers

### Typing after Shift+M renamed my team

**Cause:**

after <kbd>Shift</kbd>+<kbd>M</kbd> makes a manager, the keys stay on the page's rail. Letters run page keys: <kbd>S</kbd> opens the team's settings.

**Fix:**

press <kbd>Esc</kbd> after <kbd>Shift</kbd>+<kbd>M</kbd>, then type your message to the manager.

### The global manager cannot reach a new manager

**Cause:**

a manager has no handle until it has answered once, so other managers cannot address it.

**Fix:**

send every new manager one message first, such as `You manage the product team. Reply ready.` It gets a handle from that answer.

### Esc stopped my manager

**Cause:**

with a manager in front, <kbd>Esc</kbd> interrupts its running answer.

**Fix:**

to reach the rail, press <kbd>Alt</kbd>+<kbd>↑</kbd>, then <kbd>↑</kbd> <kbd>↓</kbd> and <kbd>Enter</kbd>. Send the manager a message to carry on.

### The hint says m starts a manager

**Cause:**

the hint is wrong. <kbd>M</kbd> is Move into.

**Fix:**

press <kbd>Shift</kbd>+<kbd>M</kbd> to start a manager.

### A manager hired members without asking

**Cause:**

approvals start on YOLO, so a manager's hires need no answer from you.

**Fix:**

in the manager's conversation, press <kbd>Alt</kbd>+<kbd>A</kbd> until it reads asks. Do this in each manager: one it starts does not take your choice with it.

### `open in another window`

**Cause:**

another CodeAF window holds that conversation.

**Fix:**

switch to that window, or start a new conversation here.

### `was not saved`

**Cause:**

another CodeAF held the teams file for a moment.

**Fix:**

make the change again. Undo is still offered.

### `reached its cap today`

**Cause:**

the team spent its daily cap, so no new member work starts.

**Fix:**

choose **Raise** on the card, or change the cap on the team's card: <kbd>S</kbd> on the teams rail.

## Standing orders

### I said "always..." and no card came

**Cause:**

plain words can be kept as a memory note instead of a standing order.

**Fix:**

say it with `/standing <words>`. A card comes; press <kbd>1</kbd> to set it up.

### A rule for this project shows under "in other projects"

**Cause:**

the standing page files it on the wrong shelf. The rule still applies in this project.

**Fix:**

nothing to do. To stop it, open `/standing`, select it, press <kbd>→</kbd>, then <kbd>S</kbd>.

### Task workers do not follow a standing rule

**Cause:**

on dev today, the rules reach the chat but not the workers of a task.

**Fix:**

put the rule in the task's brief as well.

### "Every 2 minutes" runs every 5

**Cause:**

timed orders are checked on a 5-minute pass. The card says so.

**Fix:**

nothing to do. Choose a gap of 5 minutes or more.

### `could not install the background check`

**Cause:**

the machine has no user session to hang a timer on, which is common over a plain ssh login.

**Fix:**

the order is still kept, and it runs while a CodeAF window is open on that machine.

## Remote machines

### `must be installed on <host> under that name`

**Cause:**

CodeAF is not on the other machine, or not on the PATH a non-login ssh command sees.

**Fix:**

install CodeAF there, then check with `ssh <host> codeaf version`. That machine needs its own model key too: run `codeaf connect` there.

### `reconnecting` and then `the redialling ran out of time`

**Cause:**

the link dropped. CodeAF redials for five minutes, and the work keeps going on the other machine.

**Fix:**

run the same `codeaf chat --host ...` again. The conversation is still there.

### `typing from another window now` after a reconnect

**Cause:**

the window that reconnected did not get the keyboard back.

**Fix:**

press <kbd>Enter</kbd> once.

### `too long for Unix domain socket`

**Cause:**

CodeAF's home folder path is too long for the ssh link file it keeps there.

**Fix:**

keep CodeAF's home at a short path. The default, `~/.codeaf`, is fine; if you set `CODEAF_HOME` to a deep folder, choose a shorter one.

### `still holding this conversation on an older codeaf`

**Cause:**

an engine from another build holds that folder.

**Fix:**

run `codeaf engine --stop --workspace <folder>` on that machine, then connect again.

### `codeaf engine --status` says no engine holds my project

**Cause:**

without `--workspace`, it checks your home folder, not the folder you are in.

**Fix:**

use `codeaf engine --status --workspace <folder>`, or `codeaf engine --status-all`.

## Spend

### `this task reached its $5 limit`

**Cause:**

each task may spend $5 unless you change it.

**Fix:**

`/crew cap task 10`.

### `today's crew spend has reached the daily cap`

**Cause:**

the crews reached the daily cap you set in `/crew`.

**Fix:**

`/crew cap <dollars>`, or `/crew cap off`, or wait for midnight.

### `conversation limit reached`

**Cause:**

this conversation reached its own limit.

**Fix:**

`/budget conversation <amount>` raises it, and `/budget conversation none` removes it.

### A chat kept going past my day limit

**Cause:**

on dev today, the day limit holds `codeaf do` and standing orders, but not chat turns.

**Fix:**

set a limit that chats obey: `/budget conversation 5`.

### `today's spending limit of $X is spent, so nothing was started`

**Cause:**

`codeaf do` reached the day's limit.

**Fix:**

raise it with `/budget <amount>`, or add `--yes-spend` to spend past it for one run.
