altk-evolve
AGENTS.md122 starsChanged 2 months agoApache-2.0View on GitHub
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 54
Run pytest verbosely with the -v flag by default so that you have more context when tests fail.
- Very specific: line 55
Use uv run pytest tests/.../<test_name.py> to run tests individually.
- Very specific: line 57
When running uv run pytest it will skip the tests marked with phoenix.
- Very specific: line 68
Use Ruff for linting and formatting (configured in pyproject.toml)
- Very specific: line 69
Always run uv run ruff format .
- Very specific: line 70
Write commit messages in the Conventional Commits format expected by python-semantic-release:
- Distinctive: line 76
All new features need tests (unit + e2e where applicable)
- Distinctive: line 77
Use uv to run Python commands, including pip.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
What is Evolve?
Evolve is a Python library and service which enables AI agents to improve through self-reflection.
Key Concepts
- Trajectory: A recorded agent conversation
- Entity: Anything which is appropriately stored in a vector database, such as a guideline, policy, or some other knowledge.
- Namespace: Isolated storage for entities
- Conflict Resolution: LLM-based merging of duplicate/conflicting entities
- Guidelines: Instructions intended to assist an agent in completing some task
Architecture Flow
- Agent completes some task, and the resulting trajectory is automatically saved into a logging framework such as Langfuse or Arize Phoenix.
- The agent can call the sync MCP function, or the user can manually sync, which causes evolve to process the trajectory and save any generated guidelines.
- Generated guidelines are stored as entities with conflict resolution applied.
- Future agents can query the Evolve MCP server to fetch guidelines for similar tasks
Project Directory Tree (Some files omitted for brevity)
.
├── demo (Files used by the Claude Code demo)
│ ├── filesystem
│ └── workdir
├── docs (Data used by README files)
├── explorations (Tangential projects for feeling out future work. Should be avoided unless otherwise prompted.)
│ └── claudecode
├── evolve (Primary Source Root)
│ ├── backend (Entity Database Backend implementations, primarily vector databases)
│ ├── cli (A CLI wrapper over the native Python client)
│ ├── config (All configurations which are derived from environment variables or instantiated as an object)
│ ├── db (A sqlite database for when vector databases are a poor fit for the data)
│ ├── frontend (Interfaces to interact with the backend)
│ │ ├── client (A native Python client which thinly wraps the configured backend)
│ │ └── mcp (An MCP server implementing some high-level methods useful for AI agents)
│ ├── llm (All code that prompts an LLM)
│ ├── schema (All well-defined datatypes used throughout the project)
│ ├── sync (Upstream data sources to be processed and stored in the backend)
│ └── utils (Small reusable code snippets)
├── tests (All tests for evolve)
├── .env.example (Environment variable template file)
└── .env (Environment variables used to configure evolve)First Time Setup
uv sync && source .venv/bin/activate
cp .env.example .env # Configure any environment variables, defined in `./altk_evolve/config`
pre-commit installDevelopment Guidelines
- This project is managed by
uv, notpythonorpip, so any python commands need to go throughuv. All dependencies are defined inpyproject.toml.
Testing Instructions
- Run pytest verbosely with the
-vflag by default so that you have more context when tests fail. - Use
uv run pytest tests/.../<test_name.py>to run tests individually. - We use the pytest markers
e2efor end-to-end tests, andunitfor unit tests, andphoenixto test integration with Phoenix. - When running
uv run pytestit will skip the tests marked withphoenix. - To run specific markers:
uv run pytest -m e2eoruv run pytest -m unit - To run all tests:
uv run pytest -m "e2e or unit or phoenix"
Available Interfaces
- MCP Server:
get_entities(),get_guidelines(),save_trajectory() - CLI: Run
evolve --helpif details are needed about its subcommands. Available subcommands includenamespaces,entities, andsync - Python Client:
EvolveClient()for programmatic access
Coding Standards
- Use Ruff for linting and formatting (configured in pyproject.toml)
- Always run
uv run ruff format .andgit add -ubefore committing to avoid pre-commit stash conflicts with ruff auto-fixes - Write commit messages in the Conventional Commits format expected by
python-semantic-release:feat(scope): description— new feature, triggers a minor version bumpfix(scope): description— bug fix, triggers a patch version bumpperf(scope): description— performance improvement, triggers a patch version bumptest(scope): description,chore(scope): description,docs(scope): description, etc. — no version bump- Breaking changes: append
!after the type/scope (e.g.feat!:) or addBREAKING CHANGE:in the footer
- All new features need tests (unit + e2e where applicable)
- Use uv to run Python commands, including pip.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

