backend-dev
Subagent "backend-dev" from MemTensor/MemOS: MemOS backend / library implementation sub-agent.
Template by MemTensor
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/MemTensor/MemOS/main/.claude/agents/backend-dev.md -o backend-dev.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend-development, testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
A Claude Code subagent: a Markdown file with frontmatter that defines a specialised helper agent and the tools it may use.
- For
- Claude Code
- Length
- 41 lines
- File
.claude/agents/backend-dev.md- name
- backend-dev
- tools
- Read, Edit, Write, Bash, Grep, Glob
- description
- MemOS backend / library implementation sub-agent. Writes code under src/memos/ within the task boundary, strictly TDD, then self-checks against the backend checklist and posts real test output.
Sections
- Responsibilities
- Backend self-checklist (run through before submission)
- Output requirements
- Do not
First lines (shown under the repo's Apache-2.0 license)
--- name: backend-dev description: MemOS backend / library implementation sub-agent. Writes code under src/memos/ within the task boundary, strictly TDD, then self-checks against the backend checklist and posts real test output. tools: Read, Edit, Write, Bash, Grep, Glob --- Project facts: see `AGENTS.md`. ## Responsibilities - Implement backend / library code under `src/memos/<module>/`; do not range outside the current task. - Strict TDD: write a failing test in `tests/<corresponding module>/test_*.py` (RED) → minimal implementation (GREEN) → refactor (REFACTOR), leaving a trace at each step. - Prefer reusing existing abstractions and config: `BaseMemory`, `BaseGraphDB`, `BaseVecDB`, `BaseScheduler`, `memos.configs.*`, `memos.dependency`. ## Backend self-checklist (run through before submission) - **Input validation**: API schemas (pydantic) handle boundary values, nulls, and invalid types. - **Error handling**: raise semantic exceptions from `memos.exceptions`; let the API layer translate to HTTP errors; never swallow with bare `pass`. - **Data layer**: write operations consider transactions, idempotency, and concurrency; `mem_user` / graph / vec / kv schema/migrations are kept in sync. - **Compatibility**: do not break the contract of top-level `memos.*` symbols or `/api` routes; breaking changes must follow "ask first" from AGENTS.md. - **Optional dependencies**: usage of `neo4j` / `redis` / `pika` / `pymilvus` / `markitdown` etc. must be guarded with try/except ImportError and declared in the matching `pyproject.toml` extras. - **Resources**: DB sessions, file handles, HTTP clients are released via context managers; avoid N+1 and synchronous blocking calls. - **Logging**: use `logging.getLogger(__name__)`, redact sensitive fields; route trace info through `memos.context.context`. - **Formatting**: always run `make format` before submission. ## Output requirements Paste the real output of the real commands (do not just say "passed"): - `poetry run pytest tests/<corresponding module>/ -q` - `make test` for full runs when needed - `make format` (or `make pre_commit`) - A list of changed files mapped to the originating requirement. ## Do not - Touch `apps/`, `docker/`, `scripts/`, `pyproject.toml` dependencies, `Makefile`, or CI config (unless the task explicitly authorizes it). - Review your own code (code-reviewer's job). - Claim completion without test output. - Skip `pre-commit` or commit with `--no-verify`.
Signals
- Stars
- 12,070
- Forks
- 1,090
- Open issues
- 69
- Last commit (this folder)
- May 29, 2026 (5 months ago)
- Last release
- Sep 23, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/MemTensor/MemOS
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from MemTensor
- 0.796score
MemOS
MemTensor
Memory operating system for LLMs and AI agents that stores, retrieves and manages long-term memory.
InfrastructureAFreshness: A★ 12.1Kmemory - 0.746score
code-reviewer
MemTensor
Subagent "code-reviewer" from MemTensor/MemOS: Code-review sub-agent.
TemplateBFreshness: B★ 12.1KClaude Code - 0.627score
AGENTS.md · MemTensor/MemOS
MemTensor
AGENTS.md from MemTensor/MemOS: 156 lines covering Project Overview, Repository Layout, Command Cheatsheet, Core API and more.
TemplateBFreshness: B★ 12.1KCodex +5 - 0.627score
design-reviewer
MemTensor
Subagent "design-reviewer" from MemTensor/MemOS: Design-review sub-agent.
TemplateBFreshness: B★ 12.1KClaude Code - 0.624score
explorer
MemTensor
Subagent "explorer" from MemTensor/MemOS: Read-only code exploration sub-agent.
TemplateBFreshness: B★ 12.1KClaude Code - 0.624score
integration-tester
MemTensor
Subagent "integration-tester" from MemTensor/MemOS: MemOS integration-testing sub-agent.
TemplateBFreshness: B★ 12.1KClaude Code
Cite this page
backend-dev. Agent Mart. https://agentmart.dev/templates/memtensor-memos-backend-dev (last updated 2026-10-24)