Initialize agent knowledge base
This commit is contained in:
commit
e5b3e31a06
16 changed files with 363 additions and 0 deletions
11
.gitignore
vendored
Normal file
11
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
.DS_Store
|
||||
*.log
|
||||
*.tmp
|
||||
*.bak
|
||||
secrets/
|
||||
*.key
|
||||
*.pem
|
||||
*.p12
|
||||
*.env
|
||||
.env.*
|
||||
|
||||
64
AGENTS.md
Normal file
64
AGENTS.md
Normal file
|
|
@ -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/<project>/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 `<REDACTED_TOKEN>` when documenting commands that normally include secrets.
|
||||
|
||||
37
README.md
Normal file
37
README.md
Normal file
|
|
@ -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/<domain>/<skill-name>.md`
|
||||
- Problems: `problems/YYYY-MM-DD-short-problem-name.md`
|
||||
- Projects: `projects/<project-name>/status.md`
|
||||
- Locations: `locations/<location-or-machine-name>.md`
|
||||
|
||||
22
locations/current-codex-mac.md
Normal file
22
locations/current-codex-mac.md
Normal file
|
|
@ -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.
|
||||
|
||||
10
locations/index.md
Normal file
10
locations/index.md
Normal file
|
|
@ -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.
|
||||
|
||||
12
problems/index.md
Normal file
12
problems/index.md
Normal file
|
|
@ -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.
|
||||
|
||||
14
projects/agent-knowledge-base/decisions.md
Normal file
14
projects/agent-knowledge-base/decisions.md
Normal file
|
|
@ -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.
|
||||
|
||||
10
projects/agent-knowledge-base/notes.md
Normal file
10
projects/agent-knowledge-base/notes.md
Normal file
|
|
@ -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.
|
||||
|
||||
19
projects/agent-knowledge-base/status.md
Normal file
19
projects/agent-knowledge-base/status.md
Normal file
|
|
@ -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.
|
||||
|
||||
14
projects/index.md
Normal file
14
projects/index.md
Normal file
|
|
@ -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.
|
||||
|
||||
6
skills/index.md
Normal file
6
skills/index.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Skills Index
|
||||
|
||||
## Current Skills
|
||||
|
||||
- `repository-memory.md` - how agents should update this repository after work.
|
||||
|
||||
38
skills/repository-memory.md
Normal file
38
skills/repository-memory.md
Normal file
|
|
@ -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.
|
||||
|
||||
21
templates/location.md
Normal file
21
templates/location.md
Normal file
|
|
@ -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:
|
||||
|
||||
40
templates/problem.md
Normal file
40
templates/problem.md
Normal file
|
|
@ -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.
|
||||
|
||||
18
templates/project-status.md
Normal file
18
templates/project-status.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Project Status
|
||||
|
||||
## Current State
|
||||
|
||||
What is true now.
|
||||
|
||||
## Next Actions
|
||||
|
||||
- Next concrete step.
|
||||
|
||||
## Blockers
|
||||
|
||||
- None known.
|
||||
|
||||
## Open Questions
|
||||
|
||||
- None known.
|
||||
|
||||
27
templates/skill.md
Normal file
27
templates/skill.md
Normal file
|
|
@ -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.
|
||||
|
||||
Reference in a new issue