#45

cli option to clone inside .opensrc in cwd instead of home dir

Openhfkhrniopened 7mo ago

i'd like to have different repo versions in different directories i'm working in and more importantly have the repos close to running agents and not have them searching in my home directory

Activity

4
yairopro7mo ago

I agree when betterstack recommended it, this was the way it was doing: cloning under ./opensrc in local folder structure and adding the folder to .gitignore Also the Usage section of the documentation does not makes sense anymore.

v0.6.0 was good

moehaje7mo ago

rolling back to v0.6.0 for this!

yairopro7mo ago

Just sharing my .cursor/skills/explore-library-source/SKILL.md. I tell it to use opensrc@0.6

	---
	name: explore-library-source
	description: >-
	Download a library's source code using opensrc CLI for deeper understanding
	of its internals. Use when debugging library behavior, inspecting
	implementations, or when documentation is insufficient.
	---

	# Explore Library Source

	```bash
	npx opensrc@0.6 <package-or-repo>
	```

	**Examples:**

	```bash
	npx opensrc@0.6 @react-native-community/netinfo // npm
	npx opensrc@0.6 author/repo // github
	```

	Source lands in `opensrc/` at the workspace root (which is git-ignored).
	Explore the downloaded source with search/read tools to find the relevant implementation.

I personally prefer skills than poluate the AGENTS.md

gael-boyenval4mo ago

please ! opensrc has simply no interest without this option, this should be the default