https://github.com/mindfold-ai/Trellis
All-in-one AI framework & toolkit for Claude Code & Cursor
https://github.com/mindfold-ai/Trellis
ai-agent ai-coding claude-code cli cursor developer-tools typescript workflow
Last synced: 5 months ago
JSON representation
All-in-one AI framework & toolkit for Claude Code & Cursor
- Host: GitHub
- URL: https://github.com/mindfold-ai/Trellis
- Owner: mindfold-ai
- License: agpl-3.0
- Created: 2026-01-26T11:49:10.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-02-12T03:52:23.000Z (5 months ago)
- Last Synced: 2026-02-12T13:40:37.544Z (5 months ago)
- Topics: ai-agent, ai-coding, claude-code, cli, cursor, developer-tools, typescript, workflow
- Language: Python
- Homepage: https://trytrellis.app
- Size: 6.01 MB
- Stars: 2,166
- Watchers: 9
- Forks: 108
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Copyright: COPYRIGHT
- Agents: AGENTS.md
Awesome Lists containing this project
- awesome-ai-devtools - Trellis - in-one AI framework & toolkit for Claude Code & Cursor. Manages tasks, specs, and multi-agent pipelines. (Agent Infrastructure / Multi-Agent Orchestration)
- awesome-harness-engineering - Trellis - platform adapter layer turns vendor-specific harness configuration into a portable team practice rather than a per-tool hack.  (Design Primitives / Context Delivery & Compaction)
- awesome-claude-code - mindfold-ai/Trellis - ai/Trellis?style=flat-square&logo=github) | All-in-one AI framework and toolkit for Claude Code and Cursor | (Skills & Plugins)
- StarryDivineSky - mindfold-ai/Trellis - ai团队开发的开源AI代理编排框架,它通过模块化设计解决了传统AI工作流中**代码臃肿**、**任务流转僵化**和**调试困难**三大核心痛点。在自动化流程和复杂决策场景中(例如数据分析、客户服务自动化),传统脚本往往需要重复编写底层通信逻辑,而Trellis允许开发者像搭积木一样自由组合AI能力,显著降低了多代理系统的实现门槛。该项目的核心亮点首先体现为**极简的声明式编程接口**。开发者仅需通过YAML配置文件定义代理角色与工作流规则,无需关注底层通信细节,这与Kubernetes声明式部署的理念异曲同工。其次,其**动态拓扑架构**支持运行时实时增减代理节点,类比于交通调度系统在高峰时段动态调整车道,使得系统扩展性远超同类工具(如LangChain)。更值得一提的是**全链路可观测性设计**,所有代理间的消息传递均生成可视化日志,就像给分布式团队配备了一台全景监控摄像机,极大简化了调试过程。 技术实现上,Trellis采用了两层精巧设计:上层是**基于有向无环图(DAG)的流程引擎**,如同快递分拣中心的智能传送带,自动将任务路由到对应代理;底层则通过**轻量级gRPC通信**构建了去中心化网络,类似蜜蜂群体通过震动频率传递信息,既避免了单点故障,又实现了毫秒级响应。其创新性的"逻辑-物理分离"架构(工作流定义与节点资源解耦)使得同一套业务逻辑可无缝部署于本地笔记本或云端集群,这种灵活性在开源领域尚属罕见。当前版本虽处于早期阶段,但已展现出颠覆现有AI工程范式的潜力。对于需要快速构建弹性AI系统的团队而言,Trellis在易用性与工业级 robustness 之间取得的平衡,使其成为比传统脚本和过度封装SaaS工具更优雅的"第三种选择"。随着插件生态的完善,该项目很可能重新定义AI代理开发的最佳实践。 (A01_文本生成_文本对话 / 大语言对话模型及数据)
- awesome-agent-harness - GitHub - 10851-f4b400?style=flat-square)](https://github.com/mindfold-ai/Trellis) | specs, memory, workflow | Multi-platform coding-agent workflow framework with task context, project memory, and spec injection. | (Catalog / Context & Working-State Engineering)
- my-awesome - mindfold-ai/Trellis - coding,ai-workflow,claudecode,codex,harness pushed_at:2026-06 star:10.4k fork:0.6k The best agent harness. (TypeScript)
README

All-in-one AI framework & toolkit for Claude Code, Cursor, iFlow & Codex
Wild AI ships nothing.
Quick Start •
Why Trellis •
Use Cases •
How It Works •
FAQ
## Why Trellis?
| Feature | Problem Solved |
| --- | --- |
| **Auto-Injection** | Required specs and workflows auto-inject into every conversation. Write once, apply forever |
| **Auto-updated Spec Library** | Best practices live in auto-updated spec files. The more you use it, the better it gets |
| **Parallel Sessions** | Run multiple agents in tandem - each in its own worktree |
| **Team Sync** | Share specs across your team. One person's best practice benefits everyone |
| **Session Persistence** | Work traces persist in your repo. AI remembers project context across sessions |
## Quick Start
```bash
# 1. Install globally
npm install -g @mindfoldhq/trellis@latest
# 2. Initialize in your project directory
trellis init -u your-name
# Or include iFlow CLI support
trellis init --iflow -u your-name
# Or include Codex skills support
trellis init --codex -u your-name
# 3. Start Claude Code and begin working
```
> `your-name` becomes your identifier and creates a personal workspace at `.trellis/workspace/your-name/`
## Use Cases
### Educating Your AI
Write your specs in Markdown. Trellis injects them into every AI session — no more repeating yourself.
Define your component guidelines, file structure rules, and patterns once. AI automatically applies them when creating new code — using TypeScript with Props interface, following PascalCase naming, building functional components with hooks.
### Ship in Parallel
Spawn multiple Claude sessions in isolated worktrees with `/trellis:parallel`. Work on several features at once, merge when ready.
While coding, each worker runs in its own worktree (physically isolated directory), no blocking, no interference. Review and merge completed features while others are still in progress.
### Custom Workflows
Define custom skills & commands that prepare Claude for specific tasks and contexts.
Create commands like `/trellis:before-frontend-dev` that load component guidelines, check recent changes, pull in test patterns, and review shared hooks—all with a single slash.
## How It Works
### Project Structure
```
.trellis/
├── workflow.md # Workflow guide (auto-injected on start)
├── worktree.yaml # Multi-agent config (for /trellis:parallel)
├── spec/ # Spec library
│ ├── frontend/ # Frontend specs
│ ├── backend/ # Backend specs
│ └── guides/ # Decision & analysis frameworks
├── workspace/{name}/ # Personal journal
├── tasks/ # Task management (progress tracking & more)
└── scripts/ # Utilities
.claude/
├── settings.json # Hook configuration
├── agents/ # Agent definitions
│ ├── dispatch.md # Dispatch Agent (pure routing, doesn't read specs)
│ ├── implement.md # Implement Agent
│ ├── check.md # Check Agent
│ └── research.md # Research Agent
├── commands/ # Slash commands
└── hooks/ # Hook scripts
├── session-start.py # Inject context on startup
├── inject-subagent-context.py # Inject specs to subagents
└── ralph-loop.py # Quality control loop
```
### Workflow Diagram
## Roadmap
- [ ] **Better Code Review** — More thorough automated review workflow
- [ ] **Skill Packs** — Pre-built workflow packs, plug and play
- [ ] **Broader Tool Support** — Cursor, OpenCode, Codex integration
- [ ] **Stronger Session Continuity** — Autosave session-wide history
- [ ] **Visual Parallel Sessions** — Real-time progress for each agent
## FAQ
Why Trellis instead of Skills?
Skills are optional — AI may skip them, leading to inconsistent quality. Trellis **enforces** specs via Hook injection: not "can use" but "always applied". This turns randomness into determinism, so quality doesn't degrade over time.
Do I write spec files manually or let AI create them?
Most of the time, AI handles it — just say "We use Zustand, no Redux" and it creates the spec file automatically. But when you have architectural insights AI can't figure out on its own, that's where you step in. Teaching AI your team's hard-won lessons — that's why you won't lose your job to AI.
How is this different from CLAUDE.md / AGENTS.md / .cursorrules?
Those are all-in-one files — AI reads everything every time. Trellis uses **layered architecture** with context compression: only loads relevant specs for current task. Engineering standards should be elegantly layered, not monolithic.
Will multiple people conflict?
No. Each person has their own space at `.trellis/workspace/{name}/`.
How does AI remember previous conversations?
Use `/trellis:record-session` at the end of each conversation. AI writes a session summary to `.trellis/workspace/{name}/journal-N.md` and indexes it in `index.md`. Next time you `/trellis:start`, AI automatically reads recent journals and git info to restore context. In theory, you could just submit your daily journal files as your work report 🤣.
## Star History
[](https://star-history.com/#mindfold-ai/Trellis&Date)
## Community
- [Discord](https://discord.com/invite/tWcCZ3aRHc) — Join the conversation
- [GitHub Issues](https://github.com/mindfold-ai/Trellis/issues) — Report bugs & request features
FSL License •
Made with care by Mindfold
Found Trellis useful? Please consider giving it a ⭐