@goondocks/myco 0.1.0 → 0.2.5
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/.claude-plugin/plugin.json +12 -3
- package/README.md +1 -1
- package/dist/src/cli.js +0 -0
- package/package.json +1 -1
- package/dist/src/capture/artifact-watcher.d.ts +0 -19
- package/dist/src/capture/artifact-watcher.d.ts.map +0 -1
- package/dist/src/capture/artifact-watcher.js +0 -37
- package/dist/src/capture/artifact-watcher.js.map +0 -1
- package/dist/src/capture/plan-detector.d.ts +0 -15
- package/dist/src/capture/plan-detector.d.ts.map +0 -1
- package/dist/src/capture/plan-detector.js +0 -34
- package/dist/src/capture/plan-detector.js.map +0 -1
- package/dist/src/capture/processor.d.ts +0 -2
- package/dist/src/capture/processor.d.ts.map +0 -1
- package/dist/src/capture/processor.js +0 -3
- package/dist/src/capture/processor.js.map +0 -1
- package/dist/src/capture/prompts/classify.md +0 -28
- package/dist/src/capture/prompts/debugging.md +0 -91
- package/dist/src/capture/prompts/exploration.md +0 -88
- package/dist/src/capture/prompts/extraction.md +0 -93
- package/dist/src/capture/prompts/implementation.md +0 -90
- package/dist/src/capture/prompts/prompts/classify.md +0 -28
- package/dist/src/capture/prompts/prompts/debugging.md +0 -91
- package/dist/src/capture/prompts/prompts/exploration.md +0 -88
- package/dist/src/capture/prompts/prompts/extraction.md +0 -93
- package/dist/src/capture/prompts/prompts/implementation.md +0 -90
- package/dist/src/capture/prompts/prompts/schema.yaml +0 -97
- package/dist/src/capture/prompts/prompts/session-summary.md +0 -65
- package/dist/src/capture/prompts/prompts/session-title.md +0 -46
- package/dist/src/capture/prompts/schema.yaml +0 -97
- package/dist/src/capture/prompts/session-summary.md +0 -65
- package/dist/src/capture/prompts/session-title.md +0 -46
- package/dist/src/capture/prompts.d.ts +0 -77
- package/dist/src/capture/prompts.d.ts.map +0 -1
- package/dist/src/capture/prompts.js +0 -255
- package/dist/src/capture/prompts.js.map +0 -1
- package/dist/src/intelligence/haiku.d.ts +0 -17
- package/dist/src/intelligence/haiku.d.ts.map +0 -1
- package/dist/src/intelligence/haiku.js +0 -35
- package/dist/src/intelligence/haiku.js.map +0 -1
- package/dist/src/intelligence/service.d.ts +0 -18
- package/dist/src/intelligence/service.d.ts.map +0 -1
- package/dist/src/intelligence/service.js +0 -66
- package/dist/src/intelligence/service.js.map +0 -1
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: debugging
|
|
3
|
-
description: For debugging sessions with errors
|
|
4
|
-
activity_filter: Read,Edit,Bash
|
|
5
|
-
min_activities: 2
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
You are analyzing a debugging session to capture the root cause and fix.
|
|
9
|
-
|
|
10
|
-
## Context
|
|
11
|
-
|
|
12
|
-
The developer was debugging an issue.
|
|
13
|
-
|
|
14
|
-
Duration: {{session_duration}} minutes
|
|
15
|
-
Files investigated: {{files_read}}
|
|
16
|
-
Files modified: {{files_modified}}
|
|
17
|
-
Errors: {{errors}}
|
|
18
|
-
|
|
19
|
-
### Debugging Activity
|
|
20
|
-
|
|
21
|
-
{{activities}}
|
|
22
|
-
|
|
23
|
-
## Observation Types
|
|
24
|
-
|
|
25
|
-
{{observation_types}}
|
|
26
|
-
|
|
27
|
-
## Importance Levels
|
|
28
|
-
|
|
29
|
-
Rate each observation's importance based on its value for future sessions:
|
|
30
|
-
|
|
31
|
-
- **high**: Non-obvious insight that would cause bugs, confusion, or wasted time if forgotten. Cannot be easily rediscovered from code alone.
|
|
32
|
-
- **medium**: Useful context that saves time but could be rediscovered with investigation.
|
|
33
|
-
- **low**: Nice-to-know information that is easily found from code or already documented elsewhere. Skip if already captured in project docs.
|
|
34
|
-
|
|
35
|
-
Prefer fewer high-quality observations over many low-importance ones.
|
|
36
|
-
|
|
37
|
-
## Task
|
|
38
|
-
|
|
39
|
-
Extract the debugging journey: what was the symptom, what was investigated, what was the root cause, and how was it fixed.
|
|
40
|
-
|
|
41
|
-
Focus on:
|
|
42
|
-
- The initial error or symptom
|
|
43
|
-
- Wrong assumptions or dead ends
|
|
44
|
-
- The actual root cause
|
|
45
|
-
- The fix and why it works
|
|
46
|
-
- How to avoid this in the future
|
|
47
|
-
|
|
48
|
-
Prefer **bug_fix** and **gotcha** types for debugging sessions.
|
|
49
|
-
|
|
50
|
-
## Examples
|
|
51
|
-
|
|
52
|
-
**Good observation** (specific root cause and fix — extract this):
|
|
53
|
-
```json
|
|
54
|
-
{
|
|
55
|
-
"type": "bug_fix",
|
|
56
|
-
"observation": "SQLite LIMIT clause was string-interpolated, allowing SQL injection. Fix: use parameterized query with LIMIT ? and push value to params array.",
|
|
57
|
-
"context": "src/index/sqlite.ts",
|
|
58
|
-
"importance": "high"
|
|
59
|
-
}
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
**Bad observation** (too vague — skip this):
|
|
63
|
-
```json
|
|
64
|
-
{
|
|
65
|
-
"type": "bug_fix",
|
|
66
|
-
"observation": "Fixed a database error",
|
|
67
|
-
"context": "src/index",
|
|
68
|
-
"importance": "medium"
|
|
69
|
-
}
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## Output Format
|
|
73
|
-
|
|
74
|
-
```json
|
|
75
|
-
{
|
|
76
|
-
"observations": [
|
|
77
|
-
{
|
|
78
|
-
"type": "{{type_names}}",
|
|
79
|
-
"observation": "Root cause and fix description",
|
|
80
|
-
"context": "File where bug was",
|
|
81
|
-
"importance": "high|medium|low"
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
"summary": "Brief description of bug and fix"
|
|
85
|
-
}
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
Guidelines:
|
|
89
|
-
- Extract at most 5 observations per session. Prefer fewer, higher-quality observations over many low-value ones.
|
|
90
|
-
|
|
91
|
-
Respond ONLY with valid JSON.
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: exploration
|
|
3
|
-
description: For sessions focused on reading/searching code
|
|
4
|
-
activity_filter: Read,Grep,Glob
|
|
5
|
-
min_activities: 3
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
You are analyzing an exploration/research session to extract useful learnings.
|
|
9
|
-
|
|
10
|
-
## Context
|
|
11
|
-
|
|
12
|
-
The developer was exploring the codebase to understand how things work.
|
|
13
|
-
|
|
14
|
-
Duration: {{session_duration}} minutes
|
|
15
|
-
Files explored: {{files_read}}
|
|
16
|
-
|
|
17
|
-
### Search and Read Activity
|
|
18
|
-
|
|
19
|
-
{{activities}}
|
|
20
|
-
|
|
21
|
-
## Observation Types
|
|
22
|
-
|
|
23
|
-
{{observation_types}}
|
|
24
|
-
|
|
25
|
-
## Importance Levels
|
|
26
|
-
|
|
27
|
-
Rate each observation's importance based on its value for future sessions:
|
|
28
|
-
|
|
29
|
-
- **high**: Non-obvious insight that would cause bugs, confusion, or wasted time if forgotten. Cannot be easily rediscovered from code alone.
|
|
30
|
-
- **medium**: Useful context that saves time but could be rediscovered with investigation.
|
|
31
|
-
- **low**: Nice-to-know information that is easily found from code or already documented elsewhere. Skip if already captured in project docs.
|
|
32
|
-
|
|
33
|
-
Prefer fewer high-quality observations over many low-importance ones.
|
|
34
|
-
|
|
35
|
-
## Task
|
|
36
|
-
|
|
37
|
-
Extract observations about the codebase structure, patterns, or gotchas discovered during exploration.
|
|
38
|
-
|
|
39
|
-
Focus on:
|
|
40
|
-
- How specific features are implemented
|
|
41
|
-
- Important patterns or conventions used
|
|
42
|
-
- Non-obvious relationships between components
|
|
43
|
-
- Things that surprised the developer
|
|
44
|
-
|
|
45
|
-
Prefer **discovery** and **gotcha** types for exploration sessions.
|
|
46
|
-
|
|
47
|
-
## Examples
|
|
48
|
-
|
|
49
|
-
**Good observation** (non-obvious behavior — extract this):
|
|
50
|
-
```json
|
|
51
|
-
{
|
|
52
|
-
"type": "discovery",
|
|
53
|
-
"observation": "Env vars set in .claude/settings.json don't get shell expansion — tilde (~) paths must be expanded manually in code via os.homedir().",
|
|
54
|
-
"context": "src/vault/resolve.ts",
|
|
55
|
-
"importance": "high"
|
|
56
|
-
}
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
**Bad observation** (obvious from code structure — skip this):
|
|
60
|
-
```json
|
|
61
|
-
{
|
|
62
|
-
"type": "discovery",
|
|
63
|
-
"observation": "The project has a src directory with TypeScript files",
|
|
64
|
-
"context": "src/",
|
|
65
|
-
"importance": "low"
|
|
66
|
-
}
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## Output Format
|
|
70
|
-
|
|
71
|
-
```json
|
|
72
|
-
{
|
|
73
|
-
"observations": [
|
|
74
|
-
{
|
|
75
|
-
"type": "{{type_names}}",
|
|
76
|
-
"observation": "What was learned",
|
|
77
|
-
"context": "File or feature area",
|
|
78
|
-
"importance": "high|medium|low"
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
"summary": "Brief description of what was explored"
|
|
82
|
-
}
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
Guidelines:
|
|
86
|
-
- Extract at most 5 observations per session. Prefer fewer, higher-quality observations over many low-value ones.
|
|
87
|
-
|
|
88
|
-
Respond ONLY with valid JSON.
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: extraction
|
|
3
|
-
description: General observation extraction from session activities
|
|
4
|
-
min_activities: 1
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
You are analyzing a coding session to extract important observations for future reference.
|
|
8
|
-
|
|
9
|
-
## Session Activity
|
|
10
|
-
|
|
11
|
-
Duration: {{session_duration}} minutes
|
|
12
|
-
Files read: {{files_read}}
|
|
13
|
-
Files modified: {{files_modified}}
|
|
14
|
-
Files created: {{files_created}}
|
|
15
|
-
Errors encountered: {{errors}}
|
|
16
|
-
|
|
17
|
-
### Tool Executions
|
|
18
|
-
|
|
19
|
-
{{activities}}
|
|
20
|
-
|
|
21
|
-
## Observation Types
|
|
22
|
-
|
|
23
|
-
Extract observations using these types:
|
|
24
|
-
|
|
25
|
-
{{observation_types}}
|
|
26
|
-
|
|
27
|
-
## Importance Levels
|
|
28
|
-
|
|
29
|
-
Rate each observation's importance based on its value for future sessions:
|
|
30
|
-
|
|
31
|
-
- **high**: Non-obvious insight that would cause bugs, confusion, or wasted time if forgotten. Cannot be easily rediscovered from code alone.
|
|
32
|
-
- **medium**: Useful context that saves time but could be rediscovered with investigation.
|
|
33
|
-
- **low**: Nice-to-know information that is easily found from code or already documented elsewhere. Skip if already captured in project docs.
|
|
34
|
-
|
|
35
|
-
Prefer fewer high-quality observations over many low-importance ones.
|
|
36
|
-
|
|
37
|
-
## Session Context Awareness
|
|
38
|
-
|
|
39
|
-
Consider the session's activity pattern when rating observation importance:
|
|
40
|
-
|
|
41
|
-
- **Planning/investigation sessions** (many reads, few edits): Prefer lower importance ratings for observations that describe current problems or temporary state rather than permanent learnings.
|
|
42
|
-
- **Implementation sessions** (significant edits): Observations about decisions made, patterns established, or gotchas encountered are more likely to be permanent learnings and may warrant higher importance.
|
|
43
|
-
|
|
44
|
-
When in doubt, prefer a conservative (lower) importance rating.
|
|
45
|
-
|
|
46
|
-
## Examples
|
|
47
|
-
|
|
48
|
-
**Good observation** (specific, actionable):
|
|
49
|
-
```json
|
|
50
|
-
{
|
|
51
|
-
"type": "gotcha",
|
|
52
|
-
"observation": "SQLite WAL mode must be enabled before concurrent reads work. Without WAL, readers block writers and vice versa.",
|
|
53
|
-
"context": "src/index/sqlite.ts",
|
|
54
|
-
"importance": "high"
|
|
55
|
-
}
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
**Bad observation** (too generic — skip this):
|
|
59
|
-
```json
|
|
60
|
-
{
|
|
61
|
-
"type": "discovery",
|
|
62
|
-
"observation": "The project uses SQLite for storage",
|
|
63
|
-
"context": "src/index",
|
|
64
|
-
"importance": "low"
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Output Format
|
|
69
|
-
|
|
70
|
-
Respond with a JSON object:
|
|
71
|
-
|
|
72
|
-
```json
|
|
73
|
-
{
|
|
74
|
-
"observations": [
|
|
75
|
-
{
|
|
76
|
-
"type": "{{type_names}}",
|
|
77
|
-
"observation": "Concise description of what was learned",
|
|
78
|
-
"context": "Relevant file or feature name",
|
|
79
|
-
"importance": "high|medium|low"
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"summary": "One sentence describing what the session accomplished"
|
|
83
|
-
}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
Guidelines:
|
|
87
|
-
- Extract at most 5 observations per session. Prefer fewer, higher-quality observations over many low-value ones.
|
|
88
|
-
- Only include genuinely useful observations that would help in future sessions
|
|
89
|
-
- Be specific - mention file names, function names, actual values
|
|
90
|
-
- If the session was just exploration without meaningful learnings, return empty observations
|
|
91
|
-
- Focus on things that aren't obvious from the code itself
|
|
92
|
-
|
|
93
|
-
Respond ONLY with valid JSON.
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: implementation
|
|
3
|
-
description: For implementation sessions with writes/edits
|
|
4
|
-
activity_filter: Write,Edit
|
|
5
|
-
min_activities: 2
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
You are analyzing an implementation session to capture design decisions.
|
|
9
|
-
|
|
10
|
-
## Context
|
|
11
|
-
|
|
12
|
-
The developer was implementing a new feature or making significant changes.
|
|
13
|
-
|
|
14
|
-
Duration: {{session_duration}} minutes
|
|
15
|
-
Files created: {{files_created}}
|
|
16
|
-
Files modified: {{files_modified}}
|
|
17
|
-
|
|
18
|
-
### Implementation Activity
|
|
19
|
-
|
|
20
|
-
{{activities}}
|
|
21
|
-
|
|
22
|
-
## Observation Types
|
|
23
|
-
|
|
24
|
-
{{observation_types}}
|
|
25
|
-
|
|
26
|
-
## Importance Levels
|
|
27
|
-
|
|
28
|
-
Rate each observation's importance based on its value for future sessions:
|
|
29
|
-
|
|
30
|
-
- **high**: Non-obvious insight that would cause bugs, confusion, or wasted time if forgotten. Cannot be easily rediscovered from code alone.
|
|
31
|
-
- **medium**: Useful context that saves time but could be rediscovered with investigation.
|
|
32
|
-
- **low**: Nice-to-know information that is easily found from code or already documented elsewhere. Skip if already captured in project docs.
|
|
33
|
-
|
|
34
|
-
Prefer fewer high-quality observations over many low-importance ones.
|
|
35
|
-
|
|
36
|
-
## Task
|
|
37
|
-
|
|
38
|
-
Extract design decisions, architectural choices, and implementation gotchas.
|
|
39
|
-
|
|
40
|
-
Focus on:
|
|
41
|
-
- Why specific approaches were chosen
|
|
42
|
-
- Trade-offs considered
|
|
43
|
-
- Patterns followed or established
|
|
44
|
-
- Edge cases handled
|
|
45
|
-
- Integration points with existing code
|
|
46
|
-
|
|
47
|
-
Prefer **decision**, **trade_off**, and **gotcha** types for implementation sessions.
|
|
48
|
-
|
|
49
|
-
## Examples
|
|
50
|
-
|
|
51
|
-
**Good observation** (clear rationale — extract this):
|
|
52
|
-
```json
|
|
53
|
-
{
|
|
54
|
-
"type": "decision",
|
|
55
|
-
"observation": "Chose plain tsc over tsup for build because native deps (better-sqlite3) can't be bundled. tsc preserves directory structure so relative imports work without path rewriting.",
|
|
56
|
-
"context": "package.json build config",
|
|
57
|
-
"importance": "medium"
|
|
58
|
-
}
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
**Bad observation** (no rationale — skip this):
|
|
62
|
-
```json
|
|
63
|
-
{
|
|
64
|
-
"type": "decision",
|
|
65
|
-
"observation": "Used TypeScript for the project",
|
|
66
|
-
"context": "src/",
|
|
67
|
-
"importance": "low"
|
|
68
|
-
}
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## Output Format
|
|
72
|
-
|
|
73
|
-
```json
|
|
74
|
-
{
|
|
75
|
-
"observations": [
|
|
76
|
-
{
|
|
77
|
-
"type": "{{type_names}}",
|
|
78
|
-
"observation": "Design choice and rationale",
|
|
79
|
-
"context": "Feature or component name",
|
|
80
|
-
"importance": "high|medium|low"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"summary": "Brief description of what was implemented"
|
|
84
|
-
}
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
Guidelines:
|
|
88
|
-
- Extract at most 5 observations per session. Prefer fewer, higher-quality observations over many low-value ones.
|
|
89
|
-
|
|
90
|
-
Respond ONLY with valid JSON.
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# Myco Observation Schema
|
|
2
|
-
#
|
|
3
|
-
# Defines the observation types that the LLM uses for classification.
|
|
4
|
-
# Ported from open-agent-kit's battle-tested schema.
|
|
5
|
-
#
|
|
6
|
-
# Each type has:
|
|
7
|
-
# - description: What this type captures (shown to LLM)
|
|
8
|
-
# - examples: Example observations of this type (help LLM understand)
|
|
9
|
-
|
|
10
|
-
version: "1.0"
|
|
11
|
-
|
|
12
|
-
observation_types:
|
|
13
|
-
gotcha:
|
|
14
|
-
description: "Non-obvious behaviors, edge cases, or tricky parts that could trip someone up"
|
|
15
|
-
examples:
|
|
16
|
-
- "The API returns 200 even for validation errors, check the response body for success field"
|
|
17
|
-
- "File paths must be absolute, relative paths silently fail"
|
|
18
|
-
- "The cache TTL is in seconds, not milliseconds despite the variable name"
|
|
19
|
-
|
|
20
|
-
bug_fix:
|
|
21
|
-
description: "Bugs that were identified and fixed, including root cause and solution"
|
|
22
|
-
examples:
|
|
23
|
-
- "Race condition in async handler - added mutex lock around shared state"
|
|
24
|
-
- "Off-by-one error in pagination - fixed boundary check in slice operation"
|
|
25
|
-
- "Memory leak from unclosed connections - added try/finally cleanup"
|
|
26
|
-
|
|
27
|
-
decision:
|
|
28
|
-
description: "Architecture choices, design decisions, or approach selections with rationale"
|
|
29
|
-
examples:
|
|
30
|
-
- "Chose SQLite over PostgreSQL for activity storage - simpler deployment, sufficient for single-user"
|
|
31
|
-
- "Using background thread instead of async for file watcher - better isolation from event loop"
|
|
32
|
-
- "Storing tags as comma-separated string - avoids metadata array limitations"
|
|
33
|
-
|
|
34
|
-
discovery:
|
|
35
|
-
description: "Important facts learned about the codebase, APIs, patterns, or conventions"
|
|
36
|
-
examples:
|
|
37
|
-
- "The config is loaded lazily on first access via __getattr__"
|
|
38
|
-
- "All API routes use dependency injection for state"
|
|
39
|
-
- "Test fixtures are shared across modules via conftest.py"
|
|
40
|
-
|
|
41
|
-
trade_off:
|
|
42
|
-
description: "Trade-offs that were considered, alternatives evaluated, and why current approach was chosen"
|
|
43
|
-
examples:
|
|
44
|
-
- "Chose simplicity over performance - O(n) scan acceptable for expected data size"
|
|
45
|
-
- "Sacrificed type safety for flexibility - using dict instead of typed model for config"
|
|
46
|
-
- "Accepted eventual consistency for better throughput in background processing"
|
|
47
|
-
|
|
48
|
-
activity_classifications:
|
|
49
|
-
exploration:
|
|
50
|
-
description: "Reading code, searching, understanding the codebase"
|
|
51
|
-
indicators:
|
|
52
|
-
- "Mostly Read, Grep, Glob tools"
|
|
53
|
-
- "Few or no file modifications"
|
|
54
|
-
- "Questions about how things work"
|
|
55
|
-
|
|
56
|
-
debugging:
|
|
57
|
-
description: "Investigating errors, fixing bugs, troubleshooting"
|
|
58
|
-
indicators:
|
|
59
|
-
- "Error messages in output"
|
|
60
|
-
- "Test failures"
|
|
61
|
-
- "Iterative fixes to same files"
|
|
62
|
-
|
|
63
|
-
implementation:
|
|
64
|
-
description: "Writing new code, adding features, creating new files"
|
|
65
|
-
indicators:
|
|
66
|
-
- "New files created"
|
|
67
|
-
- "Significant Write/Edit operations"
|
|
68
|
-
- "Feature-related file names"
|
|
69
|
-
|
|
70
|
-
refactoring:
|
|
71
|
-
description: "Modifying existing code structure without adding new functionality"
|
|
72
|
-
indicators:
|
|
73
|
-
- "Edits without new files"
|
|
74
|
-
- "Moving/renaming operations"
|
|
75
|
-
- "No new test files"
|
|
76
|
-
|
|
77
|
-
session_origin_types:
|
|
78
|
-
planning:
|
|
79
|
-
description: "Planning-phase session"
|
|
80
|
-
indicators:
|
|
81
|
-
- "High read:edit ratio"
|
|
82
|
-
- "Few file modifications"
|
|
83
|
-
investigation:
|
|
84
|
-
description: "Exploration/debugging session"
|
|
85
|
-
indicators:
|
|
86
|
-
- "Many file reads"
|
|
87
|
-
- "Minimal edits"
|
|
88
|
-
implementation:
|
|
89
|
-
description: "Active coding session"
|
|
90
|
-
indicators:
|
|
91
|
-
- "Significant file modifications"
|
|
92
|
-
- "Low read:edit ratio"
|
|
93
|
-
mixed:
|
|
94
|
-
description: "Combined activity types"
|
|
95
|
-
indicators:
|
|
96
|
-
- "Both reads and edits"
|
|
97
|
-
- "Does not fit other categories"
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: session-summary
|
|
3
|
-
description: Generate a high-level summary of what was accomplished in the session
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
You are summarizing a coding session to help future sessions understand what was done.
|
|
7
|
-
|
|
8
|
-
The developer working in this session is **{{developer_name}}**. Refer to them by name instead of "the user" or "the developer".
|
|
9
|
-
|
|
10
|
-
## Session Statistics
|
|
11
|
-
|
|
12
|
-
- Duration: {{session_duration}} minutes
|
|
13
|
-
- Prompt batches: {{prompt_batch_count}}
|
|
14
|
-
- Files read: {{files_read_count}}
|
|
15
|
-
- Files modified: {{files_modified_count}}
|
|
16
|
-
- Files created: {{files_created_count}}
|
|
17
|
-
- Total tool calls: {{tool_calls}}
|
|
18
|
-
- **Session Origin Type:** {{session_origin_type}}
|
|
19
|
-
|
|
20
|
-
## Prompt Batches
|
|
21
|
-
|
|
22
|
-
{{prompt_batches}}
|
|
23
|
-
|
|
24
|
-
## Session Origin Type
|
|
25
|
-
|
|
26
|
-
The session origin type indicates the dominant activity pattern:
|
|
27
|
-
- **planning**: Primarily reading and planning, few file modifications
|
|
28
|
-
- **investigation**: Exploration and debugging, many reads with minimal edits
|
|
29
|
-
- **implementation**: Active coding with significant file modifications
|
|
30
|
-
- **mixed**: Combined activity patterns
|
|
31
|
-
|
|
32
|
-
When summarizing, note whether observations are planning-phase findings (may become
|
|
33
|
-
stale once work is implemented) versus implementation learnings (more likely to remain
|
|
34
|
-
relevant long-term).
|
|
35
|
-
|
|
36
|
-
## Task
|
|
37
|
-
|
|
38
|
-
Write a concise summary of this session. You have access to both the user's prompts and the agent's actions, so capture the full picture:
|
|
39
|
-
|
|
40
|
-
- **Developer intent**: What was {{developer_name}} trying to accomplish? What was their approach or priority?
|
|
41
|
-
- **Key actions**: What did the agent do? Which files were modified and why?
|
|
42
|
-
- **Outcomes**: What was achieved? Any decisions made or problems solved?
|
|
43
|
-
- **Context**: Any constraints, trade-offs, or discoveries worth noting?
|
|
44
|
-
|
|
45
|
-
Be specific - include file names, feature names, and technical details when relevant.
|
|
46
|
-
|
|
47
|
-
## Output Format
|
|
48
|
-
|
|
49
|
-
Respond with ONLY the summary text. No JSON, no code blocks, just plain text. A bulleted list is acceptable if it improves clarity.
|
|
50
|
-
|
|
51
|
-
## Examples
|
|
52
|
-
|
|
53
|
-
Good (captures intent + actions + outcome):
|
|
54
|
-
- "Chris wanted to add dark mode support. Implemented theme toggle in settings/ThemeProvider.tsx using CSS variables, added useTheme hook, and updated 12 components to use theme tokens instead of hardcoded colors. Chose CSS variables over styled-components for better performance."
|
|
55
|
-
|
|
56
|
-
Good (captures debugging journey):
|
|
57
|
-
- "Alex reported intermittent test failures in CI. Investigated flaky tests in tests/api/, discovered race condition in database cleanup. Fixed by adding proper test isolation with transaction rollbacks. Also identified that TestClient was sharing state across tests."
|
|
58
|
-
|
|
59
|
-
Good (captures exploration with learnings):
|
|
60
|
-
- "Sam needed to understand the payment processing flow before adding refund support. Traced code from PaymentController through StripeService to webhook handlers. Key finding: payments use idempotency keys stored in Redis, refunds will need similar pattern."
|
|
61
|
-
|
|
62
|
-
Bad (too vague):
|
|
63
|
-
- "Fixed some bugs and added a feature"
|
|
64
|
-
- "Worked on authentication"
|
|
65
|
-
- "Made improvements to the codebase"
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: session-title
|
|
3
|
-
description: Generate a short title from a session summary
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Generate a short, descriptive title (6-12 words) for this coding session based on its summary.
|
|
7
|
-
|
|
8
|
-
## Session Summary
|
|
9
|
-
|
|
10
|
-
{{session_summary}}
|
|
11
|
-
|
|
12
|
-
## Task
|
|
13
|
-
|
|
14
|
-
Create a brief title that captures the main accomplishment or focus of this session. The title should:
|
|
15
|
-
- Be 6-12 words maximum
|
|
16
|
-
- Start with an action verb when appropriate (Add, Fix, Implement, Refactor, Debug, Update, Configure, etc.)
|
|
17
|
-
- Capture the primary task or feature worked on
|
|
18
|
-
- Be specific enough to distinguish from other sessions
|
|
19
|
-
- If this is a continuation session, emphasize what THIS session specifically did, not the overall goal
|
|
20
|
-
|
|
21
|
-
## Output Format
|
|
22
|
-
|
|
23
|
-
Respond with ONLY the title text as plain text.
|
|
24
|
-
- No JSON
|
|
25
|
-
- No quotes
|
|
26
|
-
- No markdown
|
|
27
|
-
- No punctuation at the end
|
|
28
|
-
- No explanation or preamble
|
|
29
|
-
|
|
30
|
-
Just the title itself, nothing else.
|
|
31
|
-
|
|
32
|
-
## Examples
|
|
33
|
-
|
|
34
|
-
Good titles:
|
|
35
|
-
- Add dark mode theme support
|
|
36
|
-
- Fix authentication token refresh bug
|
|
37
|
-
- Implement user profile settings page
|
|
38
|
-
- Refactor payment processing service
|
|
39
|
-
- Debug CI pipeline test failures
|
|
40
|
-
- Port OAK prompt templates to Myco
|
|
41
|
-
|
|
42
|
-
Bad titles (too vague):
|
|
43
|
-
- Working on code
|
|
44
|
-
- Bug fix
|
|
45
|
-
- Feature implementation
|
|
46
|
-
- Updates
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# Myco Observation Schema
|
|
2
|
-
#
|
|
3
|
-
# Defines the observation types that the LLM uses for classification.
|
|
4
|
-
# Ported from open-agent-kit's battle-tested schema.
|
|
5
|
-
#
|
|
6
|
-
# Each type has:
|
|
7
|
-
# - description: What this type captures (shown to LLM)
|
|
8
|
-
# - examples: Example observations of this type (help LLM understand)
|
|
9
|
-
|
|
10
|
-
version: "1.0"
|
|
11
|
-
|
|
12
|
-
observation_types:
|
|
13
|
-
gotcha:
|
|
14
|
-
description: "Non-obvious behaviors, edge cases, or tricky parts that could trip someone up"
|
|
15
|
-
examples:
|
|
16
|
-
- "The API returns 200 even for validation errors, check the response body for success field"
|
|
17
|
-
- "File paths must be absolute, relative paths silently fail"
|
|
18
|
-
- "The cache TTL is in seconds, not milliseconds despite the variable name"
|
|
19
|
-
|
|
20
|
-
bug_fix:
|
|
21
|
-
description: "Bugs that were identified and fixed, including root cause and solution"
|
|
22
|
-
examples:
|
|
23
|
-
- "Race condition in async handler - added mutex lock around shared state"
|
|
24
|
-
- "Off-by-one error in pagination - fixed boundary check in slice operation"
|
|
25
|
-
- "Memory leak from unclosed connections - added try/finally cleanup"
|
|
26
|
-
|
|
27
|
-
decision:
|
|
28
|
-
description: "Architecture choices, design decisions, or approach selections with rationale"
|
|
29
|
-
examples:
|
|
30
|
-
- "Chose SQLite over PostgreSQL for activity storage - simpler deployment, sufficient for single-user"
|
|
31
|
-
- "Using background thread instead of async for file watcher - better isolation from event loop"
|
|
32
|
-
- "Storing tags as comma-separated string - avoids metadata array limitations"
|
|
33
|
-
|
|
34
|
-
discovery:
|
|
35
|
-
description: "Important facts learned about the codebase, APIs, patterns, or conventions"
|
|
36
|
-
examples:
|
|
37
|
-
- "The config is loaded lazily on first access via __getattr__"
|
|
38
|
-
- "All API routes use dependency injection for state"
|
|
39
|
-
- "Test fixtures are shared across modules via conftest.py"
|
|
40
|
-
|
|
41
|
-
trade_off:
|
|
42
|
-
description: "Trade-offs that were considered, alternatives evaluated, and why current approach was chosen"
|
|
43
|
-
examples:
|
|
44
|
-
- "Chose simplicity over performance - O(n) scan acceptable for expected data size"
|
|
45
|
-
- "Sacrificed type safety for flexibility - using dict instead of typed model for config"
|
|
46
|
-
- "Accepted eventual consistency for better throughput in background processing"
|
|
47
|
-
|
|
48
|
-
activity_classifications:
|
|
49
|
-
exploration:
|
|
50
|
-
description: "Reading code, searching, understanding the codebase"
|
|
51
|
-
indicators:
|
|
52
|
-
- "Mostly Read, Grep, Glob tools"
|
|
53
|
-
- "Few or no file modifications"
|
|
54
|
-
- "Questions about how things work"
|
|
55
|
-
|
|
56
|
-
debugging:
|
|
57
|
-
description: "Investigating errors, fixing bugs, troubleshooting"
|
|
58
|
-
indicators:
|
|
59
|
-
- "Error messages in output"
|
|
60
|
-
- "Test failures"
|
|
61
|
-
- "Iterative fixes to same files"
|
|
62
|
-
|
|
63
|
-
implementation:
|
|
64
|
-
description: "Writing new code, adding features, creating new files"
|
|
65
|
-
indicators:
|
|
66
|
-
- "New files created"
|
|
67
|
-
- "Significant Write/Edit operations"
|
|
68
|
-
- "Feature-related file names"
|
|
69
|
-
|
|
70
|
-
refactoring:
|
|
71
|
-
description: "Modifying existing code structure without adding new functionality"
|
|
72
|
-
indicators:
|
|
73
|
-
- "Edits without new files"
|
|
74
|
-
- "Moving/renaming operations"
|
|
75
|
-
- "No new test files"
|
|
76
|
-
|
|
77
|
-
session_origin_types:
|
|
78
|
-
planning:
|
|
79
|
-
description: "Planning-phase session"
|
|
80
|
-
indicators:
|
|
81
|
-
- "High read:edit ratio"
|
|
82
|
-
- "Few file modifications"
|
|
83
|
-
investigation:
|
|
84
|
-
description: "Exploration/debugging session"
|
|
85
|
-
indicators:
|
|
86
|
-
- "Many file reads"
|
|
87
|
-
- "Minimal edits"
|
|
88
|
-
implementation:
|
|
89
|
-
description: "Active coding session"
|
|
90
|
-
indicators:
|
|
91
|
-
- "Significant file modifications"
|
|
92
|
-
- "Low read:edit ratio"
|
|
93
|
-
mixed:
|
|
94
|
-
description: "Combined activity types"
|
|
95
|
-
indicators:
|
|
96
|
-
- "Both reads and edits"
|
|
97
|
-
- "Does not fit other categories"
|