cairn-work 0.7.1 โ 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -173
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,241 +1,160 @@
|
|
|
1
|
-
# Cairn
|
|
1
|
+
# Cairn
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Project management for AI agents. Markdown files are the source of truth.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Setup
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install -g cairn-work
|
|
9
9
|
cairn onboard
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
This creates a workspace and writes two context files your agent reads automatically:
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
- **`CLAUDE.md`** โ Compact reference for day-to-day operations (statuses, CLI commands, autonomy rules)
|
|
15
|
+
- **`.cairn/planning.md`** โ Full guide for creating projects and tasks with real content
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
No agent-specific configuration. Any AI agent that can read files is ready to go.
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
- **Files are the source of truth** - No database, just markdown
|
|
20
|
-
- **AI-native** - Designed for AI agents to understand and work with
|
|
21
|
-
- **Agent detection** - Auto-configures for Clawdbot, Claude Code, Cursor, Windsurf
|
|
22
|
-
- **Simple hierarchy** - Projects โ Tasks
|
|
23
|
-
- **Status tracking** - pending, active, review, blocked, completed
|
|
19
|
+
## How it works
|
|
24
20
|
|
|
25
|
-
|
|
21
|
+
You and your AI agent share a folder of markdown files. Projects have charters. Tasks have objectives. Status fields track where everything stands โ like a kanban board backed by text files.
|
|
26
22
|
|
|
27
|
-
### Global Install (Recommended)
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npm install -g cairn-work
|
|
31
|
-
# or
|
|
32
|
-
bun install -g cairn-work
|
|
33
23
|
```
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
24
|
+
~/cairn/
|
|
25
|
+
CLAUDE.md # Agent context (auto-generated)
|
|
26
|
+
.cairn/planning.md # Planning guide (auto-generated)
|
|
27
|
+
projects/
|
|
28
|
+
launch-app/
|
|
29
|
+
charter.md # Why, success criteria, context
|
|
30
|
+
tasks/
|
|
31
|
+
setup-database.md # Individual task
|
|
32
|
+
build-api.md
|
|
33
|
+
deploy.md
|
|
34
|
+
inbox/ # Ideas to triage
|
|
42
35
|
```
|
|
43
36
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### `cairn onboard`
|
|
37
|
+
### The workflow
|
|
47
38
|
|
|
48
|
-
|
|
39
|
+
1. **You create a project** โ tell your agent what you want to build. It creates the project and tasks using `cairn create`, fills in real content (not placeholders), and sets everything to `pending`.
|
|
49
40
|
|
|
50
|
-
|
|
51
|
-
cairn onboard # Auto-detect agent
|
|
52
|
-
cairn onboard --agent clawdbot # Specific agent
|
|
53
|
-
cairn onboard --force # Re-run onboarding
|
|
54
|
-
```
|
|
41
|
+
2. **You manage the board** โ move tasks to `next_up` or `in_progress` when you're ready to start. Or tell your agent "work on the API task" and it picks it up.
|
|
55
42
|
|
|
56
|
-
|
|
43
|
+
3. **The agent keeps status updated** โ when it starts a task, it moves to `in_progress`. When it finishes, it moves to `review` (so you can approve) or `completed` (if you gave it full autonomy). If it gets stuck, it moves to `blocked` and tells you what it needs.
|
|
57
44
|
|
|
58
|
-
|
|
45
|
+
4. **You always know where things stand** โ statuses are the shared language. The agent is accountable for keeping them accurate.
|
|
59
46
|
|
|
60
|
-
|
|
61
|
-
cairn init # Create workspace in current directory
|
|
62
|
-
cairn init --path /custom # Custom location
|
|
63
|
-
```
|
|
47
|
+
### Statuses
|
|
64
48
|
|
|
65
|
-
|
|
49
|
+
`pending` ยท `next_up` ยท `in_progress` ยท `review` ยท `blocked` ยท `completed`
|
|
66
50
|
|
|
67
|
-
|
|
51
|
+
### Autonomy
|
|
68
52
|
|
|
69
|
-
|
|
70
|
-
# Create a project
|
|
71
|
-
cairn create project "Launch My App"
|
|
53
|
+
Each task has an autonomy level that controls what the agent can do:
|
|
72
54
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
55
|
+
| Level | Agent behavior | Finishes as |
|
|
56
|
+
|-------|---------------|-------------|
|
|
57
|
+
| `propose` | Plans the approach, doesn't do the work | `review` |
|
|
58
|
+
| `draft` | Does the work, no irreversible actions | `review` |
|
|
59
|
+
| `execute` | Does everything, including deploy/publish/send | `completed` |
|
|
77
60
|
|
|
78
|
-
|
|
61
|
+
Default is `draft` โ the agent works but you approve before anything ships.
|
|
79
62
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
cairn doctor
|
|
84
|
-
```
|
|
63
|
+
## Commands
|
|
85
64
|
|
|
86
|
-
### `cairn
|
|
65
|
+
### `cairn onboard`
|
|
87
66
|
|
|
88
|
-
|
|
67
|
+
Set up workspace and write agent context files.
|
|
89
68
|
|
|
90
69
|
```bash
|
|
91
|
-
cairn
|
|
92
|
-
cairn
|
|
70
|
+
cairn onboard # Interactive setup
|
|
71
|
+
cairn onboard --path ./mywork # Non-interactive, specific path
|
|
72
|
+
cairn onboard --force # Re-run on existing workspace
|
|
93
73
|
```
|
|
94
74
|
|
|
95
|
-
### `cairn
|
|
75
|
+
### `cairn create`
|
|
96
76
|
|
|
97
|
-
|
|
77
|
+
Create projects and tasks. Always pass real content โ the CLI enforces `--description` and `--objective`.
|
|
98
78
|
|
|
99
79
|
```bash
|
|
100
|
-
cairn
|
|
101
|
-
|
|
80
|
+
cairn create project "Launch App" \
|
|
81
|
+
--description "Ship the MVP by March" \
|
|
82
|
+
--objective "We need to validate the idea with real users" \
|
|
83
|
+
--criteria "App live on production, 10 beta signups" \
|
|
84
|
+
--context "React Native, Supabase backend, deploy to Vercel"
|
|
102
85
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
- **[Clawdbot](https://clawd.bot)** - Full integration via skills system
|
|
108
|
-
- **Claude Code** - Workspace context integration
|
|
109
|
-
- **Cursor** - .cursorrules integration
|
|
110
|
-
- **Windsurf** - Workspace integration
|
|
111
|
-
- **Generic** - Manual setup instructions for any AI agent
|
|
112
|
-
|
|
113
|
-
## How It Works
|
|
114
|
-
|
|
115
|
-
### File Structure
|
|
116
|
-
|
|
117
|
-
```
|
|
118
|
-
~/cairn/
|
|
119
|
-
projects/
|
|
120
|
-
launch-my-app/
|
|
121
|
-
charter.md # Project overview
|
|
122
|
-
tasks/
|
|
123
|
-
setup-database.md # Individual task
|
|
124
|
-
deploy-api.md # Another task
|
|
125
|
-
inbox/ # Incoming ideas
|
|
126
|
-
_drafts/ # Work in progress
|
|
86
|
+
cairn create task "Set up database" \
|
|
87
|
+
--project launch-app \
|
|
88
|
+
--description "Configure Supabase tables and RLS policies" \
|
|
89
|
+
--objective "Database schema matches the data model, RLS prevents cross-tenant access"
|
|
127
90
|
```
|
|
128
91
|
|
|
129
|
-
###
|
|
130
|
-
|
|
131
|
-
**Project** - A goal or initiative (e.g., "Launch My App")
|
|
132
|
-
**Task** - An atomic piece of work (e.g., "Set up database")
|
|
133
|
-
|
|
134
|
-
### Status Workflow
|
|
135
|
-
|
|
136
|
-
`pending` โ `active` โ `review` โ `completed`
|
|
137
|
-
|
|
138
|
-
Or if blocked: `active` โ `blocked` โ `active`
|
|
139
|
-
|
|
140
|
-
### Working with AI Agents
|
|
141
|
-
|
|
142
|
-
After onboarding, your agent understands how to:
|
|
143
|
-
- Create and update projects/tasks
|
|
144
|
-
- Follow status workflows
|
|
145
|
-
- Log work with timestamps
|
|
146
|
-
- Ask for input when blocked
|
|
147
|
-
|
|
148
|
-
**Example conversation:**
|
|
149
|
-
```
|
|
150
|
-
You: "Help me plan out my app launch"
|
|
151
|
-
Agent: "I'll create a project structure. What's your app called?"
|
|
152
|
-
You: "TaskMaster - a todo app"
|
|
153
|
-
Agent: *creates project with tasks for backend, frontend, deployment*
|
|
154
|
-
```
|
|
92
|
+
### `cairn doctor`
|
|
155
93
|
|
|
156
|
-
|
|
94
|
+
Check workspace health โ verifies folder structure, `CLAUDE.md`, and `.cairn/planning.md` exist.
|
|
157
95
|
|
|
158
96
|
```bash
|
|
159
|
-
cairn
|
|
97
|
+
cairn doctor
|
|
160
98
|
```
|
|
161
99
|
|
|
162
|
-
|
|
100
|
+
### `cairn update-skill`
|
|
101
|
+
|
|
102
|
+
Refresh `CLAUDE.md` and `.cairn/planning.md` with the latest templates (e.g. after a CLI update).
|
|
163
103
|
|
|
164
|
-
Or update manually:
|
|
165
104
|
```bash
|
|
166
|
-
|
|
105
|
+
cairn update-skill
|
|
167
106
|
```
|
|
168
107
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
## Configuration
|
|
108
|
+
### `cairn update`
|
|
172
109
|
|
|
173
|
-
|
|
174
|
-
- **Workspace:** Current directory or `~/cairn`
|
|
175
|
-
- **Agent detection:** Automatic
|
|
176
|
-
- **Files:** Plain markdown with YAML frontmatter
|
|
110
|
+
Check for a new CLI version and install it.
|
|
177
111
|
|
|
178
|
-
Override workspace location:
|
|
179
112
|
```bash
|
|
180
|
-
|
|
113
|
+
cairn update
|
|
181
114
|
```
|
|
182
115
|
|
|
183
|
-
##
|
|
184
|
-
|
|
185
|
-
1. **Context is King** - Keep all context in one place
|
|
186
|
-
2. **Files > Databases** - Text files are portable and future-proof
|
|
187
|
-
3. **Simple Beats Complete** - Start simple, add complexity when needed
|
|
188
|
-
4. **AI-First** - Designed for human-AI collaboration
|
|
189
|
-
|
|
190
|
-
## Troubleshooting
|
|
116
|
+
## File format
|
|
191
117
|
|
|
192
|
-
|
|
118
|
+
All files use YAML frontmatter + markdown sections.
|
|
193
119
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
120
|
+
**Charter** (`charter.md`):
|
|
121
|
+
```yaml
|
|
122
|
+
---
|
|
123
|
+
title: Launch App
|
|
124
|
+
status: in_progress
|
|
125
|
+
priority: 1
|
|
126
|
+
default_autonomy: draft
|
|
127
|
+
---
|
|
200
128
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
129
|
+
## Why This Matters
|
|
130
|
+
## Success Criteria
|
|
131
|
+
## Context
|
|
132
|
+
## Work Log
|
|
204
133
|
```
|
|
205
134
|
|
|
206
|
-
|
|
135
|
+
**Task** (`tasks/setup-database.md`):
|
|
136
|
+
```yaml
|
|
137
|
+
---
|
|
138
|
+
title: Set up database
|
|
139
|
+
assignee: agent-name
|
|
140
|
+
status: pending
|
|
141
|
+
autonomy: draft
|
|
142
|
+
---
|
|
207
143
|
|
|
208
|
-
|
|
209
|
-
|
|
144
|
+
## Objective
|
|
145
|
+
## Work Log
|
|
210
146
|
```
|
|
211
147
|
|
|
212
|
-
|
|
148
|
+
The agent logs all work in the `## Work Log` section with timestamps and its name.
|
|
213
149
|
|
|
214
|
-
|
|
215
|
-
git clone https://github.com/gregoryehill/cairn-cli.git
|
|
216
|
-
cd cairn-cli
|
|
217
|
-
bun install
|
|
218
|
-
bun link # Test locally
|
|
219
|
-
```
|
|
150
|
+
## Troubleshooting
|
|
220
151
|
|
|
221
|
-
Run tests:
|
|
222
152
|
```bash
|
|
223
|
-
|
|
153
|
+
cairn doctor # Diagnose issues
|
|
154
|
+
cairn onboard --force # Regenerate context files
|
|
155
|
+
cairn update-skill # Refresh templates after CLI update
|
|
224
156
|
```
|
|
225
157
|
|
|
226
|
-
## Contributing
|
|
227
|
-
|
|
228
|
-
Contributions welcome! Open an issue or PR on GitHub.
|
|
229
|
-
|
|
230
158
|
## License
|
|
231
159
|
|
|
232
|
-
MIT
|
|
233
|
-
|
|
234
|
-
## Links
|
|
235
|
-
|
|
236
|
-
- **GitHub:** https://github.com/gregoryehill/cairn-cli
|
|
237
|
-
- **npm:** https://www.npmjs.com/package/cairn
|
|
238
|
-
|
|
239
|
-
---
|
|
240
|
-
|
|
241
|
-
Built with โค๏ธ for AI-human collaboration
|
|
160
|
+
MIT
|