Espalier Engineering
Reads your codebase's real conventions, encodes them as rules, skills and hooks, and makes AI coders fit your repo on the first try.
- Source repo
- Junhanliu-dev/espalier-engineering
- Stars
- ★ 69
- Last updated
- 1mo ago
- FARS reviewed
- Nov 24, 2026
- License
- MIT
- Primary language
- Shell
- FA score
- 50/100 · Major gaps
At a glance
- How it runs
- Works with
- Portable with changesCodex · Claude Code
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- Multi-developer repos with real but unwritten conventions: you want AI-generated code to land on the existing style instead of burning three to five rework rounds per request.
- Not a fit if
- Throwaway prototypes and single-file scripts where consistency doesn't matter
- Solo projects where convention consistency is not a priority
- Teams unwilling to pay for a coding-agent subscription plus per-run model costs
- Website
- junhanliu-dev.github.io ↗ set on GitHub
- Maintenance
- Commits in the last 6 monthslast commit 2026-10-20
- Source review
- 50/100 · Major gaps 2 safety controls not found
What does this agent do, and when should you use it?
Espalier Engineering is a Claude Code plugin — with documented wiring for OpenAI Codex and GitHub Copilot — that starts by reading your repository rather than writing to it: parallel scout agents extract the conventions nobody ever wrote down. A one-time /espalier-init generates a project-local espalier/ tree containing always-loaded rules, phase-loaded skills, sub-agent definitions (harness-coder, harness-reviewer, harness-security), a wiki, hooks, maps and a changes/ audit trail, then wires it into the host agent through .claude/ symlinks plus settings hooks, AGENTS.md plus .codex/, or copilot-instructions.md plus .github/. Every later change runs a gated pipeline in which a coder agent writes and a separate reviewer agent with a read-only tool set checks the work against the same rules, joined by a security auditor on trust boundaries, with pre-push hooks blocking pushes that skip the gates. Runs are recorded per requirement in espalier/changes/, pull requests are split into a code PR and an espalier PR, drift detection flags documentation the code has outgrown, and refreshes stay gated. It is MIT-licensed and the software is free; model usage is billed to your own host agent.
The entry point is /espalier-init: parallel scout agents read the codebase and extract coding standards, security and production conventions, then it emits an espalier/ directory tree — rules/ (always loaded), skills/ (the /espalier, /espalier-fix, /espalier-ask and other pipelines), agents/ (harness-coder, harness-reviewer, harness-security), wiki/ (architecture, data models, critical paths), hooks/ (layer checks, pre-push, drift detect), maps/ (multi-session decision maps) and changes/ (one typed audit folder per requirement) — and wires that tree into the host platform: Claude Code via .claude/ symlinks and settings hooks, OpenAI Codex via repo skills, an AGENTS.md section and .codex/ agents and hooks, GitHub Copilot via Agent Skills, copilot-instructions.md and .github/ agents and hooks. Day to day, /espalier <feature> runs a 10-stage pipeline: grilled requirements, your explicit approval, code, independent review, tests, gated push. /espalier-fix is a slimmer bug lane that auto-links each fix to the change that caused it; /espalier-ask answers questions read-only with every claim sourced; /espalier-audit runs a repo-wide security audit of existing code; /espalier-simplify performs an evidence-first simplification survey; /espalier-map and /espalier-maprun turn work bigger than one session into a decision map executed by headless workers in isolated worktrees. On the delivery side, espalier-pr.sh projects records into a separate espalier PR from a temp worktree, pre-push-gate.sh enforces the gates, and espalier-stats.sh prints the ceiling ledger; /espalier-doctor and /espalier-prune handle documentation drift with gated refreshes, /espalier-migrate upgrades an existing install, and /espalier-repot moves an install between the project repo and a sibling espalier-main/<project>/ folder.
- Multi-developer repos with real but unwritten conventions: you want AI-generated code to land on the existing style instead of burning three to five rework rounds per request.
- Long-lived product repos where every requirement needs requirement grilling, review, tests and a push gate, plus a traceable change audit trail.
- Teams running Claude Code, Codex and GitHub Copilot side by side and wanting one set of rules and gates across all three.
- Engineers onboarding onto an unfamiliar codebase who need sourced, code-verified answers about architecture and critical paths via /espalier-ask.
- Maintainers cleaning up existing code: /espalier-audit for a security sweep and /espalier-simplify to turn proven cuts into refactor changes the pipeline runs.
- Security- or compliance-sensitive repos that need a separate read-only reviewer plus a security auditor, and hooks rather than prompt instructions stopping gate-skipping pushes.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Config files
~/.claude/skills/espalier-init~/.agents/skills~/.agents/skills/espalier-init~/.agents/skills/espalier-migrate~/.copilot/skills
How do you install or deploy this agent?
Prerequisites: an installed and authenticated Claude Code (or Codex / GitHub Copilot) plus git. The README's preferred path is the plugin marketplace, followed by one initialization per repo:
/plugin marketplace add Junhanliu-dev/espalier-engineering
/plugin install espalier-engineering@espalier-engineering
/espalier-initWithout the marketplace, clone the repo and symlink the espalier-init skill into your user-level skills directory; restart Claude Code afterwards and update later with git pull:
# Manual git clone + symlink (Claude Code)
git clone https://github.com/Junhanliu-dev/espalier-engineering ~/repos/espalier-engineering
ln -sfn ~/repos/espalier-engineering/skills/espalier-init ~/.claude/skills/espalier-initFor a single project, link into the project's own .claude/skills instead:
# Project-scoped install
mkdir -p .claude/skills
ln -sfn /path/to/espalier-engineering/skills/espalier-init .claude/skills/espalier-initOpenAI Codex users link the skills into ~/.agents/skills, restart Codex, pick Codex (or Both) at the platform question, and run /hooks once to trust the two quality gates:
# Codex (OpenAI)
git clone https://github.com/Junhanliu-dev/espalier-engineering ~/repos/espalier-engineering
mkdir -p ~/.agents/skills
ln -sfn ~/repos/espalier-engineering/skills/espalier-init ~/.agents/skills/espalier-init
ln -sfn ~/repos/espalier-engineering/skills/espalier-migrate ~/.agents/skills/espalier-migrateGitHub Copilot users link the same skills into ~/.copilot/skills:
# GitHub Copilot
git clone https://github.com/Junhanliu-dev/espalier-engineering ~/repos/espalier-engineering
mkdir -p ~/.copilot/skills
ln -sfn ~/repos/espalier-engineering/skills/espalier-init ~/.copilot/skills/espalier-init
ln -sfn ~/repos/espalier-engineering/skills/espalier-migrate ~/.copilot/skills/espalier-migrateIf init already ran from Claude Code and you only want to add Codex wiring without redoing discovery:
bash ~/repos/espalier-engineering/scripts/bootstrap-espalier.sh \
--wire-only --platforms=codex \
--plugin-dir=~/repos/espalier-engineering/skills/espalier-init --yesInit takes roughly 10–15 minutes per repo and costs about $2–5 in model usage on a medium repository.
How do you use this agent?
Run the one-time setup at the repo root and answer the platform question (Claude Code / Codex / Both, and Copilot where relevant). Then invoke the main pipeline for a feature:
/espalier-initThe full run is ten stages — grilled requirements, your explicit sign-off, code, independent review, tests, gated push:
/espalier <feature>When you want the agents to do the work but keep every commit yourself, add --simple: the run stops after review and tests with nothing committed, no PR and no records; working files sit in a gitignored espalier/.simple/<slug>/ that is deleted once you approve, and a dirty tree at start is refused.
/espalier --simple <feature>Other commands as needed: /espalier-fix <bug> for the bug lane with automatic causal links; /espalier-ask <question> for read-only, source-cited answers verified against the code; /espalier-audit and /espalier-simplify for existing code; /espalier-map and /espalier-maprun for work spanning sessions; /espalier-doctor and /espalier-prune for documentation drift; /espalier-migrate to upgrade an install; /espalier-repot to move an install out of or back into the project repo. In Codex the prefix is $ (for example $espalier, $espalier-fix); in Copilot use the documented command names. To keep every espalier file out of the project repo, run /espalier-init --outside, which places the tree in a sibling espalier-main/<project>/ with its own local git.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- sensitive-data handling — Use dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
- dependency security — Pin versions and run a dependency audit (npm audit, pip-audit) before installing; prefer running it in a container.
What are this agent's strengths and limitations?
- Conventions are discovered from the code itself: parallel scout agents extract patterns already present instead of imposing templates, so the rules match the repo as it actually is.
- Execution and judgment are separated by construction — harness-coder writes, a different agent with a read-only tool set reviews, and harness-security joins on trust boundaries, so review is never self-review.
- Gates are programmatic: pre-push-gate.sh and espalier-pr.sh block pushes that skip them at the git layer rather than relying on prompt instructions.
- Platform-neutral core: one espalier/ tree wires into Claude Code, OpenAI Codex and GitHub Copilot at once, and adding a platform later is a re-wire that leaves existing wiring intact.
- Strong traceability: espalier/changes/ keeps one typed audit folder per requirement, fixes auto-link back to the change that caused them, espalier-stats.sh prints a ceiling ledger, and drift refreshes are gated rather than silent.
- MIT-licensed and free, with opting-out paths (--outside, --simple) for repos that cannot carry the extra directory or the commits.
- Requires a paid host agent subscription (Claude Code, Codex or Copilot) plus roughly $2–5 of model spend for init, and continuing token cost on every pipeline run.
- Setup takes 10–15 minutes per repo and the pipeline itself is heavy: the README quotes about 37 model turns per coder spawn.
- Everything is delivered as host-agent slash commands and hooks; no standalone CLI or HTTP API is documented for CI-only use.
- By default it writes an entire espalier/ tree and .claude/settings hooks into the repo; keeping it out means --outside, a sibling local git repo and an excluded symlink to manage.
- Platform coverage is limited to the three documented hosts; other runtimes would need new wiring.
- The project's own docs rule out prototypes, single-file scripts and solo projects where consistency does not matter, so the fit is deliberately narrow.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Espalier Engineering This agent | 50 · Major gaps | Agent plugin / skillFree + model costs | ★ 69 | 1mo ago | Shell | Codex · Claude Code |
| Workflow Plugin: Claude Workflow V2 | 47 · Major gaps | Agent plugin / skillFree + model costs | ★ 1.4k | 1mo ago | Python | Claude Code |
| Suede Skills | 64 · Some gaps | — | ★ 121 | 2d ago | JavaScript | Codex · Claude Code |
| Harmonist | 67 · Some gaps | CLIFree + model costs | ★ 2.1k | 5mo ago | Python | — |
How does FollowAgents rate this agent?
Why each dimension lost points
The evidence shows the product writes into the target project, creates symlinks, modifies .claude/settings.json, and installs a git hook; SECURITY.md acknowledges these behaviors. However, there is no least-privilege design, permission inventory, or pre-install confirmation, so least_privilege is 1. The pipeline emphasizes approval gates and explicit sign-off, giving user_confirmation 2, but confirmation for settings/hook installation is not described. Data-flow transparency only covers token cost, not how source code is sent to models or third parties, so it is 1. Sensitive-data handling is absent, scoring 0. There is no dependency manifest, lockfile, or dependency audit, and SECURITY.md explicitly excludes dependency issues, so dependency_security is 0. External effects are documented but no rollback or uninstall path is provided, giving external_effects and rollback 1 each. Only the ponytail transplant is attributed; there is no complete third-party notice, so source_attribution is 1.
Version 0.30.0 is consistent across README, plugin.json, and marketplace.json, but SECURITY.md's supported-version table still lists 0.5.x, a clear self-contradiction, so self_consistency is 1. Dependency availability mentions bash, python3, git, and three platforms but provides no dependency list or version constraints, scoring 1. Failure messages have scattered evidence (exit 3, BLOCKED-ON-REQUIREMENT) but are not systematic, so failure_messages is 1.
README clearly states target scenarios and a 'Skip Espalier for' list, giving audience_and_scenarios 2. Capability boundaries are described (read-only Q&A, --simple stop point, audit scope) but agent permission boundaries are not fully defined, so capability_boundaries is 2. SKILL.md provides trigger phrases and a command table, giving trigger_precision 2. Environment fit covers Claude Code, Codex, and Copilot with install paths, scoring 2.
README is well structured with quick start, command table, and cost docs, giving information_architecture 2. Install notes are thorough, covering plugin marketplace, manual clone, project-scoped, Codex, and Copilot paths, so install_notes is 3. Naming is generally stable, but the stale SECURITY.md version table weakens naming_stability to 2. Examples exist but there is no FAQ, so examples_and_faq is 1. Known limitations are present via the 'Skip Espalier for' section and security scope, scoring 2. LICENSE is a complete MIT text, giving license 3. CHANGELOG and migration guides are referenced, but the CHANGELOG file is not in the packet, so versioning_changelog is 2. Maintenance responsibility lists an author, security contact, and response timeline, but publisher identity is unverified, so maintenance_responsibility is 2.
The product outputs rules, skills, agents, hooks, and a pipeline, which is usable in design, giving output_usability 2; no execution evidence supports a higher score. It addresses a real problem—AI-generated code not matching repository conventions—so marginal_value is 2. Cost-benefit has detailed token and USD estimate tables, scoring 2, but benefit claims such as 'typically 1 round' lack reproducible data.
Key claims such as 'typically 1 round' and 'earn back within 5–10 feature requests' lack traceable sources or measurement methods, so claim_traceability is 1. Version information is cross-corroborated across plugin files but conflicts with SECURITY.md, giving cross_source_corroboration 1. README mixes marketing assertions with factual descriptions without separating inference from verified fact, so fact_inference_separation is 1.
- Not found in source: sensitive-data handlingUse dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
- Not found in source: dependency securityPin versions and run a dependency audit (npm audit, pip-audit) before installing; prefer running it in a container.
- Installation modifies .claude/settings.json and installs a git hook, but there is no described pre-install confirmation or complete uninstall/rollback path.
- SECURITY.md's supported-version table still lists 0.5.x, clearly inconsistent with 0.30.0 in README/plugin.json, which may mislead security reporting and upgrade decisions.
- The repository provides no dependency manifest, lockfile, or dependency audit, and SECURITY.md explicitly excludes dependency issues from its security scope.
- It does not explain how source code is sent to models during discovery, whether sensitive information is included, or how redaction is handled.
- Benefit claims such as 'typically 1 round' and 'earn back within 5–10 feature requests' lack reproducible measurement data.
FAQ
What does a run actually cost?
Am I locked into Claude Code?
What happens when the code outgrows the documentation?
Can I keep espalier files entirely out of my repository?
Is there a lighter mode that skips commits and PRs?
Is Espalier Engineering open source?
Is Espalier Engineering safe to use?
Is Espalier Engineering still maintained?
Who makes Espalier Engineering?
What is Espalier Engineering's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.