You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Decide whether fctl tells every project's agents how to use issues and pull requests #28
Every other project's agents get only crates/fctl-agent/src/prompt.rs. That prompt says to open a pull request with gh pr create and to link the session. It says nothing about Fixes versus Refs, about waiting for CI, or about what to do after a merge.
So agents on other projects still improvise. That's what #14–#19 showed before #20: an issue referenced without a closing keyword when it should have had one, and CI waited for or not depending on the agent.
What could change
Add a few lines to the system prompt (prompt.rs), for every project:
Fixes #N only when the pull request does everything the issue asks; otherwise Refs #N.
Wait for CI in the same turn (gh pr checks N --watch --fail-fast), and fix failures before ending the turn. Nothing wakes the session afterwards until React to CI failures and review comments #8.
Answer review comments in their threads.
Repositories with their own AGENTS.md or skills would keep those, and the prompt would say theirs come first.
Decisions for a person
Whether fctl should tell every project's agents how to use issues and pull requests at all, or leave that to each repository's instructions.
If it should, whether that's always on, or a project setting next to instructions.
Before deciding
Watch two sessions in this repository with the new skills (the checks from #20):
On an issue whose checklist the session can only partly finish: the pull request says Refs #N, and the issue gets a status comment instead of being closed.
A session whose push fails CI sees the failure in the same turn and fixes it.
Compatibility: prompt changes reach sessions with a release (fctl-agent). They don't change any protocol.
Decided by the person who started fctl session #388: fctl tells every project's agents brief rules for pull requests and issues, on by default, and each project can change them, as a setting next to its instructions.
#299 does it: agents that open pull requests get fctl's rules (the repository's own instructions first; read an issue with its comments first; Fixes only for everything an issue asks, otherwise Refs and a status comment; wait for checks and fix what the change broke; answer review comments in their threads; merge only when asked). A project replaces them with its own text, or empties them, in Settings → Agents or with fctl projects set --pr-instructions. ADR 0060 records it.
The two checks under "Before deciding" weren't run first: the decision didn't wait for them, so their boxes stay as they are.
Merged in #299 (04b2abe), which closed this issue.
Deployed: app.fctl.sh takes the pull_request_instructions setting and shows it under Settings → Agents, and fctl.sh's docs describe it.
Ships with the next release: agents are told the rules once their hosts run the fctl-agent of a release that contains 04b2abe (none does yet), and fctl projects set --pr-instructions and fctl projects show --pr-instructions come with that release's CLI.
Activity
docs: add agent rules for issues and pull requests (#29)
feat: install fctl in sandboxes and let agents name their sessions (#33)
fix: name show --pr-instructions' JSON apart from the setting, and sh…
fctl-sh commentedon Oct 28, 2026
Decided by the person who started fctl session #388: fctl tells every project's agents brief rules for pull requests and issues, on by default, and each project can change them, as a setting next to its instructions.
#299 does it: agents that open pull requests get fctl's rules (the repository's own instructions first; read an issue with its comments first;
Fixesonly for everything an issue asks, otherwiseRefsand a status comment; wait for checks and fix what the change broke; answer review comments in their threads; merge only when asked). A project replaces them with its own text, or empties them, in Settings → Agents or withfctl projects set --pr-instructions. ADR 0060 records it.The two checks under "Before deciding" weren't run first: the decision didn't wait for them, so their boxes stay as they are.
fix: keep outsiders from directing agents and let a project's rules win
fix(web): show fctl's rules whole in the field
fctl-sh commentedon Oct 28, 2026
Merged in #299 (04b2abe), which closed this issue.
pull_request_instructionssetting and shows it under Settings → Agents, and fctl.sh's docs describe it.fctl projects set --pr-instructionsandfctl projects show --pr-instructionscome with that release's CLI.