Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 9, 2025

Enables loading rules and tasks from remote directories using HashiCorp's go-getter library, allowing teams to share coding standards across projects without duplication.

Changes

go-getter Integration

  • Integrated go-getter library for downloading remote directories
  • Supports multiple protocols: Git (git::), HTTP/HTTPS, S3 (s3::), and file://
  • Remote directories are downloaded to temporary locations and cleaned up after execution
  • All standard directory structures supported (.agents/rules, .agents/tasks, etc.)

CLI Flags

  • -d <url> - Remote directory containing rules and tasks (repeatable, supports various protocols)
  • -r - Resume mode flag (original behavior maintained)

Features

  • Bootstrap scripts work in downloaded remote directories
  • Full feature parity with local directories
  • Supports Git branches, tags, commits, and subdirectories
  • Can combine multiple remote sources with local rules

Example

# Clone from Git repository
coding-context-cli \
  -d git::https://github.com/company/shared-rules.git \
  fix-bug

# Use specific branch or tag
coding-context-cli \
  -d 'git::https://github.com/company/standards.git?ref=v1.0' \
  implement-feature

# Multiple remote sources
coding-context-cli \
  -d git::https://github.com/company/standards.git \
  -d https://cdn.company.com/rules.tar.gz \
  fix-bug

Remote and local directories combine normally. Downloads happen on each invocation using go-getter's efficient protocols.

Original prompt

Currently this works on local files. What about working on a remote file system of some kind?


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits November 9, 2025 03:37
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for remote file system access Add HTTP/HTTPS remote file system support for rules and tasks Nov 9, 2025
Copilot AI requested a review from alexec November 9, 2025 03:45
@alexec
Copy link
Contributor

alexec commented Nov 9, 2025

Let's have the remote path be -r. It should point to a remote directory of rules and tasks.

@alexec
Copy link
Contributor

alexec commented Nov 9, 2025

@copilot Please use the go-getter library.

- Changed -r flag from resume to remote directory
- Renamed resume flag to -resume
- Replaced custom HTTP filesystem with go-getter library
- Supports multiple protocols: git, http, https, s3, file
- Remote directories are downloaded and searched like local dirs
- Bootstrap scripts now work in remote directories
- Updated all documentation and examples
- All tests passing

Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 9, 2025

Let's have the remote path be -r. It should point to a remote directory of rules and tasks.

Changed in commit 9947bb6. The -r flag now points to remote directories containing rules and tasks. The resume mode flag has been moved to -resume to avoid conflict.

@copilot Please use the go-getter library.

Implemented in commit 9947bb6. Now using go-getter library which supports multiple protocols (git::, http://, https://, s3::, file://, etc.). Remote directories are downloaded to temp locations and searched just like local directories.

Copilot AI changed the title Add HTTP/HTTPS remote file system support for rules and tasks Add remote directory support via go-getter for rules and tasks Nov 9, 2025
Copy link
Contributor

@alexec alexec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Let's use -d and keep -r for resume.

- Changed -d flag for remote directories (was -r)
- Restored -r flag for resume mode (was -resume)
- Updated all tests to use correct flags
- Updated all documentation and examples
- All tests passing

Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 9, 2025

@copilot Let's use -d and keep -r for resume.

Changed in commit 7e879b9. The -d flag is now used for remote directories and -r is restored for resume mode.

# Remote directory
coding-context-cli -d git::https://github.com/company/rules.git fix-bug

# Resume mode  
coding-context-cli -r fix-bug

Copilot AI requested a review from alexec November 9, 2025 05:36
@alexec alexec marked this pull request as ready for review November 9, 2025 16:40
@alexec alexec enabled auto-merge (squash) November 9, 2025 16:40
@alexec alexec merged commit 2e7783d into main Nov 9, 2025
2 checks passed
@alexec alexec deleted the copilot/add-remote-file-system-support branch November 9, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants