Skip to content

Run source snippets in isolated template projects - #7

Merged
timzhong1024 merged 1 commit into
mainfrom
feat/run-source-files
Aug 22, 2026
Merged

Run source snippets in isolated template projects#7
timzhong1024 merged 1 commit into
mainfrom
feat/run-source-files

Conversation

@timzhong1024

Copy link
Copy Markdown
Owner

Summary

  • accept an optional source file and snippet arguments after --
  • copy file contents into a fresh isolated language template instead of executing in the source project
  • pass arguments through Python, Node, Rust, Go, and .NET backends
  • document the isolation boundary in both READMEs and the bundled agent skill

Semantics

run-code TOOLCHAIN FILE -- ARG... reads only FILE. It does not run in the file's existing project, discover that project's dependencies, or copy sibling files. Dependencies remain explicit through --package.

Verification

  • cargo fmt --check
  • cargo clippy --locked --all-targets -- -D warnings
  • cargo test --locked (26 tests)
  • cargo package --locked
  • npm wrapper syntax and dry-run package validation
  • real file execution with argument passthrough on Python, Node, Rust, Go, and .NET; every snippet confirmed the source project's README.md was not visible from its execution directory
  • Node file execution with zod@4 in normal output mode

@timzhong1024
timzhong1024 merged commit 975e4b3 into main Aug 22, 2026
4 checks passed
@timzhong1024
timzhong1024 deleted the feat/run-source-files branch August 22, 2026 14:19
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