How yihuandeps/aigc-agent works
AIGC 内容创作 Agent turns a user’s idea or source material into short dramas, short videos, ads, posters, and analysis reports. The main path is terminal chat through the assembled agent runtime, which selects tools and invokes domain capabilities; drama production can continue through an event-driven episode pipeline to rendered assets. The README also documents review, compliance, distribution, analytics, memory, skills, retrieval, and MCP integrations. Arrows rely on the README or SOURCE INDEX references; unsampled subsystems are included where documented, with only documented or indexed relationships shown.
Main entry points: app.py Agent assembly · loop.py Agent loop · bus.py Event stream · drama.py Drama production
Components 27
Interaction
- CLI
src/aigc_agent/interfaces/cli/main.py
Agent runtime
- Agent assembly
src/aigc_agent/app.py - Agent loop
src/aigc_agent/harness/execution/loop.py - Context window
src/aigc_agent/harness/context/window.py - Tool registry
src/aigc_agent/harness/tools/registry.py - Tool providers
src/aigc_agent/harness/tools/provider.py - Model gateway
src/aigc_agent/harness/model/gateway.py - Media gateway
src/aigc_agent/harness/model/media.py - Cost guard
src/aigc_agent/harness/model/budget.py - Event stream
src/aigc_agent/harness/events/bus.py
Capabilities
- Long-term memory
src/aigc_agent/capabilities/memory/store.py - Skill hub
src/aigc_agent/capabilities/skill_hub/__init__.py - MCP hub
src/aigc_agent/capabilities/mcp_hub/hub.py - Library retrieval
src/aigc_agent/domain/functions/retrieval.py
Content production
- Content tools
src/aigc_agent/domain/functions/content.py - Drama production
src/aigc_agent/domain/functions/drama.py - Drama formats
src/aigc_agent/domain/drama/format.py - Episode pipeline
src/aigc_agent/domain/pipeline/episode_pipeline.py - Media tools
src/aigc_agent/domain/functions/media.py - Asset naming
src/aigc_agent/domain/media/naming.py - Storyboard
src/aigc_agent/domain/storyboard/breakdown.py
Review and operations
- Compliance review
src/aigc_agent/domain/compliance/__init__.py - Release packages
src/aigc_agent/domain/distribution/__init__.py - Performance analytics
src/aigc_agent/domain/analytics/__init__.py - Session replay
src/aigc_agent/interfaces/cli/sessions_cmd.py
Other components
- Creator
- Project files
Connections 29
- Creator → CLI: starts chat
README.md - CLI → Agent assembly: creates agent
src/aigc_agent/interfaces/cli/main.py - Agent assembly → Agent loop: assembles runtime
src/aigc_agent/app.py - Agent loop → Context window: builds context
src/aigc_agent/harness/execution/loop.py - Agent loop → Model gateway: requests model
src/aigc_agent/harness/execution/loop.py - Agent loop → Tool registry: dispatches tools
src/aigc_agent/harness/execution/loop.py - Agent loop → Cost guard: checks budget
src/aigc_agent/harness/execution/loop.py - Agent loop → Event stream: emits events
src/aigc_agent/harness/execution/loop.py - Tool registry → Tool providers: uses providers
src/aigc_agent/harness/tools/registry.py - Agent assembly → Content tools: registers tools
src/aigc_agent/app.py - Agent assembly → Drama production: registers tools
src/aigc_agent/app.py - Agent assembly → Media tools: registers tools
src/aigc_agent/app.py - Agent assembly → Long-term memory: sets up memory
src/aigc_agent/app.py - Agent assembly → Skill hub: sets up skills
src/aigc_agent/app.py - Agent assembly → MCP hub: configures hub
README.md - Drama production → Drama formats: uses format
src/aigc_agent/domain/functions/drama.py - Drama production → Media gateway: generates media
src/aigc_agent/domain/functions/drama.py - Drama formats → Asset naming: uses naming
src/aigc_agent/domain/drama/format.py - Event stream → Episode pipeline: triggers stages
README.md - Episode pipeline → Project files: writes episodes
src/aigc_agent/domain/pipeline/episode_pipeline.py - Media tools → Media gateway: requests renders
- Media tools → Project files: writes media
- Storyboard → Project files: produces boards
- Library retrieval → Long-term memory: searches memory
src/aigc_agent/domain/functions/retrieval.py - Library retrieval → Project files: returns matches
src/aigc_agent/domain/functions/retrieval.py - Compliance review → Project files: checks content
README.md - Release packages → Project files: prepares release
README.md - Project files → Performance analytics: feeds review
- Event stream → Session replay: records replay
src/aigc_agent/interfaces/cli/sessions_cmd.py