Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion crates/quarry-server/resources/prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ quarry open "/absolute/path/to/file.md"

### Editing existing documents

When reviewing substantive changes to an existing Markdown document, first open it in Quarry and use suggestions for proposals or unsolicited changes. Apply a direct edit only when the user asks for that concrete change.
When reviewing substantive changes to an existing Markdown document, first open it in Quarry and use suggestions for proposals or unsolicited changes. Apply a direct edit only when the user asks for that concrete change. Leave suggestions for the user to accept or reject.

When the review process is complete, sync the content from Quarry back to the file on disk.

Expand Down
5 changes: 3 additions & 2 deletions crates/quarry-server/resources/quarry.SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ A concrete imperative Quarry comment such as “Add this section,” “Change t
wording,” or “Remove this block” is a direct-edit instruction for that scoped
change; do the work, reply to the comment, and resolve the addressed thread. Do
not respond only with a promise or proposal. Unsolicited changes, and changes
the user explicitly asks to review before applying, stay as suggestions. Both
operation families share the same transaction envelope. To author or
the user explicitly asks to review before applying, stay as suggestions.
Leave suggestions for the user to accept or reject.
Both operation families share the same transaction envelope. To author or
restructure a whole document, prefer the Markdown `PUT` (see Whole-Document
Markdown Writes) over hand-assembling block ops.

Expand Down
1 change: 1 addition & 0 deletions crates/quarry-server/tests/rest_agent_discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ async fn agent_discovery_endpoints_expose_skill_docs_and_metadata() -> anyhow::R
assert!(surface.contains("it does not authorize direct content edits"));
assert!(surface.contains("If no concrete Quarry task exists"));
}
assert!(skill.contains("Leave suggestions for the user to accept or reject"));
assert!(!skill.contains("Wait for the user's instruction"));
assert!(!docs.contains("instruction in the same request"));
assert!(docs.contains("/v1/tmp/documents/$SECRET"));
Expand Down
1 change: 1 addition & 0 deletions crates/quarry-server/tests/rest_onboarding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ async fn prompt_document_teaches_the_review_workflow() {
assert!(body.contains("quarry open"));
assert!(body.contains("### Share a newly written document"));
assert!(body.contains("### Editing existing documents"));
assert!(body.contains("Leave suggestions for the user to accept or reject"));
assert!(body.contains("sync the content from Quarry back to the file on disk"));
assert!(body.contains("creates the shared document"));
assert!(body.contains("Instructions given before the document opens remain valid"));
Expand Down
Loading