@codified/cli 0.5.0 → 0.5.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 +34 -108
- package/dist/index.js +607 -602
- package/package.json +1 -1
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,94 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @codified/cli
|
|
2
2
|
|
|
3
3
|
**Living Context Graph for AI-Native Teams**
|
|
4
4
|
|
|
5
|
-
Codify mines your project history into a structured context graph -- decisions, features, customer signals, code artifacts, and their relationships. Claude Code gets ambient access
|
|
6
|
-
|
|
7
|
-
A built-in Gap Engine proactively detects missing context, stale assumptions, and untested decisions. An Autonomous Collection service fills those gaps by mining existing data and reaching out to team members. A Metabolism service continuously maintains graph health through freshness decay, semantic dedup, contradiction resolution, and structural evolution.
|
|
5
|
+
Codify mines your project history into a structured context graph -- decisions, features, customer signals, code artifacts, and their relationships. Claude Code gets ambient access via MCP, so your AI assistant understands not just *what* your code does but *why* it was built that way.
|
|
8
6
|
|
|
9
7
|
## Quick Start
|
|
10
8
|
|
|
11
9
|
```bash
|
|
12
10
|
npm install -g @codified/cli
|
|
13
11
|
cd your-project
|
|
12
|
+
export ANTHROPIC_API_KEY=sk-ant-...
|
|
14
13
|
codify up
|
|
15
14
|
```
|
|
16
15
|
|
|
17
|
-
`codify up` runs three steps in sequence
|
|
18
|
-
|
|
19
|
-
1. **init** -- Starts Docker services (PostgreSQL + AGE + pgvector, NATS, Redis), runs database migrations, and installs the MCP server config into Claude Code.
|
|
20
|
-
2. **bootstrap** -- Mines your git history with Claude, extracting decisions, features, and relationships into the context graph.
|
|
21
|
-
3. **start** -- Launches the MCP server on stdio. Claude Code connects automatically.
|
|
22
|
-
|
|
23
|
-
After this, open Claude Code in your project. It now has full context about your codebase -- 23 tools and 4 resources at its disposal.
|
|
24
|
-
|
|
25
|
-
## What Claude Code Gets
|
|
26
|
-
|
|
27
|
-
Codify auto-installs its MCP server config during `codify init`. Claude Code connects automatically -- no manual configuration required.
|
|
28
|
-
|
|
29
|
-
### MCP Tools (23)
|
|
30
|
-
|
|
31
|
-
#### Search and Navigate
|
|
32
|
-
|
|
33
|
-
| Tool | Description |
|
|
34
|
-
|------|-------------|
|
|
35
|
-
| `codify_get_context` | Get the full context surrounding a topic -- decisions, signals, gaps, relationships |
|
|
36
|
-
| `codify_search` | Search the graph using natural language (hybrid keyword + semantic) |
|
|
37
|
-
| `codify_traverse` | Walk the graph from any node following typed edges |
|
|
38
|
-
| `codify_get_decision_trail` | Trace the reasoning chain behind a decision |
|
|
39
|
-
| `codify_explain` | Claude-powered narrative synthesis from graph data |
|
|
40
|
-
| `codify_get_context_package` | Get a synthesized context briefing for a topic |
|
|
41
|
-
|
|
42
|
-
#### Gap Engine
|
|
43
|
-
|
|
44
|
-
| Tool | Description |
|
|
45
|
-
|------|-------------|
|
|
46
|
-
| `codify_get_gaps` | List detected context gaps with priority sorting |
|
|
47
|
-
| `codify_resolve_gap` | Mark a gap as resolved with evidence |
|
|
48
|
-
|
|
49
|
-
#### Collection
|
|
50
|
-
|
|
51
|
-
| Tool | Description |
|
|
52
|
-
|------|-------------|
|
|
53
|
-
| `codify_collect` | Mine evidence for open gaps from the existing graph |
|
|
54
|
-
| `codify_get_collection_plans` | View active collection plans and their status |
|
|
55
|
-
| `codify_get_collection_metrics` | Collection pipeline analytics -- response rates, fill time |
|
|
56
|
-
|
|
57
|
-
#### Metabolism and Evolution
|
|
16
|
+
`codify up` runs three steps in sequence -- infrastructure setup, git history mining, and MCP server launch. After it completes, open Claude Code. Codify connects automatically and Claude gains access to 23 MCP tools and 4 MCP resources covering your project's full context.
|
|
58
17
|
|
|
59
|
-
|
|
60
|
-
|------|-------------|
|
|
61
|
-
| `codify_get_metabolism_audit` | View the metabolism audit trail -- decay, prune, promote events |
|
|
62
|
-
| `codify_get_evolution_proposals` | View pending structural evolution proposals (type splits) |
|
|
63
|
-
| `codify_execute_evolution` | Execute an approved evolution proposal |
|
|
18
|
+
## Prerequisites
|
|
64
19
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
| `codify_decision_context` | Assemble a decision brief -- prior decisions, evidence, contradictions, risks |
|
|
70
|
-
| `codify_add_context` | Add new context nodes to the graph |
|
|
71
|
-
| `codify_status` | Graph health and statistics |
|
|
72
|
-
| `codify_bootstrap` | Trigger a bootstrap from within Claude Code |
|
|
73
|
-
| `codify_get_digest` | Daily context digest -- graph growth, gaps, metabolism activity |
|
|
74
|
-
| `codify_subscribe_events` | Configure proactive context push notification filters |
|
|
75
|
-
|
|
76
|
-
#### Branch Management
|
|
77
|
-
|
|
78
|
-
| Tool | Description |
|
|
79
|
-
|------|-------------|
|
|
80
|
-
| `codify_create_branch` | Create an exploration branch of the graph |
|
|
81
|
-
| `codify_merge_branch` | Merge a branch back into the main graph |
|
|
82
|
-
| `codify_list_branches` | List active graph branches |
|
|
83
|
-
|
|
84
|
-
### MCP Resources (4)
|
|
85
|
-
|
|
86
|
-
| Resource | Description |
|
|
87
|
-
|----------|-------------|
|
|
88
|
-
| `codify://schema` | The context graph schema -- node types, edge types, relationships |
|
|
89
|
-
| `codify://quickstart` | Quick start guide for using Codify tools |
|
|
90
|
-
| `codify://context/{topic}` | Dynamic context package for any topic (resource template) |
|
|
91
|
-
| `codify://gaps/active` | Current active gap summary -- count, top 5, clusters |
|
|
20
|
+
- Node.js 22+
|
|
21
|
+
- Docker Desktop
|
|
22
|
+
- `ANTHROPIC_API_KEY` environment variable
|
|
23
|
+
- `VOYAGE_API_KEY` (optional, enables semantic search via Voyage AI embeddings)
|
|
92
24
|
|
|
93
25
|
## CLI Commands (30)
|
|
94
26
|
|
|
@@ -102,16 +34,17 @@ Codify auto-installs its MCP server config during `codify init`. Claude Code con
|
|
|
102
34
|
| `codify start` | Start the MCP server for Claude Code |
|
|
103
35
|
| `codify project` | Manage multiple projects (create, list, switch) |
|
|
104
36
|
|
|
105
|
-
###
|
|
37
|
+
### Context and Search
|
|
106
38
|
|
|
107
39
|
| Command | Description |
|
|
108
40
|
|---------|-------------|
|
|
109
|
-
| `codify search <query>` | Search the context graph
|
|
110
|
-
| `codify explain <question>` |
|
|
111
|
-
| `codify briefing <topic>` |
|
|
41
|
+
| `codify search <query>` | Search the context graph |
|
|
42
|
+
| `codify explain <question>` | Claude-powered narrative answer about your project |
|
|
43
|
+
| `codify briefing <topic>` | Synthesized context briefing on a topic |
|
|
112
44
|
| `codify decide <question>` | Assemble decision-point context (evidence, gaps, risks) |
|
|
113
45
|
| `codify add` | Record a decision, signal, or other context |
|
|
114
46
|
| `codify graph` | Visualize the context graph (Mermaid diagram) |
|
|
47
|
+
| `codify check <file>` | Check files for related context (CI-ready, exit 0/1) |
|
|
115
48
|
|
|
116
49
|
### Gap Management
|
|
117
50
|
|
|
@@ -119,9 +52,8 @@ Codify auto-installs its MCP server config during `codify init`. Claude Code con
|
|
|
119
52
|
|---------|-------------|
|
|
120
53
|
| `codify status` | Show project health dashboard |
|
|
121
54
|
| `codify gaps` | Show gaps detected by the Gap Engine |
|
|
122
|
-
| `codify triage` | Interactively resolve gaps
|
|
55
|
+
| `codify triage` | Interactively resolve gaps |
|
|
123
56
|
| `codify collect` | Mine the graph for evidence to fill gaps |
|
|
124
|
-
| `codify check <file>` | Check files for related context (CI-ready, exit code 1 on critical gaps) |
|
|
125
57
|
| `codify evolve` | Manage structural evolution proposals |
|
|
126
58
|
|
|
127
59
|
### Connectors
|
|
@@ -130,59 +62,53 @@ Codify auto-installs its MCP server config during `codify init`. Claude Code con
|
|
|
130
62
|
|---------|-------------|
|
|
131
63
|
| `codify connect` | Connect external data sources (Slack, GitHub, Linear, Notion, docs) |
|
|
132
64
|
| `codify connectors` | List all connectors with health status |
|
|
65
|
+
| `codify watch` | Start continuous ingest polling with heartbeat |
|
|
133
66
|
|
|
134
67
|
### Analytics
|
|
135
68
|
|
|
136
69
|
| Command | Description |
|
|
137
70
|
|---------|-------------|
|
|
138
71
|
| `codify digest` | Daily context digest -- graph growth, gaps, metabolism |
|
|
139
|
-
| `codify metrics` | Collection pipeline analytics
|
|
72
|
+
| `codify metrics` | Collection pipeline analytics |
|
|
73
|
+
| `codify audit` | Metabolism audit trail (decay, prune, promote events) |
|
|
140
74
|
|
|
141
75
|
### Maintenance
|
|
142
76
|
|
|
143
77
|
| Command | Description |
|
|
144
78
|
|---------|-------------|
|
|
145
|
-
| `codify audit` | Show metabolism audit trail (decay, prune, promote events) |
|
|
146
79
|
| `codify refresh-freshness` | Recalculate freshness scores for all nodes |
|
|
147
80
|
| `codify timeline` | Show what changed in the graph over time |
|
|
148
|
-
| `codify cleanup` | Fix legacy data quality issues
|
|
81
|
+
| `codify cleanup` | Fix legacy data quality issues |
|
|
82
|
+
| `codify embed` | Backfill embeddings for semantic search |
|
|
149
83
|
| `codify export` | Backup the graph to a JSON file |
|
|
150
84
|
| `codify import` | Restore the graph from a JSON backup |
|
|
151
|
-
| `codify watch` | Start continuous ingest polling with heartbeat |
|
|
152
|
-
| `codify embed` | Backfill embeddings for semantic search |
|
|
153
85
|
| `codify reset` | Reset the context graph (drop all data) |
|
|
154
86
|
|
|
155
87
|
Run `codify <command> --help` for detailed options on any command.
|
|
156
88
|
|
|
157
|
-
##
|
|
158
|
-
|
|
159
|
-
Codify uses PostgreSQL as its single storage engine:
|
|
160
|
-
|
|
161
|
-
- **Apache AGE** for graph traversal (nodes, edges, typed relationships)
|
|
162
|
-
- **pgvector** for semantic search (Voyage AI embeddings, hybrid keyword + vector ranking)
|
|
163
|
-
- **NATS JetStream** for event-driven gap detection, collection, and metabolism
|
|
164
|
-
- **Redis** for caching
|
|
89
|
+
## MCP Tools (23)
|
|
165
90
|
|
|
166
|
-
|
|
91
|
+
When the MCP server is running, Claude Code gets access to 23 tools:
|
|
167
92
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
93
|
+
| Category | Tools |
|
|
94
|
+
|----------|-------|
|
|
95
|
+
| Search and Navigate | `codify_get_context`, `codify_search`, `codify_traverse`, `codify_get_decision_trail`, `codify_explain`, `codify_get_context_package`, `codify_decision_context`, `codify_get_digest` |
|
|
96
|
+
| Gap Engine | `codify_get_gaps`, `codify_resolve_gap`, `codify_collect` |
|
|
97
|
+
| Collection | `codify_get_collection_plans`, `codify_get_collection_metrics` |
|
|
98
|
+
| Metabolism | `codify_get_metabolism_audit`, `codify_get_evolution_proposals`, `codify_execute_evolution` |
|
|
99
|
+
| Graph Mutation | `codify_add_context`, `codify_bootstrap`, `codify_status`, `codify_subscribe_events` |
|
|
100
|
+
| Branching | `codify_create_branch`, `codify_merge_branch`, `codify_list_branches` |
|
|
173
101
|
|
|
174
|
-
|
|
102
|
+
Plus 4 MCP resources: `codify://schema`, `codify://quickstart`, `codify://context/{topic}`, `codify://gaps/active`.
|
|
175
103
|
|
|
176
|
-
##
|
|
104
|
+
## Architecture
|
|
177
105
|
|
|
178
|
-
|
|
179
|
-
- **Docker** (for PostgreSQL 16 + AGE 1.6 + pgvector, NATS 2.11, Redis 7)
|
|
180
|
-
- **ANTHROPIC_API_KEY** environment variable (for bootstrap, explain, briefing, decide, digest, collect)
|
|
181
|
-
- **VOYAGE_API_KEY** environment variable (optional, for semantic search embeddings)
|
|
106
|
+
PostgreSQL as a single storage engine with Apache AGE (graph), pgvector (semantic search), NATS JetStream (events), and Redis (caching). TypeScript monorepo with 8 packages.
|
|
182
107
|
|
|
183
108
|
## Links
|
|
184
109
|
|
|
185
110
|
- GitHub: [github.com/kurtxu88/codify](https://github.com/kurtxu88/codify)
|
|
111
|
+
- [Full documentation](https://github.com/kurtxu88/codify/blob/main/docs/getting-started.md)
|
|
186
112
|
|
|
187
113
|
## License
|
|
188
114
|
|