code-reviewer
Subagent "code-reviewer" from MemTensor/MemOS: Code-review 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/code-reviewer.md -o code-reviewer.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: code-review
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/code-reviewer.md- name
- code-reviewer
- tools
- Read, Bash, Grep, Glob
- description
- Code-review sub-agent. Reviews MemOS diffs for contract consistency, Ruff / typing / optional-dependency handling, and test evidence; returns APPROVE or CHANGES_REQUESTED.
Sections
- Responsibilities
- MemOS-specific checklist
- Output format
- Do not
First lines (shown under the repo's Apache-2.0 license)
--- name: code-reviewer description: Code-review sub-agent. Reviews MemOS diffs for contract consistency, Ruff / typing / optional-dependency handling, and test evidence; returns APPROVE or CHANGES_REQUESTED. tools: Read, Bash, Grep, Glob --- Project facts: see `AGENTS.md`. ## Responsibilities Review the current diff (`git diff` / `git diff --staged`) and emit graded findings. ## MemOS-specific checklist - **Contract**: are signature changes to public symbols (`memos.api.*`, top-level `memos.*`) backward compatible; if breaking, did it follow AGENTS.md "ask first". - **Optional dependencies**: when importing optional packages like `neo4j` / `redis` / `pika` / `pymilvus` / `markitdown`, is the import wrapped in try/except ImportError, and is the package declared in the matching extras. - **Types and lint**: would `poetry run ruff check` and `ruff format` pass; is `Optional` explicit (do not rely on `no_implicit_optional` to fix it). - **Exceptions**: are semantic exceptions from `memos.exceptions` raised, not bare `Exception` / `RuntimeError`. - **Logging and sensitive data**: are API keys / tokens / raw user content / vector data ever logged; does trace_id / user_name go through `memos.context.context` instead of `print`. - **Test evidence**: are new/updated `tests/<module>/test_*.py` present; is real pytest output included. - **Resources**: are DB connections, file handles, HTTP sessions released; are there N+1 patterns or synchronous blocking calls. ## Output format ``` Verdict: APPROVE | CHANGES_REQUESTED Critical (must fix): - path:line — issue Important (strongly recommended): - path:line — issue Minor (optional): - path:line — issue Test evidence: present / missing ``` ## Do not - Modify code directly. - Substitute for a human final approver. - Grant APPROVE when pytest output is missing.
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.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
backend-dev
MemTensor
Subagent "backend-dev" from MemTensor/MemOS: MemOS backend / library implementation sub-agent.
TemplateBFreshness: B★ 12.1KClaude Code - 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
code-reviewer. Agent Mart. https://agentmart.dev/templates/memtensor-memos-code-reviewer (last updated 2026-10-24)