You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@mind-fold/trellis

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mind-fold/trellis

AI capabilities grow like ivy — Trellis provides the structure to guide them along a disciplined path

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

Trellis

English | 中文

AI capabilities grow like ivy — full of vitality but climbing in all directions. Trellis provides the structure to guide them along a disciplined path.

Based on Anthropic's Effective Harnesses for Long-Running Agents, with engineering practices and improvements for real-world usage.

Installation

pnpm install -g @mind-fold/trellis
# or
npm install -g @mind-fold/trellis

Quick Start

# Initialize in your project
trellis init
# or use short alias
tl init

# Initialize with developer name
trellis init -u your-name

# Initialize for specific tools only
trellis init --cursor          # Cursor only
trellis init --claude          # Claude Code only
trellis init --cursor --claude # Both (default)

What It Does

Trellis creates a structured workflow system in your project:

your-project/
├── .trellis/
│   ├── .developer                 # Developer identity (gitignored)
│   ├── workflow.md                    # Workflow guide
│   ├── agent-traces/            # Session tracking
│   │   └── {developer}/           # Per-developer progress
│   │       ├── index.md           # Progress index
│   │       ├── features/          # Feature tracking
│   │       │   ├── {day}-{name}/  # Feature directory
│   │       │   │   └── feature.json
│   │       │   └── archive/       # Completed features
│   │       └── progress-N.md      # Session records
│   ├── structure/                 # Development guidelines
│   │   ├── frontend/              # Frontend standards
│   │   ├── backend/               # Backend standards
│   │   └── guides/                # Thinking guides
│   └── scripts/                   # Utility scripts
│       ├── common/                # Shared utilities
│       │   ├── paths.sh           # Path utilities
│       │   ├── developer.sh       # Developer management
│       │   └── git-context.sh     # Git context
│       ├── feature.sh             # Feature management
│       ├── add-session.sh         # Record sessions
│       ├── get-context.sh         # Get session context
│       ├── get-developer.sh       # Get developer name
│       └── init-developer.sh      # Initialize developer
├── .cursor/commands/              # Cursor slash commands
├── .claude/commands/              # Claude Code slash commands
├── init-agent.md                  # AI onboarding guide
└── AGENTS.md                      # Agent instructions

Key Features

1. Multi-Developer Support

Each developer (human or AI) gets their own progress tracking:

./.trellis/scripts/init-developer.sh <name>

2. Slash Commands

Pre-built commands for AI assistants:

CommandPurpose
/init-agentInitialize AI session with context
/before-frontend-devRead frontend guidelines before coding
/before-backend-devRead backend guidelines before coding
/check-frontendValidate frontend code against guidelines
/check-backendValidate backend code against guidelines
/check-cross-layerVerify cross-layer consistency
/finish-workPre-commit checklist
/record-agent-flowRecord session progress
/break-loopDeep bug analysis
/onboard-developerFull workflow onboarding

3. Thinking Guides

Structured guides to prevent common mistakes:

  • Cross-layer thinking guide
  • Code reuse thinking guide
  • Pre-implementation checklist

4. Feature Tracking

Track features with directory-based structure:

./.trellis/scripts/feature.sh create my-feature  # Create feature
./.trellis/scripts/feature.sh list               # List active features
./.trellis/scripts/feature.sh archive my-feature # Archive completed

CLI Commands

trellis init              # Initialize workflow
trellis init -u <name>    # Initialize with developer name
trellis init -y           # Skip prompts, use defaults
trellis init -f           # Force overwrite existing files
trellis init -s           # Skip existing files

How It Works

  • AI reads init-agent.md at session start
  • Follows guidelines in .trellis/structure/
  • Updates progress in .trellis/agent-traces/
  • Uses slash commands for common tasks

This creates a structured, documented workflow where:

  • AI agents maintain context across sessions
  • Work is tracked and auditable
  • Code quality standards are enforced
  • Multiple agents can collaborate

Acknowledgments

Trellis is built upon ideas and inspirations from:

License

FSL-1.1-MIT (Functional Source License, MIT future license)

Copyright © Mindfold LLC

Keywords

ai

FAQs

Package last updated on 15 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts