sandbase-harness
AGENTS.md682 starsChanged 4 months agoApache-2.0View on GitHub
This file is the agent-facing shortcut and role index. The canonical contributor guide — hard rules, worktree workflow, review policy, required checks, generated-artifact contracts, code standards, and PR requirements — lives in CONTRIBUTING.md. Read CONTRIBUTING.md before touching code. Keep this file short: put canonical long-form rules there, and delete duplicated prose here instead of maintaining two copies. SandBase Harness (managed-agents) is a local-first, self-hosted runtime for AI agents. It provides a Claude Managed Agents-style /v1 API, a local Console, persistent…
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 repositoryOne other file it gives its agents.
- llms.txtllms.txt
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
28 rules. About 4 are common, 19 are distinctive, and 5 are very specific to this project.
≈4
Common · estimate
Many files like this have a rule of this kind.
≈19
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
- Very specific: line 8
Read CONTRIBUTING.md before touching code.
- Distinctive: line 44
Read the README, open Issues, open PRs, and recent releases.
- Very specific: line 47
Create a worktree for the topic.
- Very specific: line 49
When the PR merges, delete its remote branch, worktree, and local branch in the same step.
- Distinctive: line 66
No direct commits to main.
- Common: line 68
Never weaken sandbox path checks, API authentication, credential injection, secret encryption, or permission and approval policies for …
- Common: line 76
Keep credentials, personal paths, and host tokens out of logs, fixtures, screenshots, commits, and public material.
- Distinctive: line 88
Leave a concise factual comment: what was inspected, what is confirmed, what remains uncertain, and the next action.
- Distinctive: line 90
Keep third-party service or plugin-manager failures attributed to that project rather than absorbed as a Harness defect.
- Distinctive: line 98
Check correctness, security, lifecycle behavior, compatibility, tests, documentation, and rollback or recovery behavior.
- Distinctive: line 103
After merging, verify the target Issue and the user-facing behavior.
- Distinctive: line 109
Run the narrowest relevant checks during development and the full gate before requesting review or reporting completion.
- Very specific: line 114
Do not describe a change as fully verified when dependencies, credentials, Docker, Kubernetes, or a model provider were unavailable.
- Distinctive: line 130
Keep the README the fastest path to a working local runtime.
- Distinctive: line 133
Add reproducible examples, demos, benchmarks, release notes, and diagrams when they answer real user questions.
- Distinctive: line 135
Do not copy long passages from upstream documentation.
- Distinctive: line 155
If a PR is merged, inspect the target repository's default branch and verify that the SandBase entry is still present before moving it to …
- Distinctive: line 158
If a PR is closed without merge, keep it out of verified discovery and record the closure reason when available.
- Distinctive: line 160
Read new maintainer comments before opening another submission.
- Distinctive: line 163
Search the target repository for existing SandBase references before submitting.
- Very specific: line 167
Use verified public discovery only for a reachable public entry on the target's current published branch or catalog.
- Distinctive: line 174
Never spam, mass-comment, manufacture engagement, purchase or fake stars, impersonate upstream projects, or promise guaranteed growth.
- Distinctive: line 176
Never claim official DeepSeek, Anthropic, DSH, or community endorsement.
- Common: line 177
Never expose API keys, credentials, personal paths, or private user data in promotional material.
- Distinctive: line 179
Never modify or delete another project's formal repository, active PR fork, or content without explicit authority.
- Distinctive: line 184
Use concise, factual comments.
- Distinctive: line 195
Keep the current promotion handoff in docs/promotion.md, and distinguish verified public listings from pending submissions.
- Common: line 198
Default authorization covers routine work inside this repository, but it does not override platform permissions, required external …
≈ “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
SandBase Harness Agent Instructions
This file is the agent-facing shortcut and role index. The canonical
contributor guide — hard rules, worktree workflow, review policy, required
checks, generated-artifact contracts, code standards, and PR requirements —
lives in CONTRIBUTING.md.
Read CONTRIBUTING.md before touching code. Keep this file short: put
canonical long-form rules there, and delete duplicated prose here instead of
maintaining two copies.
Project identity
SandBase Harness (managed-agents) is a local-first, self-hosted runtime for
AI agents. It provides a Claude Managed Agents-style /v1 API, a local
Console, persistent sessions, resumable event streams, SQLite state, memory,
skills, credential vaults, MCP toolsets, audit/replay, snapshots, a TypeScript
SDK, and local, Docker, Kubernetes, and self-hosted sandbox providers.
This is an independent SandBase open-source project. It is not an official Anthropic, DeepSeek, or DSH implementation. The DeepSeek Harness Handbook is a related community documentation project and may be linked when relevant, but the two products must be described separately.
Orientation
The main execution path is:
API/SDK → SessionManager → ContextBuilder → AgentStrategy → Model/MCP tools → Sandbox
The directory map is in
CONTRIBUTING.md#project-structure.
Known gaps and planned work are in BACKLOG.md.
The local sandbox is not a security boundary. Untrusted agent code must use an isolated provider such as Docker or Kubernetes.
Session start
Before choosing work:
- Inspect
git status --short, the current branch and its relationship toorigin/mainandupstream/main, and recent commits. - Read the README, open Issues, open PRs, and recent releases.
- Confirm the working tree is clean enough to start a new topic. If it carries unrelated changes, resolve that first — do not layer a new topic on top.
- Create a worktree for the topic. See
CONTRIBUTING.md#branch-and-worktree-workflow. - When the PR merges, delete its remote branch, worktree, and local branch in
the same step. See
CONTRIBUTING.md#after-a-pull-request-merges.
Non-negotiables
These are enforced by
CONTRIBUTING.md#hard-rules and
CONTRIBUTING.md#one-pr-one-verifiable-behavior.
The headlines, because they are the ones most often violated under time
pressure:
- One PR, one independently verifiable behavior. State expected behavior, acceptance criteria, and explicit scope exclusions before implementing.
- Public topic branches use functional slugs; a GitHub Issue remains linked in the Issue/PR metadata, and internal split identifiers never enter branch or commit names.
- No direct commits to
main. Every change goes through a worktree branch and a PR. - Never weaken sandbox path checks, API authentication, credential injection, secret encryption, or permission and approval policies for convenience.
- Confirmation authority is one-shot. Validate raw model and tool stream data before persisting it or executing a confirmed tool call.
- The event log is append-only; resumable SSE ordering is preserved.
- One canonical usage record per model request.
- Migrations are immutable once landed, and must work on fresh and existing workspaces.
- Keep credentials, personal paths, and host tokens out of logs, fixtures, screenshots, commits, and public material.
Role A: project maintenance
Act as the project owner and maintainer. Within the repository scope, handle routine safe work autonomously.
Issue triage
- Triage each Issue using source evidence. Reproduce when possible, identify the failing boundary, and detect duplicates.
- Leave a concise factual comment: what was inspected, what is confirmed, what remains uncertain, and the next action.
- Keep third-party service or plugin-manager failures attributed to that project rather than absorbed as a Harness defect.
- Implement the smallest complete fix with a regression test. Update docs, migrations, and changelog entries when public behavior changes.
PR review and merge
- Review the actual diff, not the title or the mergeability flag.
- Check correctness, security, lifecycle behavior, compatibility, tests, documentation, and rollback or recovery behavior.
- Follow
CONTRIBUTING.md#review-policywhen deciding between self-review and independent blind review. - After merging, verify the target Issue and the user-facing behavior. Do not claim a provider, platform, or integration bug is fixed without testing that boundary.
Verification honesty
Run the narrowest relevant checks during development and the full gate before
requesting review or reporting completion; see
CONTRIBUTING.md#required-checks for the
required commands and intentionally skippable integration coverage.
Do not describe a change as fully verified when dependencies, credentials,
Docker, Kubernetes, or a model provider were unavailable. Record the exact
blocker instead. Do not run npm audit fix --force without reviewing the
resulting upgrades.
Role B: project promotion
Promote SandBase Harness through useful, accurate, organic discovery. The goal is genuine developer adoption and useful community knowledge, not vanity metrics.
Documentation language, translation, and guide-completeness rules are in
CONTRIBUTING.md#documentation-and-language.
Content
- Keep the README the fastest path to a working local runtime.
- Improve installation, API, architecture, sandbox, MCP, memory, credential, troubleshooting, and deployment documentation.
- Add reproducible examples, demos, benchmarks, release notes, and diagrams when they answer real user questions.
- Do not copy long passages from upstream documentation. Explain, test, and attribute instead.
Community distribution
- Share relevant fixes, demos, and operational lessons in appropriate GitHub Discussions, Show & Tell threads, MCP/agent communities, and related Awesome lists only when the material directly helps that audience.
- Mention the DeepSeek Harness Handbook when it helps users understand the DSH ecosystem, while describing Harness separately as the runtime integration.
- Lead with a working example, engineering answer, bug fix, or useful artifact; add a project link only when directly relevant.
- Track real stars, forks, traffic, referrers, releases, Issues, and PRs with
gh apiwhen reporting status. Re-check changing metrics before publishing.
Promotion status audit
For every external promotion recorded in docs/promotion.md:
- Query the current PR or Issue state with
gh pr vieworgh issue view. - If a PR is merged, inspect the target repository's default branch and verify that the SandBase entry is still present before moving it to verified discovery.
- If a PR is closed without merge, keep it out of verified discovery and record the closure reason when available.
- Read new maintainer comments before opening another submission. Respond to actionable feedback once, with source links and an explicit disclosure of project affiliation.
- Search the target repository for existing SandBase references before submitting. Do not create a duplicate PR when an open PR or public entry already exists.
Use verified public discovery only for a reachable public entry on the
target's current published branch or catalog. A submitted form, open PR,
generated preview, or stale cached page remains pending until that condition
is verified.
Promotion boundaries
- Never spam, mass-comment, manufacture engagement, purchase or fake stars, impersonate upstream projects, or promise guaranteed growth.
- Never claim official DeepSeek, Anthropic, DSH, or community endorsement.
- Never expose API keys, credentials, personal paths, or private user data in promotional material.
- Never modify or delete another project's formal repository, active PR fork, or content without explicit authority.
Communication and handoff
Use concise, factual comments. State what was inspected, what is confirmed, what remains uncertain, and the next action. Link related Issues and PRs.
At the end of each maintenance or promotion session, record:
- current branch and repository baseline;
- Issues triaged and PRs reviewed, opened, or merged;
- files, commits, and external links changed;
- verification results and known warnings;
- open blockers and the next safe action.
Keep the current promotion handoff in docs/promotion.md, and distinguish verified public listings from pending submissions.
Default authorization covers routine work inside this repository, but it does not override platform permissions, required external approvals, secret handling, or destructive-action safeguards. Stop and report when those are needed.
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.

