Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9d682c3
feat(#6966): add a completed reference agent and an authoring skill
waynesun09 Sep 3, 2026
18d5958
fix(#6966): scope the example to added links and keep truncation in t…
waynesun09 Sep 3, 2026
9f19df6
docs(#6966): plain-language README for examples/, mention the authori…
waynesun09 Sep 4, 2026
eaec2e0
docs(#6966): finish removing project jargon from the example docs
waynesun09 Sep 4, 2026
617c810
fix(#6966): regenerate the example and test the real run-dir contract
waynesun09 Sep 4, 2026
d8166b7
fix(#6966): the example could not run its own first two steps
waynesun09 Sep 4, 2026
c5413fa
fix(#6966): correct three claims the example made about itself
waynesun09 Sep 4, 2026
9ab521a
fix(#6966): regenerate the example on the fixed Vertex profile
waynesun09 Sep 4, 2026
21eb59a
fix(#6966): the Inputs section described a checkout that does not exist
waynesun09 Sep 4, 2026
2cf39c0
fix(#6966): make the example's steps runnable as written
waynesun09 Sep 11, 2026
6930f89
fix(#6966): pure renames, old paths of renamed files, and an untruste…
waynesun09 Sep 11, 2026
4e77c71
fix(#6966): omitted diffs on added files are errors; fences follow th…
waynesun09 Sep 11, 2026
a87e1ec
fix(#6966): check a pull-request path before using it in a command; c…
waynesun09 Sep 11, 2026
402946d
fix(#6966): regenerate the example from the generator in fullsend#7243
waynesun09 Sep 11, 2026
e36ed1e
fix(#6966): directory link targets, and unchecked files are an error
waynesun09 Sep 11, 2026
d4c3e98
fix(#6966): a runnable path guard, and directory existence from the c…
waynesun09 Sep 11, 2026
759c629
fix(#6966): replace a stale findings comment on ok; hunk headers with…
waynesun09 Sep 11, 2026
54b81d6
fix(#6966): regenerate the example on --only-if-exists; test the live…
waynesun09 Sep 11, 2026
c5a3161
fix(#6966): the ok path degrades to posting nothing on a fullsend wit…
waynesun09 Sep 11, 2026
2274d74
fix(#6966): declare the example's GitHub token the OpenShell 0.1 way
waynesun09 Oct 1, 2026
9c3f978
fix(#6966): keep the raw GitHub token out of the example's sandbox
waynesun09 Oct 1, 2026
5fc2fc5
fix(#6966): pin the post target in tests; scan the example's credentials
waynesun09 Oct 1, 2026
f075ba3
fix(#6966): regenerate the example from fullsend#7243's final head
waynesun09 Oct 1, 2026
114a56f
test(#6966): a failed post fails the example's run
waynesun09 Oct 1, 2026
106f748
fix(#6966): read the work item from REPO_FULL_NAME and ISSUE_NUMBER
waynesun09 Oct 1, 2026
ee1dcd5
docs(#6966): list examples/ in the repository structure
waynesun09 Oct 1, 2026
0b023f6
docs(#6966): point the example's generator reference at the split PRs
waynesun09 Oct 1, 2026
3ce3e12
fix(#6966): regenerate the example: fail on a broken fullsend, no his…
waynesun09 Oct 1, 2026
c3e1413
fix(#6966): regenerate the example: fence the dry-run preview
waynesun09 Oct 1, 2026
3b0f7b1
fix(#6966): file-first existence, named checkout tools, exact line nu…
waynesun09 Oct 1, 2026
f569e20
fix(#6966): complete early results, decide existence once, encode paths
waynesun09 Oct 1, 2026
213e42e
fix(#6966): root-relative targets drop the leading slash
waynesun09 Oct 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .skillsaw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,15 @@ exclude:
# - "**/_template/**"

# Additional markdown files to run content rules on (glob format)
content-paths: []
#
# examples/ holds complete reference agents generated by `fullsend agent new`
# (see examples/link-check/). They are not fleet agents and are not registered
# in config.yaml, so skillsaw does not discover them on its own — but they are
# meant to be copied, so an unfilled placeholder or a stale TODO in one is
# exactly as harmful as it would be in a real agent definition.
content-paths:
- "examples/**/agents/*.md"


# Not enforced here: CI (lint.yml) and `make lint` both pass an explicit
# strict flag that overrides this config value, so this setting only
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ script-test:
$(call run-timed,bash scripts/post-retro-test.sh)
$(call run-timed,bash scripts/pre-scribe-test.sh)
$(call run-timed,bash scripts/post-scribe-test.sh)
$(call run-timed,bash scripts/example-link-check-test.sh)
$(call run-timed,bash scripts/validate-output-schema-test.sh)
$(call run-timed,bash scripts/validate-code-output-test.sh)
$(call run-timed,bash scripts/gitlint-forbidden-type-scope-test.sh)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ skills/ Reusable skill definitions loaded by agents at runtime
plugins/ Sandbox plugins (e.g. gopls LSP for the code agent)
eval/ Functional eval harness and default online-scoring manifests
behaviour/ Live behaviour test suite (BDD feature specs and runner)
examples/ Finished reference agents generated by `fullsend agent new` (not registered or dispatched)
```

## Architecture
Expand Down
6 changes: 5 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ Reference documentation for the default agents shipped by fullsend.
| [Custom network policy](network-policy.md) | Configure sandbox network access for hosts beyond the default allowlist |

For configuration, customization, and building your own agents, see the
[fullsend docs](https://fullsend.sh/docs).
[fullsend docs](https://fullsend.sh/docs). To build one, run
[`fullsend agent new`](https://github.com/fullsend-ai/fullsend/blob/main/docs/cli/agent.md#agent-new)
and then follow the [`authoring-custom-agents`](../skills/authoring-custom-agents/SKILL.md)
skill to complete the generated prompt; [`examples/link-check/`](../examples/link-check/)
is a finished one.
108 changes: 108 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Examples

Each example here was generated by
[`fullsend agent new`](https://github.com/fullsend-ai/fullsend/blob/main/docs/cli/agent.md#agent-new),
which writes every file except the prompt. What was then added by hand is the
body of `agents/<name>.md` — the instructions the agent follows — and the
choice of trigger and scope.

These are not the agents in this repository's `harness/` directory. They are
not registered in `config.yaml`, nothing dispatches them, and no repository
consumes them by URL. They are here so a working custom agent is checked by
this repository's lint and test gates instead of only described in
documentation.

| Example | Role | Trigger | What it does |
|---------|------|---------|--------------|
| [`link-check/`](link-check/) | `review` | pull request opened, updated, or marked ready — not from a fork | Reports Markdown links **added by the pull request** that do not resolve |

To run one locally, register it first — the examples are deliberately not in
this repository's `config.yaml`, so `fullsend run` cannot find them until you
add one to a copy:

```bash
cp -r examples/link-check /tmp/demo-fullsend
printf 'version: "1"\nroles: [review]\n' > /tmp/demo-fullsend/config.yaml
fullsend agent add harness/link-check.yaml --name link-check \
--fullsend-dir /tmp/demo-fullsend
```

Without that step the run fails with `resolving agent "link-check": no config
and agents-repo fallback unavailable`.

## Using one

Generate your own rather than copying this directory. The command records the
exact container image the agents in this repository currently run on, and
writes the network-access files the role you pick needs:

```bash
fullsend agent new my-agent --fullsend-dir .fullsend \
--role review --description "What my agent decides" --validation-loop
```

`--validation-loop` re-runs the agent if its JSON output does not match the
schema. It is off by default in the command, but every agent in this
repository's `harness/` directory that has a schema uses one, so the example
turns it on to match. It needs `python3` and the `jsonschema` package on the
machine running the agent; the generated `preflight_check` checks for them
before starting the agent rather than after it has finished.

Until [fullsend-ai/fullsend#7883](https://github.com/fullsend-ai/fullsend/issues/7883)
ships, make two changes to the generated files together, as this example
does. Without them the sandbox gets the real GitHub token instead of a
placeholder:

- copy the `credentials:` blocks of `providers/github-ro.yaml` and
`profiles/fullsend-github-ro.yaml` from this example;
- remove `GH_TOKEN` from `env.sandbox` in the harness, keeping it in
`env.runner`.

Doing only the second leaves `gh` in the sandbox with no token at all.

The generated prompt's first step, `gh issue view`, goes through GraphQL,
which the generated profile does not allow
([fullsend-ai/fullsend#7014](https://github.com/fullsend-ai/fullsend/issues/7014)):
replace it with `gh api "repos/${REPO_FULL_NAME}/issues/${ISSUE_NUMBER}"`.

Then read the example alongside the
[`authoring-custom-agents`](../skills/authoring-custom-agents/SKILL.md) skill
while you fill in `agents/my-agent.md`.

## What each example must satisfy

- **No placeholders.** Two gates, because neither covers the other.
`skillsaw --strict` runs over `examples/**/agents/*.md` (see `content-paths`
in `.skillsaw.yaml`) and catches a stale `TODO`; it does **not** recognise
the `<!-- FILL IN: ... -->` marker the generator emits, so
`scripts/example-link-check-test.sh` greps for that one and fails
`make test` if any survives.
- **A tested post-script.** The script that turns the agent's output into a
comment is fed whatever the model produced, so it is tested as carefully as
the ones in `scripts/` — see `scripts/example-link-check-test.sh`, wired into
`make test`.
- **It loads.** `fullsend lock <name> --fullsend-dir examples/<name> --offline`
must pass. It resolves the harness by path, so it works against the example
as it sits here, unregistered.
- **The shared assets are what the generator produces.** `policies/`,
`providers/`, `profiles/` and `scripts/validate-output-schema.sh` are
byte-identical to `fullsend agent new` output (as of fullsend-ai/fullsend
[#7914](https://github.com/fullsend-ai/fullsend/pull/7914),
[#7915](https://github.com/fullsend-ai/fullsend/pull/7915),
[#7916](https://github.com/fullsend-ai/fullsend/pull/7916) and
[#7917](https://github.com/fullsend-ai/fullsend/pull/7917), which this
example was regenerated from — merge those first), and are not
hand-edited here:
they are vendored copies of files that live in fullsend, so a change to one
belongs there, not in this copy. One exception: `providers/github-ro.yaml`
and `profiles/fullsend-github-ro.yaml` declare the GitHub token the
OpenShell 0.1 way this repository's own copies do, so the sandbox gets a
placeholder rather than the token, and to keep it that way
`harness/link-check.yaml` sets `GH_TOKEN` under `env.runner` only, not
under `env.sandbox` too. The generator does not emit either yet
([fullsend-ai/fullsend#7883](https://github.com/fullsend-ai/fullsend/issues/7883)).
The generated GitHub profile also lacks the GraphQL endpoint the fleet
profile has
([fullsend-ai/fullsend#7014](https://github.com/fullsend-ai/fullsend/issues/7014)).
- **The prompt is written by hand.** `agents/<name>.md` is the one file the
generator leaves for you, and completing it is the point of the example.
Loading
Loading