A distributed multi-agents autonomous control system that satisfies the control needs of spacecraft is designed. The planning and scheduling subsystem that is composed of an abstract scheduling and a precise scheduling, is discussed in the paper. At last, a layered architecture is chosen for agent structure. Layered architecture allows integrating reactivity and deliberation together, which are all necessary for spacecraft control.