A TypeScript-first TurboRepo monorepo for building and refining agentic workflows with GitHub-integrated automation and AI-assisted optimization.
This repository provides:
- A monorepo architecture for workflow development and refinement
- A Commander.js CLI for refinement operations
- Modular packages for core logic, orchestration, GitHub integration, and AI analysis
- GitHub Actions for deterministic automation and GH-AW markdown for agentic automation
- GitHub workflows, issue templates, and rulesets for governance
/apps
/cli
/packages
/core
/agentics
/github
/ai
/refinements
/docs
/workflows
/.github
/workflows
/ISSUE_TEMPLATE
/rulesets
- Favor direct, deterministic tool invocation over repeated deliberation loops
- Minimize unnecessary reasoning about tools, permissions, and state
- Track optimization outcomes with measurable benchmark metrics
npm install
npm run cli -- refine run --workflow workflows/workflow-factory.md --run-id 1001
npm run cli -- refine analyze --conversation "Reasoning about tool call"
npm run cli -- refine extract --run-id 1001- Compile workflow (
gh aw compile) - Execute workflow (
gh aw run) - Create
refinements/{run_id}and download artifacts - Extract
prompt.txt,conversation.txt, andusage.json - Analyze transcripts via AI provider abstraction (default: Ollama)
- Generate actionable tasks and benchmark improvements
.github/workflows/context-cache.yml.github/workflows/context-cache-effectiveness.ymlworkflows/workflow-factory.md
Reusable GH-AW markdown sources live in /workflows. Workflows used only by this repository live in
.github/workflows as normal GitHub Actions YAML.
Install reusable GH-AW sources into a target repository by copying them to that repository's
.github/workflows/*.md, then running gh aw compile there.
Optimization targets:
- Token usage reduction
- Tool call count reduction
- Execution time reduction
- Success-rate stability or improvement
- Install dependencies:
npm install - Run tests:
npm test - Run type checks:
npm run typecheck - Open a pull request using issue templates and required checks