@vekexasia/fucina
v0.0.1
Published
Label-driven AI workflows for GitHub repositories.
Readme
Fucina
Issue dentro, PR fuori.
Fucina is a thin layer over Sandcastle for label-driven AI workflows on GitHub.com repositories. Fucina owns labels, GitHub workflow conventions, prompts, configuration loading, and CLI setup; Sandcastle owns agent execution, sandboxing, branch strategy, sessions, and provider integration.
MVP labels
Operational trigger labels are one-shot buttons: Fucina removes only the label that triggered the run when that run starts.
fucina:explore- analyze an open issue and comment with findingsfucina:implement- implement an open issue and create a draft PRfucina:review- publish a read-only GitHub PR Reviewfucina:address-feedback- address feedback on an internal PR branchfucina:in-progress- visible running statefucina:blocked- last run failed or was refused; removed on retry
There is no MVP readiness label, fucina:queued, or fucina:update-branch. Runs share repository-wide GitHub Actions concurrency with cancel-in-progress: false, so GitHub Actions is the queue.
Install in a repo
npx @vekexasia/fucina@<version> installfucina install writes workflows and .fucina/config.json, creates or updates labels, never commits, and does not overwrite existing files without confirmation or --force. Use install-labels only for label maintenance.
Target repositories pin Fucina in the generated workflows with npx @vekexasia/fucina@<version>; Fucina is not a repository dependency.
Configuration
Fucina reads environment variables first, then optional .fucina/config.json. Required values must come from one of those sources.
Minimum config keys:
agent- one of Sandcastle providersclaudeCode,codex, orpimodelagentCliVersion- pinned CLI version installed by FucinamaxIterations- optional, defaults to1
Optional repository variable:
FUCINA_ALLOWED_ACTORS- comma-separated GitHub usernames allowed to run Fucina. When omitted, Fucina allows repository collaborators with write, maintain, or admin permission.
Optional secret:
AGENT_PAT- Fucina usesAGENT_PAT || GITHUB_TOKENand fails clearly when a PAT is required.
Sensitive instruction path protection
Fucina protects files that can influence agent instructions from prompt injection by untrusted PR authors.
The sensitiveInstructionPaths config key defaults to:
.fucina/**.github/workflows/**AGENTS.mdCLAUDE.md.claude/**.codex/**.pi/**
This list can be completely overridden in .fucina/config.json, but not via environment variables.
When fucina:review runs on a PR:
- If the PR modifies files matching sensitive paths AND the PR author is not an Authorized Actor, the review blocks with
fucina:blocked - An error comment is posted with the exact command to approve:
/fucina trust-instructions <full-sha> - An Authorized Actor can post that slash command as a PR comment to explicitly trust the changes
- The approval is SHA-specific; if the PR is updated, a new approval is required
This prevents untrusted contributors from injecting malicious instructions into agent workflows while allowing Authorized Actors to explicitly review and approve instruction changes.
Local development
npm install
npm run typecheck
npm run build