diff --git a/AGENTS.md b/AGENTS.md index 6f78512..4ddf1d2 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,11 +12,12 @@ At the beginning of work: 2. Read `projects/index.md`. 3. Read `locations/index.md`. 4. Read `mcp-servers/index.md`. -5. Identify the active project from the user request or `projects/index.md`. -6. Search global knowledge first: `skills/`, `problems/`, `locations/`, and `mcp-servers/`. -7. Read the active project's `status.md`, `technical-spec.md`, `decisions.md`, `notes.md`, and `agent-log.md` when they exist. -8. Read the active project's `repositories.md` when it exists. -9. Update project status when a meaningful change happens. +5. If this repository was introduced into an existing dialogue, summarize useful prior context into `dialog-summaries/`. +6. Identify the active project from the user request or `projects/index.md`. +7. Search global knowledge first: `skills/`, `problems/`, `locations/`, `mcp-servers/`, and `dialog-summaries/`. +8. Read the active project's `status.md`, `technical-spec.md`, `decisions.md`, `notes.md`, and `agent-log.md` when they exist. +9. Read the active project's `repositories.md` when it exists. +10. Update project status when a meaningful change happens. ## Agent Self-Learning Loop @@ -56,6 +57,7 @@ Record only durable knowledge: - reusable agent procedures. - user clarifications that affect a project's technical specification or workflow. - MCP servers, installation notes, configuration snippets, and verification steps. +- short summaries from separate agent dialogues when they contain useful decisions, solved problems, requirements, or project state. ## Global Knowledge First @@ -77,6 +79,7 @@ Use global folders for reusable knowledge: - `problems/` for solved issues, root causes, failed approaches, and fixes; - `locations/` for machine, environment, and access facts; - `mcp-servers/` for shared MCP server registry and setup guidance; +- `dialog-summaries/` for useful context imported from separate agent dialogues; - `templates/` for reusable document structures. If a solution is discovered while working on one project but could help another project, record it in `problems/` or `skills/` and link to it from the project file if needed. Do not leave reusable knowledge only in `projects//`. @@ -102,6 +105,34 @@ Do not record: - large binary files; - generated logs unless summarized. +## Dialogue Summaries + +When the user gives an agent this repository link during an already-running dialogue, the agent should create a short summary of that dialogue. + +Use `dialog-summaries/YYYY-MM-DD-short-topic.md`. + +The summary should capture only durable context: + +- project name; +- agent or machine, if known; +- user goals; +- important decisions; +- solved problems; +- failed approaches worth remembering; +- commands, files, repositories, MCP servers, or hardware details that matter; +- current state; +- next actions; +- links to updated project/global files. + +After writing the dialogue summary: + +1. Move reusable knowledge into `skills/`, `problems/`, `locations/`, or `mcp-servers/` if it belongs there. +2. Update the affected project's `technical-spec.md`, `status.md`, `repositories.md`, `decisions.md`, or `agent-log.md`. +3. Commit and push when repository access is available. +4. If write access is missing, produce ready-to-commit Markdown. + +Do not paste full chat transcripts unless the user explicitly asks. Summarize them. + ## Update Discipline When a problem is solved: diff --git a/README.md b/README.md index f328d50..b026dca 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,10 @@ The purpose is to let agents improve over time by saving verified knowledge, kee 3. Check the shared MCP server registry in `mcp-servers/`. 4. Check active projects in `projects/`. 5. Before solving a repeated issue, search global knowledge in `problems/`, `skills/`, and `locations/`. -6. After finding a useful solution, add or update a global text entry first, then link it from a project if needed. -7. Update project technical specifications, status, repository maps, and handoff logs when the dialogue or implementation changes them. -8. Keep files small, factual, and easy to search. +6. If this repository is introduced into an existing dialogue, create a short dialogue summary in `dialog-summaries/`. +7. After finding a useful solution, add or update a global text entry first, then link it from a project if needed. +8. Update project technical specifications, status, repository maps, and handoff logs when the dialogue or implementation changes them. +9. Keep files small, factual, and easy to search. Private repository access is required. A link lets an agent locate the repository, but a private repository still needs GitHub permissions and authentication before an agent can read or push updates. @@ -28,6 +29,7 @@ Private repository access is required. A link lets an agent locate the repositor - `problems/` - solved problems, symptoms, root causes, and fixes that can be reused across projects. - `locations/` - physical locations, computers, access notes, and environment facts. - `mcp-servers/` - shared registry of MCP servers agents should know how to install and configure. +- `dialog-summaries/` - short summaries of useful context from separate agent dialogues. - `templates/` - copyable text templates for new entries. ## File Rules @@ -47,3 +49,4 @@ Private repository access is required. A link lets an agent locate the repositor - Projects: `projects//status.md` - Locations: `locations/.md` - MCP servers: `mcp-servers/index.md` +- Dialogue summaries: `dialog-summaries/YYYY-MM-DD-short-topic.md` diff --git a/dialog-summaries/index.md b/dialog-summaries/index.md new file mode 100644 index 0000000..f09e4b2 --- /dev/null +++ b/dialog-summaries/index.md @@ -0,0 +1,23 @@ +# Dialogue Summaries + +This folder stores compact summaries of useful context imported from separate agent dialogues. + +## Rules + +- Summarize durable knowledge only. +- Do not paste full chat transcripts. +- Do not store secrets. +- Move reusable solutions into `skills/` or `problems/`. +- Update project files when the dialogue changes a project. + +## Naming + +Use: + +```text +YYYY-MM-DD-short-topic.md +``` + +## Current Entries + +- None yet. diff --git a/projects/garage/agent-log.md b/projects/garage/agent-log.md index 134399f..f4a5a81 100644 --- a/projects/garage/agent-log.md +++ b/projects/garage/agent-log.md @@ -52,3 +52,12 @@ - Files changed: Updated `projects/garage/technical-spec.md`, `projects/garage/status.md`, `projects/garage/repositories.md`, `locations/index.md`, and added `locations/pump.md`. - Verified: Requirements captured in the live technical specification. - Next handoff: Inventory existing projection-related repositories and document `Pump` hardware details before choosing the simulator engine/toolchain. + +## 2026-05-24 - Dialogue Summary Import Requirement + +- Machine: current Codex desktop machine. +- Agent: Codex. +- Summary: User requested that agents receiving this repository link from separate dialogues create short summaries of those dialogues so decisions, solved problems, and current state are preserved. +- Files changed: Added `dialog-summaries/index.md`, `templates/dialog-summary.md`, and `skills/dialog-summary-import.md`; updated global instructions. +- Verified: Import workflow documented in shared memory. +- Next handoff: Future agents should summarize useful prior dialogue context before continuing project work. diff --git a/skills/dialog-summary-import.md b/skills/dialog-summary-import.md new file mode 100644 index 0000000..90b14e9 --- /dev/null +++ b/skills/dialog-summary-import.md @@ -0,0 +1,124 @@ +# Dialogue Summary Import + +## Purpose + +Import useful knowledge from separate agent dialogues into this repository without copying full chat transcripts. + +## When To Use + +Use this skill when: + +- the user gives an agent a link to this repository during an existing dialogue; +- a separate chat contains project decisions or solved problems; +- a previous agent session has useful state that future agents need; +- the user asks to preserve context from a dialogue. + +## Output Location + +Create a short Markdown summary in: + +```text +dialog-summaries/YYYY-MM-DD-short-topic.md +``` + +## What To Include + +Include durable context only: + +- date; +- source dialogue or agent, if known; +- project; +- user goal; +- decisions; +- solved problems; +- failed approaches worth remembering; +- important commands, paths, repositories, MCP servers, or hardware; +- current state; +- next actions; +- files updated in this knowledge base. + +## What Not To Include + +Do not include: + +- full chat transcripts; +- secrets; +- passwords; +- tokens; +- private keys; +- temporary chatter; +- unverified guesses presented as facts. + +## Follow-Up Updates + +After creating the summary: + +1. Put reusable solutions into `problems/` or `skills/`. +2. Put machine details into `locations/`. +3. Put MCP details into `mcp-servers/`. +4. Update affected project files: + - `technical-spec.md`; + - `status.md`; + - `repositories.md`; + - `decisions.md`; + - `agent-log.md`. +5. Commit and push if the agent has access. + +## Summary Template + +```markdown +# Dialogue Summary: Short Topic + +## Date + +YYYY-MM-DD + +## Source + +- Agent: +- Machine: +- Dialogue/context: + +## Project + +Project name or `unknown`. + +## User Goal + +Short description. + +## Decisions + +- Decision: + +## Solved Problems + +- Problem: +- Solution: +- Verification: + +## Failed Approaches + +- Approach: +- Reason not used: + +## Important Context + +- Repository: +- Path: +- Command: +- MCP server: +- Hardware: + +## Current State + +What is true now. + +## Next Actions + +- Next action: + +## Knowledge Base Updates + +- File updated: +``` diff --git a/skills/index.md b/skills/index.md index b8e5b35..e4169c9 100644 --- a/skills/index.md +++ b/skills/index.md @@ -9,3 +9,4 @@ - `multi-repository-projects.md` - how to coordinate and merge multiple local git repositories into one project. - `self-learning-agent-loop.md` - required loop for agents to learn from work and update shared memory. - `mcp-server-management.md` - how agents keep a shared MCP server set synchronized across machines. +- `dialog-summary-import.md` - how agents summarize useful context from separate dialogues into this repository. diff --git a/skills/self-learning-agent-loop.md b/skills/self-learning-agent-loop.md index 4e32e8b..0013031 100644 --- a/skills/self-learning-agent-loop.md +++ b/skills/self-learning-agent-loop.md @@ -11,9 +11,10 @@ Agents must update memory when work produces durable knowledge or changes projec ## Loop 1. Read global instructions and project context. -2. Search existing global knowledge before solving a problem. -3. Complete the requested work. -4. Extract durable lessons: +2. If this repository was introduced into an existing dialogue, summarize useful prior context into `dialog-summaries/`. +3. Search existing global knowledge before solving a problem. +4. Complete the requested work. +5. Extract durable lessons: - solved problems; - failed approaches; - reusable commands; @@ -21,17 +22,38 @@ Agents must update memory when work produces durable knowledge or changes projec - changed requirements; - project decisions; - integration constraints. -5. Store reusable knowledge globally: +6. Store reusable knowledge globally: - `skills/` for procedures and workflows; - `problems/` for symptoms, root causes, fixes, and verification; - `locations/` for machine and environment facts. -6. Store project-specific state in: +7. Store project-specific state in: - `projects//technical-spec.md`; - `projects//status.md`; - `projects//repositories.md`; - `projects//decisions.md`; - `projects//agent-log.md`. -7. Commit and push updates when possible. +8. Commit and push updates when possible. + +## Importing Existing Dialogue Context + +When the user gives this repository link to an agent in the middle or at the end of another dialogue, that agent should create a compact summary file: + +```text +dialog-summaries/YYYY-MM-DD-short-topic.md +``` + +The summary should not be a raw transcript. It should extract: + +- what the user wanted; +- which project was involved; +- decisions made; +- problems solved; +- failed approaches; +- important commands, paths, repositories, MCP servers, or hardware; +- current state; +- next actions. + +Then the agent should update the appropriate project files and global knowledge files. ## When To Update Technical Specifications diff --git a/templates/dialog-summary.md b/templates/dialog-summary.md new file mode 100644 index 0000000..0a2b062 --- /dev/null +++ b/templates/dialog-summary.md @@ -0,0 +1,55 @@ +# Dialogue Summary: Short Topic + +## Date + +YYYY-MM-DD + +## Source + +- Agent: +- Machine: +- Dialogue/context: + +## Project + +Project name or `unknown`. + +## User Goal + +Short description. + +## Decisions + +- Decision: + +## Solved Problems + +- Problem: +- Solution: +- Verification: + +## Failed Approaches + +- Approach: +- Reason not used: + +## Important Context + +- Repository: +- Path: +- Command: +- MCP server: +- Hardware: + +## Current State + +What is true now. + +## Next Actions + +- Next action: + +## Knowledge Base Updates + +- File updated: +