Qwen CodeのナレッジベースBusabase x Qwen Code

Qwen Codeのナレッジベース

Qwen CodeはQWEN.md、private auto-memory、optional git-backed team memory、Skills、subagents、MCPでcontextを継続します。Sessionが強くなるほど、Agentがrememberした情報と人がreviewしてacceptedした情報を分ける必要があります。

Memory-derived proposalEvidence not yet accepted
Qwen Codeのknowledge proposalを確認するBusabase
Memoryはclaimを提案でき、reviewがcanonical化を決めます。

Four memory layers

QWEN.md、auto-memory、team memory、canonical knowledgeはownerが異なる。

Qwen Codeはsession開始時にinstructionsとlearned contextをloadします。Busabaseはこれらを置換せず、checkoutやAgentを越えて責任を持って再利用する少数のclaimだけを受け取ります。

LayerWriterBest useReview model
QWEN.mdHuman / /init assistedCommands、conventions、durable instructionsShared fileはGit review
Private auto-memoryQwen CodePreferences、feedback、local contextUserがinspect/edit/forget
Team memoryQwen Code + collaboratorsGit-backed shared guidanceDiff/PR review + secret scan
Busabase recordAgent proposal + ownerCross-project facts、decisions、statusChange Request then merge

Team memory

Git-backed sharingはmemoryをreviewableにするがauthoritativeにはしない。

Team memoryはopt-in、source-controlled、collaborator-visibleです。Secret detectionとgit diffはありますが、auto-edit/YOLOではpromptなしでwriteされ得ます。Diffはproposed guidanceとして扱い、business state/cross-system claimは別のreviewed recordへ送ります。

PRIVATE

User Qwen directoryのpersonal auto-memory

PROJECT

GitのQWEN.md / optional team-memory

PINNED

Automatic cleanupから保護するcurated memory

CANONICAL

Source、owner、decision、freshnessを持つBusabase record

Subagents and forks

Delegationはcontext/toolsを変えるがfact acceptance authorityは移さない。

Named subagentはseparate context、forkはselected parent turnsをinheritし、fork_tools/profileでexecutionを狭めます。Native Claude Code/Codex executorには別runtime rulesがあります。実際のpath、access、parentへのreturnを残します。

agent_kindNamed subagent、fork、native executor、teammate
context_scopeFresh、full parent、bounded recent turns
tool_scopeAllowed/disallowed tools、MCP servers
permission_modePlan、ask、auto-edit、auto、yolo
working_dirShared checkout / explicit worktree
result_refReturned message / artifacts

Approval Mode

5つのexecution modeはaction riskを表しknowledge qualityは表さない。

Environmentに応じてmodeを選びます。Outcomeがedits、commands、network、MCPに依存する場合はeffective modeを記録します。

ModeFile editsShell / networkKnowledge implication
PlanRead-onlyNot executedAnalysisにもevidenceが必要
Ask PermissionsManual approvalManual approvalUserがactionを見ても全claimを検証したとは限らない
Auto-EditAutomaticManual approvalDiff reviewは必要
AutoClassifier-evaluatedClassifier-evaluatedPolicy classificationはfactual validationではない
YOLOAutomaticAutomaticControlled environmentのみ、outcomeは別review

Skills and MCP

Skillはprocedure、MCPはcapabilityとexternal evidenceを提供する。

Qwen Skillにはinstructions、scripts、templates、hooks、path gatesを含められます。MCPはtools、prompts、resources、filtering、trustを提供します。Skill revision、server identity、response、acceptanceを別fieldにします。

SKILL

Procedure、support files、deterministic hook

SUBAGENT

Focused context / controlled tools

MCP

External tools、prompts、resources、auth

REVIEWED RECORD

Accepted conclusion、owner、lifecycle

Promotion path

Remembered contextからexplicit evidenceを持つclaimへ進める。

Memoryがhypothesisを示し、Qwenがowner sourceを読み、appropriate toolsで検証し、bounded updateを提案します。Busabaseはreviewまでnon-canonicalに保ちます。

01 · REMEMBER

Project guidanceやmemoryが文脈を示す

02 · RESEARCH

Read source systems

03 · EXECUTE

Skills、subagents、MCP

04 · VERIFY

Tests/readback

05 · PROPOSE

One record change

06 · REVIEW

Owner accepts

Qwen Code knowledge proposalのBusabase delivery log

Knowledge contract

Qwenのmemory state全体ではなく、accepted contentを記録する。

Canonical objectは生成元session contextより小さく、明示的で、accountableであるべきです。

knowledge_keyStable identity
memory_refsQWEN.md / private/team/pinned memory
agent_traceParent、subagents、forks、native executors
source_refsOwner systems / exact evidence
proposed_stateConcise reusable claim
ownerAcceptance responsibility
decisionAccepted、conditional、rejected、superseded
freshnessVerified-at / next-review boundary

Choose the owner

各contextを管理できる最小のsystemへ置く。

Qwen memoryをshadow databaseにせず、Busabaseもrepository conventionsを置換しません。

QWEN.md

Stable project instructions / verification commands

AUTO-MEMORY

Personal preferences / short-lived context

TEAM MEMORY

Repositoryに属するreviewed shared guidance

BUSABASE

Projects、people、Agents、Appsを越えるstructured decisions/facts

Practical questions

Qwen CodeナレッジベースのFAQ

BusabaseはQWEN.mdを置換しますか?

いいえ。QWEN.mdはalways-on project instructions、Busabaseはselected reviewed stateです。

Auto-memoryはcanonicalにできますか?

Useful/inspectableですがmodel-written best-effortです。Owner sourceでclaimをverifyします。

Team memoryはreviewが必要ですか?

Git diffはreviewableですがauto-edit/YOLOではpromptなしwriteもあるためpolicyが必要です。

Forkは自分のoutputをapproveできますか?

いいえ。Tool restrictionはexecution、canonical acceptanceはowner decisionです。

Trusted MCPはtrusted dataですか?

いいえ。Confirmation/replay behaviorとresponse validityは別です。Provenanceを残してverifyします。

1つのmemory-derived claimから始める

Qwen Codeにverifyさせてからdurable recordを提案する。

Useful remembered factを選び、owner systemへ追跡し、Agent path/evidenceを付け、independent reviewへ送ります。