Byte codebase harness
Your own ByteDance, powered by Codex skills.
npx -y skills add elan6666/your-bytedance-skills --skill byte-codebase-harnessAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Prepare a large-codebase navigation harness for Your ByteDance / Byte OS that works across Claude Code and Codex. Use when the user asks to make a repo easier for Claude/Codex to navigate, add CLAUDE.md or AGENTS.md, configure large monorepos, map a codebase, scope tests/lint by directory, reduce generated-file noise, add LSP guidance, or support subagent exploration before editing.
SKILL.md
9.2 KB, as published. Nobody here has run it
Byte Codebase Harness
Codebase Harness makes a repository navigable before Byte OS plans or edits it. It adapts Anthropic's large-codebase guidance for Claude Code into a provider-neutral setup that also works for Codex.
Inputs
Inspect:
repo root
top-level directories
existing CLAUDE.md
existing AGENTS.md
existing .claude/settings.json
package/build/test files
.gitignore and generated/artifact directories
.byte-os/STATUS.md if present
Workflow
-
Map the codebase.
- List top-level directories and give each a one-line purpose.
- Identify likely generated files, build outputs, vendored code, dependency directories, fixtures, and large artifacts.
- Identify main language stacks and likely LSPs.
-
Create dual-agent context files.
- Root
CLAUDE.md: concise Claude Code entry context. - Root
AGENTS.md: concise Codex entry context. - Keep root files lean: project map, critical commands, dangerous areas, conventions, and pointers.
- Do not put specialized workflows in root context; use skills or module files instead.
- Treat
AGENTS.mdas Codex's live codebase harness, not a generic README. It should help Codex know where to start, what to avoid, which scoped commands to run, and which Byte OS artifacts contain deeper context. - Maintain parity between
CLAUDE.mdandAGENTS.mdwhere concepts overlap, while adapting syntax and behavior to each tool.
- Root
-
Add module-local context where useful.
- For the 2-3 most relevant or most active subdirectories, add local
CLAUDE.mdandAGENTS.md. - Each local file must state module purpose, build/test/lint commands, architecture constraints, and safe edit boundaries.
- Prefer starting future agent sessions in the relevant subdirectory, while relying on parent context files for global rules.
- For Codex, plans should reference the nearest relevant
AGENTS.mdplus any parentAGENTS.mdfiles as the context stack. - If a module does not need persistent local rules, do not create a local
AGENTS.md; write the detail into.byte-os/CODEBASE_MAP.mdinstead.
- For the 2-3 most relevant or most active subdirectories, add local
-
Add shared Claude noise filters.
- If Claude Code is used, create or update
.claude/settings.json. - Add
permissions.denyrules for generated files, dependency directories, build outputs, lockfile-generated artifacts, and large binary artifacts. - Do not deny paths that are expected to be edited, such as code generators or checked-in generated sources, unless the user confirms.
- If Claude Code is used, create or update
-
Record Codex-compatible guidance.
- Codex should rely on
AGENTS.md,.gitignore,.byte-os/CODEBASE_MAP.md,.byte-os/HARNESS.md,.byte-os/AGENTS_AUDIT.md, and plan-level scoped commands. - Do not create private Codex config unless the user explicitly asks.
- Add a short
Byte OSsection toAGENTS.mdpointing to.byte-os/STATUS.md,.byte-os/CODEBASE_MAP.md,.byte-os/HARNESS.md, and.byte-os/plans/.
- Codex should rely on
-
Recommend LSP and symbol navigation.
- Record language servers or code-intelligence plugins that would improve symbol-level navigation.
- Prefer LSP for common symbol names, C/C++, Java, C#, PHP, TypeScript monorepos, and multi-language repositories.
- If no LSP is available, fall back to
rg, file reads, and local build metadata.
-
Split exploration from editing with subagents.
- For broad unknown areas, use read-only subagents when the platform and user authorize them.
- Assign each exploration subagent one bounded subsystem, directory, or question.
- Require subagents to return only facts, file paths, commands discovered, risks, and suggested next context files.
- Do not let exploration subagents edit files.
- The main agent must decide what to change after reading the summaries.
- If subagents are unavailable, write the same exploration summaries inline before editing.
-
Audit and maintain AGENTS.md.
- Create or update
.byte-os/AGENTS_AUDIT.md. - Record which
AGENTS.mdfiles exist, when they were reviewed, owner or DRI if known, current bloat risks, missing scoped commands, stale assumptions, and next review date. - Recommend a review every 3-6 months or after major model/tooling changes.
- After build, review, or delivery sessions, propose targeted AGENTS.md updates while the session context is fresh; apply only updates that improve future navigation or safety.
- Create or update
AGENTS.md Contract
Root AGENTS.md must be short enough to load every session and should include only:
# AGENTS.md
## Project Purpose
## Start Here
- Current state: .byte-os/STATUS.md
- Codebase map: .byte-os/CODEBASE_MAP.md
- Harness: .byte-os/HARNESS.md
- Plans: .byte-os/plans/
## Repository Map
- <top-level path>: <one-line purpose>
## Global Commands
- Test:
- Lint:
- Typecheck:
- Build:
## Scoped Commands
- <path>: <test/lint/typecheck/build commands>
## Safe Edit Boundaries
- Prefer:
- Avoid:
- Generated/noisy paths:
## Navigation
- Start directories:
- LSP or symbol navigation:
- Search tips:
## Subagents
- Exploration candidates:
- Implementation boundaries:
- Review boundaries:
## Maintenance
- Last reviewed:
- Next review:
- Owner or DRI:
Module AGENTS.md files should include only local differences:
# <module> AGENTS.md
## Module Purpose
## Local Commands
## Local Architecture Rules
## Safe Edit Boundaries
## Verification
## Parent Context
Do not put reusable task expertise, product workflow, long research notes, or detailed specs in AGENTS.md. Put those in skills or .byte-os/ artifacts and link to them.
AGENTS.md Quality Gate
Before marking the harness ready, check:
- Root
AGENTS.mdexists and is lean. - Local
AGENTS.mdfiles exist only where they reduce navigation cost. - Every active module has scoped test/lint/build guidance somewhere: local
AGENTS.md,CODEBASE_MAP.md, orHARNESS.md. - No generated, vendored, dependency, or build-output path is treated as normal source unless intentionally editable.
- LSP recommendations are recorded for typed or multi-language codebases.
- Subagent exploration candidates are bounded by directory or question.
.byte-os/AGENTS_AUDIT.mdrecords freshness and follow-up updates.
Artifacts
Create or update:
CLAUDE.md
AGENTS.md
.claude/settings.json
.byte-os/CODEBASE_MAP.md
.byte-os/HARNESS.md
.byte-os/AGENTS_AUDIT.md
.byte-os/subagents/
.byte-os/STATUS.md
Optional local context files:
<module>/CLAUDE.md
<module>/AGENTS.md
CODEBASE_MAP.md must include:
- Top-level directory map
- Primary stacks and package managers
- Test/lint/build command matrix by directory
- Generated/noisy paths
- LSP recommendations
- Subagent exploration candidates
When subagents are used or recommended, write:
.byte-os/subagents/exploration-<area>.md
Each exploration file must include:
- Scope
- Files inspected
- Key facts
- Commands discovered
- Safe edit boundaries
- Risks and unknowns
- Recommended next step
HARNESS.md must include:
- Claude support status
- Codex support status
- Context files created
- Noise filters added
- Known gaps and follow-up setup
- Subagent exploration used or recommended
- AGENTS.md quality status
- Date reviewed
AGENTS_AUDIT.md must include:
- Root AGENTS.md status: missing | ready | stale | bloated
- Module AGENTS.md files and why they exist
- Scoped command coverage
- Noise path coverage
- LSP or symbol-navigation coverage
- Subagent boundary coverage
- Proposed updates from this session
- Last reviewed
- Next review
Update STATUS.md:
harness_status: ready | partial | blocked
Claude context: ready | partial | not configured
Codex context: ready | partial | not configured
AGENTS.md: ready | partial | missing | stale
project_kind: existing_codebase
current_workflow: byte-codebase-harness
next_workflow: <shared resolver result>
Rules
- Keep root
CLAUDE.mdandAGENTS.mdshort enough to load every session. - Move module-specific rules into subdirectory files.
- Keep
AGENTS.mdas pointers, commands, boundaries, and navigation hints; move long-lived detail into.byte-os/artifacts or skills. - Prefer scoped tests over whole-repo tests.
- Do not rely on stale embeddings or guessed architecture.
- Use live repository inspection:
rg, file reads, package metadata, build files, and LSP when available. - Preserve existing human-written context files; merge instead of replacing.
- Keep subagent outputs factual and short; do not ask subagents to make product decisions.
- Revisit harness and
AGENTS.mdfiles every 3-6 months or after major model/tool changes.
Completion Criteria
The harness is complete when Claude and Codex both have a clear entry context, root and module AGENTS.md usage is audited, noisy paths are documented or filtered, scoped verification commands are available for the active areas, and Byte OS plans can reference the right directories without rediscovering the repository from scratch.