From e5b3e31a06209a1116cb7c433494625d5f26987b Mon Sep 17 00:00:00 2001 From: krustophski Date: Sun, 24 May 2026 10:31:33 +0300 Subject: [PATCH] Initialize agent knowledge base --- .gitignore | 11 ++++ AGENTS.md | 64 ++++++++++++++++++++++ README.md | 37 +++++++++++++ locations/current-codex-mac.md | 22 ++++++++ locations/index.md | 10 ++++ problems/index.md | 12 ++++ projects/agent-knowledge-base/decisions.md | 14 +++++ projects/agent-knowledge-base/notes.md | 10 ++++ projects/agent-knowledge-base/status.md | 19 +++++++ projects/index.md | 14 +++++ skills/index.md | 6 ++ skills/repository-memory.md | 38 +++++++++++++ templates/location.md | 21 +++++++ templates/problem.md | 40 ++++++++++++++ templates/project-status.md | 18 ++++++ templates/skill.md | 27 +++++++++ 16 files changed, 363 insertions(+) create mode 100644 .gitignore create mode 100644 AGENTS.md create mode 100644 README.md create mode 100644 locations/current-codex-mac.md create mode 100644 locations/index.md create mode 100644 problems/index.md create mode 100644 projects/agent-knowledge-base/decisions.md create mode 100644 projects/agent-knowledge-base/notes.md create mode 100644 projects/agent-knowledge-base/status.md create mode 100644 projects/index.md create mode 100644 skills/index.md create mode 100644 skills/repository-memory.md create mode 100644 templates/location.md create mode 100644 templates/problem.md create mode 100644 templates/project-status.md create mode 100644 templates/skill.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6881462 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +.DS_Store +*.log +*.tmp +*.bak +secrets/ +*.key +*.pem +*.p12 +*.env +.env.* + diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..bb50e80 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,64 @@ +# Agent Operating Instructions + +This repository is the shared long-term memory for agents working with the user. + +## Session Startup + +At the beginning of work: + +1. Read this file. +2. Read `projects/index.md`. +3. Read `locations/index.md`. +4. Search `problems/` and `skills/` for anything related to the current task. +5. Update project status when a meaningful change happens. + +## What To Record + +Record only durable knowledge: + +- working solutions to real problems; +- failed approaches when they are likely to be retried; +- project status, blockers, decisions, and next steps; +- machine-specific setup details; +- paths, commands, ports, dependencies, and integration notes; +- reusable agent procedures. + +Do not record: + +- secrets or credentials; +- temporary chat filler; +- unverified guesses; +- large binary files; +- generated logs unless summarized. + +## Update Discipline + +When a problem is solved: + +1. Add a file under `problems/`. +2. Include symptoms, environment, root cause, solution, verification, and related files. +3. If the solution is reusable, also update or create a skill under `skills/`. +4. If it affects a project, update that project's `status.md`. + +When a project changes: + +1. Update `projects//status.md`. +2. Keep `Current State`, `Next Actions`, and `Open Questions` current. +3. Add decisions to `decisions.md` if they affect future work. + +## Privacy And Safety + +This repository is intended to be private. Even so, write as if a future collaborator may read it. + +Never store: + +- API keys; +- SSH private keys; +- passwords; +- session cookies; +- OAuth tokens; +- private recovery phrases; +- full personal documents. + +Use placeholders such as `` when documenting commands that normally include secrets. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..78b1bee --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# Agent Knowledge Base + +Private text-only repository for agent skills, project memory, locations, machines, known problems, and reusable solutions. + +## How Agents Should Use This Repository + +1. Start every session by reading `AGENTS.md`. +2. Check the current machine and location in `locations/`. +3. Check active projects in `projects/`. +4. Before solving a repeated issue, search `problems/` and `skills/`. +5. After finding a useful solution, add or update a text entry in the matching folder. +6. Keep files small, factual, and easy to search. + +## Repository Map + +- `AGENTS.md` - operating rules for all agents. +- `skills/` - reusable agent skills and procedures. +- `projects/` - current projects, status, next actions, and decisions. +- `problems/` - solved problems, symptoms, root causes, and fixes. +- `locations/` - physical locations, computers, access notes, and environment facts. +- `templates/` - copyable text templates for new entries. + +## File Rules + +- Use Markdown text files only. +- Do not commit secrets, passwords, private keys, tokens, cookies, or recovery codes. +- Store commands, paths, decisions, and troubleshooting steps, but redact credentials. +- Prefer one topic per file. +- Use ISO dates: `YYYY-MM-DD`. + +## Naming + +- Skills: `skills//.md` +- Problems: `problems/YYYY-MM-DD-short-problem-name.md` +- Projects: `projects//status.md` +- Locations: `locations/.md` + diff --git a/locations/current-codex-mac.md b/locations/current-codex-mac.md new file mode 100644 index 0000000..d21c4e8 --- /dev/null +++ b/locations/current-codex-mac.md @@ -0,0 +1,22 @@ +# Current Codex Desktop Machine + +## Observed On + +- Date: 2026-05-24 +- User timezone from session: Europe/Moscow +- Workspace: `/Users/post/Documents/Codex/2026-05-24/github-private-github` +- Shell: `zsh` +- Git user name: `krustophski` +- Git user email: `herschel.krustophski@gmail.com` + +## Capabilities Observed + +- Local file editing in the workspace is available. +- `git` is available. +- GitHub CLI `gh` was not available in this environment on 2026-05-24. +- GitHub connector can read and write files in existing repositories, but repository creation was not exposed as a direct tool in this session. + +## Connection Notes + +Do not store passwords, tokens, SSH private keys, or recovery codes here. + diff --git a/locations/index.md b/locations/index.md new file mode 100644 index 0000000..a41a30f --- /dev/null +++ b/locations/index.md @@ -0,0 +1,10 @@ +# Locations And Machines Index + +## Known Machines + +- `current-codex-mac.md` - current Codex desktop environment. + +## Notes + +Add one file per stable machine or location. Keep access methods factual, but do not store secrets. + diff --git a/problems/index.md b/problems/index.md new file mode 100644 index 0000000..51269ca --- /dev/null +++ b/problems/index.md @@ -0,0 +1,12 @@ +# Problems Index + +Add solved problems here as Markdown files. + +Suggested format: + +- `YYYY-MM-DD-short-problem-name.md` + +Current entries: + +- None yet. + diff --git a/projects/agent-knowledge-base/decisions.md b/projects/agent-knowledge-base/decisions.md new file mode 100644 index 0000000..078a27d --- /dev/null +++ b/projects/agent-knowledge-base/decisions.md @@ -0,0 +1,14 @@ +# Agent Knowledge Base Decisions + +## 2026-05-24 - Text-Only Storage + +Decision: Store only Markdown/text files in this repository. + +Reason: The repository should stay searchable, reviewable, and safe for agents to read quickly. + +## 2026-05-24 - No Secrets + +Decision: Do not store credentials, tokens, keys, cookies, or passwords. + +Reason: The repository is intended to be private, but private repositories can still be cloned, shared, indexed locally, or exposed by accident. + diff --git a/projects/agent-knowledge-base/notes.md b/projects/agent-knowledge-base/notes.md new file mode 100644 index 0000000..db6ed9d --- /dev/null +++ b/projects/agent-knowledge-base/notes.md @@ -0,0 +1,10 @@ +# Agent Knowledge Base Notes + +This repository is designed to act as a durable context package. A future agent should be able to read the repository URL, inspect `README.md` and `AGENTS.md`, and understand: + +- what projects exist; +- what machines and locations are relevant; +- which problems have already been solved; +- which reusable skills exist; +- what the next useful action is. + diff --git a/projects/agent-knowledge-base/status.md b/projects/agent-knowledge-base/status.md new file mode 100644 index 0000000..5fe41a6 --- /dev/null +++ b/projects/agent-knowledge-base/status.md @@ -0,0 +1,19 @@ +# Agent Knowledge Base Status + +## Current State + +- Local text-only repository structure created. +- Intended GitHub visibility: private. +- Intended owner: user account associated with local git identity `krustophski`. + +## Next Actions + +- Create a private GitHub repository. +- Push this repository to GitHub. +- Add future agent findings as Markdown files. + +## Open Questions + +- Final GitHub repository name. +- Whether agents should push directly to `main` or use branches and pull requests. + diff --git a/projects/index.md b/projects/index.md new file mode 100644 index 0000000..dfdefdd --- /dev/null +++ b/projects/index.md @@ -0,0 +1,14 @@ +# Projects Index + +## Active Projects + +- `agent-knowledge-base` - private text repository for agent memory, skills, locations, problems, and project state. + +## Project Conventions + +Each project should have: + +- `status.md` - current state and next actions. +- `decisions.md` - durable decisions and rationale. +- `notes.md` - useful context that does not fit elsewhere. + diff --git a/skills/index.md b/skills/index.md new file mode 100644 index 0000000..b8e425a --- /dev/null +++ b/skills/index.md @@ -0,0 +1,6 @@ +# Skills Index + +## Current Skills + +- `repository-memory.md` - how agents should update this repository after work. + diff --git a/skills/repository-memory.md b/skills/repository-memory.md new file mode 100644 index 0000000..6dd11bf --- /dev/null +++ b/skills/repository-memory.md @@ -0,0 +1,38 @@ +# Repository Memory Skill + +## Purpose + +Keep durable agent knowledge synchronized in this repository. + +## When To Use + +Use this skill whenever an agent: + +- solves a non-trivial problem; +- discovers a machine-specific setup detail; +- changes project state; +- finds a reusable command or procedure; +- identifies a failed approach that should not be repeated. + +## Procedure + +1. Identify the category: project, problem, skill, or location. +2. Search existing files before creating a new one. +3. Update the most specific existing file when possible. +4. Create a new file only when the knowledge has a new durable topic. +5. Include verification, not just the attempted fix. +6. Keep secrets out of the repository. + +## Minimum Problem Record + +Every solved problem should include: + +- date; +- project; +- environment; +- symptoms; +- root cause; +- solution; +- verification; +- related files or commands. + diff --git a/templates/location.md b/templates/location.md new file mode 100644 index 0000000..2b2bb8e --- /dev/null +++ b/templates/location.md @@ -0,0 +1,21 @@ +# Location Or Machine Name + +## Summary + +Short description. + +## Environment + +- OS: +- Shell: +- Important paths: +- Common ports: + +## Access Notes + +Document safe access facts only. Do not include secrets. + +## Project Links + +- Related project: + diff --git a/templates/problem.md b/templates/problem.md new file mode 100644 index 0000000..114387d --- /dev/null +++ b/templates/problem.md @@ -0,0 +1,40 @@ +# Problem Title + +## Date + +YYYY-MM-DD + +## Project + +Project name or `none`. + +## Environment + +- Machine: +- OS: +- Relevant tools: + +## Symptoms + +What failed, including exact error messages when useful. + +## Root Cause + +What actually caused the problem. + +## Solution + +Steps that fixed the problem. + +## Verification + +How the fix was tested. + +## Related Files Or Commands + +- `command or path` + +## Follow-Up + +Any remaining cleanup or prevention work. + diff --git a/templates/project-status.md b/templates/project-status.md new file mode 100644 index 0000000..f480a8d --- /dev/null +++ b/templates/project-status.md @@ -0,0 +1,18 @@ +# Project Status + +## Current State + +What is true now. + +## Next Actions + +- Next concrete step. + +## Blockers + +- None known. + +## Open Questions + +- None known. + diff --git a/templates/skill.md b/templates/skill.md new file mode 100644 index 0000000..8e34aa1 --- /dev/null +++ b/templates/skill.md @@ -0,0 +1,27 @@ +# Skill Name + +## Purpose + +What this skill helps an agent do. + +## When To Use + +Signals that this skill applies. + +## Inputs Needed + +- Required context. + +## Procedure + +1. Step one. +2. Step two. + +## Verification + +How to confirm the work is correct. + +## Known Failure Modes + +- Problem and mitigation. +