Skip to content

Decide whether fctl tells every project's agents how to use issues and pull requests #28

Closed

Description

@fctl-sh

Split from #20: should fctl's own prompt give every project the basic rules for issues and pull requests?

How it works now

  • hyperstructure's own repositories have the rules: AGENTS.md, plus the issues and pull-requests skills in .claude/skills/ (Skills and instructions for agents: issues, when to close them, and watching pull requests #20). Agents working on fctl, fctl-site or design get them.
  • 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.

Activity

  1. added
    enhancement
    agents
    on Oct 18, 2026
  2. fctl-sh commented on Oct 28, 2026

    @fctl-sh
    ContributorAuthor

    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.

  3. fctl-sh commented on Oct 28, 2026

    @fctl-sh
    ContributorAuthor

    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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentsenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions