Acontext
AGENTS.md3.7k starsChanged 9 months agoApache-2.0View on GitHub
- Commits and pushes
Trending
More talk lately.thin dataabout the whole repository
Who's talking about memodb-io/Acontext
- A Hacker News story“Acontext, Turn Your Agent's Task History into Reusable Skills (SOPs)”Hacker News · Nov 26, 2025 · 2 points
- @pythonhub.dev“Context Data Platform for Self-learning Agents One Place for Agents to Store, Observe, and Learn. Designed …”Bluesky · Dec 14, 2025 · 1 likes
- sudosubin/agents.nix“agent-skills.github.memodb-io.acontext: 0.1.14 → 0-unstable-2026-04-21”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.memodb-io.acontext: init at 0.1.14”GitHub · Sep 29, 2026
- memodb-io/Acontext-Examples“fix: update sdk schema for task data”GitHub · Dec 16, 2025
The biggest 5 of 6 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 6
Talked about on GitHub, Hacker News and Bluesky (6 times).
On GitHub · 4
- Oct 3, 2026agent-skills.github.memodb-io.acontext: 0.1.14 → 0-unstable-2026-04-21 — sudosubin/agents.nix0 reactions
- Sep 29, 2026agent-skills.github.memodb-io.acontext: init at 0.1.14 — sudosubin/agents.nix0 reactions
- Dec 16, 2025fix: update sdk schema for task data — memodb-io/Acontext-Examples0 reactions
- Dec 5, 2025Build continues despite failure — bitsorg/bits0 reactions · 1 comment
On Hacker News · 1
- Nov 26, 2025Acontext, Turn Your Agent's Task History into Reusable Skills (SOPs)2 points
On Bluesky · 1
- Dec 14, 2025Context Data Platform for Self-learning Agents One Place for Agents to Store, Observe, and Learn. Designed to simplify context engineering,… — @pythonhub.dev1 likes and repost
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.
In this repository2 other files it gives its agents.
- landingpage/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 8 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
When every task is completed, make sure you check the task checkbox in the corresponding plan.
- Distinctive: line 24
always use the features/show case to present what you're going to build.
- Very specific: line 25
use checklist in TODOS section, for each checkbox, you must have a clear descripion of what to do and list all the files that will be …
- Distinctive: line 39
When you're asked to implement new api endpoints, always lay out the api schema first to let user confirm the input and output are correct.
- Distinctive: line 41
When your task is about modify API, always look for the revelant SDKs and see it should be updated.
- Distinctive: line 42
Make sure you update both sync and async sdk in python if updated.
- Very specific: line 44
When your task is about implement/update SDKs at src/client, always look for the revelant documents in /docs and see it should be updated.
- Very specific: line 46
DON't update openapi.json, or swagger.json/yaml.
- Very specific: line 48
When adding new GORM model fields that use datatypes.JSON, datatypes.JSONMap, or datatypes.JSONType[T], always include the swaggertype …
- Distinctive: line 52
When releasing a new version, follow these steps in order:
- Very specific: line 95
All PRs must follow the template at .github/PULL_REQUEST_TEMPLATE.md.
- Distinctive: line 97
Always delete the new project you created in the same test
- Distinctive: line 101
When modifying UI features (types, server actions, page components), always apply the equivalent change to both dashboards.
≈ “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
Acontext
Acontext is Agent Skills as a Memory Layer for production AI Agents
NAVIGATION GUIDE
- Python SDK:
src/client/acontext-py/ - TypeScript SDK:
src/client/acontext-ts/ - CLI Tool:
src/client/acontext-cli/ - API:
src/server/api/ - CORE:
src/server/core/ - Dashboard:
dashboard/ - Dashboard (OSS):
src/server/ui/ - OpenClaw Plugin:
src/packages/openclaw/(npm:@acontext/openclaw) - Sandbox Cloudflare:
src/packages/sandbox-cloudflare/— a scaffolding/template package (npm:@acontext/create-sandbox-cloudflare). ItsprepublishOnlyscript copiessrc/server/sandbox/cloudflare/intotemplate/with variable substitution, so changes to the Cloudflare Worker source insrc/server/sandbox/cloudflare/are automatically picked up on publish. - E2E Tests:
src/server/tests/e2e/— integration tests that run the full stack (API + Core + deps) viadocker-compose.test.yml. When modifying server-side behavior, check if e2e coverage should be added or updated. - Landing Page:
landingpage - Documentation:
docs/
Plan-driven Development
- You must make a markdown plan at
plans/before you implement any my request, otherwise I will reject your implementation. - The
plans/directory is gitignored — plans are kept locally and do not need to be committed or included in PRs. - Remember to update the dev plan after you finish coding.
- When every task is completed, make sure you check the task checkbox in the corresponding plan.
- A plan should at least contain
features/show case,designs overview,TODOS,new deps,test casessections.- always use the features/show case to present what you're going to build.
- use checklist in
TODOSsection, for each checkbox, you must have a clear descripion of what to do and list all the files that will be modified. - in
new depssection, you must list all the new external dependencies that will be added. - in
test casessection, use checklist format to list all the test cases that should be covered.
MODULES
- API is the main module that handles the API requests and responses to Acontext, SDKs are the client-side modules that interact with the API.
- CLI tool is a command-line tool that helps you deploy Acontext locally and download examples
- CORE contains the session buffer, task extraction, embedding, agent... anything involving AI/LLM/Agent in it.
- API and CORE are connected by message queue.
- API: Go + Gin + GORM/PostgreSQL + Redis + RabbitMQ + S3 + OpenTelemetry + Swagger
- CORE: Python + FastAPI + SQLAlchemy/PostgreSQL + pgvector + Redis + RabbitMQ + S3 + OpenAI/Anthropic + OpenTelemetry
RULES
Confirm API Schemas before actually implementing them
When you're asked to implement new api endpoints, always lay out the api schema first to let user confirm the input and output are correct.
Update SDKs after modifying API if necessary
When your task is about modify API, always look for the revelant SDKs and see it should be updated.
- Make sure you update both sync and async sdk in python if updated.
Find Document after modifying SDKs
- When your task is about implement/update SDKs at
src/client, always look for the revelant documents in /docs and see it should be updated. - For any doc update in /docs, make sure you read AGENTS-DOC.md.
- DON't update openapi.json, or swagger.json/yaml. those are artifacts generated by programs, no need to manually edit them. But if they'are changed, that's fine cause they're auto-generated.
Swagger annotations for GORM models
When adding new GORM model fields that use datatypes.JSON, datatypes.JSONMap, or datatypes.JSONType[T], always include the swaggertype struct tag so the Swagger generator (swag) can parse the type. Example: `gorm:"type:jsonb;not null" swaggertype:"object" json:"data"`. Without it, swag will fail with cannot find type definition: datatypes.JSON.
Sync ORMs between API and CORE
Both API and CORE have their ORMs, which should be synced. CORE uses SQLAlchemy, API uses GORM.
Version Bump, Tagging & Release
When releasing a new version, follow these steps in order:
- Bump the version number in the package manifest:
- TypeScript SDK: update
"version"insrc/client/acontext-ts/package.json - Python SDK: update
versioninsrc/client/acontext-py/pyproject.toml - OpenClaw Plugin: update
"version"insrc/packages/openclaw/package.json,versioninsrc/packages/openclaw/index.ts(the plugin object), andexpect(plugin.version)insrc/packages/openclaw/tests/plugin.test.ts - Sandbox Cloudflare: update
"version"insrc/packages/sandbox-cloudflare/package.json - Claude Code Plugin: run
npm run release -- X.Y.Zinsrc/packages/claude-code/— this updatespackage.json,plugin/.claude-plugin/plugin.json, and.claude-plugin/marketplace.json, then rebuilds the plugin bundles automatically. Full steps:
CI (cd src/packages/claude-code npm run release -- 0.1.1 # bump 3 version files + rebuild bundles cd ../../.. git add -A && git commit -m "chore: release claude-code plugin v0.1.1" git tag package-claude-code/v0.1.1 git push && git push --tags # triggers CI: version verify + GitHub Releasepackage-release-claude-code.yaml) verifies that all 3 version files match the tag, runs tests, rebuilds bundles and checks that bundle sizes are within 5% of committed artifacts (catches forgotten rebuilds while tolerating cross-platform esbuild differences), then creates a GitHub Release. It does not publish to a registry — the plugin is distributed via the repo itself.
- TypeScript SDK: update
- Regenerate the lock file so it stays in sync:
- TypeScript SDK: run
npm installinsrc/client/acontext-ts/(updatespackage-lock.json) - Python SDK: run
uv lockinsrc/client/acontext-py/(updatesuv.lock) - OpenClaw Plugin: run
npm installinsrc/packages/openclaw/(updatespackage-lock.json) - Sandbox Cloudflare: no lock file needed (template is synced from
src/server/sandbox/cloudflareviaprepublishOnlyscript) - Claude Code Plugin: no lock file needed (
npm run releasealready rebuilds bundles)
- TypeScript SDK: run
- Commit the version bump + lock file changes.
- Tag the commit to trigger the CI/CD release pipeline. Each tag pattern maps to a specific workflow, publish target, and directory:
| Component | Tag Pattern | Publishes To | Source Directory | Workflow |
| API | api/vX.Y.Z | ghcr.io (Docker, multi-arch) | src/server/api/go | api-release.yaml |
| Admin API | admin/vX.Y.Z | ghcr.io (Docker, multi-arch) | src/server/api/go | admin-release.yaml |
| Core | core/vX.Y.Z | ghcr.io (Docker, multi-arch) | src/server/core | core-release.yaml |
| UI (OSS) | ui/vX.Y.Z | ghcr.io (Docker, multi-arch) | src/server/ui | ui-release.yaml |
| TypeScript SDK | sdk-ts/vX.Y.Z | npm (@acontext/acontext) | src/client/acontext-ts | client-release-ts.yaml |
| Python SDK | sdk-py/vX.Y.Z | PyPI (acontext) | src/client/acontext-py | client-release-py.yaml |
| CLI | cli/vX.Y.Z | GitHub Releases (binaries) | src/client/acontext-cli | cli-release.yaml |
| OpenClaw Plugin | package-openclaw/vX.Y.Z | npm (@acontext/openclaw) | src/packages/openclaw | package-release-openclaw.yaml |
| Sandbox Cloudflare | package-sandbox-cloudflare/vX.Y.Z | npm (@acontext/create-sandbox-cloudflare) | src/packages/sandbox-cloudflare | package-release-sandbox-cloudflare.yaml |
| Claude Code Plugin | package-claude-code/vX.Y.Z | Claude Plugin Marketplace | src/packages/claude-code | package-release-claude-code.yaml |
| Helm Chart | chart/vX.Y.Z | ghcr.io (OCI helm chart) | charts/acontext | publish-chart.yaml |
<!-- Keep the Workflow column in sync with actual filenames under .github/workflows/ -->All workflows create a GitHub Release with a path-scoped changelog generated by .github/scripts/generate-changelog.sh. The script finds the previous tag with the same prefix, collects commits scoped to the component's source directory, and groups them by conventional commit type (Features, Bug Fixes, Other). The checkout step in the job that runs generate-changelog.sh must use fetch-depth: 0 so that full git history and tags are available; without it the script cannot find previous tags and falls back to "Initial release." Docker builds produce multi-platform images (linux/amd64, linux/arm64). npm/PyPI workflows skip publishing if the version already exists on the registry. npm packages use OIDC trusted publishers for authentication — do NOT add NODE_AUTH_TOKEN or npm tokens to the publish step.
Pull Requests
- All PRs must follow the template at
.github/PULL_REQUEST_TEMPLATE.md.
Unit Test
- Always delete the new project you created in the same test
Update Dashboard and Dashboard OSS at the same time
- Dashboard (
dashboard/): The hosted/commercial dashboard with authentication (Supabase), organizations, projects, and a mixin-basedAcontextClient. Routes are scoped under/project/[id]/.... - Dashboard OSS (
src/server/ui/): The open-source, self-hosted dashboard. - When modifying UI features (types, server actions, page components), always apply the equivalent change to both dashboards.
- Exception: Encryption features (encryption settings, API key localStorage, key rotation UI) are commercial-only and do NOT need to be added to Dashboard OSS.
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.

