Open
Conversation
Implements a Fabric-like pattern runner that executes pre-configured system prompts via the local Python workflow engine (aceteam-nodes). Supports stdin pipes, inline text, file/folder I/O, and batch processing. - Extract ensurePython() to shared util for reuse across commands - Add 10 built-in patterns (7 general + 3 government) - Support user-defined patterns via ~/.ace/patterns/<name>/system.md - Add comprehensive tests for patterns, I/O, and command structure Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace all execSync shell-string calls with execFileSync array form to prevent command injection via config-sourced python paths - Validate pattern names against /^[a-zA-Z0-9][a-zA-Z0-9_-]*$/ to prevent path traversal in user pattern loading - Update tests to match execFileSync API Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ace run <pattern>command — a Fabric-like pattern runner that pipes text through pre-configured system prompts, executed locally via the Python workflow engine (aceteam-nodes)--file), folder batch processing (--input-dir/--output-dir), model override (--model), and JSON output (--json)~/.ace/patterns/<name>/system.mdensurePython()to shared utility for reuse across commandsexecSyncshell-string calls withexecFileSyncarray form/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/Test plan
pnpm test)pnpm build)pnpm lint)node dist/index.js run --listshows all patternsecho "test text" | node dist/index.js run summarizeproduces outputnode dist/index.js run summarize --file <path>reads file input🤖 Generated with Claude Code