Skip to content

Add repo flake environment guidance#403

Merged
marccampbell merged 2 commits into
mainfrom
investigate-nix-flake-workspace
Jun 11, 2026
Merged

Add repo flake environment guidance#403
marccampbell merged 2 commits into
mainfrom
investigate-nix-flake-workspace

Conversation

@marccampbell

Copy link
Copy Markdown
Contributor

Summary

  • detect cloned repositories with repo-local flake.nix during repo instruction discovery
  • generate REPO_ENVIRONMENT.md with native nix develop commands for each flake-backed repo
  • append a Repository Environments section to workspace AGENTS.md so agents know to use the repo flake for repo-local commands

Notes

  • Keeps workspace flake behavior as the global claw/tooling environment.
  • Does not introduce a custom helper command; generated guidance uses native nix develop directly.

Tests

  • env GOCACHE=/private/tmp/elasticclaw-go-build go test ./pkg/hub
  • env GOCACHE=/private/tmp/elasticclaw-go-build go test ./...

@greptile-apps

greptile-apps Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "Add repo flake environment guidance" | Re-trigger Greptile

Comment thread pkg/hub/server.go Outdated
Comment thread pkg/hub/repo_instructions_test.go
@greptile-apps

greptile-apps Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Reviews (2): Last reviewed commit: "Address repo flake guidance review" | Re-trigger Greptile

@marccampbell marccampbell merged commit 8930c2a into main Jun 11, 2026
11 checks passed
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.

1 participant