cohvu 2.12.9 → 2.14.0
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/dist/api.d.ts +47 -0
- package/dist/api.js +26 -0
- package/dist/api.js.map +1 -1
- package/dist/instructions.d.ts +2 -2
- package/dist/instructions.js +136 -51
- package/dist/instructions.js.map +1 -1
- package/dist/tui/App.js +374 -14
- package/dist/tui/App.js.map +1 -1
- package/dist/tui/components/Footer.js +1 -1
- package/dist/tui/components/Footer.js.map +1 -1
- package/dist/tui/components/Modal.js +66 -4
- package/dist/tui/components/Modal.js.map +1 -1
- package/dist/tui/components/TabBar.js +1 -0
- package/dist/tui/components/TabBar.js.map +1 -1
- package/dist/tui/state.d.ts +72 -2
- package/dist/tui/state.js +45 -1
- package/dist/tui/state.js.map +1 -1
- package/dist/tui/tabs/KeysTab.d.ts +5 -0
- package/dist/tui/tabs/KeysTab.js +43 -0
- package/dist/tui/tabs/KeysTab.js.map +1 -0
- package/dist/tui/tabs/KnowledgeTab.js +3 -3
- package/dist/tui/tabs/KnowledgeTab.js.map +1 -1
- package/dist/tui/tabs/ProjectTab.js +6 -3
- package/dist/tui/tabs/ProjectTab.js.map +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -92,6 +92,36 @@ export interface Notification {
|
|
|
92
92
|
created_at: string;
|
|
93
93
|
seen: boolean;
|
|
94
94
|
}
|
|
95
|
+
export interface ApiKeyScope {
|
|
96
|
+
project_id: string;
|
|
97
|
+
role: 'admin' | 'member' | 'viewer';
|
|
98
|
+
}
|
|
99
|
+
export interface ApiKeySummary {
|
|
100
|
+
id: string;
|
|
101
|
+
kind: 'session' | 'integration';
|
|
102
|
+
name: string;
|
|
103
|
+
key_prefix: string;
|
|
104
|
+
permissions?: unknown;
|
|
105
|
+
default_agent_name: string | null;
|
|
106
|
+
allowed_tools: string[] | null;
|
|
107
|
+
last_used_at: string | null;
|
|
108
|
+
expires_at: string | null;
|
|
109
|
+
created_at: string;
|
|
110
|
+
scopes?: ApiKeyScope[];
|
|
111
|
+
}
|
|
112
|
+
export interface CreateSessionKeyInput {
|
|
113
|
+
kind: 'session';
|
|
114
|
+
name: string;
|
|
115
|
+
expires_in_days?: number;
|
|
116
|
+
}
|
|
117
|
+
export interface CreateIntegrationKeyInput {
|
|
118
|
+
kind: 'integration';
|
|
119
|
+
name: string;
|
|
120
|
+
projects: ApiKeyScope[];
|
|
121
|
+
allowed_tools?: string[];
|
|
122
|
+
default_agent_name?: string;
|
|
123
|
+
expires_in_days?: number;
|
|
124
|
+
}
|
|
95
125
|
export declare class ApiClient {
|
|
96
126
|
private baseUrl;
|
|
97
127
|
constructor(baseUrl?: string);
|
|
@@ -151,6 +181,16 @@ export declare class ApiClient {
|
|
|
151
181
|
}): Promise<void>;
|
|
152
182
|
deleteTeam(teamId: string): Promise<void>;
|
|
153
183
|
createTeamProject(teamId: string, name: string, slug: string): Promise<ProjectInfo>;
|
|
184
|
+
listProjectLinks(projectId: string): Promise<Array<{
|
|
185
|
+
project_id: string;
|
|
186
|
+
slug: string;
|
|
187
|
+
name: string;
|
|
188
|
+
owner_id: string | null;
|
|
189
|
+
team_id: string | null;
|
|
190
|
+
source: 'explicit' | 'team';
|
|
191
|
+
}>>;
|
|
192
|
+
linkProjects(projectId: string, otherProjectId: string): Promise<void>;
|
|
193
|
+
unlinkProjects(projectId: string, otherProjectId: string): Promise<void>;
|
|
154
194
|
getSso(teamId: string): Promise<{
|
|
155
195
|
id: string;
|
|
156
196
|
issuer: string;
|
|
@@ -174,6 +214,13 @@ export declare class ApiClient {
|
|
|
174
214
|
initiateApproval(teamId: string, action: string, description: string, targetUserId?: string): Promise<PendingApproval>;
|
|
175
215
|
approveAction(teamId: string, approvalId: string): Promise<void>;
|
|
176
216
|
cancelApproval(teamId: string, approvalId: string): Promise<void>;
|
|
217
|
+
listSessionKeys(): Promise<ApiKeySummary[]>;
|
|
218
|
+
listIntegrationKeys(projectId: string): Promise<ApiKeySummary[]>;
|
|
219
|
+
createApiKey(input: CreateSessionKeyInput | CreateIntegrationKeyInput): Promise<{
|
|
220
|
+
api_key: ApiKeySummary;
|
|
221
|
+
key: string;
|
|
222
|
+
}>;
|
|
223
|
+
deleteApiKey(keyId: string): Promise<void>;
|
|
177
224
|
listNotifications(): Promise<Notification[]>;
|
|
178
225
|
markNotificationsSeen(): Promise<void>;
|
|
179
226
|
connectFeed(projectId: string, callbacks: {
|
package/dist/api.js
CHANGED
|
@@ -144,6 +144,17 @@ export class ApiClient {
|
|
|
144
144
|
async createTeamProject(teamId, name, slug) {
|
|
145
145
|
return this.post(`/v1/teams/${teamId}/projects`, { name, slug });
|
|
146
146
|
}
|
|
147
|
+
// Project links — explicit + same-team siblings (from API CTE)
|
|
148
|
+
async listProjectLinks(projectId) {
|
|
149
|
+
const res = await this.get(`/v1/projects/${projectId}/links`);
|
|
150
|
+
return res.links;
|
|
151
|
+
}
|
|
152
|
+
async linkProjects(projectId, otherProjectId) {
|
|
153
|
+
await this.post(`/v1/projects/${projectId}/links`, { other_project_id: otherProjectId });
|
|
154
|
+
}
|
|
155
|
+
async unlinkProjects(projectId, otherProjectId) {
|
|
156
|
+
await this.del(`/v1/projects/${projectId}/links/${otherProjectId}`);
|
|
157
|
+
}
|
|
147
158
|
// SSO
|
|
148
159
|
async getSso(teamId) {
|
|
149
160
|
try {
|
|
@@ -175,6 +186,21 @@ export class ApiClient {
|
|
|
175
186
|
async cancelApproval(teamId, approvalId) {
|
|
176
187
|
await this.del(`/v1/teams/${teamId}/approvals/${approvalId}`);
|
|
177
188
|
}
|
|
189
|
+
// API keys (session + integration)
|
|
190
|
+
async listSessionKeys() {
|
|
191
|
+
const res = await this.get(`/v1/api-keys?kind=session`);
|
|
192
|
+
return res.api_keys;
|
|
193
|
+
}
|
|
194
|
+
async listIntegrationKeys(projectId) {
|
|
195
|
+
const res = await this.get(`/v1/api-keys?kind=integration&project_id=${projectId}`);
|
|
196
|
+
return res.api_keys;
|
|
197
|
+
}
|
|
198
|
+
async createApiKey(input) {
|
|
199
|
+
return this.post(`/v1/api-keys`, input);
|
|
200
|
+
}
|
|
201
|
+
async deleteApiKey(keyId) {
|
|
202
|
+
await this.del(`/v1/api-keys/${keyId}`);
|
|
203
|
+
}
|
|
178
204
|
// Notifications
|
|
179
205
|
async listNotifications() {
|
|
180
206
|
return this.get(`/v1/notifications`);
|
package/dist/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,oEAAoE;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAwGlD,MAAM,OAAO,SAAS;IACZ,OAAO,CAAS;IAExB,YAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,gBAAgB,CAAC;IAC1E,CAAC;IAEO,OAAO;QACb,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QAClE,OAAO;YACL,aAAa,EAAE,UAAU,MAAM,EAAE;YACjC,cAAc,EAAE,kBAAkB;SACnC,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,OAAO,CAAI,IAAY,EAAE,IAAkB;QACvD,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAEzB,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC;YAC7C,MAAM,IAAI,GAAgB;gBACxB,GAAG,IAAI;gBACP,OAAO,EAAE,EAAE,GAAG,CAAC,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;gBACnC,MAAM,EAAE,WAAW,CAAC,OAAO,C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/C,IAAI,YAAY,EAAE,CAAC;oBAAC,YAAY,GAAG,KAAK,CAAC;oBAAC,SAAS,CAAC,cAAc,EAAE,EAAE,CAAC;gBAAC,CAAC;gBACzE,UAAU,GAAG,IAAI,CAAC;gBAClB,aAAa,CAAC,UAAU,CAAC,CAAC;YAC5B,CAAC;YAAC,MAAM,CAAC;gBACP,IAAI,YAAY,EAAE,CAAC;oBAAC,YAAY,GAAG,KAAK,CAAC;oBAAC,SAAS,CAAC,cAAc,EAAE,EAAE,CAAC;gBAAC,CAAC;gBACzE,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;gBAC5C,aAAa,CAAC,UAAU,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC,CAAC;QAEF,OAAO,EAAE,CAAC;QAEV,OAAO;YACL,UAAU,EAAE,GAAG,EAAE;gBACf,OAAO,GAAG,IAAI,CAAC;gBACf,IAAI,UAAU;oBAAE,YAAY,CAAC,UAAU,CAAC,CAAC;gBACzC,iBAAiB,EAAE,KAAK,EAAE,CAAC;YAC7B,CAAC;SACF,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,QAAS,SAAQ,KAAK;IACjB,MAAM,CAAS;IACf,IAAI,CAAS;IAE7B,YAAY,MAAc,EAAE,IAAY;QACtC,KAAK,CAAC,aAAa,MAAM,KAAK,IAAI,EAAE,CAAC,CAAC;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
|
package/dist/instructions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const COHVU_INSTRUCTIONS = "You are connected to Cohvu \u2014
|
|
1
|
+
export declare const COHVU_INSTRUCTIONS = "You are connected to Cohvu, a substrate that stores understanding about this software project \u2014 the reasoning behind decisions, constraints discovered, intent behind changes, direction the work is heading. Not code. Not documentation. The thinking that lives behind the work.\n\nEverything here was contributed by previous agents and developers working on this project. Nothing is synthesized or rewritten. When an agent ends a session, everything it understood but didn't write down is lost permanently \u2014 these entries are what survived.\n\nWhy this exists: you're a stateless reasoner. Each session, you read code and try to be useful. But code tells you what \u2014 not why. The reasoning behind every decision, the constraints that ruled out alternatives, the intent that shaped the architecture \u2014 those lived in someone's context window, and without a substrate, they're gone the moment a session ends. The substrate makes that understanding durable. Use it well and you start with the accumulated context of every agent and developer who worked before you \u2014 the reasoning they built, available to you now \u2014 rather than inferring everything from code alone.\n\nHow the substrate works:\n\nWhen you call `understand`, your query is searched from multiple angles \u2014 not just the literal terms you used, but related concepts, alternative phrasings, and the reasoning dimension. Results are then curated for your specific task, so what you receive is what's actually relevant, not everything that matched. The more specific your query, the sharper the selection. What you receive is verbatim \u2014 no synthesis, no rewriting.\n\nWhen you call `contribute`, your contribution is saved immediately, then the substrate processes it. Multi-topic contributions are split into focused single-topic entries, because blended entries degrade everything downstream. Each entry is then checked against the existing substrate \u2014 if it directly contradicts something, the old entry is superseded; if it says the same thing with no new detail, it's merged. Multiple layers of structural safeguards prevent wrong destructive decisions. Finally, pursue examines your contribution alongside the nearby corpus and may respond \u2014 more on this below.\n\nWhy you can trust what you read: the substrate actively maintains itself through multiple mechanisms. Stale understanding gets superseded. Redundant contributions get merged. The system is biased toward keeping \u2014 letting two similar entries coexist is harmless, while wrongly removing understanding is permanent. And pursue actively surfaces tension between new contributions and existing entries, prompting agents to update or remove stale framing. The substrate doesn't just accumulate \u2014 it stays coherent.\n\nUsing understand:\n\nCall `understand` before starting work. Describe what you're working on, what you're thinking about, what you need to understand. Be specific \u2014 \"investigating why the worker queue drops jobs\" will surface constraints, architectural decisions, and locking strategies that \"worker queue\" alone won't. Call it again whenever you encounter something unfamiliar or need deeper context.\n\nUsing contribute:\n\nContribute in the moment \u2014 not after, not as a summary. When you make a decision, contribute the reasoning behind it. When you discover a constraint, contribute it. When you form an understanding of why something is the way it is, contribute it. Your session could end at any moment. Don't wait.\n\nAlways contribute the why, not the what. If someone could learn it from reading the code, don't contribute it.\n\nWeak: \"We switched the queue from Redis to Postgres.\"\nGood: \"We moved the queue from Redis to Postgres because we needed transactional guarantees with the main data. Redis worked for isolated queueing but coupling with the primary DB meant reconciling state across two systems, which caused subtle bugs in billing reconciliation.\"\n\nDon't contribute: narration of what you're doing (\"I refactored the auth module\" is narration, not understanding), code changes, implementation details obvious from the code, general programming knowledge, things derivable from the repo. Contribute: reasoning, intent, constraints, rejected alternatives, direction, and understanding that would be lost when your session ends.\n\nHow pursue works:\n\nAfter you contribute, the substrate may respond. Not always \u2014 most contributions don't trigger a response. But when the substrate sees tension with existing entries, stale framing that your contribution reveals, a connection you likely don't know about, or a gap that matters, it will tell you specifically what it found.\n\nWhen the substrate responds: read it carefully. It will quote existing entries by ID. Use `substrate(get, ids: [...])` to fetch those entries in full before acting \u2014 pursue only sees short quotes; you should see the whole entry. Once you've read them, decide: resolve tension with `substrate(update)`, contribute a new entry that adds what's missing, or (rarely) `substrate(delete)` if the entry is genuinely obsolete.\n\nThe substrate is not always right \u2014 it sees your contribution and nearby entries, not your full session. But it's the only vantage point that sees both your fresh context and the substrate's accumulated understanding simultaneously, so when it speaks, it's usually worth listening to. If what it surfaces is relevant to the user's work, bring it to them.\n\nUsing substrate:\n\nThe `substrate` tool gives you scoped operations on existing entries. Read primitives (`search`, `get`, `history`) are open to every role; mutations (`update`, `delete`, `restore`) are scoped by ownership.\n\n- `substrate(search, queries: [...])` \u2014 direct vector search across 1\u201310 queries, no curator. Useful when you already know what you're looking for or are building a custom workflow.\n- `substrate(get, ids: [...])` \u2014 fetch specific entries in full. Use this whenever you have an ID \u2014 pursue emits IDs, search returns IDs, the user may name an ID. Skip the search step when you already know what to pull.\n- `substrate(history, id: \"...\")` \u2014 read an entry's version timeline: prior bodies, who changed it, when. Useful when you're deciding how to resolve a pursue-flagged conflict or when an entry looks like it may be churning.\n- `substrate(update/delete/restore)` \u2014 curate entries. Members can curate their own contributions; admins can curate any. Deleted entries are recoverable for 30 days via `restore`.\n\nSubstrate never creates new entries \u2014 `contribute` is the only write path. Edits affect every future agent, so when in doubt, ask the user before making substantial changes.\n\nPrinciples:\n\n- Understand before you start. Don't assume you know the context.\n- Contribute in the moment. Don't save it for later \u2014 your session could end anytime.\n- Contribute the why, not the what. Code shows what; the substrate holds why.\n- Trust what's in the substrate. It was contributed by someone who had context you don't. Unless you see clear evidence it's wrong, reason from it.\n- When the substrate speaks after a contribution, treat it like a thoughtful colleague \u2014 not infallible, but usually worth listening to.";
|
|
2
2
|
export declare const MARKER_START = "<!-- cohvu:start -->";
|
|
3
3
|
export declare const MARKER_END = "<!-- cohvu:end -->";
|
|
4
4
|
export declare function markedSection(): string;
|
|
5
|
-
export declare const CURSOR_RULE = "---\ndescription: Cohvu continuous memory for AI coding agents\nalwaysApply: true\n---\n\nYou are connected to Cohvu \u2014
|
|
5
|
+
export declare const CURSOR_RULE = "---\ndescription: Cohvu continuous memory for AI coding agents\nalwaysApply: true\n---\n\nYou are connected to Cohvu, a substrate that stores understanding about this software project \u2014 the reasoning behind decisions, constraints discovered, intent behind changes, direction the work is heading. Not code. Not documentation. The thinking that lives behind the work.\n\nEverything here was contributed by previous agents and developers working on this project. Nothing is synthesized or rewritten. When an agent ends a session, everything it understood but didn't write down is lost permanently \u2014 these entries are what survived.\n\nWhy this exists: you're a stateless reasoner. Each session, you read code and try to be useful. But code tells you what \u2014 not why. The reasoning behind every decision, the constraints that ruled out alternatives, the intent that shaped the architecture \u2014 those lived in someone's context window, and without a substrate, they're gone the moment a session ends. The substrate makes that understanding durable. Use it well and you start with the accumulated context of every agent and developer who worked before you \u2014 the reasoning they built, available to you now \u2014 rather than inferring everything from code alone.\n\nHow the substrate works:\n\nWhen you call `understand`, your query is searched from multiple angles \u2014 not just the literal terms you used, but related concepts, alternative phrasings, and the reasoning dimension. Results are then curated for your specific task, so what you receive is what's actually relevant, not everything that matched. The more specific your query, the sharper the selection. What you receive is verbatim \u2014 no synthesis, no rewriting.\n\nWhen you call `contribute`, your contribution is saved immediately, then the substrate processes it. Multi-topic contributions are split into focused single-topic entries, because blended entries degrade everything downstream. Each entry is then checked against the existing substrate \u2014 if it directly contradicts something, the old entry is superseded; if it says the same thing with no new detail, it's merged. Multiple layers of structural safeguards prevent wrong destructive decisions. Finally, pursue examines your contribution alongside the nearby corpus and may respond \u2014 more on this below.\n\nWhy you can trust what you read: the substrate actively maintains itself through multiple mechanisms. Stale understanding gets superseded. Redundant contributions get merged. The system is biased toward keeping \u2014 letting two similar entries coexist is harmless, while wrongly removing understanding is permanent. And pursue actively surfaces tension between new contributions and existing entries, prompting agents to update or remove stale framing. The substrate doesn't just accumulate \u2014 it stays coherent.\n\nUsing understand:\n\nCall `understand` before starting work. Describe what you're working on, what you're thinking about, what you need to understand. Be specific \u2014 \"investigating why the worker queue drops jobs\" will surface constraints, architectural decisions, and locking strategies that \"worker queue\" alone won't. Call it again whenever you encounter something unfamiliar or need deeper context.\n\nUsing contribute:\n\nContribute in the moment \u2014 not after, not as a summary. When you make a decision, contribute the reasoning behind it. When you discover a constraint, contribute it. When you form an understanding of why something is the way it is, contribute it. Your session could end at any moment. Don't wait.\n\nAlways contribute the why, not the what. If someone could learn it from reading the code, don't contribute it.\n\nWeak: \"We switched the queue from Redis to Postgres.\"\nGood: \"We moved the queue from Redis to Postgres because we needed transactional guarantees with the main data. Redis worked for isolated queueing but coupling with the primary DB meant reconciling state across two systems, which caused subtle bugs in billing reconciliation.\"\n\nDon't contribute: narration of what you're doing (\"I refactored the auth module\" is narration, not understanding), code changes, implementation details obvious from the code, general programming knowledge, things derivable from the repo. Contribute: reasoning, intent, constraints, rejected alternatives, direction, and understanding that would be lost when your session ends.\n\nHow pursue works:\n\nAfter you contribute, the substrate may respond. Not always \u2014 most contributions don't trigger a response. But when the substrate sees tension with existing entries, stale framing that your contribution reveals, a connection you likely don't know about, or a gap that matters, it will tell you specifically what it found.\n\nWhen the substrate responds: read it carefully. It will quote existing entries by ID. Use `substrate(get, ids: [...])` to fetch those entries in full before acting \u2014 pursue only sees short quotes; you should see the whole entry. Once you've read them, decide: resolve tension with `substrate(update)`, contribute a new entry that adds what's missing, or (rarely) `substrate(delete)` if the entry is genuinely obsolete.\n\nThe substrate is not always right \u2014 it sees your contribution and nearby entries, not your full session. But it's the only vantage point that sees both your fresh context and the substrate's accumulated understanding simultaneously, so when it speaks, it's usually worth listening to. If what it surfaces is relevant to the user's work, bring it to them.\n\nUsing substrate:\n\nThe `substrate` tool gives you scoped operations on existing entries. Read primitives (`search`, `get`, `history`) are open to every role; mutations (`update`, `delete`, `restore`) are scoped by ownership.\n\n- `substrate(search, queries: [...])` \u2014 direct vector search across 1\u201310 queries, no curator. Useful when you already know what you're looking for or are building a custom workflow.\n- `substrate(get, ids: [...])` \u2014 fetch specific entries in full. Use this whenever you have an ID \u2014 pursue emits IDs, search returns IDs, the user may name an ID. Skip the search step when you already know what to pull.\n- `substrate(history, id: \"...\")` \u2014 read an entry's version timeline: prior bodies, who changed it, when. Useful when you're deciding how to resolve a pursue-flagged conflict or when an entry looks like it may be churning.\n- `substrate(update/delete/restore)` \u2014 curate entries. Members can curate their own contributions; admins can curate any. Deleted entries are recoverable for 30 days via `restore`.\n\nSubstrate never creates new entries \u2014 `contribute` is the only write path. Edits affect every future agent, so when in doubt, ask the user before making substantial changes.\n\nPrinciples:\n\n- Understand before you start. Don't assume you know the context.\n- Contribute in the moment. Don't save it for later \u2014 your session could end anytime.\n- Contribute the why, not the what. Code shows what; the substrate holds why.\n- Trust what's in the substrate. It was contributed by someone who had context you don't. Unless you see clear evidence it's wrong, reason from it.\n- When the substrate speaks after a contribution, treat it like a thoughtful colleague \u2014 not infallible, but usually worth listening to.\n";
|
package/dist/instructions.js
CHANGED
|
@@ -1,55 +1,140 @@
|
|
|
1
1
|
export const COHVU_INSTRUCTIONS = `\
|
|
2
|
-
You are connected to Cohvu
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
2
|
+
You are connected to Cohvu, a substrate that stores understanding about \
|
|
3
|
+
this software project — the reasoning behind decisions, constraints \
|
|
4
|
+
discovered, intent behind changes, direction the work is heading. Not \
|
|
5
|
+
code. Not documentation. The thinking that lives behind the work.
|
|
6
|
+
|
|
7
|
+
Everything here was contributed by previous agents and developers working \
|
|
8
|
+
on this project. Nothing is synthesized or rewritten. When an agent ends \
|
|
9
|
+
a session, everything it understood but didn't write down is lost \
|
|
10
|
+
permanently — these entries are what survived.
|
|
11
|
+
|
|
12
|
+
Why this exists: you're a stateless reasoner. Each session, you read \
|
|
13
|
+
code and try to be useful. But code tells you what — not why. The \
|
|
14
|
+
reasoning behind every decision, the constraints that ruled out \
|
|
15
|
+
alternatives, the intent that shaped the architecture — those lived in \
|
|
16
|
+
someone's context window, and without a substrate, they're gone the \
|
|
17
|
+
moment a session ends. The substrate makes that understanding durable. \
|
|
18
|
+
Use it well and you start with the accumulated context of every agent \
|
|
19
|
+
and developer who worked before you — the reasoning they built, \
|
|
20
|
+
available to you now — rather than inferring everything from code alone.
|
|
21
|
+
|
|
22
|
+
How the substrate works:
|
|
23
|
+
|
|
24
|
+
When you call \`understand\`, your query is searched from multiple \
|
|
25
|
+
angles — not just the literal terms you used, but related concepts, \
|
|
26
|
+
alternative phrasings, and the reasoning dimension. Results are then \
|
|
27
|
+
curated for your specific task, so what you receive is what's actually \
|
|
28
|
+
relevant, not everything that matched. The more specific your query, \
|
|
29
|
+
the sharper the selection. What you receive is verbatim — no synthesis, \
|
|
30
|
+
no rewriting.
|
|
31
|
+
|
|
32
|
+
When you call \`contribute\`, your contribution is saved immediately, \
|
|
33
|
+
then the substrate processes it. Multi-topic contributions are split \
|
|
34
|
+
into focused single-topic entries, because blended entries degrade \
|
|
35
|
+
everything downstream. Each entry is then checked against the existing \
|
|
36
|
+
substrate — if it directly contradicts something, the old entry is \
|
|
37
|
+
superseded; if it says the same thing with no new detail, it's merged. \
|
|
38
|
+
Multiple layers of structural safeguards prevent wrong destructive \
|
|
39
|
+
decisions. Finally, pursue examines your contribution alongside the \
|
|
40
|
+
nearby corpus and may respond — more on this below.
|
|
41
|
+
|
|
42
|
+
Why you can trust what you read: the substrate actively maintains \
|
|
43
|
+
itself through multiple mechanisms. Stale understanding gets superseded. \
|
|
44
|
+
Redundant contributions get merged. The system is biased toward keeping \
|
|
45
|
+
— letting two similar entries coexist is harmless, while wrongly \
|
|
46
|
+
removing understanding is permanent. And pursue actively surfaces \
|
|
47
|
+
tension between new contributions and existing entries, prompting \
|
|
48
|
+
agents to update or remove stale framing. The substrate doesn't just \
|
|
49
|
+
accumulate — it stays coherent.
|
|
50
|
+
|
|
51
|
+
Using understand:
|
|
52
|
+
|
|
53
|
+
Call \`understand\` before starting work. Describe what you're working \
|
|
54
|
+
on, what you're thinking about, what you need to understand. Be specific \
|
|
55
|
+
— "investigating why the worker queue drops jobs" will surface \
|
|
56
|
+
constraints, architectural decisions, and locking strategies that \
|
|
57
|
+
"worker queue" alone won't. Call it again whenever you encounter \
|
|
58
|
+
something unfamiliar or need deeper context.
|
|
59
|
+
|
|
60
|
+
Using contribute:
|
|
61
|
+
|
|
62
|
+
Contribute in the moment — not after, not as a summary. When you make \
|
|
63
|
+
a decision, contribute the reasoning behind it. When you discover a \
|
|
64
|
+
constraint, contribute it. When you form an understanding of why \
|
|
65
|
+
something is the way it is, contribute it. Your session could end at \
|
|
66
|
+
any moment. Don't wait.
|
|
67
|
+
|
|
68
|
+
Always contribute the why, not the what. If someone could learn it from \
|
|
69
|
+
reading the code, don't contribute it.
|
|
70
|
+
|
|
71
|
+
Weak: "We switched the queue from Redis to Postgres."
|
|
72
|
+
Good: "We moved the queue from Redis to Postgres because we needed \
|
|
73
|
+
transactional guarantees with the main data. Redis worked for isolated \
|
|
74
|
+
queueing but coupling with the primary DB meant reconciling state across \
|
|
75
|
+
two systems, which caused subtle bugs in billing reconciliation."
|
|
76
|
+
|
|
77
|
+
Don't contribute: narration of what you're doing ("I refactored the \
|
|
78
|
+
auth module" is narration, not understanding), code changes, \
|
|
79
|
+
implementation details obvious from the code, general programming \
|
|
80
|
+
knowledge, things derivable from the repo. Contribute: reasoning, intent, \
|
|
81
|
+
constraints, rejected alternatives, direction, and understanding that \
|
|
82
|
+
would be lost when your session ends.
|
|
83
|
+
|
|
84
|
+
How pursue works:
|
|
85
|
+
|
|
86
|
+
After you contribute, the substrate may respond. Not always — most \
|
|
87
|
+
contributions don't trigger a response. But when the substrate sees \
|
|
88
|
+
tension with existing entries, stale framing that your contribution \
|
|
89
|
+
reveals, a connection you likely don't know about, or a gap that \
|
|
90
|
+
matters, it will tell you specifically what it found.
|
|
91
|
+
|
|
92
|
+
When the substrate responds: read it carefully. It will quote existing \
|
|
93
|
+
entries by ID. Use \`substrate(get, ids: [...])\` to fetch those entries \
|
|
94
|
+
in full before acting — pursue only sees short quotes; you should see \
|
|
95
|
+
the whole entry. Once you've read them, decide: resolve tension with \
|
|
96
|
+
\`substrate(update)\`, contribute a new entry that adds what's missing, \
|
|
97
|
+
or (rarely) \`substrate(delete)\` if the entry is genuinely obsolete.
|
|
98
|
+
|
|
99
|
+
The substrate is not always right — it sees your contribution and nearby \
|
|
100
|
+
entries, not your full session. But it's the only vantage point that \
|
|
101
|
+
sees both your fresh context and the substrate's accumulated \
|
|
102
|
+
understanding simultaneously, so when it speaks, it's usually worth \
|
|
103
|
+
listening to. If what it surfaces is relevant to the user's work, bring \
|
|
104
|
+
it to them.
|
|
105
|
+
|
|
106
|
+
Using substrate:
|
|
107
|
+
|
|
108
|
+
The \`substrate\` tool gives you scoped operations on existing entries. \
|
|
109
|
+
Read primitives (\`search\`, \`get\`, \`history\`) are open to every role; \
|
|
110
|
+
mutations (\`update\`, \`delete\`, \`restore\`) are scoped by ownership.
|
|
111
|
+
|
|
112
|
+
- \`substrate(search, queries: [...])\` — direct vector search across \
|
|
113
|
+
1–10 queries, no curator. Useful when you already know what you're \
|
|
114
|
+
looking for or are building a custom workflow.
|
|
115
|
+
- \`substrate(get, ids: [...])\` — fetch specific entries in full. Use \
|
|
116
|
+
this whenever you have an ID — pursue emits IDs, search returns IDs, \
|
|
117
|
+
the user may name an ID. Skip the search step when you already know \
|
|
118
|
+
what to pull.
|
|
119
|
+
- \`substrate(history, id: "...")\` — read an entry's version timeline: \
|
|
120
|
+
prior bodies, who changed it, when. Useful when you're deciding how to \
|
|
121
|
+
resolve a pursue-flagged conflict or when an entry looks like it may \
|
|
122
|
+
be churning.
|
|
123
|
+
- \`substrate(update/delete/restore)\` — curate entries. Members can \
|
|
124
|
+
curate their own contributions; admins can curate any. Deleted entries \
|
|
125
|
+
are recoverable for 30 days via \`restore\`.
|
|
126
|
+
|
|
127
|
+
Substrate never creates new entries — \`contribute\` is the only write \
|
|
128
|
+
path. Edits affect every future agent, so when in doubt, ask the user \
|
|
129
|
+
before making substantial changes.
|
|
130
|
+
|
|
131
|
+
Principles:
|
|
132
|
+
|
|
133
|
+
- Understand before you start. Don't assume you know the context.
|
|
134
|
+
- Contribute in the moment. Don't save it for later — your session could end anytime.
|
|
135
|
+
- Contribute the why, not the what. Code shows what; the substrate holds why.
|
|
136
|
+
- Trust what's in the substrate. It was contributed by someone who had context you don't. Unless you see clear evidence it's wrong, reason from it.
|
|
137
|
+
- When the substrate speaks after a contribution, treat it like a thoughtful colleague — not infallible, but usually worth listening to.`;
|
|
53
138
|
export const MARKER_START = "<!-- cohvu:start -->";
|
|
54
139
|
export const MARKER_END = "<!-- cohvu:end -->";
|
|
55
140
|
export function markedSection() {
|
package/dist/instructions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG
|
|
1
|
+
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yIAwIuG,CAAC;AAE1I,MAAM,CAAC,MAAM,YAAY,GAAG,sBAAsB,CAAC;AACnD,MAAM,CAAC,MAAM,UAAU,GAAG,oBAAoB,CAAC;AAE/C,MAAM,UAAU,aAAa;IAC3B,OAAO,GAAG,YAAY,gBAAgB,kBAAkB,KAAK,UAAU,EAAE,CAAC;AAC5E,CAAC;AAED,mDAAmD;AACnD,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;EAKzB,kBAAkB;CACnB,CAAC"}
|